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
pragma solidity 0.5.17; pragma experimental ABIEncoderV2; import "../libs/SafeMath.sol"; import "../interfaces/IAuthereumAccount.sol"; /** * @title AuthereumRecoveryModule * @author Authereum Labs, Inc. * @dev This contract facilitates the recovery of Authereum accounts. * @dev This contract may be added as a mod...
@dev Add a recovery address @dev Called by the Authereum account @param _recoveryAddress The address that can recover the account @param _recoveryDelay The delay required between starting and completing recovery
function addRecoveryAccount(address _recoveryAddress, uint256 _recoveryDelay) external onlyWhenRegisteredModule { require(_recoveryAddress != address(0), "ARM: Recovery address cannot be address(0)"); require(_recoveryAddress != msg.sender, "ARM: Cannot add self as recovery account"); requir...
6,394,259
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1436, 279, 11044, 1758, 632, 5206, 11782, 635, 326, 3123, 822, 379, 2236, 632, 891, 389, 23963, 1887, 1021, 1758, 716, 848, 5910, 326, 2236, 632, 891, 389, 23963, 6763, 1021, 4624, 1931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 11548, 3032, 12, 2867, 389, 23963, 1887, 16, 2254, 5034, 389, 23963, 6763, 13, 3903, 1338, 9434, 10868, 3120, 288, 203, 3639, 2583, 24899, 23963, 1887, 480, 1758, 12, 20, 3631, 315, 26120, 30, 23675, 1758, 2780, 506,...
./partial_match/1/0x2f24FF4b205B24E352b05139D49dca2e4CC5D171/sources/contracts/v2-periphery/UniswapV2Router02.sol
**** REMOVE LIQUIDITY ****
function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) public virtual override ensure(deadline) returns (uint amountA, uint amountB) ...
2,645,496
[ 1, 4625, 348, 7953, 560, 30, 225, 380, 14465, 26056, 8961, 53, 3060, 4107, 380, 14465, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1206, 48, 18988, 24237, 12, 203, 3639, 1758, 1147, 37, 16, 203, 3639, 1758, 1147, 38, 16, 203, 3639, 2254, 4501, 372, 24237, 16, 203, 3639, 2254, 3844, 2192, 267, 16, 203, 3639, 2254, 3844, 38, 2930, 16, 203, 3639, 17...
./full_match/56/0xc73d3464a4D73010995baD34c8F6b2EF62F68a1d/sources/project_/contracts/VotingToken.sol
* @dev Maximum token supply is limited to 10 10 units in order to avoid inflation and overflow in voting mechanism./
function _maxSupply() internal pure returns (uint96) { return 10 ** 28; }
3,226,306
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 18848, 1147, 14467, 353, 13594, 358, 1728, 225, 1728, 4971, 316, 1353, 358, 4543, 13947, 367, 471, 9391, 316, 331, 17128, 12860, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 1896, 3088, 1283, 1435, 2713, 16618, 1135, 261, 11890, 10525, 13, 288, 203, 3639, 327, 1728, 2826, 9131, 31, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xa58c48300d17e3bc20009FA165007B19AC7335dD/sources/WOJAK20.sol
set as marketing wallet
marketingWallet = address(0x1B6E243f0Fa50F918D3867F4f2e9A428ef381012);
2,682,028
[ 1, 4625, 348, 7953, 560, 30, 225, 444, 487, 13667, 310, 9230, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 13667, 310, 16936, 273, 1758, 12, 20, 92, 21, 38, 26, 41, 3247, 23, 74, 20, 29634, 3361, 42, 29, 2643, 40, 23, 5292, 27, 42, 24, 74, 22, 73, 29, 37, 24, 6030, 10241, 7414, 15168, 22, 1769, 225, 2, -100, -100, -100, ...
./partial_match/56/0xe3085D1c23242A7c4DbE54774452eb8763664906/sources/MasterChef.sol
decrease old representative increase new representative
function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].v...
11,090,978
[ 1, 4625, 348, 7953, 560, 30, 225, 20467, 1592, 23174, 10929, 394, 23174, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 8501, 15608, 815, 12, 2867, 1705, 18933, 16, 1758, 3046, 18933, 16, 2254, 5034, 3844, 13, 2713, 288, 203, 3639, 309, 261, 4816, 18933, 480, 3046, 18933, 597, 3844, 405, 374, 13, 288, 203, 5411, 309, 261, 4816, 1893...
./partial_match/1/0x50Cde910D1f8b6C787b7903d23082542593E0710/sources/FraxUnifiedFarm_ERC20_Convex_Generic.sol
Add additional LPs to an existing locked stake Make sure staking isn't paused Get the stake and its index Calculate the new amount Checks Pull the tokens from the sender Update the stake Update liquidities
function lockAdditional(bytes32 kek_id, uint256 addl_liq) nonReentrant updateRewardAndBalanceMdf(msg.sender, true) public { require(!stakingPaused, "Staking paused"); (LockedStake memory thisStake, uint256 theArrayIndex) = _getStake(msg.sender, kek_id); uint256 new_amt = thisStake....
9,413,094
[ 1, 4625, 348, 7953, 560, 30, 225, 1436, 3312, 511, 18124, 358, 392, 2062, 8586, 384, 911, 4344, 3071, 384, 6159, 5177, 1404, 17781, 968, 326, 384, 911, 471, 2097, 770, 9029, 326, 394, 3844, 13074, 14899, 326, 2430, 628, 326, 5793, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2176, 10552, 12, 3890, 1578, 417, 3839, 67, 350, 16, 2254, 5034, 527, 80, 67, 549, 85, 13, 1661, 426, 8230, 970, 1089, 17631, 1060, 1876, 13937, 49, 2180, 12, 3576, 18, 15330, 16, 638, 13, 1071, 288, 203, 3639, 2583, ...
// SPDX-License-Identifier: AGPL V3.0 pragma solidity 0.6.12; // Part: AddressUpgradeable /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume...
Array of vesting batches
VestedBatch[] batches;
1,449,383
[ 1, 4625, 348, 7953, 560, 30, 225, 1510, 434, 331, 10100, 13166, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 776, 3149, 4497, 8526, 13166, 31, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
/** *Submitted for verification at Etherscan.io on 2021-06-15 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.5; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() externa...
* @dev Base constants for token definition. It's called only once at contract creation./
constructor() ERC20(_defaultName, _symbol, _decimals) { rename(_defaultName); _mint(_msgSender(), _maxSupply * (10 ** uint256(_decimals))); }
15,174,746
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3360, 6810, 364, 1147, 2379, 18, 2597, 1807, 2566, 1338, 3647, 622, 6835, 6710, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 4232, 39, 3462, 24899, 1886, 461, 16, 389, 7175, 16, 389, 31734, 13, 288, 203, 3639, 6472, 24899, 1886, 461, 1769, 203, 3639, 389, 81, 474, 24899, 3576, 12021, 9334, 389, 1896, 3088, 1283, 380, 261, 2163, 2826, 2...
//SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; struct Account { int128 balance; uint64 taxBase; uint64 lastTaxPayment; } struct Earmark { address receiver; uint64 amount; } // G...
cancel any earmark
_earmark(pixelID, address(0), 0);
5,470,494
[ 1, 4625, 348, 7953, 560, 30, 225, 3755, 1281, 6897, 3355, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 389, 2091, 3355, 12, 11743, 734, 16, 1758, 12, 20, 3631, 374, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/5/0x8Fe4d94ef5fC4c61DDb2c050653b4664Fcfa3C07/sources/project_/contracts/TellorFlex.sol
* @dev Retrieves latest array index of data before the specified timestamp for the queryId @param _queryId is the queryId to look up the index for @param _timestamp is the timestamp before which to search for the latest index @return _found whether the index was found @return _index the latest index found before the sp...
function getIndexForDataBefore(bytes32 _queryId, uint256 _timestamp) public view returns (bool _found, uint256 _index) { uint256 _count = getNewValueCountbyQueryId(_queryId); if (_count > 0) { uint256 _middle; uint256 _start = 0; uint25...
7,079,463
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 20507, 4891, 526, 770, 434, 501, 1865, 326, 1269, 2858, 364, 326, 843, 548, 632, 891, 389, 2271, 548, 353, 326, 843, 548, 358, 2324, 731, 326, 770, 364, 632, 891, 389, 5508, 353, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 8088, 1290, 751, 4649, 12, 3890, 1578, 389, 2271, 548, 16, 2254, 5034, 389, 5508, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 389, 7015, 16, 2254, 5034, 389, 1615, 13, 203, 565, 288, 203, 3639, 2...
pragma solidity ^0.4.11; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public constant returns (uint256); function transfer(address to, uint256 value)...
* Child contract can enable to provide the condition when the upgrade can begun./
function canUpgrade() public constant returns(bool) { return true; }
2,166,227
[ 1, 4625, 348, 7953, 560, 30, 380, 7451, 6835, 848, 4237, 358, 5615, 326, 2269, 1347, 326, 8400, 848, 16847, 318, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 848, 10784, 1435, 1071, 5381, 1135, 12, 6430, 13, 288, 203, 377, 327, 638, 31, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./partial_match/1/0x695264D984A5E45C2d89f261C8668d6C1F7D214c/sources/IporProtocolRouter.sol
@notice Gets Ipor Orale address @notice Retrieves the configuration of a specific asset's pool. @param asset The address of the asset. @return PoolConfiguration The pool's configuration. @notice Calculates the ipToken exchange rate. @dev The exchange rate is a ratio between the Liquidity Pool Balance and the ipToken's...
library AmmTypes { function iporOracle() external view returns (address); function getAmmPoolsLensConfiguration(address asset) external view returns (AmmPoolsLensPoolConfiguration memory); function getIpTokenExchangeRate(address asset) external view returns (uint256); function getAmmBalance(address a...
16,153,470
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 11881, 467, 3831, 2965, 5349, 1758, 632, 20392, 20507, 326, 1664, 434, 279, 2923, 3310, 1807, 2845, 18, 632, 891, 3310, 1021, 1758, 434, 326, 3310, 18, 632, 2463, 8828, 1750, 1021, 2845, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 3986, 81, 2016, 288, 203, 565, 445, 2359, 280, 23601, 1435, 3903, 1476, 1135, 261, 2867, 1769, 203, 203, 565, 445, 4506, 7020, 16639, 48, 773, 1750, 12, 2867, 3310, 13, 3903, 1476, 1135, 261, 37, 7020, 16639, 48, 773, 2864...
./partial_match/1/0xC5B0B727B5447442ffafeB6c254F745691a5eEfD/sources/Platform.sol
@notice Claim rewards for a given bribe. @param bribeId ID of the bribe. @return Amount of rewards claimed.
function claim(uint256 bribeId) external returns (uint256) { address recipient = factory.recipient( msg.sender, address(gaugeController) ); return _claim( msg.sender, recipient != address(0) ? recipient : msg.sender, ...
2,664,330
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 18381, 283, 6397, 364, 279, 864, 324, 1902, 18, 632, 891, 324, 1902, 548, 1599, 434, 326, 324, 1902, 18, 632, 2463, 16811, 434, 283, 6397, 7516, 329, 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, 7516, 12, 11890, 5034, 324, 1902, 548, 13, 3903, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 1758, 8027, 273, 3272, 18, 20367, 12, 203, 5411, 1234, 18, 15330, 16, 203, 5411, 1758, 12, 75, 8305, 2933, 13, 203, 3639, 11...
pragma solidity ^0.4.17; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) public constant returns (uint256); function transfer(address to, uin...
* function preIcoTokens - Calculate Tokens in of PRE-ICO/
function preIcoTokens(uint256 weiAmount, uint256 tokens) internal returns (uint256) { require(preIcoSupply > 0); tokens = SafeMath.add(tokens, weiAmount.mul(preIcoBonus)); tokens = SafeMath.add(tokens, weiAmount.mul(rate)); require(preIcoSupply >= tokens); preIcoSupply = preIcoSupply.sub(...
975,065
[ 1, 4625, 348, 7953, 560, 30, 380, 445, 675, 45, 2894, 5157, 300, 9029, 13899, 316, 434, 7071, 17, 2871, 51, 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, 675, 45, 2894, 5157, 12, 11890, 5034, 732, 77, 6275, 16, 2254, 5034, 2430, 13, 2713, 1135, 261, 11890, 5034, 13, 288, 203, 21281, 565, 2583, 12, 1484, 45, 2894, 3088, 1283, 405, 374, 1769, 203, 565, 2430, 273, 14060, ...
pragma solidity ^0.4.24; contract AddressHelper { function addressToString (address data) public pure returns (string) { bytes memory s = new bytes(42); s[0] = "0"; s[1] = "x"; for (uint i = 0; i < 20; i++) { byte b = byte(uint8(uint(data) / (2**(8*(19 - i))))); ...
loads second 32 bytes from array, skipping array length (32 bytes to skip) and first 32 bytes offset == 0x40
assembly { v := mload(add(0x40, ss)) }
6,442,148
[ 1, 4625, 348, 7953, 560, 30, 225, 6277, 2205, 3847, 1731, 628, 526, 16, 14195, 526, 769, 261, 1578, 1731, 358, 2488, 13, 471, 1122, 3847, 1731, 1384, 422, 374, 92, 7132, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 19931, 288, 331, 519, 312, 945, 12, 1289, 12, 20, 92, 7132, 16, 5202, 3719, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/43114/0xb7499a92fc36e9053a4324aFfae59d333635D9c3/sources/contracts/modules/LimitOrders.sol
Original work by Pine.Finance Authors: - Agustin Aguilar <agusx1211> - Ignacio Mazzara <nachomazzara>/
contract LimitOrders is IModule, Order, ReentrancyGuard { using SafeMath for uint256; function execute( IERC20 _inputToken, uint256, address payable _owner, bytes calldata _data, bytes calldata _auxData receive() external payable override {} ) external override...
4,570,919
[ 1, 4625, 348, 7953, 560, 30, 225, 19225, 1440, 635, 453, 558, 18, 6187, 1359, 3123, 1383, 30, 300, 5495, 641, 267, 5495, 89, 5611, 411, 346, 407, 92, 2138, 2499, 34, 300, 467, 1600, 1077, 1594, 490, 3638, 297, 69, 411, 82, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 7214, 16528, 353, 467, 3120, 16, 4347, 16, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 203, 565, 445, 1836, 12, 203, 3639, 467, 654, 39, 3462, 389, 2630, 1345, 16, 203, 3639, ...
./partial_match/42220/0x56E44A9f86C2e3a53e816335cBE6deaE440b0856/sources/WitnetPriceFeedBypass.sol
@dev Decode a `uint64` value from the Witnet.Result's CBOR value. @param result An instance of Witnet.Result. @return The `uint` decoded from the Witnet.Result.
function asUint(Witnet.Result memory result) internal pure _isReady(result) returns (uint) { return result.value.readUint(); }
3,498,348
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 6209, 279, 1375, 11890, 1105, 68, 460, 628, 326, 678, 305, 2758, 18, 1253, 1807, 21262, 916, 460, 18, 632, 891, 563, 1922, 791, 434, 678, 305, 2758, 18, 1253, 18, 632, 2463, 1021, 1375,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 487, 5487, 12, 59, 305, 2758, 18, 1253, 3778, 563, 13, 203, 3639, 2713, 16618, 203, 3639, 389, 291, 8367, 12, 2088, 13, 203, 3639, 1135, 261, 11890, 13, 203, 565, 288, 203, 3639, 327, 563, 18, 1132, 18, 896, 5487, 5...
pragma solidity 0.4.21; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256...
SafeMath.sub will throw if there is not enough balance.
function transfer(address _to, uint256 _value) public returns (bool) { require(_to != address(0)); require(_value >= 0); require(_value <= balances[msg.sender]); balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); emit Transfer(msg.sender, _to, ...
2,007,976
[ 1, 4625, 348, 7953, 560, 30, 225, 14060, 10477, 18, 1717, 903, 604, 309, 1915, 353, 486, 7304, 11013, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7412, 12, 2867, 389, 869, 16, 2254, 5034, 389, 1132, 13, 1071, 1135, 261, 6430, 13, 288, 203, 565, 2583, 24899, 869, 480, 1758, 12, 20, 10019, 203, 565, 2583, 24899, 1132, 1545, 374, 1769, 203, 565, 2583, 24899, 1132, ...
./partial_match/1/0x170e050c1B1dC3036A299A2103916e31D1Aa8ACE/sources/Lending.sol
* @notice Borrow up to the amount of remaining credit./
function borrow(address tokenAddress, uint256 amount) external override { _borrow(msg.sender, tokenAddress, amount); if (tokenAddress == ETH_ADDRESS) { _transferETH(msg.sender, amount); ERC20(tokenAddress).safeTransfer(msg.sender, amount); } }
2,639,536
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 605, 15318, 731, 358, 326, 3844, 434, 4463, 12896, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 29759, 12, 2867, 1147, 1887, 16, 2254, 5034, 3844, 13, 3903, 3849, 288, 203, 3639, 389, 70, 15318, 12, 3576, 18, 15330, 16, 1147, 1887, 16, 3844, 1769, 203, 3639, 309, 261, 2316, 1887, 422, 512, 2455, 67, 15140, 13, 2...
./partial_match/1313161554/0xca9511B610bA5fc7E311FDeF9cE16050eE4449E9/sources/AuETH.sol
* @notice Accrues interest and reduces reserves by transferring to admin @param reduceAmount Amount of reduction to reserves/
function _reduceReserves(uint reduceAmount) external override nonReentrant{ accrueInterest(); _reduceReservesFresh(reduceAmount); }
16,916,252
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 15980, 86, 3610, 16513, 471, 30568, 400, 264, 3324, 635, 906, 74, 20245, 358, 3981, 632, 891, 5459, 6275, 16811, 434, 20176, 358, 400, 264, 3324, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 12498, 607, 264, 3324, 12, 11890, 5459, 6275, 13, 3903, 3849, 1661, 426, 8230, 970, 95, 203, 3639, 4078, 86, 344, 29281, 5621, 203, 3639, 389, 12498, 607, 264, 3324, 42, 1955, 12, 12498, 6275, 1769, 203, 565, 289, ...
./full_match/1/0xe131eEDAcacCD732C74ba7A419e21Cf0ee50FbA9/sources/contracts/staking.sol
(nftCount=>isStaked)
mapping(uint256=>bool) private isNftStakedByUser;
3,141,035
[ 1, 4625, 348, 7953, 560, 30, 261, 82, 1222, 1380, 9207, 291, 510, 9477, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 2874, 12, 11890, 5034, 9207, 6430, 13, 3238, 8197, 1222, 510, 9477, 25895, 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, -...
./full_match/42/0x1cd45CcADda892956aa5d7C61167acdb4dAe8262/sources/browser/JCompound.sol
* @dev buy Tranche A Tokens @param _trancheNum tranche number @param _amount amount of stable coins sent by buyer/Transfer ETH from msg.sender to protocol; transfer ETH to Coompound receiving cETH check approveTransfer DAI from msg.sender to protocol; transfer DAI to Coompound receiving cDai
function buyTrancheAToken(uint256 _trancheNum, uint256 _amount) external payable locked { if (trancheAddresses[_trancheNum].buyerCoinAddress == address(0)){ _amount = msg.value; TransferETHHelper.safeTransferETH(address(this), _amount); require(IERC20(trancheAddresses[_tr...
16,227,500
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 30143, 840, 304, 18706, 432, 13899, 632, 891, 389, 13171, 18706, 2578, 13637, 18706, 1300, 632, 891, 389, 8949, 3844, 434, 14114, 276, 9896, 3271, 635, 27037, 19, 5912, 512, 2455, 628, 1234...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30143, 17730, 18706, 789, 969, 12, 11890, 5034, 389, 13171, 18706, 2578, 16, 2254, 5034, 389, 8949, 13, 3903, 8843, 429, 8586, 288, 203, 3639, 309, 261, 13171, 18706, 7148, 63, 67, 13171, 18706, 2578, 8009, 70, 16213, 270...
// (In lieu of solidity syntax highlighting on GitHub) // vim: syntax=javascript pragma solidity ^0.4.3; import "AnimistEvent.sol"; /** * This is a sample contract for an agreement in which contestants commit stakes to a race, * paying Animist nodes to authenticate their presence at pre-defined locations in set se...
Is caller at the end state?
modifier senderIsFinished { if (racers[msg.sender].state != endState) throw; _; }
12,952,219
[ 1, 4625, 348, 7953, 560, 30, 225, 2585, 4894, 622, 326, 679, 919, 35, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9606, 5793, 2520, 10577, 288, 203, 3639, 309, 261, 8836, 414, 63, 3576, 18, 15330, 8009, 2019, 480, 679, 1119, 13, 7010, 5411, 604, 31, 203, 3639, 389, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -...
/** *Submitted for verification at Etherscan.io on 2021-04-27 */ pragma solidity ^0.6.6; /** * @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 ov...
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract DPET is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => bool) private _whiteAddress; mapping (address => bool) private _blackAddress; uint256 private _sellAmount = 0; mapping (add...
2,056,848
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 25379, 434, 326, 288, 45, 654, 39, 3462, 97, 1560, 18, 1220, 4471, 353, 279, 1600, 669, 335, 358, 326, 4031, 2430, 854, 2522, 18, 1220, 4696, 716, 279, 14467, 12860, 711, 358, 506, 3096...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 463, 1423, 56, 353, 1772, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 377, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 2648...
//Address: 0xed2725cdfc48a24aa71d9b9621d431db0705a55a //Contract name: FiinuCrowdSale //Balance: 0 Ether //Verification Date: 10/14/2017 //Transacion Count: 570 // CODE STARTS HERE pragma solidity ^0.4.15; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { ...
@dev This contract is used to generate clone contracts from a contract. In solidity this is the way to create a contract from a contract of the same class
contract MiniMeTokenFactory { function createCloneToken( address _parentToken, uint256 _snapshotBlock, string _tokenName, uint8 _decimalUnits, string _tokenSymbol, bool _transfersEnabled ) returns (MiniMeToken) { MiniMeToken newToken = new MiniMeToken( ...
12,678,755
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1220, 6835, 353, 1399, 358, 2103, 3236, 20092, 628, 279, 6835, 18, 225, 657, 18035, 560, 333, 353, 326, 4031, 358, 752, 279, 6835, 628, 279, 6835, 434, 326, 225, 1967, 667, 2, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 27987, 4667, 1345, 1733, 288, 203, 203, 565, 445, 752, 10930, 1345, 12, 203, 3639, 1758, 389, 2938, 1345, 16, 203, 3639, 2254, 5034, 389, 11171, 1768, 16, 203, 3639, 533, 389, 2316, 461, 16, 203, 3639, 2254, 28, 389, 12586...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./MagicLampWalletBase.sol"; import "./MagicLampWalletEvents.sol"; import "./IERC721Receiver.sol"; import "./IERC1155Receiver.sol"; import "./ERC165.sol"; import "./IERC20.sol"; import "./IERC721.sol"; import "./IERC1155.sol"; contract MagicLampWallet i...
* @dev Locks wallet/ _unlocked(host, id);
function lock(address host, uint256 id, uint256 timeInSeconds) external { _onlyWalletOwner(host, id); _lockedTimestamps[host][id] = block.timestamp.add(timeInSeconds); emit MagicLampWalletLocked(_msgSender(), host, id, block.timestamp, _lockedTimestamps[host][id]); }
252,711
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3488, 87, 9230, 19, 389, 318, 15091, 12, 2564, 16, 612, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2176, 12, 2867, 1479, 16, 2254, 5034, 612, 16, 2254, 5034, 813, 17840, 13, 3903, 225, 288, 203, 3639, 389, 3700, 16936, 5541, 12, 2564, 16, 612, 1769, 203, 3639, 389, 15091, 23761, 63, 2564, 6362, 350, 65, 273, 1203, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.4; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns...
* @dev Revokes `role` from `account`. Internal function without access restriction./
function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } }
34,247
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 14477, 601, 281, 1375, 4615, 68, 628, 1375, 4631, 8338, 3186, 445, 2887, 2006, 9318, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 9083, 3056, 2996, 12, 3890, 1578, 2478, 16, 1758, 2236, 13, 2713, 5024, 288, 203, 3639, 309, 261, 5332, 2996, 12, 4615, 16, 2236, 3719, 288, 203, 5411, 389, 7774, 63, 4615, 8009, 7640, 63, 4631, 65, 273, 629, 31,...
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.5; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this func...
approve anyswap router to spend tokens
IERC20(token).approve(address(anyswapRouter), balance);
1,275,252
[ 1, 4625, 348, 7953, 560, 30, 225, 6617, 537, 1281, 22270, 4633, 358, 17571, 2430, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 467, 654, 39, 3462, 12, 2316, 2934, 12908, 537, 12, 2867, 12, 304, 1900, 91, 438, 8259, 3631, 11013, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x86e437FE6E8d6661477f18B1B7fAAD61Aa7506A3/sources/contracts/Dividends.sol
* @dev Utility function to get the current block timestamp/
function _currentBlockTimestamp() internal view virtual returns (uint256) { return block.timestamp;
3,216,546
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13134, 445, 358, 336, 326, 783, 1203, 2858, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2972, 1768, 4921, 1435, 2713, 1476, 5024, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 1203, 18, 5508, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; import "./InterfaceToken.sol"; /** * @title SimpleArtistContract */ contract SimpleArtistContract { using SafeMath for uint256; event Purchased(address indexed _funder, uint256 indexed _tokenId, uint256 _blocksPurchased, uint256 _totalValue); event PurchaseBlock(address indexed _funde...
* @dev Get the block hash the given block number @param _blocknumber the block to generate hash for/ Do not allow this to be called for hashes which aren't purchased
function getPurchasedBlockhash(uint256 _blocknumber) public view returns (bytes32 _tokenHash) { require(tokenIdOf(_blocknumber) != 0); uint256 tokenId = tokenIdOf(_blocknumber); return token.blockhashOf(tokenId); }
12,627,203
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 968, 326, 1203, 1651, 326, 864, 1203, 1300, 632, 891, 389, 2629, 2696, 326, 1203, 358, 2103, 1651, 364, 19, 2256, 486, 1699, 333, 358, 506, 2566, 364, 9869, 1492, 11526, 1404, 5405, 343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1689, 295, 343, 8905, 1768, 2816, 12, 11890, 5034, 389, 2629, 2696, 13, 1071, 1476, 1135, 261, 3890, 1578, 389, 2316, 2310, 13, 288, 203, 565, 2583, 12, 2316, 548, 951, 24899, 2629, 2696, 13, 480, 374, 1769, 203, 203, ...
./full_match/4/0xC2d0Ee71f7bd1406ef07B10C77c0A35FdB4B3Ee1/sources/localhost/token/ERC20/CleverToken.sol
* @dev Extension of {ERC20Capped, Ownable} At construction, the deployer of the contract is the only owner, which will be used to solely set the Protocol and then renounce, bricking any onlyOwner functions in this token/ Used for authentication of distribution
contract CleverToken is Ownable, ERC20Detailed("CLEVER", "CLVA", 18), MinterRole { using SafeMath for uint256; address public Protocol; event LogCycleDistribution(uint256 indexed cycle, uint256 newly_added_tokens); event LogProtocolSet(address Protocol); uint256 private fragsPerToken; ...
12,488,340
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 10021, 434, 288, 654, 39, 3462, 4664, 1845, 16, 14223, 6914, 97, 2380, 16171, 16, 326, 7286, 264, 434, 326, 6835, 353, 326, 1338, 3410, 16, 1492, 903, 506, 1399, 358, 3704, 2357, 444, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 6257, 502, 1345, 353, 14223, 6914, 16, 4232, 39, 3462, 40, 6372, 2932, 23181, 2204, 3113, 315, 5017, 27722, 3113, 6549, 3631, 490, 2761, 2996, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 377, 203, 565, 1758,...
pragma solidity >=0.4.22 <0.7.0; contract NumberGuessingGame { struct Result{ address guesser; uint guess; bool valid; } struct Guess{ bool guessed; } address public owner; uint public maxNumberOfGuesses; uint public numberOfGuesses; uint public prize; ...
linear index to guessed number mapping
mapping(uint => uint) guessMapping;
12,906,778
[ 1, 4625, 348, 7953, 560, 30, 225, 9103, 770, 358, 3058, 281, 730, 1300, 2874, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 516, 2254, 13, 7274, 3233, 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, -1...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; // interfaces import {IPerpetual} from "./IPerpetual.sol"; /// @author Log info about liquidaiton with two separate events (ony 3 parameters can be indexed) interface ILiquidation { /// @notice Log market liquidation event LiquidationCall( addres...
@author Log info about liquidaiton with two separate events (ony 3 parameters can be indexed)
interface ILiquidation { event LiquidationCall( address indexed market, address indexed liquidatee, address indexed liquidator, uint256 amount, uint256 timestamp ); function liquidate( uint256 amount, address account, IPerpetual perpetual ...
12,941,514
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 4161, 1827, 1123, 2973, 4501, 26595, 1540, 265, 598, 2795, 9004, 2641, 261, 6598, 890, 1472, 848, 506, 8808, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 48, 18988, 350, 367, 288, 203, 565, 871, 511, 18988, 350, 367, 1477, 12, 203, 3639, 1758, 8808, 13667, 16, 203, 3639, 1758, 8808, 4501, 26595, 340, 73, 16, 203, 3639, 1758, 8808, 4501, 26595, 639, 16, 203, 3639, 2254, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import './libraries/StakingPoolLogicV2.sol'; import './interface/IStakingPoolV2.sol'; import './token/StakedElyfiToken.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; /// @title Elyfi StakingPool ...
@notice Approval not supported
function approve(address spender, uint256 amount) public virtual override(ERC20) returns (bool) { spender; amount; revert(); }
1,237,144
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1716, 685, 1125, 486, 3260, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 6617, 537, 12, 2867, 17571, 264, 16, 2254, 5034, 3844, 13, 1071, 5024, 3849, 12, 654, 39, 3462, 13, 1135, 261, 6430, 13, 288, 203, 565, 17571, 264, 31, 203, 565, 3844, 31, 203, 565, 15226, 5621, 203, 225, 289, 203, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; /** * @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); /** * @dev Returns the amount of ...
Address of LP token contract.
address assetToken;
378,112
[ 1, 4625, 348, 7953, 560, 30, 225, 5267, 434, 511, 52, 1147, 6835, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1758, 3310, 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, -100,...
//SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./ICryptoMonks.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC115...
* @dev Contract module that helps prevent reentrant calls to a function. Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier available, which can be applied to functions to make sure there are no nested (reentrant) calls to them. Note that because there is a single `nonReentrant` guard, functions ma...
abstract contract ReentrancyGuard { uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; } constructor() { _status = _NOT_ENTERED; } modifier nonReentrant() { require(_status != _ENTERED, "ReentrancyGuard: reentrant call"...
26,768
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13456, 1605, 716, 21814, 5309, 283, 8230, 970, 4097, 358, 279, 445, 18, 25953, 310, 628, 1375, 426, 8230, 12514, 16709, 68, 903, 1221, 326, 288, 5836, 426, 8230, 970, 97, 9606, 2319, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 868, 8230, 12514, 16709, 288, 203, 203, 565, 2254, 5034, 3238, 5381, 389, 4400, 67, 12278, 2056, 273, 404, 31, 203, 565, 2254, 5034, 3238, 5381, 389, 12278, 2056, 273, 576, 31, 203, 203, 565, 2254, 5034, 3238, 389, 2...
pragma solidity >=0.5.0 <0.6.0; // solidity version contract ZombieFactory { event NewZombie(uint zombieId, string name, uint dna); // Events are a way for your contract to communicate that something happened on the blockchain to your app front-end, which can be 'listening' for certain events and take action...
Events are a way for your contract to communicate that something happened on the blockchain to your app front-end, which can be 'listening' for certain events and take action when they happen.
event NewZombie(uint zombieId, string name, uint dna);
12,808,837
[ 1, 4625, 348, 7953, 560, 30, 225, 9043, 854, 279, 4031, 364, 3433, 6835, 358, 15541, 716, 5943, 17497, 603, 326, 16766, 358, 3433, 595, 6641, 17, 409, 16, 1492, 848, 506, 296, 18085, 310, 11, 364, 8626, 2641, 471, 4862, 1301, 1347, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 871, 1166, 62, 16659, 1385, 12, 11890, 998, 16659, 1385, 548, 16, 533, 508, 16, 2254, 31702, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/5/0xd5f30AB7e693fc60333CE4A96b6E6C06a229B9d2/sources/project_/contracts/AbstractWasabiPool.sol
@inheritdoc IWasabiPool
function removeAdmin() external onlyOwner { admin = address(0); emit AdminChanged(address(0)); }
1,933,945
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 10093, 467, 14992, 21457, 2864, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1206, 4446, 1435, 3903, 1338, 5541, 288, 203, 3639, 3981, 273, 1758, 12, 20, 1769, 203, 3639, 3626, 7807, 5033, 12, 2867, 12, 20, 10019, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol"; import...
treasuryRewardBalance is the number of tokens awarded to the treasury address this is implemented this way so that the treasury address will be responsible for paying for the minting of rewards.
uint256 public treasuryRewardBalance;
445,585
[ 1, 4625, 348, 7953, 560, 30, 225, 9787, 345, 22498, 17631, 1060, 13937, 353, 326, 1300, 434, 2430, 279, 11804, 358, 326, 9787, 345, 22498, 1758, 333, 353, 8249, 333, 4031, 1427, 716, 326, 9787, 345, 22498, 1758, 903, 506, 14549, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 9787, 345, 22498, 17631, 1060, 13937, 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...
./full_match/5/0xF6c9A442128142aDfd32EbDa1dd3572eF1551F63/sources/src/Hats.sol
//*/ 1st storage slot 2nd slot 3rd+ slot (optional)
struct Hat { string details; string imageURI; } HATS STORAGE string public name; string public baseImageURI; CONSTRUCTOR
11,626,033
[ 1, 4625, 348, 7953, 560, 30, 368, 5549, 404, 334, 2502, 4694, 576, 4880, 4694, 890, 13623, 15, 4694, 261, 10444, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1958, 670, 270, 288, 203, 3639, 533, 3189, 31, 203, 3639, 533, 1316, 3098, 31, 203, 565, 289, 203, 203, 17311, 670, 17813, 2347, 15553, 203, 565, 533, 1071, 508, 31, 203, 203, 203, 565, 533, 1071, 1026, 2040, 3098, 31, 203...
pragma solidity ^0.5.0; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; ret...
airdrop got money transfer to eco[6]
if(poolBalance[2] > 0){ walletDetails[6].toWallet.transfer(poolBalance[2]); poolBalance[2] = poolBalance[2].sub(poolBalance[2]); }
2,501,618
[ 1, 4625, 348, 7953, 560, 30, 279, 6909, 1764, 2363, 15601, 7412, 358, 425, 2894, 63, 26, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 309, 12, 6011, 13937, 63, 22, 65, 405, 374, 15329, 203, 5411, 9230, 3790, 63, 26, 8009, 869, 16936, 18, 13866, 12, 6011, 13937, 63, 22, 19226, 203, 5411, 2845, 13937, 63, 22, 65, 273, 2845, 13937, 63, 22, 8009, 1717, 12, ...
//Address: 0x7367a68039d4704f30bfbf6d948020c3b07dfc59 //Contract name: Beercoin //Balance: 0 Ether //Verification Date: 1/12/2018 //Transacion Count: 226 // CODE STARTS HERE pragma solidity ^0.4.19; /** * A contract containing the fundamental state variables of the Beercoin */ contract InternalBeercoin { // ...
* The amount of caps that can still be produced/
function unproducedCaps() public view returns (uint64) { return producibleCaps; }
12,911,600
[ 1, 4625, 348, 7953, 560, 30, 380, 1021, 3844, 434, 15788, 716, 848, 4859, 506, 14929, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 640, 11776, 3263, 24193, 1435, 1071, 1476, 1135, 261, 11890, 1105, 13, 288, 203, 3639, 327, 4810, 71, 1523, 24193, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0x63e7d8F73B95511B9EeE2792b133F9B5587c959e/sources/PupeV2.sol
the total rewards before pupe goes to sleep
uint256 pepeDebt;
1,896,734
[ 1, 4625, 348, 7953, 560, 30, 225, 326, 2078, 283, 6397, 1865, 16284, 347, 13998, 358, 5329, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 2804, 347, 758, 23602, 31, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.5.0; import "../../common/SafeMath.sol"; import "./IProposal.sol"; import "../../verifiers/IProposalVerifier.sol"; import "../../governance/Proposal.sol"; /** * @dev A base for any proposal */ contract BaseProposal is IProposal { using SafeMath for uint256; string _name; string _desc...
* @dev A base for any proposal/ verifyProposalParams passes proposal parameters to a given verifier
contract BaseProposal is IProposal { using SafeMath for uint256; string _name; string _description; bytes32[] _options; uint256 _minVotes; uint256 _minAgreement; uint256[] _opinionScales; uint256 _start; uint256 _minEnd; uint256 _maxEnd; function verifyProposalParams(addr...
12,906,303
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 432, 1026, 364, 1281, 14708, 19, 3929, 14592, 1370, 11656, 14708, 1472, 358, 279, 864, 20130, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3360, 14592, 353, 467, 14592, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 533, 389, 529, 31, 203, 565, 533, 389, 3384, 31, 203, 565, 1731, 1578, 8526, 389, 2116, 31, 203, 203, 565, 2254, 5034, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/GSN/Conte...
* @notice Withdraw the entire balance for an account @param _output The address of the desired token to receive/
function withdrawAll( address _output ) external override { withdraw(balanceOf(msg.sender), _output); }
916,977
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 3423, 9446, 326, 7278, 11013, 364, 392, 2236, 632, 891, 389, 2844, 1021, 1758, 434, 326, 6049, 1147, 358, 6798, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1595, 12, 203, 3639, 1758, 389, 2844, 203, 565, 262, 203, 3639, 3903, 203, 3639, 3849, 203, 565, 288, 203, 3639, 598, 9446, 12, 12296, 951, 12, 3576, 18, 15330, 3631, 389, 2844, 1769, 203, 565, 289, 203, 20...
pragma solidity >=0.4.21 <0.7.0; contract Token { // Variable declaration address owner; string name; string symbol; uint256 coinSupply; // track the balance holders of our token mapping(address => uint256) public balance; constructor(string memory _name, string memory _symbol, uint256 _coinSupply) ...
This verifies the contract caller has appropiate Token fundsEstablishing transcation calling our event emitter Adjusting values
function transfer(address _to, uint256 _value) public returns (bool) { require (balance[msg.sender] > _value); address _from = msg.sender; owner = _to; emit Transfer(_from, _to, _value); balance[_from] = balance[_from] - _value; balance[_to] = balance[_to] + _value; return true; }
15,846,657
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 20761, 326, 6835, 4894, 711, 5145, 3840, 3155, 284, 19156, 9122, 23385, 310, 906, 71, 367, 4440, 3134, 871, 11520, 17720, 310, 924, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7412, 12, 2867, 389, 869, 16, 2254, 5034, 389, 1132, 13, 1071, 1135, 261, 6430, 13, 288, 203, 203, 565, 2583, 261, 12296, 63, 3576, 18, 15330, 65, 405, 389, 1132, 1769, 203, 203, 565, 1758, 389, 2080, 273, 1234, 18, ...
// ---------------------------------------------------------------------------- // Implementation of ERC20 Standard. Useful for testing // ---------------------------------------------------------------------------- contract DAI { string public _symbol; string public _name; uint8 public _decimals; uint ...
------------------------------------------------------------------------ Transfer the balance from token owner's account to to account - Owner's account must have sufficient balance to transfer - 0 value transfers are allowed ------------------------------------------------------------------------
function transfer(address _to, uint _num_tokens) public returns (bool success) { require(_num_tokens <= balances[msg.sender], "You are trying to transfer more tokens than you have"); balances[msg.sender] = balances[msg.sender] - _num_tokens; balances[_to] = balances[_to] + _num_tokens; ...
12,558,523
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 17082, 12279, 326, 11013, 628, 1147, 3410, 1807, 2236, 358, 358, 2236, 300, 16837, 1807, 2236, 1297, 1240, 18662, 11013, 358, 7412, 300, 374, 460, 29375, 854, 2935, 8879, 17082, 2, 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, 7412, 12, 2867, 389, 869, 16, 2254, 389, 2107, 67, 7860, 13, 1071, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 2583, 24899, 2107, 67, 7860, 1648, 324, 26488, 63, 3576, 18, 15330, 6487, 315, 6225, 854, 8374, 358, 7412, ...
./full_match/1/0x6444cC208FB4f9059813Ad795faD0c07dB8793a2/sources/src/Facets/MultichainFacet.sol
@notice Performs a swap before bridging via Multichain @param _bridgeData the core information needed for bridging @param _swapData an array of swap related data for performing swaps before bridging @param _multichainData data specific to Multichain
function swapAndStartBridgeTokensViaMultichain( ILiFi.BridgeData memory _bridgeData, LibSwap.SwapData[] calldata _swapData, MultichainData memory _multichainData ) external payable refundExcessNative(payable(msg.sender)) containsSourceSwaps(_bridgeData) ...
3,845,419
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 27391, 279, 7720, 1865, 324, 1691, 1998, 3970, 7778, 1354, 530, 632, 891, 389, 18337, 751, 326, 2922, 1779, 3577, 364, 324, 1691, 1998, 632, 891, 389, 22270, 751, 392, 526, 434, 7720, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7720, 1876, 1685, 13691, 5157, 21246, 5049, 1354, 530, 12, 203, 3639, 467, 28762, 42, 77, 18, 13691, 751, 3778, 389, 18337, 751, 16, 203, 3639, 10560, 12521, 18, 12521, 751, 8526, 745, 892, 389, 22270, 751, 16, 203, 363...
pragma solidity ^0.4.11; contract SafeMath { function safeMul(uint a, uint b) internal returns (uint) { uint c = a * b; assert(a == 0 || c / a == b); return c; } function safeSub(uint a, uint b) internal returns (uint) { assert(b <= a); return a - b; ...
tokens are released to the lender
releaseToLender();
6,415,423
[ 1, 4625, 348, 7953, 560, 30, 225, 2430, 854, 15976, 358, 326, 328, 2345, 540, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 1850, 3992, 774, 48, 2345, 5621, 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, ...
// SPDX-License-Identifier: GPL-3.0 // solhint-disable no-empty-blocks pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./XPower.sol"; import "./XPowerNftStaked.sol"; /** * Treasury to claim (MoE) tokens for staked XPowerNft(s). */ contract MoeTreasury is Ownable { /** (Burn...
* @return age seconds for given account and nft-id */
function _ageOf(address account, uint256 nftId) internal view returns (uint256) { }
5,507,265
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2463, 9388, 3974, 364, 864, 2236, 471, 290, 1222, 17, 350, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 410, 951, 12, 2867, 2236, 16, 2254, 5034, 290, 1222, 548, 13, 2713, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/11155111/0x945217B1bA47Ad0834e838ae173FB8B4B9135314/sources/src/RepoDriver.sol
@notice A Drips driver implementing repository-based account identification. Each repository stored in one of the supported forges has a deterministic account ID assigned. By default the repositories have no owner and their accounts can't be controlled by anybody, use `requestUpdateOwner` to update the owner.
contract RepoDriver is ERC677ReceiverInterface, DriverTransferUtils, Managed { using SafeERC20 for IERC20; using CBORChainlink for BufferChainlink.buffer; Drips public immutable drips; uint32 public immutable driverId; LinkTokenInterface public immutable linkToken; ShortString internal immutabl...
3,820,013
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 432, 463, 566, 1121, 3419, 19981, 3352, 17, 12261, 2236, 24739, 18, 8315, 3352, 4041, 316, 1245, 434, 326, 3260, 364, 2852, 711, 279, 25112, 2236, 1599, 6958, 18, 2525, 805, 326, 14531, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15118, 4668, 353, 4232, 39, 26, 4700, 12952, 1358, 16, 9396, 5912, 1989, 16, 10024, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450, 21262, 916, 3893, 1232, 364, 3525, 3893, 1232, 18,...
pragma solidity ^0.5.13; import "./interfaces/IRandom.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "../common/CalledByVm.sol"; import "../common/Initializable.sol"; import "../common/UsingPrecompiles.sol"; import "../common/in...
* @notice Sets the number of old random blocks whose randomness values can be queried. @param value Number of old random blocks whose randomness values can be queried./
function setRandomnessBlockRetentionWindow(uint256 value) public onlyOwner { require(value > 0, "randomnessBlockRetetionWindow cannot be zero"); randomnessBlockRetentionWindow = value; emit RandomnessBlockRetentionWindowSet(value); }
14,051,039
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 11511, 326, 1300, 434, 1592, 2744, 4398, 8272, 2744, 4496, 924, 848, 506, 23264, 18, 632, 891, 460, 3588, 434, 1592, 2744, 4398, 8272, 2744, 4496, 924, 848, 506, 23264, 18, 19, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 444, 8529, 4496, 1768, 14688, 3829, 12, 11890, 5034, 460, 13, 1071, 1338, 5541, 288, 203, 565, 2583, 12, 1132, 405, 374, 16, 315, 9188, 4496, 1768, 7055, 278, 285, 3829, 2780, 506, 3634, 8863, 203, 565, 2744, 4496, 1768...
./full_match/1/0xC0e0c13D3e1F657532a059c7124A27D8990Df1F2/sources/contracts/skullboys.sol
FreshDead 1-2months, age2 2-4months, LichCandidate 4-6months, Lich 6+months
enum ResStatus { FreshDead, Acolyte, LichCandidate, Lich }
4,922,168
[ 1, 4625, 348, 7953, 560, 30, 225, 478, 1955, 11852, 404, 17, 22, 27584, 16, 9388, 22, 576, 17, 24, 27584, 16, 511, 1354, 11910, 1059, 17, 26, 27584, 16, 511, 1354, 1666, 15, 27584, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2792, 1124, 1482, 288, 478, 1955, 11852, 16, 432, 1293, 28354, 16, 511, 1354, 11910, 16, 511, 1354, 289, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./partial_match/1/0x308613B7Cc35115DBfd44b0caBA7c9638EF4E6cC/sources/Ignite.sol
* @dev Moves `amount` of tokens from `sender` to `recipient`. This internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `...
function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender...
3,889,839
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 490, 10829, 1375, 8949, 68, 434, 2430, 628, 1375, 15330, 68, 358, 1375, 20367, 8338, 1220, 2713, 445, 353, 7680, 358, 288, 13866, 5779, 471, 848, 506, 1399, 358, 425, 18, 75, 18, 2348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 5793, 16, 203, 3639, 1758, 8027, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 5024, 288, 203, 3639, 2583, 12, 15330, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; contract LotteryContract { event TicketPurchase(address indexed player, uint256 amount); event TicketRefund(address indexed player, uint256 amount); event PickWinner(uint256 winnerIndex, address winner, uint256 amountWinner, uint256 amountAdmin); struc...
@dev Function to get the total amount of tickets refunded./
function getTotalTicketsRefunded() external view returns (uint256) { return totalTicketsRefunded; }
909,456
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 4284, 358, 336, 326, 2078, 3844, 434, 24475, 1278, 12254, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 12831, 6264, 2413, 1957, 12254, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 2078, 6264, 2413, 1957, 12254, 31, 203, 225, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/100/0x97D3b0F2bEa3e823Aed4243c87EE475f112AfeCA/sources/contracts/CoreBase.sol
* @notice Get condition by it's ID. @param conditionId the match or condition ID @return the condition struct/
function getCondition(uint256 conditionId) external view returns (Condition memory) { return conditions[conditionId]; }
14,276,994
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 968, 2269, 635, 518, 1807, 1599, 18, 632, 891, 225, 2269, 548, 326, 845, 578, 2269, 1599, 632, 2463, 326, 2269, 1958, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26659, 12, 11890, 5034, 2269, 548, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 3418, 3778, 13, 203, 565, 288, 203, 3639, 327, 4636, 63, 4175, 548, 15533, 203, 565, 289, 203, 203, 2, -100, -100, -100, -...
/** *Submitted for verification at Etherscan.io on 2022-03-24 */ /** *Submitted for verification at Etherscan.io on 2021-11-11 */ // SPDX-License-Identifier: UNLICENSED // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the...
Update reward variables of the given pool to be up-to-date.
function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0) { pool.lastRewardBlock = block.number;...
6,619,347
[ 1, 4625, 348, 7953, 560, 30, 225, 2315, 19890, 3152, 434, 326, 864, 2845, 358, 506, 731, 17, 869, 17, 712, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 2864, 12, 11890, 5034, 389, 6610, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 309, 261, 2629, 18, 2696, 1648, 2845, 18, 2722, 17631, 1060, 1768, 13, 288, 203, ...
./partial_match/1/0x1A963Df363D01EEBB2816b366d61C917F20e1EbE/sources/src/CErc20.sol
* @notice Sender redeems cTokens in exchange for the underlying asset @dev Accrues interest whether or not the operation succeeds, unless reverted @param redeemTokens The number of cTokens to redeem into underlying @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)/
function redeem(uint256 redeemTokens) external override returns (uint256) { redeemInternal(redeemTokens); return NO_ERROR; }
2,594,729
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 15044, 283, 323, 7424, 276, 5157, 316, 7829, 364, 326, 6808, 3310, 632, 5206, 15980, 86, 3610, 16513, 2856, 578, 486, 326, 1674, 21933, 16, 3308, 15226, 329, 632, 891, 283, 24903, 5157, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 283, 24903, 12, 11890, 5034, 283, 24903, 5157, 13, 203, 3639, 3903, 203, 3639, 3849, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 283, 24903, 3061, 12, 266, 24903, 5157, 1769, 203, 3639, 327, 3741, 6...
./partial_match/1/0xF30F83046245Ea5862346b0F2F41027791b27630/sources/UnderworldLycan.sol
The nested ifs save around 20+ gas over a compound boolean condition. Clear approvals from the previous owner. This is equivalent to `delete _tokenApprovals[tokenId]`.
function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if ...
15,504,550
[ 1, 4625, 348, 7953, 560, 30, 225, 1021, 4764, 309, 87, 1923, 6740, 4200, 15, 16189, 1879, 279, 11360, 1250, 2269, 18, 10121, 6617, 4524, 628, 326, 2416, 3410, 18, 1220, 353, 7680, 358, 1375, 3733, 389, 2316, 12053, 4524, 63, 2316, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 70, 321, 12, 11890, 5034, 1147, 548, 16, 1426, 23556, 1564, 13, 2713, 5024, 288, 203, 3639, 2254, 5034, 2807, 5460, 12565, 4420, 329, 273, 389, 2920, 329, 5460, 12565, 951, 12, 2316, 548, 1769, 203, 203, 3639, 1758...
/** *Submitted for verification at Etherscan.io on 2022-01-15 */ // SPDX-License-Identifier: unlicensed pragma solidity 0.8.4; // ---------------------------------------------------------------------------- // Safe maths // ---------------------------------------------------------------------------- contract SafeMath...
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Constru...
contract Musk is ERC20Interface, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; address public caAddy; constructor() { symbol = "ELON";...
2,139,264
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 407, 79, 353, 4232, 39, 3462, 1358, 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, 1283, 31, 203,...
./full_match/1/0x27937b729C113C3461d6069b02b9BBd1f18ab0A9/sources/contracts/CNPReborn.sol
bacause of Psi start with 0
{ grantRole(ADMIN, msg.sender); withdrawAddress = payable(ownerAddress); _setDefaultRoyalty(withdrawAddress, royaltyFee); _safeMint(msg.sender, 1); _burn(0); _birthWithSleeping(ownerAddress, ownerMintAmount); }
2,946,795
[ 1, 4625, 348, 7953, 560, 30, 225, 324, 1077, 1579, 434, 453, 7722, 787, 598, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 288, 203, 3639, 7936, 2996, 12, 15468, 16, 1234, 18, 15330, 1769, 203, 203, 3639, 598, 9446, 1887, 273, 8843, 429, 12, 8443, 1887, 1769, 203, 3639, 389, 542, 1868, 54, 13372, 15006, 12, 1918, 9446, 1887, 16, 721, 93, 15006, ...
// SPDX-License-Identifier: UNLICENSED // Banker Medium Risk // __ __ __ __ _____ __ __ // | |/ .---.-.-----| |--|__| | |_.-----.-----.--| |__.-----.-----. // | <| _ |__ --| | | | | -__| | _ | | | _ | // |__|\__|___._|_____|__|__|__| ...
@notice Sender borrows `amount` and transfers it to `to`. @return part Total part of the debt held by borrowers. @return share Total amount in shares borrowed.
function borrow(address to, uint256 amount) public solvent returns (uint256 part, uint256 share) { accrue(); (part, share) = _borrow(to, amount); }
5,355,353
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 15044, 324, 280, 3870, 1375, 8949, 68, 471, 29375, 518, 358, 1375, 869, 8338, 632, 2463, 1087, 10710, 1087, 434, 326, 18202, 88, 15770, 635, 29759, 414, 18, 632, 2463, 7433, 10710, 3844, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 29759, 12, 2867, 358, 16, 2254, 5034, 3844, 13, 203, 3639, 1071, 203, 3639, 3704, 616, 203, 3639, 1135, 261, 11890, 5034, 1087, 16, 2254, 5034, 7433, 13, 203, 565, 288, 203, 3639, 4078, 86, 344, 5621, 203, 3639, 261, ...
./full_match/1/0x41De0a913e8A10E0415B70810FEbCaF8a86Ea9BE/sources/contracts/Bueno1155Drop.sol
cannot edit a token larger than the current token ID revenue split cannot be changed once a token is minted
function updatePaymentSplitterSettingsByIndex( uint256 id, PaymentSplitterSettings calldata settings ) external onlyOwner { if (id >= _currentTokenId) { revert InvalidToken(); } if (_tokens[id].amountMinted > 0) { revert TokenSettingsLocked(); ...
3,109,808
[ 1, 4625, 348, 7953, 560, 30, 225, 2780, 3874, 279, 1147, 10974, 2353, 326, 783, 1147, 1599, 283, 24612, 1416, 2780, 506, 3550, 3647, 279, 1147, 353, 312, 474, 329, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 6032, 26738, 2628, 21268, 12, 203, 3639, 2254, 5034, 612, 16, 203, 3639, 12022, 26738, 2628, 745, 892, 1947, 203, 565, 262, 3903, 1338, 5541, 288, 203, 3639, 309, 261, 350, 1545, 389, 2972, 1345, 548, 13, 288, 203...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; pragma experimental ABIEncoderV2; contract BikeContract { uint256 private bikeCounter = 0; uint256 private ownerCounter = 0; uint256 private detailsCounter = 0; address private emptyAddress = 0x0000000000000000000000000000000000000000; // str...
struck ownerDetails
struct ownerDetails { uint256 ownerID; string name; string email; }
15,853,516
[ 1, 4625, 348, 7953, 560, 30, 225, 609, 9031, 3410, 3790, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1958, 3410, 3790, 288, 203, 3639, 2254, 5034, 3410, 734, 31, 203, 3639, 533, 508, 31, 203, 3639, 533, 2699, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: Apache 2.0 /* Copyright 2017-2019 RigoBlock, Rigo Investment Sagl, 2020 Rigo Intl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licen...
@dev Allows RigoBlock Dao to update the pools registry. @param newDragoRegistryAddress Address of new registry.
function setRegistry(address newDragoRegistryAddress) external override onlyRigoblockDao { dragoRegistryAddress = newDragoRegistryAddress; }
5,410,928
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 25619, 534, 17626, 1768, 463, 6033, 358, 1089, 326, 16000, 4023, 18, 632, 891, 394, 11728, 83, 4243, 1887, 5267, 434, 394, 4023, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 4243, 12, 2867, 394, 11728, 83, 4243, 1887, 13, 203, 3639, 3903, 203, 3639, 3849, 203, 3639, 1338, 54, 360, 947, 739, 11412, 203, 565, 288, 203, 3639, 8823, 83, 4243, 1887, 273, 394, 11728, 83, 4243, 1887, 31, 20...
./partial_match/1/0xa0b5B75241e8882e4B1b9DAd49E11691ba3d14fE/sources/PornVaultV1.sol
---- Function that adds pending rewards, called by the PORN token. ----
uint256 private pornBalance;
2,800,374
[ 1, 4625, 348, 7953, 560, 30, 225, 27927, 4284, 716, 4831, 4634, 283, 6397, 16, 2566, 635, 326, 453, 916, 50, 1147, 18, 27927, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 3238, 293, 14245, 13937, 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,...
// SPDX-License-Identifier: MIT pragma solidity ^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); /** * @dev Returns the amount of...
Withdraw tokensthis will make sure that user can only withdraw from his poolCannot withdraw more than pool's balance
function withdraw(uint256 _pid, uint256 _amount) public nonReentrant { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_msgSender()]; require(user.amount >= _amount, "Withdraw: User amount not enough"); require(pool.totalLp >= _amount, "Withdraw: Pool...
5,374,283
[ 1, 4625, 348, 7953, 560, 30, 225, 3423, 9446, 1147, 20244, 291, 903, 1221, 3071, 716, 729, 848, 1338, 598, 9446, 628, 18423, 2845, 4515, 598, 9446, 1898, 2353, 2845, 1807, 11013, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 12, 11890, 5034, 389, 6610, 16, 2254, 5034, 389, 8949, 13, 1071, 1661, 426, 8230, 970, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, 273, 16753, 63, ...
pragma solidity ^0.4.24; import "./WhiteMange.sol"; contract MulTransfer is WhiteMange{ /** * @dev constructor * @param _owner address : the contract owner */ constructor (address _owner) public { owner = _owner; whitelist_[msg.sender] = true; } modifier onlyWhite{ ...
* @dev Transfer the same token number to multiple addresses @param _amount uint256 : number of tokens @param _addresses uint256[] : recipient's address list/
function mulPaySame(uint256 _amount, address[] _addresses) onlyWhite public payable returns(bool) { for(uint256 i = 0; i < _addresses.length; i++){ _addresses[i].transfer(_amount); } return true; }
5,459,184
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 12279, 326, 1967, 1147, 1300, 358, 3229, 6138, 632, 891, 389, 8949, 1377, 2254, 5034, 282, 294, 1300, 434, 2430, 632, 891, 389, 13277, 282, 2254, 5034, 8526, 294, 8027, 1807, 1758, 666, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 14064, 9148, 8650, 12, 11890, 5034, 389, 8949, 16, 1758, 8526, 389, 13277, 13, 1338, 13407, 203, 3639, 1071, 203, 3639, 8843, 429, 203, 3639, 1135, 12, 6430, 13, 203, 565, 288, 203, 3639, 364, 12, 11890, 5034, 277, 273,...
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * ...
Ticket must have unique hash
function awardItem(address recipient, string memory hash, string memory uri, string memory name, uint256 tokenId) public returns (uint256) { require(hasRole(MINTER_ROLE, _msgSender()), "ERC721PresetMinterPauserAutoId: must have minter role to mint"); require(hashes[hash] != 1, "hash must be uni...
10,223,445
[ 1, 4625, 348, 7953, 560, 30, 225, 22023, 1297, 1240, 3089, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 279, 2913, 1180, 12, 2867, 8027, 16, 533, 3778, 1651, 16, 533, 3778, 2003, 16, 533, 3778, 508, 16, 2254, 5034, 1147, 548, 13, 1071, 203, 565, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2583, 12, 5332, 2996, 12, 6236,...
./full_match/4/0x376cfE58c65A30C4a7dd1B8aCa87d5E7e81Af04A/sources/gist-a670136ac46fbaf22bfa070b6f6b18d2/StakingPoolFactory.sol
* @notice address of staking token/
address public immutable stakingToken;
746,538
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1758, 434, 384, 6159, 1147, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 1071, 11732, 384, 6159, 1345, 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, ...
pragma solidity ^0.4.24; /// @title ERC-721 Non-Fungible Token Standard /// @dev See https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md /// Note: the ERC-165 identifier for this interface is 0x80ac58cd interface ERC721 /* is ERC165 */ { // /// @dev This emits when ownership of any NFT changes by any mec...
EVENTS */ @dev Transfer events fired whenever a scratch bought by someone DATA TYPES */ @dev Scratch struct time when this scratch be created time when this scratch be bought prize value of this scratch
struct Scratch { uint64 createTime; uint64 boughtTime; uint16 prizeValue; }
5,390,700
[ 1, 4625, 348, 7953, 560, 30, 225, 9964, 55, 1195, 632, 5206, 12279, 2641, 15950, 17334, 279, 15289, 800, 9540, 635, 18626, 8730, 3463, 55, 1195, 632, 5206, 2850, 86, 505, 1958, 813, 1347, 333, 15289, 506, 2522, 813, 1347, 333, 15289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 2850, 86, 505, 288, 203, 3639, 2254, 1105, 752, 950, 31, 203, 203, 3639, 2254, 1105, 800, 9540, 950, 31, 203, 203, 3639, 2254, 2313, 846, 554, 620, 31, 203, 203, 565, 289, 203, 203, 377, 203, 203, 203, 203, 2, -100...
pragma solidity ^0.4.19; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } ui...
@notice Open a new channel between `msg.sender` and `receiver`, and do an initial deposit to the channel. @param channelId Unique identifier of the channel to be created. @param receiver Receiver of the funds, counter-party of `msg.sender`. @param settlingPeriod Number of blocks to wait for receiver to `claim` her fun...
function open(bytes32 channelId, address receiver, uint32 settlingPeriod) public payable { require(isAbsent(channelId)); channels[channelId] = PaymentChannel({ sender: msg.sender, receiver: receiver, value: msg.value, settlingPeriod: settlingPeriod, ...
7,780,599
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 3502, 279, 394, 1904, 3086, 1375, 3576, 18, 15330, 68, 471, 1375, 24454, 9191, 471, 741, 392, 2172, 443, 1724, 358, 326, 1904, 18, 632, 891, 27709, 14584, 2756, 434, 326, 1904, 358, 506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1696, 12, 3890, 1578, 27709, 16, 1758, 5971, 16, 2254, 1578, 26319, 2456, 5027, 13, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 291, 14009, 12, 4327, 548, 10019, 203, 203, 3639, 5750, 63, 4327, 548, 65, 273, 12022, 2909,...
pragma solidity ^0.4.22; import "./zeppelin-solidity/contracts/math/SafeMath.sol"; import "./OttolottoToken.sol"; /** * @title Ottolotto Distributed Autonomus Organization rules contract. * @dev The OttolottoDao contract contain all DAO rules and proposals, * functions for creating, modifying and deleting proposals....
Writing to log info that proposal is activated.
emit ProposalActivated(proposal, now);
5,457,853
[ 1, 4625, 348, 7953, 560, 30, 225, 10423, 310, 358, 613, 1123, 716, 14708, 353, 14892, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3626, 19945, 28724, 12, 685, 8016, 16, 2037, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/71401/0x47948654959E54bA2dCAcE556fF844631425cb11/sources/contracts/lib/ABDKMath64x64.sol
* Calculate 1 / x rounding towards zero. Revert on overflow or when x is zero. @param x signed 64.64-bit fixed point number @return signed 64.64-bit fixed point number/
function inv(int128 x) internal pure returns (int128) { unchecked { require(x != 0); int256 result = int256(0x100000000000000000000000000000000) / x; require(result >= MIN_64x64 && result <= MAX_64x64); return int128(result); } }
7,100,752
[ 1, 4625, 348, 7953, 560, 30, 380, 9029, 404, 342, 619, 13885, 23248, 3634, 18, 225, 868, 1097, 603, 9391, 578, 1347, 619, 353, 3634, 18, 632, 891, 619, 6726, 5178, 18, 1105, 17, 3682, 5499, 1634, 1300, 632, 2463, 6726, 5178, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 2198, 12, 474, 10392, 619, 13, 2713, 16618, 1135, 261, 474, 10392, 13, 288, 203, 565, 22893, 288, 203, 1377, 2583, 12, 92, 480, 374, 1769, 203, 1377, 509, 5034, 563, 273, 509, 5034, 12, 20, 92, 21, 12648, 12648, 12648...
/* ____ __ __ __ _ / __/__ __ ___ / /_ / / ___ / /_ (_)__ __ _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ / /___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\ /___/ * Synthetix: YUANRewards.sol * * Docs: https://docs.synthetix.io/ * * * MIT License * =========== * * Copyright (c) 2020 Syn...
* @dev Collection of functions related to the address type/
library Address { } function isContract(address account) internal view returns (bool) { bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; assembly { codehash := extcodehash(account) } retur...
131,920
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2200, 434, 4186, 3746, 358, 326, 1758, 618, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 5267, 288, 203, 97, 203, 203, 565, 445, 353, 8924, 12, 2867, 2236, 13, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 203, 3639, 1731, 1578, 981, 2816, 31, 203, 203, 203, 5411, 1731, 1578, 2236, 2310, 203, 540, 273, 374, 651...
./full_match/8453/0xb65b019982aca61AC84144cc577d52B7E2155BAb/sources/contracts/base/PotPool.sol
swap delete last element
function removeRewardToken(address rt) public onlyGovernanceOrRewardDistribution { uint256 i = getRewardTokenIndex(rt); require(i != uint256(-1), "Reward token does not exists"); require(periodFinishForToken[rewardTokens[i]] < block.timestamp, "Can only remove when the reward period has passed"); ...
11,538,850
[ 1, 4625, 348, 7953, 560, 30, 225, 7720, 1430, 1142, 930, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1206, 17631, 1060, 1345, 12, 2867, 8253, 13, 1071, 1338, 43, 1643, 82, 1359, 1162, 17631, 1060, 9003, 288, 203, 1377, 2254, 5034, 277, 273, 4170, 359, 1060, 1345, 1016, 12, 3797, 1769, 203, 1377, 2583, 12, 77, 480, 2254...
pragma solidity ^0.5.0; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/utils/Address.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "./DLL.sol"; import "./PublisherSubscription.sol"; /// @title Publisher smart contract /// It Manages p...
Validate if an address belong to a Contract account
modifier isContract(address _addr) { require(_addr.isContract()); _; }
886,682
[ 1, 4625, 348, 7953, 560, 30, 225, 3554, 309, 392, 1758, 10957, 358, 279, 13456, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 353, 8924, 12, 2867, 389, 4793, 13, 288, 203, 3639, 2583, 24899, 4793, 18, 291, 8924, 10663, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0xe2A4A5747519426302cee926f23fe69735d26998/sources/contracts/1.sol
approve token transfer to cover all possible scenarios add the liquiditytransfer back rest token
function _addLiquidity(uint256 tokenAmount, uint256 ethAmount ,address token_owner) private { _approve(address(this), address(uniswapV2Router), tokenAmount); address(this), tokenAmount, address(this), block.timestamp ); lptoken[token_owner] = lptok...
17,024,867
[ 1, 4625, 348, 7953, 560, 30, 225, 6617, 537, 1147, 7412, 358, 5590, 777, 3323, 22456, 527, 326, 4501, 372, 24237, 13866, 1473, 3127, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1289, 48, 18988, 24237, 12, 11890, 5034, 1147, 6275, 16, 2254, 5034, 13750, 6275, 269, 2867, 1147, 67, 8443, 13, 3238, 225, 288, 203, 3639, 389, 12908, 537, 12, 2867, 12, 2211, 3631, 1758, 12, 318, 291, 91, 438, ...
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @...
MasterChef is the master of Sushi. He can make Sushi and he is a fair guy. Note that it's ownable and the owner wields tremendous power. The ownership will be transferred to a governance smart contract once SUSHI is sufficiently distributed and the community can show to govern itself. Have fun reading it. Hopefully it...
contract MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; struct UserInfo { } struct PoolInfo { } uint256 public immutable expMultiplier; event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user,...
10,850,182
[ 1, 4625, 348, 7953, 560, 30, 225, 13453, 39, 580, 74, 353, 326, 4171, 434, 348, 1218, 77, 18, 8264, 848, 1221, 348, 1218, 77, 471, 3904, 353, 279, 284, 1826, 3058, 93, 18, 3609, 716, 518, 1807, 4953, 429, 471, 326, 3410, 341, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13453, 39, 580, 74, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 203, 565, 1958, 25003, 288, 203, 565, 289, 203, 2...
// Sources flattened with hardhat v2.8.4 https://hardhat.org // File @rari-capital/solmate/src/auth/Auth.sol@v6.2.0 // SPDX-License-Identifier: GNU AGPLv3 pragma solidity >=0.8.0; /// @notice Provides a flexible and updatable auth pattern which is completely separate from application logic. /// @author Solmate (https...
Set strategy holdings to our new total.
totalStrategyHoldings = newTotalStrategyHoldings;
314,922
[ 1, 4625, 348, 7953, 560, 30, 225, 1000, 6252, 6887, 899, 358, 3134, 394, 2078, 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...
[ 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, 3639, 2078, 4525, 20586, 899, 273, 394, 5269, 4525, 20586, 899, 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, ...
//Address: 0x39516d09c13745edb781e9a0e1479990dd7dc32c //Contract name: BTCRelay //Balance: 0 Ether //Verification Date: 2/8/2018 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.18; contract BTCRelay { bool initialized = false; struct Header { uint32 version; bytes32 prevBlock; bytes...
Maps block hashes to headers
mapping(bytes32 => Header) public blockHeaders;
905,005
[ 1, 4625, 348, 7953, 560, 30, 225, 19837, 1203, 9869, 358, 1607, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2874, 12, 3890, 1578, 516, 4304, 13, 1071, 1203, 3121, 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, -10...
./partial_match/1/0x457cD63bee88ac01f3cD4a67D5DCc921D8C0D573/sources/contracts/structs/JBDidRedeemData.sol
@custom:member holder The holder of the tokens being redeemed. @custom:member projectId The ID of the project with which the redeemed tokens are associated. @custom:member currentFundingCycleConfiguration The configuration of the funding cycle during which the redemption is being made. @custom:member projectTokenCount...
struct JBDidRedeemData { address holder; uint256 projectId; uint256 currentFundingCycleConfiguration; uint256 projectTokenCount; JBTokenAmount reclaimedAmount; JBTokenAmount forwardedAmount; address payable beneficiary; string memo; bytes metadata; pragma solidity ^0.8.0; import {JBTokenAmount} from '...
4,264,622
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 3662, 30, 5990, 10438, 1021, 10438, 434, 326, 2430, 3832, 283, 24903, 329, 18, 632, 3662, 30, 5990, 9882, 1021, 1599, 434, 326, 1984, 598, 1492, 326, 283, 24903, 329, 2430, 854, 3627, 18, 632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 1697, 804, 18096, 350, 426, 24903, 751, 288, 203, 225, 1758, 10438, 31, 203, 225, 2254, 5034, 9882, 31, 203, 225, 2254, 5034, 783, 42, 14351, 13279, 1750, 31, 203, 225, 2254, 5034, 1984, 1345, 1380, 31, 203, 225, 804, 38, 1345, ...
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.7.0; pragma abicoder v2; import "./TradingAction.sol"; import "./ActionGuards.sol"; import "./nTokenMintAction.sol"; import "./nTokenRedeemAction.sol"; import "../SettleAssetsExternal.sol"; import "../FreeCollateralExternal.sol"; import "../../math/SafeInt256...
* @notice If a token is redeemable to underlying will redeem it and transfer the underlying balance to the account @param assetToken asset token to redeem @param currencyId the currency id of the token @param account account to transfer the underlying to @param assetAmountExternal the amount to transfer in asset token ...
function redeem( Token memory assetToken, uint256 currencyId, address account, uint256 assetAmountExternal ) internal returns (int256) { uint256 transferAmount; if (assetToken.tokenType == TokenType.cETH) { transferAmount = CompoundHandler.redeemCETH(a...
12,642
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 971, 279, 1147, 353, 283, 24903, 429, 358, 6808, 903, 283, 24903, 518, 471, 7412, 326, 6808, 11013, 358, 326, 2236, 632, 891, 3310, 1345, 3310, 1147, 358, 283, 24903, 632, 891, 5462, 548...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 283, 24903, 12, 203, 3639, 3155, 3778, 3310, 1345, 16, 203, 3639, 2254, 5034, 5462, 548, 16, 203, 3639, 1758, 2236, 16, 203, 3639, 2254, 5034, 3310, 6275, 6841, 203, 565, 262, 2713, 1135, 261, 474, 5034, 13, 288, 203, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "./interfaces/MReserve.sol"; import "./MixinContractRegistry.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; abstract contract MixinReserve is MixinContractRegistry, MReserve { using SafeMath for uint256; struct Reserve { u...
* @dev Adds funds to a reserve @param _reserveHolder Address of reserve holder @param _amount Amount of funds to add to reserve/
function addReserve(address _reserveHolder, uint256 _amount) internal override { reserves[_reserveHolder].funds = reserves[_reserveHolder].funds.add(_amount); emit ReserveFunded(_reserveHolder, _amount); }
948,327
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 15605, 284, 19156, 358, 279, 20501, 632, 891, 389, 455, 6527, 6064, 5267, 434, 20501, 10438, 632, 891, 389, 8949, 16811, 434, 284, 19156, 358, 527, 358, 20501, 19, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 607, 6527, 12, 2867, 389, 455, 6527, 6064, 16, 2254, 5034, 389, 8949, 13, 2713, 3849, 288, 203, 3639, 400, 264, 3324, 63, 67, 455, 6527, 6064, 8009, 74, 19156, 273, 400, 264, 3324, 63, 67, 455, 6527, 6064, 8009, ...
/* ███████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗███████╗ ██╔════╝██╔═══██╗╚██╗██╔╝ ██╔════╝ ██╔══██╗████╗ ████║██╔════╝ █████╗ ██║ ██║ ╚███╔╝ ██║ ███╗███████║██╔████╔██║█████╗ ██╔══╝ ██║ ██║ ██╔██╗ ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝ ██║ ╚██████╔╝██╔╝ ██╗ ╚██████╔╝██║ ██║██║ ╚═╝...
* ERC720 token URI interface. Generates a base64 encoded metadata response without referencing off-chain content. @param tokenId the ID of the token to generate the metadata for @return a base64 encoded JSON dictionary of the token's metadata and SVG/
function tokenURI(uint16 tokenId) external view override returns (string memory) { IFoxGameNFT.Traits memory traits = foxNFT.getTraits(tokenId); string memory metadata = string(abi.encodePacked( '{"name": "', _players[uint8(traits.kind)], " #", uint256(tokenId).toString(), '", "description": "The...
1,272,986
[ 1, 4625, 348, 7953, 560, 30, 380, 4232, 39, 27, 3462, 1147, 3699, 1560, 18, 31902, 279, 1026, 1105, 3749, 1982, 766, 2887, 24509, 3397, 17, 5639, 913, 18, 632, 891, 1147, 548, 326, 1599, 434, 326, 1147, 358, 2103, 326, 1982, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 225, 445, 1147, 3098, 12, 11890, 2313, 1147, 548, 13, 3903, 1476, 3849, 1135, 261, 1080, 3778, 13, 288, 203, 565, 11083, 2409, 12496, 50, 4464, 18, 30370, 3778, 18370, 273, 284, 2409, 50, 4464, 18, 588, 30370, 12, 2316, 548, 1769...
pragma solidity ^0.5.9; /** * Math operations with safety checks */ library SafeMath { function safeAdd(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function safeSub(uint256 ...
* Math operations with safety checks/
library SafeMath { function safeAdd(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function safeSub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: su...
12,882,716
[ 1, 4625, 348, 7953, 560, 30, 380, 2361, 5295, 598, 24179, 4271, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 14060, 10477, 288, 203, 203, 565, 445, 4183, 986, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 276, 273, 279, 397, 324, 31, 203, 3639, 2583, 12, 71, ...
pragma solidity ^0.8.4; contract PayoutEth { /** * @dev Maps each address to its current total earned amount (tea). */ mapping(address => uint256) public teaMap; /** * @dev The contract owner */ address public owner; constructor () { owner = msg.sender; } receive...
* @dev Pays out the earned amount for multiple addresses. The payment amount for each address is equal to the difference of the provided new tea in the parameter and the currently stored value in the teaMap. After calculating the payment amount, the value of the account in the teaMap is updated with the new tea. @param...
function batchPayout(address payable[] memory _devs, uint256[] memory _teas) public onlyOwner() { require(_devs.length == _teas.length, "Arrays must have same length."); for (uint256 i = 0; i < _devs.length; i++) { address payable dev = _devs[i]; uint256 oldTea = teaMap[dev];...
7,222,895
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 453, 8271, 596, 326, 425, 1303, 329, 3844, 364, 3229, 6138, 18, 1021, 5184, 3844, 364, 1517, 1758, 353, 3959, 358, 326, 7114, 434, 326, 2112, 394, 6489, 69, 316, 326, 1569, 471, 326, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 2581, 52, 2012, 12, 2867, 8843, 429, 8526, 3778, 389, 5206, 87, 16, 2254, 5034, 8526, 3778, 389, 736, 345, 13, 1071, 1338, 5541, 1435, 288, 203, 3639, 2583, 24899, 5206, 87, 18, 2469, 422, 389, 736, 345, 18, 2469, 16,...
./full_match/1/0x105614a576991D40F6C01c798317f24c40ED5EBC/sources/contracts/DogeX.sol
if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers on sell on buy
function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(!blacklisted[from], "Sender blacklist...
2,914,458
[ 1, 4625, 348, 7953, 560, 30, 225, 309, 1281, 2236, 11081, 358, 389, 291, 16461, 1265, 14667, 2236, 1508, 1206, 326, 14036, 1338, 4862, 1656, 281, 603, 25666, 1900, 19, 87, 1165, 87, 16, 741, 486, 4862, 603, 9230, 29375, 603, 357, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 3849, 288, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; contract crowdfunding{ enum Category{ DESIGNANDTECH, FILM, ARTS, GAMES } enum RefundPolicy{ REFUNDABLE, NONREFUNDABLE } // Structure of each project in our dApp struct Project{ ...
Checks if an index is a valid index in projects array
modifier validIndex(uint256 _index) { require(_index < projects.length, "Invalid Project Id"); _; }
7,275,643
[ 1, 4625, 348, 7953, 560, 30, 225, 13074, 309, 392, 770, 353, 279, 923, 770, 316, 10137, 526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9606, 923, 1016, 12, 11890, 5034, 389, 1615, 13, 288, 203, 3639, 2583, 24899, 1615, 411, 10137, 18, 2469, 16, 315, 1941, 5420, 3124, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x5D7661F6fD9b65162bfE08D2Fb80fb7c8B416391/sources/CP.sol
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract CP is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; constructor() public { symbol = "CP"; name ...
9,216,732
[ 1, 4625, 348, 7953, 560, 30, 225, 8879, 13849, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 5181, 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, 1283, ...
/** *Submitted for verification at Etherscan.io on 2022-04-20 */ // Sources flattened with hardhat v2.9.3 https://hardhat.org // File @openzeppelin/contracts-upgradeable/utils/introspection/[email protected] // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma s...
This variable should never be directly accessed by users of the library: interactions must be restricted to the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add this feature: see https:github.com/ethereum/solidity/issues/4637
function _authorizeUpgrade(address newImplementation) internal virtual; uint256[50] private __gap; } struct Counter { }
6,592,293
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 2190, 1410, 5903, 506, 5122, 15539, 635, 3677, 434, 326, 5313, 30, 23877, 1297, 506, 15693, 358, 326, 5313, 1807, 445, 18, 2970, 434, 348, 7953, 560, 331, 20, 18, 25, 18, 22, 16, 333, 2780, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22488, 10784, 12, 2867, 394, 13621, 13, 2713, 5024, 31, 203, 203, 565, 2254, 5034, 63, 3361, 65, 3238, 1001, 14048, 31, 203, 97, 203, 203, 203, 203, 203, 203, 203, 203, 565, 1958, 9354, 288, 203, 565, 289, 203, ...
pragma solidity ^0.8.4; import "./IUniftyGovernanceConsumer.sol"; import "./IERC20Simple.sol"; import "./IERC20Mintable.sol"; /* ################################ # # UniftyGovernance # # Contract to propose and vote on community decisions. # Distributes proposed grants as UNT to accept...
timestamp from which the user is allowed to unstake
uint256 unstakableFrom;
1,762,125
[ 1, 4625, 348, 7953, 560, 30, 225, 2858, 628, 1492, 326, 729, 353, 2935, 358, 640, 334, 911, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 640, 334, 581, 429, 1265, 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, -...
/* ⚠⚠⚠ WARNING WARNING WARNING ⚠⚠⚠ This is a TARGET contract - DO NOT CONNECT TO IT DIRECTLY IN YOUR CONTRACTS or DAPPS! This contract has an associated PROXY that MUST be used for all integrations - this TARGET will be REPLACED in an upcoming Synthetix release! The proxy for this contract can be found here: https:...
Retrieve user's last fee claim by periodId
uint lastFeeWithdrawal = getLastFeeWithdrawal(account);
1,391,334
[ 1, 4625, 348, 7953, 560, 30, 225, 10708, 729, 1807, 1142, 14036, 7516, 635, 3879, 548, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 2254, 1142, 14667, 1190, 9446, 287, 273, 7595, 14667, 1190, 9446, 287, 12, 4631, 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, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; /* ___ _ _ | _ )_ _ _ _ _ _ _ _ | | | | | _ \ || | ' \| ' \ || | |_| |_| |___/\_,_|_||_|_||_\_, | (_) (_) |__/ * * MIT License * =========== * * Copyright (c) 2020 BunnyFinance...
insufficient ETH !!!! handover BNB debt
IBankBNB(bankBNB).handOverDebtToTreasury(lp, account);
11,941,385
[ 1, 4625, 348, 7953, 560, 30, 225, 2763, 11339, 512, 2455, 401, 25885, 948, 1643, 605, 20626, 18202, 88, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5411, 467, 16040, 15388, 38, 12, 10546, 15388, 38, 2934, 2349, 4851, 758, 23602, 774, 56, 266, 345, 22498, 12, 9953, 16, 2236, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: GPL-3.0 /* This file is part of the Enzyme Protocol. (c) Enzyme Council <[email protected]> For the full license information, please view the LICENSE file that was distributed with this source code. */ pragma solidity 0.6.12; import "@openzeppelin/contracts/token/ERC20/E...
@notice Settles the fee and calculates shares due @param _comptrollerProxy The ComptrollerProxy of the fund @param _vaultProxy The VaultProxy of the fund @param _gav The GAV of the fund @return settlementType_ The type of settlement @return (unused) The payer of shares due @return sharesDue_ The amount of shares due S...
function settle( address _comptrollerProxy, address _vaultProxy, IFeeManager.FeeHook, bytes calldata, uint256 _gav ) external override onlyFeeManager returns ( IFeeManager.SettlementType settlementType_, address, ...
1,697,182
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 1000, 88, 1040, 326, 14036, 471, 17264, 24123, 6541, 632, 891, 389, 832, 337, 1539, 3886, 1021, 1286, 337, 1539, 3886, 434, 326, 284, 1074, 632, 891, 389, 26983, 3886, 1021, 17329, 3886, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 444, 5929, 12, 203, 3639, 1758, 389, 832, 337, 1539, 3886, 16, 203, 3639, 1758, 389, 26983, 3886, 16, 203, 3639, 11083, 1340, 1318, 18, 14667, 5394, 16, 203, 3639, 1731, 745, 892, 16, 203, 3639, 2254, 5034, 389, 75, 8...
pragma solidity ^0.5.0; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is ...
id => (owner => balance) owner => (operator => approved)
{ using SafeMath for uint256; using Address for address; mapping (uint256 => mapping(address => uint256)) internal balances; mapping (address => mapping(address => bool)) internal operatorApproval; bytes4(keccak256('supportsInterface(bytes4)')); bytes4 constant private INTERFACE_SIGNATUR...
11,904,192
[ 1, 4625, 348, 7953, 560, 30, 225, 612, 516, 261, 8443, 516, 11013, 13, 3410, 516, 261, 9497, 516, 20412, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 565, 2874, 261, 11890, 5034, 516, 2874, 12, 2867, 516, 2254, 5034, 3719, 2713, 324, 26488, 31, 203, 203, 565, 2874, 261, 2867, ...
./full_match/1/0x9bfBD7CaDbF2AD0980eb04D6769E766c22E801CA/sources/src/ProtectionPlan.sol
* @dev transfers an amount of ERC20 to a recipient and the webacy vault if the amount param is zero, it attempts to transfer the entire balance @param contractAddress the ERC20 contract @param recipient the transfer to address @param tokenId the token to transfer/
function _transferERC721(address contractAddress, address recipient, uint256 tokenId) private returns (bool) { (bool success,) = contractAddress.call( abi.encodeWithSignature("safeTransferFrom(address,address,uint256)", member, recipient, tokenId) ); return success; }
16,469,015
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 29375, 392, 3844, 434, 4232, 39, 3462, 358, 279, 8027, 471, 326, 3311, 3505, 9229, 1377, 309, 326, 3844, 579, 353, 3634, 16, 518, 7531, 358, 7412, 326, 7278, 11013, 632, 891, 6835, 1887, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 654, 39, 27, 5340, 12, 2867, 6835, 1887, 16, 1758, 8027, 16, 2254, 5034, 1147, 548, 13, 3238, 1135, 261, 6430, 13, 288, 203, 3639, 261, 6430, 2216, 16, 13, 273, 6835, 1887, 18, 1991, 12, 203, 5411, 24126, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/security/Pausable.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import 'hardhat/console.sol'; contract ContractA is Ownable, Pausable { event E1(address indexed c...
caller is the owner caller is the non-owner
function f1(uint256[] memory numArr) external whenNotPaused { require(numArr.length > 0, "array length must be non-zero"); if (_msgSender() == owner()) { for(uint256 i = 0; i < numArr.length; ++i) { emit E1(_msgSender(), numArr[i], block.timestamp); } } else { for(uint256 i = 0; i < numArr.len...
12,743,618
[ 1, 4625, 348, 7953, 560, 30, 225, 4894, 353, 326, 3410, 4894, 353, 326, 1661, 17, 8443, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 284, 21, 12, 11890, 5034, 8526, 3778, 818, 5715, 13, 3903, 1347, 1248, 28590, 288, 203, 202, 202, 6528, 12, 2107, 5715, 18, 2469, 405, 374, 16, 315, 1126, 769, 1297, 506, 1661, 17, 7124, 8863, 203, 203, 202, 202, 430,...
// SPDX-License-Identifier: MIT pragma solidity >0.7.5; pragma experimental ABIEncoderV2; import "./interfaces/iL2LiquidityPool.sol"; import "../libraries/CrossDomainEnabledFast.sol"; /* External Imports */ import '@openzeppelin/contracts/utils/math/SafeMath.sol'; import '@openzeppelin/contracts/token/ERC20/utils/Saf...
* Users withdraw token from LP @param _amount amount to withdraw @param _tokenAddress L1 token address @param _to receiver to get the funds/ Update accUserRewardPerShare calculate all the rewards and set it as pending rewards Update the user data update reward debt update total user deposit amount
function withdrawLiquidity( uint256 _amount, address _tokenAddress, address payable _to ) external whenNotPaused { PoolInfo storage pool = poolInfo[_tokenAddress]; UserInfo storage user = userInfo[_tokenAddress][msg.sender]; require(pool.l2Tok...
10,395,208
[ 1, 4625, 348, 7953, 560, 30, 380, 12109, 598, 9446, 1147, 628, 511, 52, 632, 891, 389, 8949, 3844, 358, 598, 9446, 632, 891, 389, 2316, 1887, 511, 21, 1147, 1758, 632, 891, 389, 869, 5971, 358, 336, 326, 284, 19156, 19, 2315, 4078...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 598, 9446, 48, 18988, 24237, 12, 203, 3639, 2254, 5034, 389, 8949, 16, 203, 3639, 1758, 389, 2316, 1887, 16, 203, 3639, 1758, 8843, 429, 389, 869, 203, 565, 262, 203, 3639, 3903, 203, 3639, 1347, 1248, 28590, 203, 565, ...
./full_match/4/0x93CdB2969381519f93894d896050cE2beB70c8b6/sources/Sora.sol
Reserves pre-sale slots for the addresses. Won't have overflow. Already checked via safe math above.
function reserveForPreSale(address[] memory _addresses, uint _numPerAddress) public onlyOwner { uint numNeeded = _numPerAddress.mul(_addresses.length); require(numPreSaleReservations.add(numNeeded) <= MAX_TOKENS, "Not enough slots."); for (uint i = 0; i < _addresses.length; i++) { ...
12,518,006
[ 1, 4625, 348, 7953, 560, 30, 225, 1124, 264, 3324, 675, 17, 87, 5349, 12169, 364, 326, 6138, 18, 678, 265, 1404, 1240, 9391, 18, 17009, 5950, 3970, 4183, 4233, 5721, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 20501, 1290, 1386, 30746, 12, 2867, 8526, 3778, 389, 13277, 16, 2254, 389, 2107, 2173, 1887, 13, 1071, 1338, 5541, 288, 203, 3639, 2254, 818, 11449, 273, 389, 2107, 2173, 1887, 18, 16411, 24899, 13277, 18, 2469, 1769, 203...