file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
// SPDX-License-Identifier: MIT // Message module that allows sending and receiving messages using lane concept: // // 1) the message is sent using `send_message()` call; // 2) every outbound message is assigned nonce; // 3) the messages are stored in the storage; // 4) external component (relay) delivers messages to b...
Extract new dispatch results from the unrewarded relayers vec. Revert if unrewarded relayers vec contains invalid data, meaning that the bridged chain has invalid runtime storage. the only caller of this functions checks that the prev_latest_received_nonce..=latest_received_nonce is valid, so we're ready to accept mes...
function extract_dispatch_results(uint64 prev_latest_received_nonce, uint64 latest_received_nonce, UnrewardedRelayer[] memory relayers) internal pure returns(uint256 received_dispatch_result) { uint64 last_entry_end = 0; uint64 padding = 0; for (uint64 i = 0; i < relayers.length; i++) { ...
7,265,325
[ 1, 4976, 394, 3435, 1686, 628, 326, 640, 266, 11804, 1279, 3907, 7062, 18, 868, 1097, 309, 640, 266, 11804, 1279, 3907, 7062, 1914, 2057, 501, 16, 12256, 716, 326, 324, 1691, 2423, 2687, 711, 2057, 3099, 2502, 18, 326, 1338, 4894, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 2608, 67, 10739, 67, 4717, 12, 11890, 1105, 2807, 67, 13550, 67, 15213, 67, 12824, 16, 2254, 1105, 4891, 67, 15213, 67, 12824, 16, 1351, 266, 11804, 1971, 1773, 8526, 3778, 1279, 3907, 13, 2713, 16618, 1135, 12, 11890, ...
./full_match/1/0xEdf2818C44C0CAD3B719Bb31c52630AEe967E0B5/sources/AutoLiquidity.sol
@notice extend authorize
function extendAuthorize() internal virtual view returns (bool){ return true; }
9,606,388
[ 1, 14313, 12229, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2133, 18987, 1435, 2713, 5024, 1476, 1135, 261, 6430, 15329, 203, 3639, 327, 638, 31, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2022-01-24 */ // SPDX-License-Identifier: MIT /* solium-disable security/no-send */ /** * @authors: [@ferittuncer, @hbarcelos] * @reviewers: [@remedcu*] * @auditors: [] * @bounties: [] * @deployments: [] */ /** * @title Arbitrator * Arbitrator abstract cont...
Round struct stores the contributions made to particular answers.
struct Round { }
15,337,194
[ 1, 11066, 1958, 9064, 326, 13608, 6170, 7165, 358, 6826, 12415, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11370, 288, 203, 565, 289, 203, 203, 203, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
//SPDX-License-Identifier: MIT pragma solidity ^0.8.7; /** * IERC20 */ interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); func...
Sets all the sell taxes, needs to be lower than the max
function setSellFeesInPercentage(uint256 _liquidityFeeSell, uint256 _MarketingFeeSell, uint256 _rewardFeeSell) external onlyOwner { liquidityFeeSell = _liquidityFeeSell; MarketingFeeSell = _MarketingFeeSell; rewardFeeSell = _rewardFeeSell; totalFeeSell = _liquidityFeeSell.add(_Market...
5,437,861
[ 1, 2785, 777, 326, 357, 80, 5320, 281, 16, 4260, 358, 506, 2612, 2353, 326, 943, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13928, 1165, 2954, 281, 382, 16397, 12, 11890, 5034, 389, 549, 372, 24237, 14667, 55, 1165, 16, 2254, 5034, 389, 3882, 21747, 14667, 55, 1165, 16, 2254, 5034, 389, 266, 2913, 14667, 55, 1165, 13, 3903, 1338, 5541, 288, ...
./full_match/1/0x8fEf29604D16987E2a0C8AE1DFbA47495fF4888a/sources/contracts/WrappedStakedWar.sol
* @notice Update the reward state for all reward tokens/
function updateAllRewardState() external whenNotPaused { _updateAllRewardStates(); }
4,816,776
[ 1, 1891, 326, 19890, 919, 364, 777, 19890, 2430, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 1595, 17631, 1060, 1119, 1435, 3903, 1347, 1248, 28590, 288, 203, 3639, 389, 2725, 1595, 17631, 1060, 7629, 5621, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/1/0xdE000042830A211533662637fE66760f1F2cD717/sources/contracts/LUKSOMigrationDepositContract.sol
The DestinationDepositData struct stores the data of a deposit made to a destination
struct DestinationDepositData { address senderAddress; uint96 amount; uint256 depositId; }
3,865,414
[ 1, 1986, 10691, 758, 1724, 751, 1958, 9064, 326, 501, 434, 279, 443, 1724, 7165, 358, 279, 2929, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10691, 758, 1724, 751, 288, 203, 3639, 1758, 5793, 1887, 31, 203, 3639, 2254, 10525, 3844, 31, 203, 3639, 2254, 5034, 443, 1724, 548, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/4/0x393b92CC3E75DEe06F470BCA2f2a40e7F44F01b6/sources/CMC-Token/CMC-Token/DividendPayingToken.sol
@notice Withdraws the ether distributed to the sender. @dev It emits a `DividendWithdrawn` event if the amount of withdrawn ether is greater than 0.
function _withdrawDividendOfUser(address payable user) internal returns (uint256) { uint256 _withdrawableDividend = withdrawableDividendOf(user); if (_withdrawableDividend > 0) { withdrawnDividends[user] = withdrawnDividends[user].add( _withdrawableDiv...
12,410,120
[ 1, 1190, 9446, 87, 326, 225, 2437, 16859, 358, 326, 5793, 18, 225, 2597, 24169, 279, 1375, 7244, 26746, 1190, 9446, 82, 68, 871, 309, 326, 3844, 434, 598, 9446, 82, 225, 2437, 353, 6802, 2353, 374, 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, 389, 1918, 9446, 7244, 26746, 951, 1299, 12, 2867, 8843, 429, 729, 13, 203, 3639, 2713, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2254, 5034, 389, 1918, 9446, 429, 7244, 26746, 273, 598, 9446, 429...
./partial_match/1/0xBaBbfEEE65AB0c84337dc223169B2b8c91094f1B/sources/FXCMStake.sol
* @dev Approve `to` to operate on `tokenId` Emits an {Approval} event./ internal owner
bytes memory returndata = to.functionCall( abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, _msgSender(), from, tokenId, _data ), "ERC721: transfer to non ERC721Receiver impl...
2,893,974
[ 1, 12053, 537, 1375, 869, 68, 358, 20829, 603, 1375, 2316, 548, 68, 7377, 1282, 392, 288, 23461, 97, 871, 18, 19, 2713, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1731, 3778, 327, 892, 273, 358, 18, 915, 1477, 12, 203, 5411, 24126, 18, 3015, 1190, 4320, 12, 203, 7734, 467, 654, 39, 27, 5340, 12952, 12, 869, 2934, 265, 654, 39, 27, 5340, 8872, 18, 9663, 16, 203, 7734, 389, 3576, 1...
// File: contracts\modules\Ownable.sol pragma solidity =0.5.16; /** * @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 ...
latest calcutated Options Occupied value.
uint256 internal callOccupied;
10,419,360
[ 1, 13550, 1443, 5150, 690, 5087, 531, 952, 416, 2092, 460, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 2713, 745, 24269, 416, 2092, 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, ...
// to test issue with nodes breaking with large clients over WS // fixed in web3 with fragmentationThreshold: 8192 pragma solidity ^0.4.17; contract BigFreakingContract { event Transfer(address indexed from, address indexed to, uint value); event Approval( address indexed owner, address indexed spender, uint valu...
TODO: should increase instead
function approve_132(address spender, uint value) public returns (bool ok) { _approvals[msg.sender][spender] = value; emit Approval( msg.sender, spender, value ); return true; }
6,453,845
[ 1, 6241, 30, 1410, 10929, 3560, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 6617, 537, 67, 22152, 12, 2867, 17571, 264, 16, 2254, 460, 13, 1071, 1135, 261, 6430, 1529, 13, 288, 203, 565, 389, 12908, 4524, 63, 3576, 18, 15330, 6362, 87, 1302, 264, 65, 273, 460, 31, 203, 565, 3626, 1716, 685, ...
./partial_match/1/0x01a8f00C64bBcbFe80087a14e9cC48001e8CB810/sources/EarlyBirds.sol
THIS CAN BE DISABLED
function transferBird( address to, uint256 tokenId ) external onlyOwner editingAllowed { _transfer(this.ownerOf(tokenId), to, tokenId); }
3,911,471
[ 1, 2455, 5127, 22709, 9722, 17641, 9530, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 38, 6909, 12, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 3903, 1338, 5541, 15755, 5042, 288, 203, 3639, 389, 13866, 12, 2211, 18, 8443, 951, 12, 2316, 548, 3631, 358, 16, 1147, 54...
./partial_match/56/0x641a6Dc991A49f7BE9Fe3C72c5d0FBb223eDb12f/sources/REFI_NETWORK.sol
here u will write your BSC address
contract REFI_NETWORK is BEP20 { using SafeMath for uint256; address owner = msg.sender; mapping (address => uint256) balances; mapping (address => mapping (address => uint256)) allowed; mapping (address => bool) public Claimed; string public constant name = "RealfinanceNetwork"; str...
11,078,530
[ 1, 14852, 582, 903, 1045, 3433, 605, 2312, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2438, 1653, 67, 28047, 353, 9722, 52, 3462, 288, 203, 377, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1758, 3410, 273, 1234, 18, 15330, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 324, 26488,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "./MedShareToken.sol"; import "./utils/StringsAndBytes.sol"; contract MedShare is MedShareToken { // Biblical Principles address storeHouseAddress = 0x7125fc5F7B09330a37D863fAb18aeBFdDf9f5382; // Genesis4149 // Maps every family addr...
* @dev Function to query this contract's Stable Dollars reserve balance/ transfers stable Dollars that belong to your contract to the specified address
function getContractStableDollarsBalance() external view returns (uint256) { return sda.balanceOf(address(this)); }
6,465,915
[ 1, 2083, 358, 843, 333, 6835, 1807, 934, 429, 463, 22382, 5913, 20501, 11013, 19, 29375, 14114, 463, 22382, 5913, 716, 10957, 358, 3433, 6835, 358, 326, 1269, 1758, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 8924, 30915, 40, 22382, 5913, 13937, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 272, 2414, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100...
pragma solidity ^0.5.0; pragma experimental ABIEncoderV2; /* * @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 ...
* @dev Private function to remove a token from this extension's token tracking data structures. This has O(1) time complexity, but alters the order of the _allTokens array. @param tokenId uint256 ID of the token to be removed from the tokens list/ To prevent a gap in the tokens array, we store the last token in the ind...
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { uint256 lastTokenIndex = _allTokens.length.sub(1); uint256 tokenIndex = _allTokensIndex[tokenId]; uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens.length--; _allTokensIndex[tokenId] = 0; ...
25,974
[ 1, 6014, 445, 358, 1206, 279, 1147, 628, 333, 2710, 1807, 1147, 11093, 501, 12597, 18, 1220, 711, 531, 12, 21, 13, 813, 21610, 16, 1496, 524, 5432, 326, 1353, 434, 326, 389, 454, 5157, 526, 18, 225, 1147, 548, 2254, 5034, 1599, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 4479, 1345, 1265, 1595, 5157, 21847, 12, 11890, 5034, 1147, 548, 13, 3238, 288, 203, 203, 3639, 2254, 5034, 27231, 1016, 273, 389, 454, 5157, 18, 2469, 18, 1717, 12, 21, 1769, 203, 3639, 2254, 5034, 1147, 1016, 273...
pragma solidity ^0.4.11; /** * Hodld DAO and ERC20 token * Author: CurrencyTycoon on GitHub * License: MIT * Date: 2017 * * Deploy with the following args: * "Hodl DAO", 18, "HODL" * */ contract HodlDAO { /* ERC20 Public variables of the token */ string public version = 'HDAO 0.5'; string publ...
* Initializes contract with initial supply tokens to the creator of the contract In our case, there's no initial supply. Tokens will be created as ether is sent to the fall-back function. Then tokens are burned when ether is withdrawn./
function HodlDAO( string tokenName, uint8 decimalUnits, string tokenSymbol ) { }
7,282,648
[ 1, 9685, 6835, 598, 2172, 14467, 2430, 358, 326, 11784, 434, 326, 6835, 657, 3134, 648, 16, 1915, 1807, 1158, 2172, 14467, 18, 13899, 903, 506, 2522, 487, 225, 2437, 353, 3271, 358, 326, 4159, 17, 823, 445, 18, 9697, 2430, 854, 1830...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 670, 369, 80, 18485, 12, 203, 565, 533, 1147, 461, 16, 203, 565, 2254, 28, 6970, 7537, 16, 203, 565, 533, 1147, 5335, 203, 565, 262, 288, 203, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/80001/0xd755943C221617f046dbf5157269995ef5E40e04/sources/contracts/SignatureDropERC1155.sol
@dev Transfers the NFTs being claimed.
function transferTokensOnClaim(address _to, uint256 _tokenId, uint256 _quantityBeingClaimed) internal override { _mint(_to, _tokenId, _quantityBeingClaimed, ""); }
9,437,890
[ 1, 1429, 18881, 326, 423, 4464, 87, 3832, 7516, 329, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 5157, 1398, 9762, 12, 2867, 389, 869, 16, 2254, 5034, 389, 2316, 548, 16, 2254, 5034, 389, 16172, 1919, 310, 9762, 329, 13, 2713, 3849, 288, 203, 3639, 389, 81, 474, 24899, 869, 16, 389, 2316, 548, 16, 389, 1617...
./full_match/1/0x0000000304aAD016bA7a745da3cE64f6198B76B3/sources/lib/solady/src/utils/FixedPointMathLib.sol
@dev Returns the log2 of `x`, rounded up.
function log2Up(uint256 x) internal pure returns (uint256 r) { unchecked { uint256 isNotPo2; assembly { isNotPo2 := iszero(iszero(and(x, sub(x, 1)))) } return log2(x) + isNotPo2; } unchecked { uint256 isNotPo2; ...
3,200,561
[ 1, 1356, 326, 613, 22, 434, 1375, 92, 9191, 16729, 731, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 613, 22, 1211, 12, 11890, 5034, 619, 13, 2713, 16618, 1135, 261, 11890, 5034, 436, 13, 288, 203, 3639, 22893, 288, 203, 5411, 2254, 5034, 8827, 29198, 22, 31, 203, 5411, 19931, 288, 203, 7734, 8827, 29198, 22, 519, 353,...
./partial_match/1/0x6a2CcCda97485d26dCfE48EB85cB8Da376640BE5/sources/REWARD.sol
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract REWARD is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function REWARD() public { symbol = "RWD"; ...
16,084,590
[ 1, 5802, 7620, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 2438, 21343, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, 389, 4963, 3088,...
pragma solidity ^0.4.23; import "../libraries/StateMachine.sol"; import "./IComputingJob.sol"; /* */ contract CognitiveJob is IComputingJob, StateMachine /* final */ { /** * ## Main functionality */ uint internal constant WORKER_TIMEOUT = 30 minutes; IPandora public pandora; IKernel pu...
todo find better name
uint256 public complexity;
6,363,744
[ 1, 9012, 1104, 7844, 508, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 21610, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/100/0xD8187f955750790ed4Dc0708A1114210D451A18a/sources/src/outerspace/facets/OuterSpaceFacetBase.sol
We want to ensure enough gas were given for the generator, but no more This way if the generator is broken/compromised (we are planning to update it) then this will always continue to work Reversely, a player have to provide enough gas and we want to ensure the player can't force a revert on the hook In particular. to...
function _callWithGas( address to, bytes memory data, uint256 gas ) internal { if (to != address(0)) { require(gasleft() > gas / 63, "NOT_ENOUGH_GAS_FOR_INNER_CALL"); } }
14,285,755
[ 1, 3218, 2545, 358, 3387, 7304, 16189, 4591, 864, 364, 326, 4456, 16, 1496, 1158, 1898, 1220, 4031, 309, 326, 4456, 353, 12933, 19, 2919, 520, 5918, 261, 1814, 854, 886, 10903, 358, 1089, 518, 13, 1508, 333, 903, 3712, 1324, 358, 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, 565, 445, 389, 1991, 1190, 27998, 12, 203, 3639, 1758, 358, 16, 203, 3639, 1731, 3778, 501, 16, 203, 3639, 2254, 5034, 16189, 203, 565, 262, 2713, 288, 203, 203, 3639, 309, 261, 869, 480, 1758, 12, 20, 3719, 288, 203, 203, 5411...
// to test issue with nodes breaking with large clients over WS // fixed in web3 with fragmentationThreshold: 8192 pragma solidity ^0.4.17; contract BigFreakingContract { event Transfer(address indexed from, address indexed to, uint value); event Approval( address indexed owner, address indexed spender, uint valu...
TODO: should increase instead
function approve_347(address spender, uint value) public returns (bool ok) { _approvals[msg.sender][spender] = value; emit Approval( msg.sender, spender, value ); return true; }
6,454,060
[ 1, 6241, 30, 1410, 10929, 3560, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 6617, 537, 67, 5026, 27, 12, 2867, 17571, 264, 16, 2254, 460, 13, 1071, 1135, 261, 6430, 1529, 13, 288, 203, 565, 389, 12908, 4524, 63, 3576, 18, 15330, 6362, 87, 1302, 264, 65, 273, 460, 31, 203, 565, 3626, 1716, 6...
./partial_match/56/0x0cDC540E1E34F4db3eE3878Ab47528e21A661089/sources/BBeanz.sol
* @dev Collection of functions related to the address type/
library Address { function isContract(address account) internal view returns (bool) { bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; return (codehash != accountHash && codehash != 0x0); } assembly { codehash := extcode...
11,101,372
[ 1, 2532, 434, 4186, 3746, 358, 326, 1758, 618, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 5267, 288, 203, 565, 445, 353, 8924, 12, 2867, 2236, 13, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 1731, 1578, 981, 2816, 31, 203, 3639, 1731, 1578, 2236, 2310, 273, 374, 6511, 25, 72, 3247, 26, 1611, 5292, 74, 90...
pragma solidity ^0.4.21; /* * Creator: uvd (Uvidifytoken) */ /* * Abstract Token Smart Contract * */ /* * Safe Math Smart Contract. * https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol */ contract SafeMath { function mul(uint256 a, uint256 b) internal pure retur...
* UVD token smart contract./
contract UVDToken is AbstractToken { uint256 constant MAX_TOKEN_COUNT = 22000000000 * (10**18); address private owner; mapping (address => bool) private frozenAccount; uint256 tokenCount = 0; bool frozen = false; function UVDToken () { owner = msg.sender; } function totalS...
12,154,328
[ 1, 20147, 40, 1147, 13706, 6835, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 587, 21544, 1345, 353, 4115, 1345, 288, 203, 27699, 27699, 225, 2254, 5034, 5381, 4552, 67, 8412, 67, 7240, 273, 11201, 2787, 11706, 380, 261, 2163, 636, 2643, 1769, 203, 27699, 225, 1758, 3238, 3410, 31, 203, 21281, 225, 28...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; interface DigilToken is IERC721 { // Pending Coin and Value Distributions, and the Time of the last Distribution struct Distribution { uint256 time; uint256 coins; ...
@notice Determines whether a Token Link overcomes the Probability Threshold @dev While this function is meant to be "random," the fact that it is somewhat deterministic is not terribly important as there are various caps in place to limit generated Value, and or it is assumed that any bonuses would have bee...
function willExecute(uint256 probability, uint256 sourceId, uint256 destinationId, uint256 charge) public view returns (bool) { uint256 probabilityThreshold = uint256(uint(keccak256(abi.encodePacked(block.timestamp, block.difficulty, sourceId, destinationId, charge))) % 250); return probability > pr...
7,224,730
[ 1, 10114, 2856, 279, 3155, 4048, 1879, 10127, 326, 14610, 2967, 27139, 377, 21572, 333, 445, 353, 20348, 358, 506, 315, 9188, 10837, 326, 5410, 716, 518, 353, 18016, 11304, 25112, 353, 486, 27428, 24755, 10802, 540, 487, 1915, 854, 1119...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 903, 5289, 12, 11890, 5034, 11331, 16, 2254, 5034, 27572, 16, 2254, 5034, 2929, 548, 16, 2254, 5034, 13765, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 5034, 11331, 7614, 273, 2254, 5034, 12, 11890, 12, 7...
pragma solidity 0.5.12; import "https://github.com/mrdavey/ez-flashloan/blob/remix/contracts/aave/ILendingPool.sol"; import "https://github.com/mrdavey/ez-flashloan/blob/remix/contracts/aave/ILendingPoolAddressesProvider.sol"; import "https://github.com/mrdavey/ez-flashloan/blob/remix/contracts/aave/FlashLoanRecei...
repays loan on behalf of _onBehalfOfAddress
lendingPool.repay(_reserveAsset, _repayAmount, _onBehalfOfAddress);
14,084,212
[ 1, 14462, 8271, 28183, 603, 12433, 6186, 434, 389, 265, 1919, 20222, 951, 1887, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 328, 2846, 2864, 18, 266, 10239, 24899, 455, 6527, 6672, 16, 389, 266, 10239, 6275, 16, 389, 265, 1919, 20222, 951, 1887, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Counters.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e....
File: contracts/24ct Parrots.sol
contract TwentyfourCaratParrots is ERC721, Ownable { using Strings for uint256; using Counters for Counters.Counter; Counters.Counter private supply; string public uriPrefix = ""; string public uriSuffix = ".json"; string public hiddenMetadataUri; uint256 public cost = 0.045 ether; uint256 public m...
633,996
[ 1, 812, 30, 20092, 19, 3247, 299, 2280, 303, 3428, 18, 18281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 12694, 319, 93, 74, 477, 16321, 270, 1553, 303, 3428, 353, 4232, 39, 27, 5340, 16, 14223, 6914, 288, 203, 225, 1450, 8139, 364, 2254, 5034, 31, 203, 225, 1450, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 203, 225, 9354, ...
/************************************************************************** * ____ _ * / ___| | | __ _ _ _ ___ _ __ * | | _____ | | / _` || | | | / _ \| '__| * | |___|_____|| |___| (_| || |_| || __/| | * ...
* @title WrappedERC20 @dev WrappedERC20 @author Cyril Lapinte - <cyril@openfiz.com> Error messages/
abstract contract IWrappedERC20 is IERC20 { function base() public view virtual returns (IERC20); function deposit(uint256 _value) public virtual returns (bool); function depositTo(address _to, uint256 _value) public virtual returns (bool); function withdraw(uint256 _value) public virtual returns (bool); f...
11,960,087
[ 1, 17665, 654, 39, 3462, 225, 24506, 654, 39, 3462, 225, 22337, 86, 330, 511, 438, 474, 73, 300, 411, 2431, 86, 330, 36, 3190, 74, 452, 18, 832, 34, 1068, 2743, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 467, 17665, 654, 39, 3462, 353, 467, 654, 39, 3462, 288, 203, 203, 225, 445, 1026, 1435, 1071, 1476, 5024, 1135, 261, 45, 654, 39, 3462, 1769, 203, 203, 225, 445, 443, 1724, 12, 11890, 5034, 389, 1132, 13, 1071, 50...
pragma solidity ^0.5.0; import "./PublishBook.sol"; import "./Address.sol"; import "./SafeMath.sol"; import "./Counters.sol"; contract Tokenize is PublishBook { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Receive...
* @dev Gets the token symbol @return string representing the token symbol/
function symbol() external view returns (string memory) { return "DCT"; }
14,058,709
[ 1, 3002, 326, 1147, 3273, 327, 533, 5123, 326, 1147, 3273, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3273, 1435, 3903, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 315, 40, 1268, 14432, 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 2020-03-04 */ /* * Copyright ©️ 2018-2020 Galtβ€’Project Society Construction and Terraforming Company * (Founded by [Nikolai Popeka](https://github.com/npopeka) * * Copyright ©️ 2018-2020 Galtβ€’Core Blockchain Company * (Founded by [Nikolai Popeka](https://github....
member => identification hash
mapping(address => bytes32) public membersIdentification;
13,085,748
[ 1, 5990, 516, 24739, 1651, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2874, 12, 2867, 516, 1731, 1578, 13, 1071, 4833, 24371, 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, -1...
pragma solidity ^0.4.13; /** * @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 ...
* @dev Declares Starbase MVP has been launched @param launchedAt When the MVP launched (timestamp)/
function declareMvpLaunched(uint256 launchedAt) external onlyFundraiser() returns (bool) { require(launchedAt <= now); require(starbaseCrowdsale.isEnded()); mvpLaunchedAt = launchedAt; MvpLaunched(launchedAt); return true; }
15,286,425
[ 1, 3456, 4807, 934, 297, 1969, 25324, 52, 711, 2118, 28786, 225, 28786, 861, 5203, 326, 25324, 52, 28786, 261, 5508, 13176, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14196, 49, 20106, 30745, 22573, 12, 11890, 5034, 28786, 861, 13, 3903, 1338, 42, 1074, 354, 15914, 1435, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 11821, 22573, 861, 1648, 2037, 1769, 203, 3639, 2583, 12, 10983, 1969...
./partial_match/56/0x1A493786bAC35979750AF3991539d29E025Fa0be/sources/StrategysoakLPV2.sol
* @dev Implementation of a strategy to get yields from farming LP Pools in PancakeSwap. PancakeSwap is an automated market maker (β€œAMM”) that allows two tokens to be exchanged on the Binance Smart Chain. It is fast, cheap, and allows anyone to participate. PancakeSwap is aiming to be the #1 liquidity provider on BSC. T...
contract StrategysoakLPV2 is Ownable, Pausable { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; mapping(address => bool) public odioList; IERC20 flp = IERC20(address(0x87ff96aba480f1813aF5c780387d8De7cf7D8261)); address public constant soak = ad...
11,272,641
[ 1, 13621, 434, 279, 6252, 358, 336, 16932, 628, 284, 4610, 310, 511, 52, 453, 8192, 316, 12913, 23780, 12521, 18, 12913, 23780, 12521, 353, 392, 18472, 690, 13667, 312, 6388, 261, 163, 227, 255, 2192, 49, 163, 227, 256, 13, 716, 536...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3978, 1287, 1900, 83, 581, 14461, 58, 22, 353, 14223, 6914, 16, 21800, 16665, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565, 1450, 14060, 10477, 364, ...
./partial_match/5/0xA109b34B1974C1f6BA554607F46E202926728E14/sources/src/utils/DoubleLinkedList.sol
@notice Returns the tail item id of the list @param list Linked list which contains the item @return _ Id of the tail item
function getTail(List storage list) internal view returns (uint256) { return list.items[0].prev; }
16,850,997
[ 1, 1356, 326, 5798, 761, 612, 434, 326, 666, 225, 666, 6546, 666, 1492, 1914, 326, 761, 327, 389, 3124, 434, 326, 5798, 761, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3181, 671, 12, 682, 2502, 666, 13, 2713, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 666, 18, 3319, 63, 20, 8009, 10001, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import "@openzeppelin/contracts/utils/math/Math.sol"; import "./interfaces/IOverlayV1Factory.sol"; import "./interfaces/IOverlayV1Market.sol"; import "./interfaces/IOverlayV1Token.sol"; import "./interfaces/feeds/IOverlayV1Feed.sol"; import "./libraries/FixedPo...
return the latest data from feed
return data;
14,060,233
[ 1, 2463, 326, 4891, 501, 628, 4746, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 327, 501, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0x448895cB30AcE7004a9F6f0f74739a5f2500d80B/sources/contracts/simplestorage.sol
mempory only stored during execution. storage is stored after
function addperson(string memory _name, uint256 _favoritenumber) public { people.push(People(_favoritenumber, _name)); nametofavoritenumber[_name] = _favoritenumber; }
12,357,355
[ 1, 3917, 84, 630, 1338, 4041, 4982, 4588, 18, 225, 2502, 353, 4041, 1839, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 527, 12479, 12, 1080, 3778, 389, 529, 16, 2254, 5034, 389, 19731, 280, 305, 21998, 13, 1071, 288, 203, 3639, 16951, 18, 6206, 12, 11227, 11763, 24899, 19731, 280, 305, 21998, 16, 389, 529, 10019, 203, 3639, 15135, 11453, ...
./partial_match/137/0x7f0155fd06594261b07558D6FaEF1A195D154e4b/sources/EVSignerControl.sol
overwrite all signer addresses
signers[i] = address(0);
3,524,995
[ 1, 19274, 777, 10363, 6138, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 1573, 414, 63, 77, 65, 273, 1758, 12, 20, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.6.12; contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private initializing; /** * @dev Modifi...
caller -> recipient -> can deposit? The goal is to be able to calculate ∫(rate * balance / totalSupply dt) from 0 till checkpoint All values are kept in units of being multiplied by 1e18 1e18 * ∫(rate(t) / totalSupply(t) dt) from 0 till checkpoint 1e18 * ∫(rate(t) / totalSupply(t) dt) from (last_action) till checkpoin...
SExactGauge is LiquidityGauge, Configurable { using SafeMath for uint; using TransferHelper for address; bytes32 internal constant _devAddr_ = 'devAddr'; bytes32 internal constant _devRatio_ = 'devRatio'; bytes32 internal constant _ecoAddr_ = 'ecoAddr'; ...
7,438,277
[ 1, 16140, 317, 8027, 317, 848, 443, 1724, 35, 1021, 17683, 353, 358, 506, 7752, 358, 4604, 225, 163, 235, 109, 12, 5141, 225, 11013, 342, 2078, 3088, 1283, 3681, 13, 628, 374, 21364, 9776, 4826, 924, 854, 16555, 316, 4971, 434, 3832...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 348, 14332, 18941, 353, 511, 18988, 24237, 18941, 16, 29312, 288, 203, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 203, 565, 1450, 12279, 2276, 364, 1758, 31, 203, 203, 203, 377, 203, 203, 203, 565, 1731, 1578, 27...
./full_match/1/0x4fc253B3d25a0bE792B7E338aa01DDf6aC17d831/sources/contracts/upgradability/OwnedUpgradeabilityProxy.sol
* @title OwnedUpgradeabilityProxy @dev This contract combines an upgradeability proxy with basic authorization control functionalities/ Storage position of the address of the maintenance boolean Storage position of the address of the current implementation Storage position of the owner of the contract
contract OwnedUpgradeabilityProxy { event ProxyOwnershipTransferred(address previousOwner, address newOwner); event Upgraded(address indexed implementation); bytes32 private constant maintenancePosition = keccak256("com.ibg.proxy.maintenance"); bytes32 private constant implementationPosition =...
3,191,418
[ 1, 5460, 329, 10784, 2967, 3886, 225, 1220, 6835, 30933, 392, 8400, 2967, 2889, 598, 5337, 6093, 3325, 18699, 1961, 19, 5235, 1754, 434, 326, 1758, 434, 326, 18388, 1250, 5235, 1754, 434, 326, 1758, 434, 326, 783, 4471, 5235, 1754, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 14223, 11748, 10784, 2967, 3886, 288, 203, 565, 871, 7659, 5460, 12565, 1429, 4193, 12, 2867, 2416, 5541, 16, 1758, 394, 5541, 1769, 203, 203, 565, 871, 1948, 19305, 12, 2867, 8808, 4471, 1769, 203, 203, 565, 1731, 1578, 323...
pragma solidity ^0.4.23; import 'openzeppelin-solidity/contracts/token/ERC20/ERC20.sol'; import 'openzeppelin-solidity/contracts/ownership/Ownable.sol'; import 'openzeppelin-solidity/contracts/math/SafeMath.sol'; import 'evolutionerc223/contracts/ERC223ReceivingContract.sol'; contract TokenVendor is Ownable{ usin...
@notice If anybody sends Ether directly to this contract, consider he is getting tokens.
function () public payable { buyToken(msg.sender); }
1,087,193
[ 1, 2047, 1281, 3432, 9573, 512, 1136, 5122, 358, 333, 6835, 16, 5260, 3904, 353, 225, 8742, 2430, 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...
[ 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, 1832, 1071, 8843, 429, 288, 203, 3639, 30143, 1345, 12, 3576, 18, 15330, 1769, 203, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2021-04-05 */ 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 private...
* @dev Function to lock tokens of address @param amount The amount of tokens that is locked./
function _lockAccount(address account, uint amount) public returns (bool) { require(account != address(0)); require(_balances[account] >= amount); _balances[account] = _balances[account].sub(amount); lockedAccount[account] = lockedAccount[account].add(amount); emit Lock(accou...
10,597,842
[ 1, 2083, 358, 2176, 2430, 434, 1758, 225, 3844, 1021, 3844, 434, 2430, 716, 353, 8586, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 739, 3032, 12, 2867, 2236, 16, 2254, 3844, 13, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 4631, 480, 1758, 12, 20, 10019, 203, 3639, 2583, 24899, 70, 26488, 63, 4631, 65, 1545, 3844, 1769, 203, 3639, 38...
./full_match/11155111/0x3703F4412Fa17BA5FCd301B2b731a7969f1fc7A6/sources/contracts/TransparentCharity.sol
Function to create an account for a donor
function createDonorAccount(string memory _name) external { require(donors[msg.sender].balance == 0, "Account already exists."); donors[msg.sender].Address = payable(msg.sender); donors[msg.sender].balance = payable(msg.sender).balance; donors[msg.sender].name = _name; donorA...
3,797,222
[ 1, 2083, 358, 752, 392, 2236, 364, 279, 2727, 280, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 752, 22293, 280, 3032, 12, 1080, 3778, 389, 529, 13, 3903, 288, 203, 3639, 2583, 12, 19752, 1383, 63, 3576, 18, 15330, 8009, 12296, 422, 374, 16, 315, 3032, 1818, 1704, 1199, 1769, 203, 3639, 2727, 1383, 63, 3576, 18, ...
pragma solidity 0.5.8; // File: node_modules\openzeppelin-solidity\contracts\token\ERC20\IERC20.sol ...
inject NONSTANDARD NAMING
function LOCKSTATE154(address _holder, uint256 _idx) public view returns (uint256, uint256) {
12,759,010
[ 1, 22170, 18708, 882, 18264, 423, 2192, 1360, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 14631, 7998, 29003, 12, 2867, 389, 4505, 16, 2254, 5034, 389, 3465, 13, 1071, 1476, 1135, 261, 11890, 5034, 16, 2254, 5034, 13, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2021-04-22 */ // File: @openzeppelin/contracts/utils/Context.sol // 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 the...
* @dev See {IERC721Metadata-tokenURI}./ If there is no base URI, return the token URI. If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = baseURI(); if (tokenId >= openedNum) { ...
10,424,463
[ 1, 9704, 288, 45, 654, 39, 27, 5340, 2277, 17, 2316, 3098, 5496, 19, 971, 1915, 353, 1158, 1026, 3699, 16, 327, 326, 1147, 3699, 18, 971, 3937, 854, 444, 16, 11361, 326, 1026, 3098, 471, 1147, 3098, 261, 21985, 24126, 18, 3015, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1147, 3098, 12, 11890, 5034, 1147, 548, 13, 1071, 1476, 5024, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 2583, 24899, 1808, 12, 2316, 548, 3631, 315, 654, 39, 27, 5340, 2277, 30, 3699, 843, 364, 1661, 19041, 1147,...
pragma solidity 0.4.18; /// @title Math operations with safety checks library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; require(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure ret...
@dev Reverts if not operational
modifier isOperational() { require(operational); _; }
12,717,795
[ 1, 426, 31537, 309, 486, 1674, 287, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 9606, 353, 2988, 287, 1435, 288, 203, 565, 2583, 12, 22716, 1769, 203, 565, 389, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./partial_match/1/0xC5Ef3ce228984f46Eda13c9725F80eE042a5C771/sources/Wagner.sol
Track original fees to bypass fees for charity account
contract Wagner is Context, IBEP20, Ownable { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _rOwned; mapping (address => uint256) private _tOwned; mapping (address => mapping (address => uint256)) private _allowances; mapping (add...
15,552,275
[ 1, 4402, 2282, 1656, 281, 358, 17587, 1656, 281, 364, 1149, 560, 2236, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 6835, 678, 346, 1224, 353, 1772, 16, 467, 5948, 52, 3462, 16, 14223, 6914, 288, 203, 1377, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 1377, 1450, 5267, 364, 1758, 31, 203, 21281, 1377, 2874, 261, 2867, 516, 2254, 5034, 13...
./full_match/80001/0x064f9775d1af6934C888352431938ef562A0D6bB/sources/contracts/Angpao721A.sol
uint256 public constant PRICE = 0.04 ether;
contract Angpao721A is ERC721A, Ownable, RandomlyAssigned { using Strings for uint256; uint256 public constant MAX_SUPPLY = 2022; uint256 public constant MAX_MINT_PER_TX = 20; uint256 public cost = 0.04 ether; string public baseURI; string public baseExtension = ".json"; bool public mintable...
9,472,650
[ 1, 11890, 5034, 1071, 5381, 10365, 1441, 273, 374, 18, 3028, 225, 2437, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1922, 6403, 6033, 27, 5340, 37, 353, 4232, 39, 27, 5340, 37, 16, 14223, 6914, 16, 8072, 715, 20363, 288, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 565, 2254, 5034, 1071, 5381, 4552, 67, 13272, 23893, 273, 26599, 22, ...
// SPDX-License-Identifier: MIT pragma solidity 0.5.17; // Part: IStaking /** * @title Staking interface, as defined by EIP-900. * @dev https://github.com/ethereum/EIPs/blob/master/EIPS/eip-900.md */ contract IStaking { event Staked(address indexed user, uint256 amount, uint256 total, bytes data); event...
* @title Staking interface, as defined by EIP-900./
contract IStaking { event Staked(address indexed user, uint256 amount, uint256 total, bytes data); event Unstaked(address indexed user, uint256 amount, uint256 total, bytes data); function stake(uint256 amount, bytes calldata data) external; function stakeFor(address user, uint256 amount, bytes calldat...
638,444
[ 1, 510, 6159, 1560, 16, 487, 2553, 635, 512, 2579, 17, 29, 713, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 467, 510, 6159, 288, 203, 565, 871, 934, 9477, 12, 2867, 8808, 729, 16, 2254, 5034, 3844, 16, 2254, 5034, 2078, 16, 1731, 501, 1769, 203, 565, 871, 1351, 334, 9477, 12, 2867, 8808, 729, 16, 2254, 5034, 3844, 16, 2254, 50...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import "../interfaces/IPublicSaleProxy.sol"; import {Address} from "@openzeppelin/contracts/utils/Address.sol"; import "../common/AccessibleCommon.sol"; import "./PublicSaleStorage.sol"; import "../stake/ProxyBase.sol"; contract PublicSaleProxy is PublicS...
@notice Set implementation contract @param impl New implementation contract address
function upgradeTo(address impl) external override onlyOwner { require(impl != address(0), "PublicSaleProxy: input is zero"); require(_implementation() != impl, "PublicSaleProxy: same"); _setImplementation(impl); emit Upgraded(impl); }
5,882,298
[ 1, 694, 4471, 6835, 225, 9380, 1166, 4471, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8400, 774, 12, 2867, 9380, 13, 3903, 3849, 1338, 5541, 288, 203, 3639, 2583, 12, 11299, 480, 1758, 12, 20, 3631, 315, 4782, 30746, 3886, 30, 810, 353, 3634, 8863, 203, 3639, 2583, 24899, 30810, 1435, 480, 9380, 16, 315,...
./full_match/80001/0x1098B35828bf70A2209FC6fEA916f378841d7fdD/sources/contracts/TicTacToe/TicTacToe.sol
calculateWinner returns the winner on the given board. The returned winner can be `None` in which case there is no winner and no draw. First we check if there is a victory in a row. If so, convert `Players` to `Winners` Subsequently we do the same for columns and diagonals. If there is no winner and no more space on t...
function calculateWinner(Players[3][3] memory _board) private pure returns (Winners winner) { Players player = winnerInRow(_board); if (player == Players.PlayerOne) { return Winners.PlayerOne; } if (player == Players.PlayerTwo) { return Winners.PlayerTwo; ...
9,526,721
[ 1, 11162, 59, 7872, 1135, 326, 5657, 1224, 603, 326, 864, 11094, 18, 1021, 2106, 5657, 1224, 848, 506, 1375, 7036, 68, 316, 1492, 648, 1915, 353, 1158, 5657, 1224, 471, 1158, 3724, 18, 5783, 732, 866, 309, 1915, 353, 279, 28873, 630...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4604, 59, 7872, 12, 1749, 3907, 63, 23, 6362, 23, 65, 3778, 389, 3752, 13, 3238, 16618, 1135, 261, 18049, 9646, 5657, 1224, 13, 288, 203, 3639, 3008, 3907, 7291, 273, 5657, 1224, 382, 1999, 24899, 3752, 1769, 203, 3639,...
./full_match/5/0x595931af6D6b9d314e77b257e79fAD36F35611dA/sources/src/token/ERC721/facets/locking/ERC721LockableOwnable.sol
* @inheritdoc IERC721LockableOwnable/
function lockByOwner(uint256[] memory ids) public virtual onlyOwner { IERC721LockableExtension(address(this)).lockByFacet(ids); }
7,082,817
[ 1, 36, 10093, 467, 654, 39, 27, 5340, 2531, 429, 5460, 429, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2176, 858, 5541, 12, 11890, 5034, 8526, 3778, 3258, 13, 1071, 5024, 1338, 5541, 288, 203, 3639, 467, 654, 39, 27, 5340, 2531, 429, 3625, 12, 2867, 12, 2211, 13, 2934, 739, 858, 11137, 12, 2232, 1769, 203, 565, 289, 20...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import {DepositsManager} from './DepositsManager.sol'; import {ScryptVerifier} from "./ScryptVerifier.sol"; import {IScryptCheckerListener} from "./IScryptCheckerListener.sol"; import {IScryptChecker} from "./IScryptChecker.sol"; import '@openzeppelin/contracts/...
map challengers to sessionId's
mapping(address => uint) sessions;
6,417,305
[ 1, 1458, 462, 7862, 6215, 358, 10338, 1807, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 2867, 516, 2254, 13, 8856, 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, -10...
./full_match/1/0xc1aAB2dc3Fe5082D2D3eAaf67f4D49619B9862C9/sources/Users/simondos/projects/micobo-security-token/contracts/token/ERC1400Partition.sol
* [ERC1400Partition INTERFACE (3/10)] @dev Transfer tokens from a specific partition. @param partition Name of the partition. @param to Token recipient. @param value Number of tokens to transfer. @param data Information attached to the transfer, by the token holder. @return Destination partition./
function transferByPartition( bytes32 partition, address to, uint256 value, bytes calldata data ) external override returns (bytes32) { return _transferByPartition( partition, _msgSender(), _msgSender(), to, value, data, "" ); }
3,073,863
[ 1, 63, 654, 39, 3461, 713, 7003, 11391, 11300, 261, 23, 19, 2163, 25887, 225, 12279, 2430, 628, 279, 2923, 3590, 18, 225, 3590, 1770, 434, 326, 3590, 18, 225, 358, 3155, 8027, 18, 225, 460, 3588, 434, 2430, 358, 7412, 18, 225, 501...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 202, 915, 7412, 858, 7003, 12, 203, 202, 202, 3890, 1578, 3590, 16, 203, 202, 202, 2867, 358, 16, 203, 202, 202, 11890, 5034, 460, 16, 203, 202, 202, 3890, 745, 892, 501, 203, 202, 13, 3903, 3849, 1135, 261, 3890, 1578, 13, 2...
// SPDX-License-Identifier: MIT /** ∩~~~~∩ ΞΎ ο½₯Γ—ο½₯ ΞΎ ΞΎγ€€~γ€€ΞΎ ΞΎγ€€γ€€ ΞΎ ΞΎγ€€γ€€ β€œ~~~ο½žγ€‡ ΞΎγ€€γ€€γ€€γ€€γ€€γ€€ ΞΎ ΞΎ ΞΎ ΞΎ~~~ΞΎ ΞΎ ΞΎ γ€€ ΞΎ_ΞΎΞΎ_ΞΎγ€€ΞΎ_ΞΎΞΎ_ΞΎ Alpaca Fin Corporation */ pragma solidity 0.6.6; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "@openzeppelin/contracts-ethereum-package/contr...
@dev Add more token to the lending pool. Hope to get some good returns.
function deposit(uint256 amountToken) external payable override {}
12,717,303
[ 1, 986, 1898, 1147, 358, 326, 328, 2846, 2845, 18, 670, 1306, 358, 336, 2690, 7494, 1135, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 443, 1724, 12, 11890, 5034, 3844, 1345, 13, 3903, 8843, 429, 3849, 2618, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.5.16; pragma experimental ABIEncoderV2; contract BTRUST { /// @notice EIP-20 token name for this token string public constant name = "BTRUST"; /// @notice EIP-20 token symbol for this token string public constant symbol = "BTRUST"; /// @notice EIP-20 token decimals for this tok...
* @notice Determine the prior number of votes for an account as of a block number @dev Block number must be a finalized block or else this function will revert to prevent misinformation. @param account The address of the account to check @param blockNumber The block number to get the vote balance at @return The number ...
function getPriorVotes(address account, uint blockNumber) public view returns (uint96) { require(blockNumber < block.number, "BTRUST::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } if (che...
7,856,043
[ 1, 8519, 326, 6432, 1300, 434, 19588, 364, 392, 2236, 487, 434, 279, 1203, 1300, 225, 3914, 1300, 1297, 506, 279, 727, 1235, 1203, 578, 469, 333, 445, 903, 15226, 358, 5309, 7524, 13117, 18, 225, 2236, 1021, 1758, 434, 326, 2236, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1689, 2432, 29637, 12, 2867, 2236, 16, 2254, 1203, 1854, 13, 1071, 1476, 1135, 261, 11890, 10525, 13, 288, 203, 3639, 2583, 12, 2629, 1854, 411, 1203, 18, 2696, 16, 315, 38, 4349, 5996, 2866, 588, 25355, 29637, 30, 486,...
./full_match/4/0xD32AD79c328588f7F0a7256d3Caf2Ec2Ef1eBE76/sources/contracts/MTGYFaaS.sol
TODO Loop through all stakers and harvest their tokens using _contract.harvestTokensForUser(_userAddy)
function removeTokenContract(address _faasTokenAddy) public view { MTGYFaaSToken _contract = MTGYFaaSToken(_faasTokenAddy); require(msg.sender == _contract.originalTokenOwnerAddress()); require(block.timestamp > _contract.lockedUntilDate()); }
800,555
[ 1, 6241, 9720, 3059, 777, 384, 581, 414, 471, 17895, 26923, 3675, 2430, 1450, 389, 16351, 18, 30250, 26923, 5157, 19894, 24899, 1355, 986, 93, 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,...
[ 1, 1, 1, 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, 1206, 1345, 8924, 12, 2867, 389, 507, 345, 1345, 986, 93, 13, 1071, 1476, 288, 203, 565, 22068, 20564, 42, 7598, 882, 969, 389, 16351, 273, 22068, 20564, 42, 7598, 882, 969, 24899, 507, 345, 1345, 986, 93, 1769, 203, ...
./full_match/1/0xAef3d07C724CFa27Cd57C5e0a49cE372dA766413/sources/contracts/alloyx/config/AlloyxConfig.sol
* @notice Set the address of certain index @param addressIndex the index to set @param newAddress new address to set/
function setAddress(uint256 addressIndex, address newAddress) public override onlyAdmin { require(newAddress != address(0)); emit AddressUpdated(msg.sender, addressIndex, addresses[addressIndex], newAddress); addresses[addressIndex] = newAddress; }
3,134,235
[ 1, 694, 326, 1758, 434, 8626, 770, 225, 1758, 1016, 326, 770, 358, 444, 225, 394, 1887, 394, 1758, 358, 444, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 444, 1887, 12, 11890, 5034, 1758, 1016, 16, 1758, 394, 1887, 13, 1071, 3849, 1338, 4446, 288, 203, 565, 2583, 12, 2704, 1887, 480, 1758, 12, 20, 10019, 203, 565, 3626, 5267, 7381, 12, 3576, 18, 15330, 16, 1758, 1016, ...
//SPDX-License-Identifier: MIT pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract WaffleMaker { using SafeMath for uint; uint constant PRIZE_POOL_COST_PERCENTAGE = 90; // The rest is gi...
* Returns the number of possible bases for waffles/
function getBasesCount() external view returns(uint) { return bases.length; }
7,230,165
[ 1, 1356, 326, 1300, 434, 3323, 8337, 364, 341, 7329, 1040, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2882, 3304, 1380, 1435, 3903, 1476, 1135, 12, 11890, 13, 288, 203, 3639, 327, 8337, 18, 2469, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Context.sol 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 sho...
GET ALL PIXMONS OF A WALLET AS AN ARRAY OF STRINGS. WOULD BE BETTER MAYBE IF IT RETURNED A STRUCT WITH ID-NAME MATCH Return an empty array
function pixmonNamesOfOwner(address _owner) external view returns(string[] memory ) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) { return new string[](0); string[] memory result = new string[](tokenCount); uint256 index; for (index = ...
13,638,844
[ 1, 3264, 8061, 7024, 60, 17667, 55, 15932, 432, 30293, 15146, 5355, 8175, 14884, 15932, 9469, 55, 18, 678, 31090, 9722, 9722, 11976, 490, 5255, 5948, 11083, 24142, 14780, 2056, 432, 7128, 9749, 13601, 1599, 17, 1985, 16585, 2000, 392, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 565, 445, 11871, 2586, 1557, 951, 5541, 12, 2867, 389, 8443, 13, 3903, 1476, 1135, 12, 1080, 8526, 3778, 262, 288, 203, 3639, 2254, 5034, 1147, 1380, 273, 11013, 951, 24899, 8443, 1769, 203, 3639, 309, 261, 2316, 1380, 422, 374, ...
./full_match/4/0xAafD067754cb94973f33599a3cC2e6f119b99AbB/sources/contracts/EthanolX-01.sol
claim accumulated cashbacks calculate tax from transferred amount transfer tokens to the recipient update allowance refund current gasfee spent on Uniswap sell
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _claimCashback(recipient); (uint256 _finalAmount,) = _taxFee(recipient, amount); _transfer(sender, recipient, _finalAmount); uint256 currentAllowance = _allowa...
758,505
[ 1, 14784, 24893, 276, 961, 823, 87, 4604, 5320, 628, 906, 4193, 3844, 7412, 2430, 358, 326, 8027, 1089, 1699, 1359, 16255, 783, 16189, 21386, 26515, 603, 1351, 291, 91, 438, 357, 80, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1265, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 13, 1071, 5024, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 389, 14784, 39, 961, 823, 12, 20367, 1769, 203, 203, 3639, 261, 11890, 5034, 389, 6385, 6275, ...
./partial_match/1313161554/0x2ABB0ea3A5C038f60E677Bf14d2F6095786650Ae/sources/StrategyRoseUSTLP.sol
Tokens used Third party contracts Routes
contract StrategyRoseUSTLP is StratManager, FeeManager, GasThrottler { using SafeERC20 for IERC20; using SafeMath for uint256; address public native; address public output; address public reward; address public stable; address public want; address public rewardPool; address public ...
16,946,706
[ 1, 5157, 1399, 935, 6909, 18285, 20092, 23534, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 19736, 54, 2584, 5996, 14461, 353, 3978, 270, 1318, 16, 30174, 1318, 16, 31849, 16238, 749, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 20...
// SPDX-License-Identifier: No License pragma solidity ^0.8.0; import "./ERC20/IERC20.sol"; import "./ERC20/IERC20Permit.sol"; import "./ERC20/SafeERC20.sol"; import "./interfaces/IERC3156FlashBorrower.sol"; import "./interfaces/IERC3156FlashLender.sol"; import "./interfaces/IRERC20.sol"; import "./interfaces/IRToken...
@notice repay with rrTokens and paired token amount, sender receives collateral, no fees charged on collateral receive paired tokens from sender, deflationary token is not allowed send collateral back to sender
function repay( address _col, address _paired, uint48 _expiry, uint256 _mintRatio, uint256 _rrTokenAmt ) public override onlyNotPaused nonReentrant { Pair memory pair = pairs[_col][_paired][_expiry][_mintRatio]; require(pair.mintRatio != 0, "Ruler: pair does not exist"); require(bloc...
509,720
[ 1, 266, 10239, 598, 8354, 5157, 471, 18066, 1147, 3844, 16, 5793, 17024, 4508, 2045, 287, 16, 1158, 1656, 281, 1149, 2423, 603, 4508, 2045, 287, 6798, 18066, 2430, 628, 5793, 16, 1652, 80, 367, 814, 1147, 353, 486, 2935, 1366, 4508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 2071, 528, 12, 203, 565, 1758, 389, 1293, 16, 203, 565, 1758, 389, 24197, 16, 203, 565, 2254, 8875, 389, 22409, 16, 203, 565, 2254, 5034, 389, 81, 474, 8541, 16, 203, 565, 2254, 5034, 389, 523, 1345, 31787, 203, 225, ...
pragma solidity ^0.4.18; // File: zeppelin-solidity/contracts/math/SafeMath.sol /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } u...
Add a contributor to the whitelist.
function addContributor(address _account, uint256 _rate, uint256 _max) public onlyOwner notFinalized { require(_account != address(0)); require(_rate > 0); require(_max >= globalMin); require(!contributors[_account].whitelisted); contributors[_account].whitelisted = true; contributors[_accoun...
12,829,355
[ 1, 986, 279, 31123, 358, 326, 10734, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 527, 442, 19293, 12, 2867, 389, 4631, 16, 2254, 5034, 389, 5141, 16, 2254, 5034, 389, 1896, 13, 1071, 1338, 5541, 486, 7951, 1235, 288, 203, 565, 2583, 24899, 4631, 480, 1758, 12, 20, 10019, 203, 565, 2583, 24899, 5141,...
pragma solidity ^0.4.13; interface ERC721Enumerable /* is ERC721 */ { /// @notice Count NFTs tracked by this contract /// @return A count of valid NFTs tracked by this contract, where each one of /// them has an assigned and queryable owner not equal to the zero address function totalSupply() public v...
* @notice Internal function to clear current approval of a given token ID @param _tokenId uint256 ID of the token to be transferred/
function _clearApproval(address _owner, uint256 _tokenId) private { require(ownerOf(_tokenId) == _owner); tokenApprovals[_tokenId] = 0; Approval(_owner, 0, _tokenId); }
478,495
[ 1, 3061, 445, 358, 2424, 783, 23556, 434, 279, 864, 1147, 1599, 225, 389, 2316, 548, 2254, 5034, 1599, 434, 326, 1147, 358, 506, 906, 4193, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 8507, 23461, 12, 2867, 389, 8443, 16, 2254, 5034, 389, 2316, 548, 13, 3238, 288, 203, 565, 2583, 12, 8443, 951, 24899, 2316, 548, 13, 422, 389, 8443, 1769, 203, 565, 1147, 12053, 4524, 63, 67, 2316, 548, 65, 273,...
./full_match/80001/0x3240CbA63FFe32D784173d41844eF8142E001e49/sources/contracts/airdrop/Airdrop.sol
@dev Get the base URI for the contract.
function _baseURI() internal pure override returns (string memory) { return ""; }
5,617,533
[ 1, 967, 326, 1026, 3699, 364, 326, 6835, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1969, 3098, 1435, 2713, 16618, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 1408, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/3/0x38eFa9e8140AfE77b4760376735F0fcd076d7Da8/sources/browser/contracts/1_Storage.sol
* @dev Store value in variable @param num value to store/
function store(uint256 num) public onlyOwner{ number = num; } address owner=0x9E2139c1c7ff6206eEC4984E896d636d4Bd133E7;
8,108,729
[ 1, 2257, 460, 316, 2190, 225, 818, 460, 358, 1707, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1707, 12, 11890, 5034, 818, 13, 1071, 1338, 5541, 95, 203, 3639, 1300, 273, 818, 31, 203, 565, 289, 203, 565, 1758, 3410, 33, 20, 92, 29, 41, 22, 24347, 71, 21, 71, 27, 1403, 26, 3462, 26, 73, 7228, 7616, 5193, 41...
./partial_match/1/0xCD3b1E16DA80337Bf3BCCCA53a93889bC81F4A96/sources/contracts/Inscription.sol
This contract is extended from ERC20
contract Inscription is ERC20 { using Logarithm for int256; address payable public inscriptionFactory; constructor( address payable _inscriptionFactory ) ERC20(_name, _tick) { require(_cap >= _limitPerMint, "Limit per mint exceed cap"); cap = _cap; limitPerMint = _limit...
15,670,917
[ 1, 2503, 6835, 353, 7021, 628, 4232, 39, 3462, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 657, 3100, 353, 4232, 39, 3462, 288, 203, 565, 1450, 1827, 31249, 364, 509, 5034, 31, 203, 565, 1758, 8843, 429, 1071, 316, 3100, 1733, 31, 203, 203, 203, 565, 3885, 12, 203, 3639, 1758, 8843, 429, 389, 267, 3100, 1733, ...
./full_match/1/0x2445F5dD31df8e7b0bfBFacFD7357e58a51D147d/sources/Users/tudorg/Desktop/projects/DeBa/contracts/deba/FeeRewardForwarder.sol
Is always the RewardPool.rewardToken()
address public targetToken;
4,870,286
[ 1, 2520, 3712, 326, 534, 359, 1060, 2864, 18, 266, 2913, 1345, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 1758, 1071, 1018, 1345, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/4/0xF857F36B15F4aDCc08B300c9b72b6C8a7f6F6b76/sources/SimplePOS.sol
you don't really need this if you are using the approve/transferFrom method because you control the flow of tokens by approving this contract address, but to make the contract an extensible example for later user I'll add thisthe signature must be validmake sure it's the subscribernextValidTimestamp should be a timest...
function cancelSubscription( ) external returns (bool success) { bytes32 subscriptionHash = getSubscriptionHash( from, to, tokenAddress, tokenAmount, periodSeconds, gasPrice, nonce ); address signer = getSubscriptionSigner(subscriptionHash, signature); ...
8,529,108
[ 1, 19940, 2727, 1404, 8654, 1608, 333, 309, 1846, 854, 1450, 326, 6617, 537, 19, 13866, 1265, 707, 2724, 1846, 3325, 326, 4693, 434, 2430, 635, 6617, 6282, 333, 6835, 1758, 16, 1496, 358, 1221, 326, 6835, 392, 1110, 773, 1523, 3454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3755, 6663, 12, 203, 565, 262, 203, 3639, 3903, 203, 3639, 1135, 261, 6430, 2216, 13, 203, 565, 288, 203, 3639, 1731, 1578, 4915, 2310, 273, 7040, 3100, 2310, 12, 203, 5411, 628, 16, 358, 16, 1147, 1887, 16, 1147, 627...
./partial_match/1/0xC8Eb057f5e38F71FE42a9E59d51ac60926Ec933D/sources/JarvisRewardToken.sol
* @title Pausable token @dev ERC20 modified with pausable transfers./
contract ERC20Pausable is Initializable, ERC20, Pausable { function transfer(address to, uint256 value) public whenNotPaused returns (bool) { return super.transfer(to, value); } function transferFrom( address from, address to, uint256 value ) public whenNotPaused returns (bool) {...
2,697,554
[ 1, 16507, 16665, 1147, 225, 4232, 39, 3462, 4358, 598, 6790, 16665, 29375, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 3462, 16507, 16665, 353, 10188, 6934, 16, 4232, 39, 3462, 16, 21800, 16665, 288, 203, 225, 445, 7412, 12, 2867, 358, 16, 2254, 5034, 460, 13, 203, 565, 1071, 203, 565, 1347, 1248, 28590, 203, 565, 1135, 261, 6430...
/** *Submitted for verification at Etherscan.io on 2021-12-07 */ // Sources flattened with hardhat v2.1.1 https://hardhat.org // File contracts/Interfaces/IBorrowerOperations.sol // SPDX-License-Identifier: MIT pragma solidity 0.6.11; // Common interface for the Trove Manager. interface IBorrowerOperations { ...
--- Events --- --- Contract setters ---
interface ICollSurplusPool { event BorrowerOperationsAddressChanged(address _newBorrowerOperationsAddress); event TroveManagerAddressChanged(address _newTroveManagerAddress); event ActivePoolAddressChanged(address _newActivePoolAddress); event CollTokenAddressChanged(address _collTokenAddress); ...
6,791,206
[ 1, 6062, 9043, 9948, 9948, 13456, 25627, 9948, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 13535, 7719, 10103, 2864, 288, 203, 203, 377, 203, 565, 871, 605, 15318, 264, 9343, 1887, 5033, 12, 2867, 389, 2704, 38, 15318, 264, 9343, 1887, 1769, 203, 565, 871, 399, 303, 537, 1318, 1887, 5033, 12, 2867, 389, 2704...
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; import "../interfaces/IPayment.sol"; import "../libraries/LibDiamond.sol"; import "../libraries/LibPayment.sol"; contract PaymentFacet is IPayment { /// @notice Adds/removes a payment token /// @param _token The target token /// @param _status Whether...
@notice Gets the total amount of token payments
function totalPaymentTokens() external view override returns (uint256) { return LibPayment.tokensCount(); }
1,334,776
[ 1, 3002, 326, 2078, 3844, 434, 1147, 25754, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2078, 6032, 5157, 1435, 3903, 1476, 3849, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 10560, 6032, 18, 7860, 1380, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.6.12; pragma experimental ABIEncoderV2; contract DSAuthEvents { event LogSetAuthority(address indexed authority); event LogSetOwner(address indexed owner); } contract DSAuth is DSAuthEvents { DSAuthority public authority; address public owner; constructor() public { ...
increase rate by 3% too account for inaccuracy between sell/buy conversion
function getBuyRate(address _srcAddr, address _destAddr, uint _destAmount) public override view returns (uint rate) { uint256 srcRate = getSellRate(_destAddr, _srcAddr, _destAmount); uint256 srcAmount = wmul(srcRate, _destAmount); rate = getSellRate(_srcAddr, _destAddr, srcAmount); ...
7,334,019
[ 1, 267, 11908, 4993, 635, 890, 9, 4885, 2236, 364, 316, 25010, 3086, 357, 80, 19, 70, 9835, 4105, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2882, 9835, 4727, 12, 2867, 389, 4816, 3178, 16, 1758, 389, 10488, 3178, 16, 2254, 389, 10488, 6275, 13, 1071, 3849, 1476, 1135, 261, 11890, 4993, 13, 288, 203, 203, 3639, 2254, 5034, 1705, 4727, 273, 1322, 1165, 4727, ...
./full_match/4/0xeFb2Cf382872f4382F328D16e6986dA6114C149a/sources/Slimeys.sol
7500-9500: 0.12 ETH
return 160000000000000000;
12,360,116
[ 1, 5877, 713, 17, 8778, 713, 30, 225, 374, 18, 2138, 512, 2455, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 327, 2872, 12648, 12648, 31, 540, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256);...
Total amount of makerAsset(s) filled.
uint256 makerAssetFilledAmount;
185,431
[ 1, 5269, 3844, 434, 312, 6388, 6672, 12, 87, 13, 6300, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 312, 6388, 6672, 29754, 6275, 31, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
///////////////////////////////////// //|________________________________// // SPDX-License-Identifier: MIT //|________________________________// // A Mystery Cubes Club! //|________________________________// // May we choose loving expression // // May we express cre...
@dev get all quotes in all cubes
function allCubeQuote() public view returns( string[] memory ){ uint cubecount = totalSupply(); string[] memory result = new string[](cubecount); uint256 index; for (index = 0; index < cubecount; index++) { result[index] = cube_Quote[index]; } return resu...
5,745,139
[ 1, 588, 777, 10681, 316, 777, 276, 23317, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 777, 39, 4895, 10257, 1435, 1071, 1476, 1135, 12, 533, 8526, 3778, 262, 95, 203, 3639, 2254, 276, 373, 557, 592, 273, 2078, 3088, 1283, 5621, 203, 3639, 533, 8526, 3778, 563, 273, 394, 533, 8526, 12, 71, 373, 557, 592...
/** *Submitted for verification at Etherscan.io on 2022-04-14 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface ManagerLike { function cdpCan( address owner, uint256 cdpId, address allowedAddr ) external view returns (uint256); function vat() external view re...
MCD_VIEW contract returns 0 (instead of infinity) as a collateralisation ratio of empty vault
bool vaultNotEmpty = collRatio != 0;
10,861,423
[ 1, 49, 10160, 67, 12145, 6835, 1135, 374, 261, 8591, 684, 434, 27272, 13, 487, 279, 4508, 2045, 287, 10742, 7169, 434, 1008, 9229, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1426, 9229, 18431, 273, 4508, 8541, 480, 374, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity ^0.8.0; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can...
* Removes a feature flag./
function deleteFeatureFlag(bytes32 _featureFlag) external override onlyRole(OLib.GOVERNANCE_ROLE) { delete featureFlags[_featureFlag]; }
14,555,298
[ 1, 6220, 279, 2572, 2982, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1430, 4595, 4678, 12, 3890, 1578, 389, 7238, 4678, 13, 203, 565, 3903, 203, 565, 3849, 203, 565, 1338, 2996, 12, 1741, 495, 18, 43, 12959, 50, 4722, 67, 16256, 13, 203, 225, 288, 203, 565, 1430, 2572, 5094, 63, 67, ...
./partial_match/1/0x356ED178c62a251136D883f01e1B84CF6980AEa8/sources/contracts/GNARDescriptor.sol
Whether or not new Gnar parts can be added Whether or not `tokenURI` should be returned as a data URI (Default: true) Base URI Gnar Color Palettes (Index => Hex Colors) Gnar Backgrounds (Hex Colors) Gnar Bodies (Custom RLE) Gnar Accessories (Custom RLE) Gnar Heads (Custom RLE) Gnar Glasses (Custom RLE)
contract GNARDescriptor is IGnarDescriptor, Ownable { using Strings for uint256; bool public override arePartsLocked; bool public override isDataURIEnabled = true; string public override baseURI; mapping(uint8 => string[]) public override palettes; string[] public override backgrounds; ...
16,113,250
[ 1, 18247, 578, 486, 394, 611, 82, 297, 2140, 848, 506, 3096, 17403, 578, 486, 1375, 2316, 3098, 68, 1410, 506, 2106, 487, 279, 501, 3699, 261, 1868, 30, 638, 13, 3360, 3699, 611, 82, 297, 5563, 453, 287, 278, 1078, 261, 1016, 516,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 611, 50, 985, 3187, 353, 13102, 82, 297, 3187, 16, 14223, 6914, 288, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 565, 1426, 1071, 3849, 854, 4305, 8966, 31, 203, 203, 565, 1426, 1071, 3849, 353, 751, 3098, 1526, ...
pragma solidity ^0.4.24; import "./LibSubmarineSimple.sol"; import "./CypherpunkCoin.sol"; contract DutchAuction is LibSubmarineSimple { uint256 public endAuctionTxBlockNumber; uint256 public endAuctionTxIndex; bool public canfinalize; uint256 public constant startCommitBlock; uint256 public consta...
start the auction with specified commitment period, owner and token
contract DutchAuction is LibSubmarineSimple { uint256 public endAuctionTxBlockNumber; uint256 public endAuctionTxIndex; bool public canfinalize; uint256 public constant startCommitBlock; uint256 public constant endCommitBlock; CypherpunkCoin public token; address public owner; uint256 pu...
13,007,346
[ 1, 1937, 326, 279, 4062, 598, 1269, 23274, 3879, 16, 3410, 471, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 463, 322, 343, 37, 4062, 353, 10560, 1676, 3684, 558, 5784, 288, 203, 565, 2254, 5034, 1071, 679, 37, 4062, 4188, 1768, 1854, 31, 203, 565, 2254, 5034, 1071, 679, 37, 4062, 4188, 1016, 31, 203, 565, 1426, 1071, 848, 30343,...
pragma solidity >=0.4.22 <0.6.0; // * Gods Unchained Ticket Sale // // * Version 1.0 // // * A dedicated contract selling tickets for the Gods Unchained tournament. // // * https://gu.cards contract ERC20Interface { function totalSupply() public view returns (uint); function balanceOf(address toke...
Current address of the ticket contract (tickets). Address that owns the tickets. In case the sale is paused. Price per ticket. Standard contract ownership. Invokable only by contract owner.
contract TournamentTicketSale { address public ticketContract; address payable public ticketOwner; bool public paused; uint public pricePerTicket; address payable public owner; address payable private nextOwner; contract TournamentTicket is ERC20Interface {} modifier onlyContractOwner { ...
12,536,578
[ 1, 3935, 1758, 434, 326, 9322, 6835, 261, 6470, 2413, 2934, 5267, 716, 29065, 326, 24475, 18, 657, 648, 326, 272, 5349, 353, 17781, 18, 20137, 1534, 9322, 18, 8263, 6835, 23178, 18, 17602, 429, 1338, 635, 6835, 3410, 18, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 2974, 30751, 13614, 30746, 288, 203, 203, 565, 1758, 1071, 9322, 8924, 31, 203, 565, 1758, 8843, 429, 1071, 9322, 5541, 31, 203, 565, 1426, 1071, 17781, 31, 203, 565, 2254, 1071, 6205, 2173, 13614, 31, 203, 565, 1758, 8843, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /* Interface Imports */ import { iOVM_L2ToL1MessagePasser } from "./iOVM_L2ToL1MessagePasser.sol"; /** * @title OVM_L2ToL1MessagePasser * @dev The L2 to L1 Message Passer is a utility contract which facilitate an L1 proof of the * of a message on L2. The L1 C...
* @title OVM_L2ToL1MessagePasser @dev The L2 to L1 Message Passer is a utility contract which facilitate an L1 proof of the of a message on L2. The L1 Cross Domain Messenger performs this proof in its _verifyStorageProof function, which verifies the existence of the transaction hash in this contract's `sentMessages` ma...
contract OVM_L2ToL1MessagePasser is iOVM_L2ToL1MessagePasser { mapping(bytes32 => bool) public sentMessages; pragma solidity ^0.8.9; import { iOVM_L2ToL1MessagePasser } from "./iOVM_L2ToL1MessagePasser.sol"; function passMessageToL1(bytes memory _message) public { sentMessages[keccak256(abi.encodePac...
6,346,056
[ 1, 51, 7397, 67, 48, 22, 774, 48, 21, 1079, 6433, 264, 225, 1021, 511, 22, 358, 511, 21, 2350, 10311, 264, 353, 279, 12788, 6835, 1492, 5853, 330, 305, 340, 392, 511, 21, 14601, 434, 326, 434, 279, 883, 603, 511, 22, 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, 16351, 531, 7397, 67, 48, 22, 774, 48, 21, 1079, 6433, 264, 353, 277, 51, 7397, 67, 48, 22, 774, 48, 21, 1079, 6433, 264, 288, 203, 203, 565, 2874, 12, 3890, 1578, 516, 1426, 13, 1071, 3271, 5058, 31, 203, 203, 203, 683, 94...
./full_match/1/0x479bb758024d768e4153031AC3F8Cd1e458Bd6c2/sources/contracts/OracleAggregator.sol
decimals of inToken decimals of outToken
function _getDecimals(address inToken, address _outToken) private view returns (uint256 inTokenDecimals, uint256 outTokenDecimals) { if (inToken != ETH && inToken != USD) { try ERC20(inToken).decimals() returns (uint8 _inputDecimals) { inTokenDecimals = uint256(_inputDecimals); ...
8,436,446
[ 1, 31734, 434, 316, 1345, 15105, 434, 596, 1345, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 588, 31809, 12, 2867, 316, 1345, 16, 1758, 389, 659, 1345, 13, 203, 565, 3238, 203, 565, 1476, 203, 565, 1135, 261, 11890, 5034, 316, 1345, 31809, 16, 2254, 5034, 596, 1345, 31809, 13, 203, 225, 288, 203, 565, 30...
// Sources flattened with hardhat v2.1.2 https://hardhat.org // File @openzeppelin/contracts/math/SafeMath.sol@v3.4.1 // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap...
admin emergency to transfer token to owner
function emergencyWithdraw(uint256 amount) public onlyOwner { _token.safeTransfer(msg.sender, amount); }
438,707
[ 1, 3666, 801, 24530, 358, 7412, 1147, 358, 3410, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 801, 24530, 1190, 9446, 12, 11890, 5034, 3844, 13, 1071, 1338, 5541, 288, 203, 3639, 389, 2316, 18, 4626, 5912, 12, 3576, 18, 15330, 16, 3844, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
// File: contracts/vendor/SafeMath.sol pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, ...
Hash b to a random point which hopefully lies on secp256k1. The y ordinate is always even, due to https:datatracker.ietf.org/doc/html/draft-irtf-cfrg-vrf-05#section-5.4.1.1 step 5.C, which references arbitrary_string_to_point, defined in https:datatracker.ietf.org/doc/html/draft-irtf-cfrg-vrf-05#section-5.5 as returni...
internal view returns (uint256[2] memory p) { p[0] = fieldHash(b); p[1] = squareRoot(ySquared(p[0])); function newCandidateSecp256k1Point(bytes memory b) if (p[1] % 2 == 1) { p[1] = FIELD_SIZE - p[1]; } }
1,168,906
[ 1, 2310, 324, 358, 279, 2744, 1634, 1492, 27370, 4095, 328, 606, 603, 1428, 84, 5034, 79, 21, 18, 1021, 677, 4642, 3322, 353, 3712, 5456, 16, 6541, 358, 2333, 30, 3404, 270, 21580, 264, 18, 18508, 18, 3341, 19, 2434, 19, 2620, 19,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2713, 1476, 1135, 261, 11890, 5034, 63, 22, 65, 3778, 293, 13, 288, 203, 1377, 293, 63, 20, 65, 273, 652, 2310, 12, 70, 1769, 203, 1377, 293, 63, 21, 65, 273, 8576, 2375, 12, 93, 20888, 12, 84, 63, 20, 5717, 1769, 203,...
pragma solidity ^0.6.5; import "./Assert.sol"; import "./CallForwarder.sol"; import "../contracts/BNS.sol"; import "../contracts/DriveFactory.sol"; import "../contracts/Drive.sol"; contract TestDrive is Drive { BNS bns_addr; constructor(BNS _bns) Drive() public { bns_addr = _bns; } function bns() internal ...
Factory created contract should work normally Upgrade and test again
function checkCreate2() public { bytes32 salt = hex"0011001100110011001100110011001100110011001100110011001100110011"; address should = factory.Create2Address(salt); address raw = factory.Create(payable(address(this)), salt, address(version1)); Assert.notEqual(raw, address(0), "Crea...
15,858,203
[ 1, 1733, 2522, 6835, 1410, 1440, 15849, 17699, 471, 1842, 3382, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 866, 1684, 22, 1435, 1071, 288, 203, 3639, 1731, 1578, 4286, 273, 3827, 6, 713, 2499, 713, 2499, 713, 2499, 713, 2499, 713, 2499, 713, 2499, 713, 2499, 713, 2499, 713, 2499, 713, 2499, 713, 2499, 713, 2499, 713, 2499, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; // Implementation of a Constant Product Automated Market Maker // Other liquidiuty pool contracts: https://github.com/search?p=2&q=liquidity+pool+contract&type=Repositories // https://github.com/OCTIONOFFICIAL/liquiditypoolV2 contract LiquidityPool { ...
* Owner can add investor cash and tokens to the liquidity pool/
function add(uint tokens, uint cash) public payable onlyOwner { require((equityToken501c + tokens) * (investorCash + cash) == k,"liquidity pool is out of balance"); equityToken501c += tokens; investorCash += cash; }
12,580,626
[ 1, 5541, 848, 527, 2198, 395, 280, 276, 961, 471, 2430, 358, 326, 4501, 372, 24237, 2845, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 527, 12, 11890, 2430, 16, 2254, 276, 961, 13, 1071, 8843, 429, 1338, 5541, 288, 203, 565, 2583, 12443, 14298, 560, 1345, 9172, 71, 397, 2430, 13, 380, 261, 5768, 395, 280, 39, 961, 397, 276, 961, 13, 422, 417, 10837, ...
./full_match/1/0x6f9140097Ab6278B41Cf9597a597030207b8D75d/sources/lib/seaport-core/src/lib/ConsiderationDecoder.sol
* @dev Converts a function taking ReceivedItem, address, bytes32, and bytes types (e.g. the _transfer function) into a function taking ConsiderationItem, address, bytes32, and bytes types. @param inFn The input function, taking ReceivedItem, address, bytes32, and bytes types (e.g. the _transfer fu...
{ function _toConsiderationItemInput( function(ReceivedItem memory, address, bytes32, bytes memory) internal inFn ) internal pure returns ( function(ConsiderationItem memory, address, bytes32, bytes memory) ...
9,676,151
[ 1, 5692, 279, 445, 13763, 21066, 1180, 16, 1758, 16, 1731, 1578, 16, 471, 1731, 1377, 1953, 261, 73, 18, 75, 18, 326, 389, 13866, 445, 13, 1368, 279, 445, 13763, 1377, 23047, 367, 1180, 16, 1758, 16, 1731, 1578, 16, 471, 1731, 195...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 288, 203, 565, 445, 389, 869, 9054, 3585, 367, 1180, 1210, 12, 203, 3639, 445, 12, 8872, 1180, 3778, 16, 1758, 16, 1731, 1578, 16, 1731, 3778, 13, 203, 5411, 2713, 316, 5372, 203, 565, 262, 203, 3639, 2713, 203, 3639, 1661...
./full_match/80001/0xe78D2f06d7Ad0cDC884D7DDB65e4BCEdbD212298/sources/_solidstate/contracts/token/ERC20/base/ERC20BaseInternal.sol
* @notice transfer tokens to given recipient on behalf of given holder @param holder holder of tokens prior to transfer @param recipient beneficiary of token transfer @param amount quantity of tokens to transfer @return success status (always true; otherwise function should revert)/
function _transferFrom( address holder, address recipient, uint256 amount ) internal virtual returns (bool) { _decreaseAllowance(holder, msg.sender, amount); _transfer(holder, recipient, amount); return true; }
9,525,867
[ 1, 13866, 2430, 358, 864, 8027, 603, 12433, 6186, 434, 864, 10438, 225, 10438, 10438, 434, 2430, 6432, 358, 7412, 225, 8027, 27641, 74, 14463, 814, 434, 1147, 7412, 225, 3844, 10457, 434, 2430, 358, 7412, 327, 2216, 1267, 261, 17737, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13866, 1265, 12, 203, 3639, 1758, 10438, 16, 203, 3639, 1758, 8027, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 5024, 1135, 261, 6430, 13, 288, 203, 3639, 389, 323, 11908, 7009, 1359, 12, 4505, 16, 1234, ...
pragma solidity 0.5; import "../AddressLib.sol"; /** * @title AddressLibMock * @author Igor Dulger * @dev Mock contract to test Address library. All docs are into origin library. */ contract AddressLibMock { using AddressLib for address; using AddressLib for address payable; function addressToString...
* @title AddressLibMock @author Igor Dulger @dev Mock contract to test Address library. All docs are into origin library./
contract AddressLibMock { using AddressLib for address; using AddressLib for address payable; function addressToString(address _code) external pure returns(string memory) { return _code.addressToString(); } }
12,659,863
[ 1, 1887, 5664, 9865, 225, 467, 3022, 463, 332, 693, 225, 7867, 6835, 358, 1842, 5267, 5313, 18, 4826, 3270, 854, 1368, 4026, 5313, 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, ...
[ 1, 1, 1, 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, 16351, 5267, 5664, 9865, 288, 203, 203, 565, 1450, 5267, 5664, 364, 1758, 31, 203, 565, 1450, 5267, 5664, 364, 1758, 8843, 429, 31, 203, 203, 565, 445, 1758, 5808, 12, 2867, 389, 710, 13, 3903, 16618, 1135, 12, 1080, 3778, 13, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol'; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/access/Ownable...
Imported for balanceOf function to check tokenBalance of msg.sender
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
13,412,058
[ 1, 24934, 364, 11013, 951, 445, 358, 866, 1147, 13937, 434, 1234, 18, 15330, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5666, 8787, 3190, 94, 881, 84, 292, 267, 19, 16351, 87, 19, 2316, 19, 654, 39, 3462, 19, 45, 654, 39, 3462, 18, 18281, 14432, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
pragma solidity ^0.4.19; contract Ownable { /** * @dev set `owner` of the contract to the sender */ address public owner = msg.sender; /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(msg.sender == owner); _; } ...
* @dev Transfer ownership of token contract to _addr @param _addr address/
function transferTokenOwnership(address _addr) onlyOwner public { token.transferOwnership(_addr); }
626,893
[ 1, 5912, 23178, 434, 1147, 6835, 358, 389, 4793, 225, 389, 4793, 1758, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1345, 5460, 12565, 12, 2867, 389, 4793, 13, 1338, 5541, 1071, 288, 203, 3639, 1147, 18, 13866, 5460, 12565, 24899, 4793, 1769, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.0; import "openzeppelin-solidity/contracts/token/ERC721/ERC721Full.sol"; import "./GrantRole.sol"; import "./OperatorRole.sol"; import "./StringUtils.sol"; import "./mocks/EcoCoin.sol"; import "./mocks/Finance.sol"; /** * @title EcoCert token contract * * @dev The EcoCert is a ERC721 non-fungi...
* @dev Returns the last time, coins were harvested for a given eco certificate ID. @param tokenId Id of the token to query. @return Last time (in secs since the epoch) that harvest was called./
function tokenHarvestTime(uint256 tokenId) external view returns (uint256) { require(_exists(tokenId), "EcoCert: harvest time query for nonexistent token"); return _data[tokenId].harvestTime; }
981,931
[ 1, 1356, 326, 1142, 813, 16, 276, 9896, 4591, 17895, 90, 3149, 364, 279, 864, 425, 2894, 4944, 1599, 18, 225, 1147, 548, 3124, 434, 326, 1147, 358, 843, 18, 327, 6825, 813, 261, 267, 18043, 3241, 326, 7632, 13, 716, 17895, 26923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1147, 44, 297, 26923, 950, 12, 11890, 5034, 1147, 548, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 24899, 1808, 12, 2316, 548, 3631, 315, 41, 2894, 5461, 30, 17895, 26923, 813, 843, 364, 1661, 1904...
import './Whitelist.sol'; pragma solidity ^0.4.2; contract MultiAccessPrecise { /** * Codes: * 1 - tx execution on destination contract has thrown an error */ event Error(uint8 errorCode); /** * Confirmation event. * event * @param owner - The owner address. * @param operation...
Call arbitrary address. public_function @param _to - The address to call. @param _value - The value of wei to send with the call. @param _data - Message data to send with the call./function multiAccessCall(address _to, uint _value, bytes _data) onlymanyowners(true) returns(bool _success) {
return _to.call.value(_value)(_data);
13,010,535
[ 1, 1477, 11078, 1758, 18, 1071, 67, 915, 225, 389, 869, 300, 1021, 1758, 358, 745, 18, 225, 389, 1132, 300, 1021, 460, 434, 732, 77, 358, 1366, 598, 326, 745, 18, 225, 389, 892, 300, 2350, 501, 358, 1366, 598, 326, 745, 18, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 3639, 327, 389, 869, 18, 1991, 18, 1132, 24899, 1132, 21433, 67, 892, 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, -10...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.7; /* β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•— β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•— β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β•šβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β• β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β• β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ...
@notice To change the ERC20 token. @dev changing this while tokens have been deposited could prove disastrous
function setTokenAddress(address _newToken) public override onlyRole(UBER_OWNER) { require(_newToken != address(0), "Must set an address"); erc20 = IERC20(_newToken); }
979,367
[ 1, 774, 2549, 326, 4232, 39, 3462, 1147, 18, 225, 12770, 333, 1323, 2430, 1240, 2118, 443, 1724, 329, 3377, 450, 537, 1015, 689, 303, 407, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 22629, 1887, 12, 2867, 389, 2704, 1345, 13, 203, 3639, 1071, 203, 3639, 3849, 203, 3639, 1338, 2996, 12, 3457, 654, 67, 29602, 13, 203, 565, 288, 203, 3639, 2583, 24899, 2704, 1345, 480, 1758, 12, 20, 3631, 315, 10136, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "../libraries/math/SafeMath.sol"; import "../libraries/token/IERC20.sol"; import "../libraries/token/SafeERC20.sol"; import "../libraries/utils/ReentrancyGuard.sol"; import "../libraries/utils/Address.sol"; import "./interfaces/IRewardTracker.sol"; impor...
GMX Liquidity Provider token
address public glp;
1,846,327
[ 1, 43, 13874, 511, 18988, 24237, 7561, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 1071, 5118, 84, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x113dE669181708f8b497329654606e6134673c8c/sources/contracts/Reindeer.sol
Smart contract for Reindeer NFTs Last edited : 27 OCT 2021, 4:44 PM Last updated at 18 Dec, 2021 8:30 PM
contract ReindeerNFT is ERC721Enumerable, Ownable { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; uint256 public cost = 0.07 ether; uint256 public maxSupply = 777; uint256 public maxMintAmount = 20; bool public paused = true; bytes32 private see...
9,775,371
[ 1, 23824, 6835, 364, 868, 267, 323, 264, 423, 4464, 87, 6825, 18532, 294, 12732, 531, 1268, 26599, 21, 16, 1059, 30, 6334, 23544, 6825, 3526, 622, 6549, 3416, 16, 26599, 21, 1725, 30, 5082, 23544, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 868, 267, 323, 264, 50, 4464, 353, 4232, 39, 27, 5340, 3572, 25121, 16, 14223, 6914, 288, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 565, 533, 1071, 1026, 3098, 31, 203, 565, 533, 1071, 1026, 3625, 273, 3552, 1977, ...
/** *Submitted for verification at Etherscan.io on 2019-12-03 */ pragma solidity 0.5.13; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in suc...
inject UNINIT LOCAL/STATE VAR
address referrerAddr ;
1,819,175
[ 1, 22170, 5019, 12919, 15234, 19, 7998, 8350, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 1758, 14502, 3178, 274, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; import "./utils/Ownable.sol"; /** * @notice Allows each token to be associated with a creator. */ contract Participants is Ownable { mapping(address => uint256) public seed; mapping(address => uint256) public private1; mapping(address => uint256) p...
39062.5 DDAO | $ 12500
] = 39062500000000000000000;
5,536,126
[ 1, 5520, 7677, 22, 18, 25, 463, 18485, 571, 271, 2593, 12483, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 308, 273, 16977, 7677, 2947, 12648, 2787, 11706, 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...
// Contracts by dYdX Foundation. Individual files are released under different licenses. // // https://dydx.community // https://github.com/dydxfoundation/governance-contracts // // SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.7.5; pragma abicoder v2; import { IERC20 } from '../../interfaces/IERC20.sol'; import...
* @notice Guardian method to prevent queued forced trade requests from being executed. May only be called by VETO_GUARDIAN_ROLE. @param argsHashes An array of hashes for each forced trade request to veto./
function guardianVetoForcedTradeRequests( bytes32[] calldata argsHashes ) external nonReentrant onlyRole(VETO_GUARDIAN_ROLE) { for (uint256 i = 0; i < argsHashes.length; i++) { bytes32 argsHash = argsHashes[i]; _QUEUED_FORCED_TRADE_TIMESTAMPS_[argsHash] = 0; emit GuardianVeto...
6,189,875
[ 1, 16709, 2779, 707, 358, 5309, 12234, 13852, 18542, 3285, 628, 3832, 7120, 18, 225, 16734, 1338, 506, 2566, 635, 776, 1584, 51, 67, 30673, 985, 2565, 1258, 67, 16256, 18, 282, 833, 14455, 225, 1922, 526, 434, 9869, 364, 1517, 13852, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 11026, 2779, 58, 11453, 1290, 3263, 22583, 6421, 12, 203, 565, 1731, 1578, 8526, 745, 892, 833, 14455, 203, 225, 262, 203, 565, 3903, 203, 565, 1661, 426, 8230, 970, 203, 565, 1338, 2996, 12, 58, 1584, 51, 67, 30673, ...
//Address: 0x81481c47639c8e1BbF07E7b1b868B48EE8bBcd23 //Contract name: WisePlatSale //Balance: 0 Ether //Verification Date: 10/21/2017 //Transacion Count: 13 // CODE STARTS HERE pragma solidity ^0.4.16; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control...
* @dev modifier that throws if trading has not started yet/
modifier hasStartedTransfer() { require(transferStatus || msg.sender == bountyWallet); _; }
14,067,261
[ 1, 20597, 716, 1216, 309, 1284, 7459, 711, 486, 5746, 4671, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 9606, 711, 9217, 5912, 1435, 288, 203, 565, 2583, 12, 13866, 1482, 747, 1234, 18, 15330, 422, 324, 592, 93, 16936, 1769, 203, 565, 389, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/42/0x4Efb8892f6f20aDB6C3da1786CFB1A6aFd198bd7/sources/Users/dror/IdeaProjects/gsn-release/contracts/Migrations.sol
solhint-disable-next-line var-name-mixedcase
contract Migrations { address public owner; uint public last_completed_migration; pragma solidity ^0.7.5; constructor() { owner = msg.sender; } modifier restricted() { if (msg.sender == owner) _; } function setCompleted(uint completed) public restricted { last_comp...
16,204,355
[ 1, 18281, 11317, 17, 8394, 17, 4285, 17, 1369, 569, 17, 529, 17, 19562, 3593, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 490, 10475, 288, 203, 565, 1758, 1071, 3410, 31, 203, 565, 2254, 1071, 1142, 67, 13615, 67, 15746, 31, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 27, 18, 25, 31, 203, 565, 3885, 1435, 288, 203, 3639, 3410, 273, 1234,...