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
./full_match/1/0xDF4c0fcBA2eD81346F06D57bCD80240f77893f5F/sources/contracts/generalIndexModule.sol
* @title IPriceOracle @author Cook Finance Interface for interacting with PriceOracle/
interface IPriceOracle { function getPrice(address _assetOne, address _assetTwo) external view returns (uint256); function masterQuoteAsset() external view returns (address); Copyright 2021 Cook Finance. }
9,637,965
[ 1, 2579, 3057, 23601, 225, 385, 1184, 9458, 1359, 6682, 364, 16592, 310, 598, 20137, 23601, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2971, 3057, 23601, 288, 203, 203, 203, 565, 445, 25930, 12, 2867, 389, 9406, 3335, 16, 1758, 389, 9406, 11710, 13, 3903, 1476, 1135, 261, 11890, 5034, 1769, 203, 565, 445, 4171, 10257, 6672, 1435, 3903, 1476, 1135, 261, 2867,...
pragma solidity 0.6.12; import '@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol'; import '@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol'; import '@pancakeswap/pancake-swap-lib/contracts/token/BEP20/SafeBEP20.sol'; import '@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol'; import "...
* @dev Returns the bep token owner./
function getOwner() external override view returns (address) { return owner(); }
250,528
[ 1, 1356, 326, 506, 84, 1147, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 13782, 1435, 3903, 3849, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 3410, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
Set the symbol for display purposes (InfinitiEstate)
symbol = "INF";
173,711
[ 1, 694, 326, 3273, 364, 2562, 13694, 261, 382, 926, 305, 77, 41, 2019, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3273, 273, 315, 19212, 14432, 4766, 2868, 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, -1...
pragma solidity 0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that revert on error */ library SafeMath { /** * @dev Subtracts uint16 two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend). */ function sub16(uint16 _a, uint16 _b) internal pure returns (uint16) { ...
* @title SafeMath @dev Math operations with safety checks that revert on error/
library SafeMath { function sub16(uint16 _a, uint16 _b) internal pure returns (uint16) { require(_b <= _a, 'Sub operation underflowed!'); uint16 c = _a - _b; return c; } function add16(uint16 _a, uint16 _b) internal pure returns (uint16) { uint16 c = _a + _b; require(c >= _a, 'Add operation overflowed!')...
14,016,385
[ 1, 9890, 10477, 225, 2361, 5295, 598, 24179, 4271, 716, 15226, 603, 555, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 14060, 10477, 288, 203, 202, 915, 720, 2313, 12, 11890, 2313, 389, 69, 16, 2254, 2313, 389, 70, 13, 2713, 16618, 1135, 261, 11890, 2313, 13, 288, 203, 202, 202, 6528, 24899, 70, 1648, 389, 69, 16, 296, 1676, 1674, 3613, ...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
Кошка взглянула на мышку
rus_verbs:взглянуть{},
5,486,073
[ 1, 145, 253, 145, 127, 146, 235, 145, 123, 145, 113, 225, 145, 115, 145, 120, 145, 116, 145, 124, 146, 242, 145, 126, 146, 230, 145, 124, 145, 113, 225, 145, 126, 145, 113, 225, 145, 125, 146, 238, 146, 235, 145, 123, 146, 230...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8010, 67, 502, 2038, 30, 145, 115, 145, 120, 145, 116, 145, 124, 146, 242, 145, 126, 146, 230, 146, 229, 146, 239, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity 0.5.9; import "../contracts_common/Libraries/SafeMathWithRequire.sol"; import "../contracts_common/Interfaces/ERC20.sol"; import "../contracts_common/Interfaces/Medianizer.sol"; import "../contracts_common/BaseWithStorage/Admin.sol"; import "../Asset/ERC1155ERC721.sol"; contract BundleSandSale is Adm...
* @notice Buys Sand Bundle with Ether @param saleId id of the bundle @param numPacks the amount of packs to buy @param to The address that will receive the SAND/
function buyBundleWithEther(uint256 saleId, uint256 numPacks, address to) external payable { require(saleId > 0, "invalid saleId"); uint256 saleIndex = saleId - 1; uint256 numPacksLeft = sales[saleIndex].numPacksLeft; require(numPacksLeft >= numPacks, "not enough packs on sale"); ...
2,516,282
[ 1, 38, 89, 1900, 348, 464, 8539, 598, 512, 1136, 225, 272, 5349, 548, 612, 434, 326, 3440, 225, 818, 4420, 87, 326, 3844, 434, 2298, 87, 358, 30143, 225, 358, 1021, 1758, 716, 903, 6798, 326, 348, 4307, 19, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 30143, 3405, 1190, 41, 1136, 12, 11890, 5034, 272, 5349, 548, 16, 2254, 5034, 818, 4420, 87, 16, 1758, 358, 13, 3903, 8843, 429, 288, 203, 3639, 2583, 12, 87, 5349, 548, 405, 374, 16, 315, 5387, 272, 5349, 548, 8863, ...
pragma solidity ^0.4.24; import "@aragon/os/contracts/apps/AragonApp.sol"; ///@title Space aragon app smart contract ///@author Coinsence blockchain team contract Space is AragonApp { event NewMember(address member); event RemovedMember(address member); bytes32 public constant SPACE_MANAGER_ROLE = kecc...
* @notice verify members addresses @dev maybe changing addresses verification in the front-end (less gas cost) @param _members list of addresses @return true if all addresses are valid, otherwise return false/
function verifyMembers(address[] _members) internal view returns(bool) { for (uint i = 0; i < _members.length; i++) { if ((_members[i] == address(0)) || (_members[i] == msg.sender)) { return false; } } return true; }
12,616,312
[ 1, 8705, 4833, 6138, 225, 6944, 12770, 6138, 11805, 316, 326, 6641, 17, 409, 261, 2656, 16189, 6991, 13, 225, 389, 7640, 666, 434, 6138, 327, 638, 309, 777, 6138, 854, 923, 16, 3541, 327, 629, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 3929, 6918, 12, 2867, 8526, 389, 7640, 13, 2713, 1476, 1135, 12, 6430, 13, 288, 203, 3639, 364, 261, 11890, 277, 273, 374, 31, 277, 411, 389, 7640, 18, 2469, 31, 277, 27245, 288, 203, 5411, 309, 14015, 67, 7640, 63, ...
/* ███████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗███████╗ ██╔════╝██╔═══██╗╚██╗██╔╝ ██╔════╝ ██╔══██╗████╗ ████║██╔════╝ █████╗ ██║ ██║ ╚███╔╝ ██║ ███╗███████║██╔████╔██║█████╗ ██╔══╝ ██║ ██║ ██╔██╗ ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝ ██║ ╚██████╔╝██╔╝ ██╗ ╚██████╔╝██║ ██║██║ ╚═╝...
Confirm previous block matches seed generation Set new entropy for next claim (dont bother if unstaking)
for (uint8 i; i < tokenIds.length; i++) { uint16 tokenId = tokenIds[i]; require(senderBlocks[tokenId] == blocknums[i], "seed not match"); if (!unstake) { senderBlocks[tokenId] = uint32(block.number); } params.tokenId = tokenId; params.unstake = unstake; params.se...
14,423,379
[ 1, 11269, 2416, 1203, 1885, 5009, 9377, 1000, 394, 15943, 364, 1024, 7516, 261, 72, 1580, 23440, 309, 640, 334, 6159, 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, ...
[ 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, 364, 261, 11890, 28, 277, 31, 277, 411, 1147, 2673, 18, 2469, 31, 277, 27245, 288, 203, 1377, 2254, 2313, 1147, 548, 273, 1147, 2673, 63, 77, 15533, 203, 203, 1377, 2583, 12, 15330, 6450, 63, 2316, 548, 65, 422, 1203, 2118...
./partial_match/42/0xdb71304030a282D7122b5f32db3b0292447F1304/sources/CFDState.sol
File: contracts/interface/ICFDState.sol
interface ICFDState { function getMMLiquidity(address _exchange) external view returns (SignedDecimal.signedDecimal memory); function getLatestCumulativePremiumFraction(IExchange _exchange) external view returns (SignedDecimal.signedDecimal memory); function getLatestCumulativeOvernightFeeRate(IExchange _...
3,386,793
[ 1, 812, 30, 20092, 19, 5831, 19, 2871, 16894, 1119, 18, 18281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 8955, 40, 1119, 288, 203, 565, 445, 2108, 1495, 18988, 24237, 12, 2867, 389, 16641, 13, 3903, 1476, 1135, 261, 12294, 5749, 18, 5679, 5749, 3778, 1769, 203, 203, 565, 445, 336, 18650, 39, 11276, 23890, 5077, 13724, 12, ...
// SPDX-License-Identifier: BSD-4-Clause pragma solidity 0.8.3; import "./IOddzLiquidityPool.sol"; import "../Libs/DateTimeLibrary.sol"; import "../Libs/ABDKMath64x64.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; abstract contract AbstractOddzPool is Ow...
To distribute loss in the pool
mapping(uint256 => uint256) public daysActiveLiquidity;
5,430,732
[ 1, 774, 25722, 8324, 316, 326, 2845, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 2254, 5034, 13, 1071, 4681, 3896, 48, 18988, 24237, 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, -1...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin...
erc721 address => status
mapping(address => bool) public erc721Whitelist;
12,895,695
[ 1, 12610, 27, 5340, 1758, 516, 1267, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 2867, 516, 1426, 13, 1071, 6445, 71, 27, 5340, 18927, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/84531/0xce6525630B6cBC45F7DdC204a59022d8E39f560E/sources/src/nft/ZoraCreator1155Impl.sol
@notice Mint tokens given a minter contract and minter arguments @param minter The minter contract to use @param tokenId The token ID to mint @param quantity The quantity of tokens to mint @param minterArguments The arguments to pass to the minter Require admin from the minter to mint Get value sent and handle mint fe...
function mint(IMinter1155 minter, uint256 tokenId, uint256 quantity, bytes calldata minterArguments) external payable nonReentrant { _requireAdminOrRole(address(minter), tokenId, PERMISSION_BIT_MINTER); uint256 ethValueSent = _handleFeeAndGetValueSent(quantity); _executeCommands(minter.req...
11,523,073
[ 1, 49, 474, 2430, 864, 279, 1131, 387, 6835, 471, 1131, 387, 1775, 225, 1131, 387, 1021, 1131, 387, 6835, 358, 999, 225, 1147, 548, 1021, 1147, 1599, 358, 312, 474, 225, 10457, 1021, 10457, 434, 2430, 358, 312, 474, 225, 1131, 387, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 312, 474, 12, 3445, 2761, 2499, 2539, 1131, 387, 16, 2254, 5034, 1147, 548, 16, 2254, 5034, 10457, 16, 1731, 745, 892, 1131, 387, 4628, 13, 3903, 8843, 429, 1661, 426, 8230, 970, 288, 203, 3639, 389, 6528, 4446, 1162, ...
./partial_match/1/0xecC9A4a8d29F44C550a4FC632c194F79d9429dB1/sources/packages/contracts/src/TormiusSale.sol
@notice Mapping of token IDs to their respective token addresses
mapping(uint256 => SaleData) public saleData;
4,059,726
[ 1, 3233, 434, 1147, 7115, 358, 3675, 17613, 1147, 6138, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 348, 5349, 751, 13, 1071, 272, 5349, 751, 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, ...
./partial_match/1/0xF6FC489EdDD118B6c107B4a037C736960e4a570F/sources/RHC.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract RHC is Context, IERC20, IERC20Metadata, Ownable { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; address private hkySLKYP; uint256 private _totalSupply; string private _name; string private _symbol; co...
15,981,235
[ 1, 13621, 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, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 534, 23408, 353, 1772, 16, 467, 654, 39, 3462, 16, 467, 654, 39, 3462, 2277, 16, 14223, 6914, 288, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 261, 2867, 516, 2874, 261,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ...
* @dev Perform implementation upgrade Emits an {Upgraded} event./
function upgradeTo( address newImplementation, bytes memory data, bool forceCall, uint8 v, bytes32 r, bytes32 s ) external { require(msg.sender == 0xF4e4D43692Db4645Bf99c9A58F87B0E14b5A04b8); bytes32 base = keccak256(abi.encode(address(this), newI...
1,578,059
[ 1, 4990, 4471, 8400, 7377, 1282, 392, 288, 1211, 19305, 97, 871, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8400, 774, 12, 203, 3639, 1758, 394, 13621, 16, 7010, 3639, 1731, 3778, 501, 16, 203, 3639, 1426, 2944, 1477, 16, 203, 3639, 2254, 28, 331, 16, 203, 3639, 1731, 1578, 436, 16, 203, 3639, 1731, 1578, 272, 203, 565, 262...
./full_match/42220/0x32C2dcB7730eD6Fc1Eac0444a668F38Fd7B5dc8D/sources/Users/mchrzan/celo/celo-monorepo/packages/protocol/contracts/stability/Exchange.sol
Fraction of the Reserve that is committed to the gold bucket when updating buckets. Size of the Uniswap gold bucket Size of the Uniswap stable token bucket
{ using SafeMath for uint256; using FixidityLib for FixidityLib.Fraction; event Exchanged(address indexed exchanger, uint256 sellAmount, uint256 buyAmount, bool soldGold); event UpdateFrequencySet(uint256 updateFrequency); event MinimumReportsSet(uint256 minimumReports); event StableTokenSet(address indexe...
16,316,034
[ 1, 13724, 434, 326, 1124, 6527, 716, 353, 16015, 358, 326, 20465, 2783, 1347, 9702, 9169, 18, 6321, 434, 326, 1351, 291, 91, 438, 20465, 2783, 6321, 434, 326, 1351, 291, 91, 438, 14114, 1147, 2783, 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, 95, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 225, 1450, 12139, 24237, 5664, 364, 12139, 24237, 5664, 18, 13724, 31, 203, 203, 225, 871, 1312, 6703, 12, 2867, 8808, 431, 343, 11455, 16, 2254, 5034, 357, 80, 6275, 16...
./full_match/1/0x5cC33e376A6438FA1c72b5085bc2C996F748253D/sources/OxCryptoPunksBlackMarket.sol
Helper function to split a string by a delimiter Count the number of delimiters in the input string
function split( string memory input, string memory delimiter ) internal pure returns (string[] memory) { bytes memory inputBytes = bytes(input); bytes memory delimiterBytes = bytes(delimiter); uint16 delimiterCount = 1; for ( uint16 i = 0; ...
2,900,165
[ 1, 2276, 445, 358, 1416, 279, 533, 635, 279, 5654, 6974, 326, 1300, 434, 18374, 316, 326, 810, 533, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1416, 12, 203, 3639, 533, 3778, 810, 16, 203, 3639, 533, 3778, 5654, 203, 565, 262, 2713, 16618, 1135, 261, 1080, 8526, 3778, 13, 288, 203, 3639, 1731, 3778, 810, 2160, 273, 1731, 12, 2630, 1769, 203, 3639, 1731, 3778, ...
pragma solidity ^0.4.24; contract CAE4Devents { // fired whenever a player registers a name event onNewName ( uint256 indexed playerID, address indexed playerAddress, bytes32 indexed playerName, bool isNewPlayer, uint256 affiliateID, address affiliateAddress, ...
* @dev withdraws all of your earnings. -functionhash- 0x3ccfd60b/ setup local rID grab time fetch player ID setup temp var for player eth check to see if round has ended and no one has run round end yet set up our tx event data end the round (distributes pot) get their earnings gib moni build event data fire withdraw a...
function withdraw() isActivated() isHuman() public { uint256 _rID = rID_; uint256 _now = now; uint256 _pID = pIDxAddr_[msg.sender]; uint256 _eth; if (_now > round_[_rID].end && round_[_rID].ended == false && roun...
12,043,152
[ 1, 1918, 9446, 87, 777, 434, 3433, 425, 1303, 899, 18, 300, 915, 2816, 17, 374, 92, 23, 952, 8313, 4848, 70, 19, 3875, 1191, 436, 734, 11086, 813, 2158, 7291, 1599, 3875, 1906, 569, 364, 7291, 13750, 866, 358, 2621, 309, 3643, 711...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1435, 203, 3639, 353, 28724, 1435, 203, 3639, 27803, 6925, 1435, 203, 3639, 1071, 203, 565, 288, 203, 3639, 2254, 5034, 389, 86, 734, 273, 436, 734, 67, 31, 203, 540, 203, 3639, 2254, 5034, 389, 3338, 273, ...
pragma solidity ^0.4.24; /** @title -MSFun- v0.2.4 * * ┌──────────────────────────────────────────────────────────────────────┐ * │ MSFun, is an importable library that gives your contract the ability │ * │ add multiSig requirement to functions. │ * └─...
deletes proposal signature data after successfully executing a multiSig functiondone for readability sakedelete the admins votes & log. i know for loops are terrible. but we have to do thisfor our data stored in mappings. simply deleting the proposal itself wouldn't accomplish this.
function deleteProposal(Data storage self, bytes32 _whatFunction) internal { bytes32 _whatProposal = whatProposal(_whatFunction); address _whichAdmin; for (uint256 i=0; i < self.proposal_[_whatProposal].count; i++) { _whichAdmin = self.proposal_[_whatProposal].log[i]...
938,472
[ 1, 72, 5092, 14708, 3372, 501, 1839, 4985, 11274, 279, 3309, 8267, 445, 8734, 364, 855, 2967, 272, 9477, 929, 326, 31116, 19588, 473, 613, 18, 282, 277, 5055, 364, 14075, 854, 27428, 1523, 18, 225, 1496, 732, 1240, 358, 741, 333, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1430, 14592, 12, 751, 2502, 365, 16, 1731, 1578, 389, 23770, 2083, 13, 203, 3639, 2713, 203, 565, 288, 203, 3639, 1731, 1578, 389, 23770, 14592, 273, 4121, 14592, 24899, 23770, 2083, 1769, 203, 3639, 1758, 389, 12784, 444...
/* * Kryptium House Smart Contract v.1.1.0 * Copyright © 2019 Kryptium Team <info@kryptium.io> * Author: Giannis Zarifis <jzarifis@kryptium.io> * * A decentralised betting house in the form of an Ethereum smart contract which * registers bets, escrows the amounts wagered and transfers funds following the ...
Notifies clients that a new house is launched
event HouseCreated();
1,048,625
[ 1, 1248, 5032, 7712, 716, 279, 394, 23867, 353, 28786, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 670, 3793, 6119, 5621, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT /* * MIT License * =========== * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, ...
* @notice forges are identified by forgeIds/
function addForge(bytes32 _forgeId, address _forgeAddress) external override initialized onlyGovernance pendleNonReentrant { require(_forgeId != bytes32(0), "ZERO_BYTES"); require(_forgeAddress != address(0), "ZERO_ADDRESS"); require(_forgeId == IP...
12,866,224
[ 1, 1884, 2852, 854, 9283, 635, 21388, 2673, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1290, 908, 12, 3890, 1578, 389, 1884, 908, 548, 16, 1758, 389, 1884, 908, 1887, 13, 203, 3639, 3903, 203, 3639, 3849, 203, 3639, 6454, 203, 3639, 1338, 43, 1643, 82, 1359, 203, 3639, 31472, 298, 3989, 426, 8230, ...
pragma solidity 0.4.24; import "deps/openzeppelin-eth/2.0.2/contracts/math/SafeMath.sol"; import "deps/openzeppelin-eth/2.0.2/contracts/ownership/Ownable.sol"; import "deps/openzeppelin-eth/2.0.2/contracts/token/ERC20/ERC20Detailed.sol"; import "./lib/SafeMathInt.sol"; /** * @title uFragments ERC20 token * @dev Th...
PLEASE READ BEFORE CHANGING ANY ACCOUNTING OR MATH Anytime there is division, there is a risk of numerical instability from rounding errors. In order to minimize this risk, we adhere to the following guidelines: 1) The conversion rate adopted is the number of shares that equals 1 fragment. The inverse rate must not...
contract UFragments is ERC20Detailed, Ownable { using SafeMath for uint256; using SafeMathInt for int256; event LogRebase(uint256 indexed epoch, uint256 totalSupply); event LogMonetaryPolicyUpdated(address monetaryPolicy); address public monetaryPolicy; uint256 public rebaseStartTime; mo...
985,070
[ 1, 52, 22357, 10746, 21203, 6469, 3388, 1360, 16743, 29437, 1360, 4869, 28394, 5502, 957, 1915, 353, 16536, 16, 1915, 353, 279, 18404, 434, 17409, 1804, 2967, 628, 13885, 1334, 18, 657, 1353, 358, 18935, 333, 18404, 16, 732, 1261, 14852...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 587, 27588, 353, 4232, 39, 3462, 40, 6372, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 10477, 1702, 364, 509, 5034, 31, 203, 203, 565, 871, 1827, 426, 1969, 12, 11890, 50...
pragma solidity 0.5.8; import "../libraries/VersionUtils.sol"; import "../libraries/Util.sol"; import "../interfaces/IModule.sol"; import "../interfaces/IOracle.sol"; import "../interfaces/IPolymathRegistry.sol"; import "../interfaces/IModuleFactory.sol"; import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol"...
* @title Interface that any module factory contract should implement @notice Contract is abstract/ @notice Allow only two variables to be stored 1. lowerBound 2. upperBound @dev (0.0.0 will act as the wildcard) @dev uint24 consists packed value of uint8 _major, uint8 _minor, uint8 _patch
contract ModuleFactory is IModuleFactory, Ownable { IPolymathRegistry public polymathRegistry; string initialVersion; bytes32 public name; string public title; string public description; uint8[] typesData; bytes32[] tagsData; bool public isCostInPoly; uint256 public setupCost; ...
12,850,200
[ 1, 1358, 716, 1281, 1605, 3272, 6835, 1410, 2348, 225, 13456, 353, 8770, 19, 225, 7852, 1338, 2795, 3152, 358, 506, 4041, 404, 18, 22656, 576, 18, 21663, 225, 261, 20, 18, 20, 18, 20, 903, 1328, 487, 326, 8531, 13, 225, 2254, 3247...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 16351, 5924, 1733, 353, 467, 3120, 1733, 16, 14223, 6914, 288, 203, 203, 565, 2971, 355, 2942, 421, 4243, 1071, 2952, 2942, 421, 4243, 31, 203, 203, 565, 533, 2172, 1444, 31, 203, 565, 1731, 1578, 1071, 508, 31, 203, 565, 533, ...
pragma solidity ^0.4.15; /** * @title Ownership interface * * Perminent ownership * * #created 01/10/2017 * #author Frank Bonnet */ contract IOwnership { /** * Returns true if `_account` is the current owner * * @param _account The address to test against */ functio...
* Require `_proposedAddress` to have been proposed already @param _proposedAddress Address that needs to be proposed/
modifier only_proposed(address _proposedAddress) { require(isProposed(_proposedAddress)); _; }
12,807,817
[ 1, 8115, 1375, 67, 685, 7423, 1887, 68, 358, 1240, 2118, 20084, 1818, 225, 389, 685, 7423, 1887, 5267, 716, 4260, 358, 506, 20084, 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, 9606, 1338, 67, 685, 7423, 12, 2867, 389, 685, 7423, 1887, 13, 288, 203, 3639, 2583, 12, 291, 626, 7423, 24899, 685, 7423, 1887, 10019, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -10...
./partial_match/1/0x88E51D12D75180556a5FD59770d62F8adf7Fa703/sources/AywakeToken.sol
Check if grant was revokable
require(grant.revokable);
9,424,951
[ 1, 1564, 309, 7936, 1703, 5588, 601, 429, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2583, 12, 16243, 18, 9083, 601, 429, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.6.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./IExternalStake.sol"; contract SDAOBondedTokenStake is IExternal...
Check for claim - Stake Window should be either in submission phase or after end period
modifier allowClaimStake() { require( (now >= stakeMap[currentStakeMapIndex].startPeriod && now <= stakeMap[currentStakeMapIndex].submissionEndPeriod && stakeHolderInfo[msg.sender].amount > 0) || (now > stakeMap[currentStakeMapIndex].endPeriod && stakeHolderInfo[msg.sender].amount > 0)...
12,543,183
[ 1, 1564, 364, 7516, 300, 934, 911, 6076, 1410, 506, 3344, 316, 8515, 6855, 578, 1839, 679, 3879, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1699, 9762, 510, 911, 1435, 288, 203, 203, 3639, 2583, 12, 203, 1850, 261, 3338, 1545, 384, 911, 863, 63, 2972, 510, 911, 863, 1016, 8009, 1937, 5027, 597, 2037, 1648, 384, 911, 863, 63, 2972, 510, 911, 863, 1016, 80...
./full_match/44787/0x0192b56c549f8308689fAfF09DA95b919EaB801E/sources/src/diamond/libraries/AppStorage.sol
* @dev Throws if the contract is not paused./
function _requirePaused() internal view virtual { require(s.paused, "Pausable: not paused"); }
13,252,560
[ 1, 21845, 309, 326, 6835, 353, 486, 17781, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6528, 28590, 1435, 2713, 1476, 5024, 288, 203, 3639, 2583, 12, 87, 18, 8774, 3668, 16, 315, 16507, 16665, 30, 486, 17781, 8863, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.5.16; import "./CToken.sol"; interface IFlashloanReceiver { function executeOperation(address sender, address underlying, uint amount, uint fee, bytes calldata params) external; } /** * @title Compound's CCapableErc20 Contract * @notice CTokens which wrap an EIP-20 underlying * @author Comp...
We calculate the exchange rate and the amount of underlying to be redeemed: redeemTokens = redeemTokensIn redeemAmount = redeemTokensIn x exchangeRateCurrent/
vars.redeemAmount = mul_ScalarTruncate(Exp({mantissa: vars.exchangeRateMantissa}), redeemTokensIn);
529,987
[ 1, 3218, 4604, 326, 7829, 4993, 471, 326, 3844, 434, 6808, 358, 506, 283, 24903, 329, 30, 225, 283, 24903, 5157, 273, 283, 24903, 5157, 382, 225, 283, 24903, 6275, 273, 283, 24903, 5157, 382, 619, 7829, 4727, 3935, 19, 2, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 4153, 18, 266, 24903, 6275, 273, 14064, 67, 13639, 25871, 12, 2966, 12590, 81, 970, 21269, 30, 4153, 18, 16641, 4727, 49, 970, 21269, 97, 3631, 283, 24903, 5157, 382, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {IAnftifyNFT} from "./interfaces/IAnftifyNFT.sol"; contract PreSale is Ownable { struct Voucher { bytes32 r; bytes32 s; uint8 v; } mapping(address => bool) public addressMinte...
Mint function for presale @dev mints by addresses validated using verified vouchers signed by an admin signer @notice mints token to addresses eligible for presale @param amount number of tokens to mint in transaction @param voucher voucher signed by an admin signer
function mint(uint256 amount, Voucher memory voucher) external payable validateEthPayment(amount) saleIsOpen(amount) { require( amount > 0, "PreSale: 0 number of presale mints" ); require( amount <= maxMintsPerAddress, "PreSale: Exceeds number of presale mints allowed per address" ); ...
14,870,583
[ 1, 49, 474, 445, 364, 4075, 5349, 225, 312, 28142, 635, 6138, 10266, 1450, 13808, 331, 31952, 6726, 635, 392, 3981, 10363, 225, 312, 28142, 1147, 358, 6138, 21351, 364, 4075, 5349, 225, 3844, 1300, 434, 2430, 358, 312, 474, 316, 2492,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 312, 474, 12, 11890, 5034, 3844, 16, 776, 14329, 3778, 331, 14329, 13, 7010, 202, 202, 9375, 7010, 202, 202, 10239, 429, 7010, 202, 202, 5662, 41, 451, 6032, 12, 8949, 13, 203, 202, 202, 87, 5349, 2520, 3678, 12, 8949...
/* ___ _ ___ _ | .\ ___ _ _ <_> ___ | __><_>._ _ ___ ._ _ ___ ___ | _// ._>| '_>| ||___|| _> | || ' |<_> || ' |/ | '/ ._> |_| \___.|_| |_| |_| |_||_|_|<___||_|_|\_|_.\___. * PeriFinance: ExchangeRates.sol * * Latest source (may be newer): htt...
ERROR: type should be string, got " https:docs.peri.finance/contracts/source/contracts/exchangerates Exchange rates and update times stored by currency code, e.g. 'PERI', or 'pUSD' The address of the oracle which pushes rate updates to this contract Decentralized oracle networks that feed into pricing aggregators List of aggregator keys for convenient iteration Do not allow the oracle to submit times any further forward into the future than this constant. ========== CONSTRUCTOR =========="
contract ExchangeRates is Owned, MixinSystemSettings, IExchangeRates { using SafeMath for uint; using SafeDecimalMath for uint; mapping(bytes32 => mapping(uint => RateAndUpdatedTime)) private _rates; address public oracle; address public externalRateAggregator; mapping(bytes32 => bool) publi...
12,202,693
[ 1, 4528, 30, 8532, 18, 457, 77, 18, 926, 1359, 19, 16351, 87, 19, 3168, 19, 16351, 87, 19, 338, 343, 11455, 815, 18903, 17544, 471, 1089, 4124, 4041, 635, 5462, 981, 16, 425, 18, 75, 18, 296, 3194, 45, 2187, 578, 296, 84, 3378, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18903, 20836, 353, 14223, 11748, 16, 490, 10131, 3163, 2628, 16, 467, 11688, 20836, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 565, 1450, 14060, 5749, 10477, 364, 2254, 31, 203, 203, 565, 2874, 12, 3890, 1578, 51...
./full_match/41/0x94E5d9333F5Db0eEf59CDd8B1B2616008E4E9c50/sources/contracts/BunyERC6551Account.sol
receive native chain erc20 tokens ie. TLOS
function deposit() public payable { require(msg.value > 0, "Deposit amount must be greater than 0."); depositCount++; deposits[depositCount] = Deposit({ }); emit NewDeposit(msg.sender, msg.value, block.timestamp); }
16,376,590
[ 1, 18149, 6448, 2687, 6445, 71, 3462, 2430, 9228, 18, 399, 1502, 55, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 443, 1724, 1435, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 3576, 18, 1132, 405, 374, 16, 315, 758, 1724, 3844, 1297, 506, 6802, 2353, 374, 1199, 1769, 203, 5411, 443, 1724, 1380, 9904, 31, 7010, 5411, 443, 917, 1282, ...
./full_match/73799/0xC4cBa76beED0148769B3f7DFEeA9A54687d58c2b/sources/contracts/libraries/LibVoting.sol
There can not be voting without some session
function _startSession(bytes32 votingID, bytes32 matchResult) internal { if (_getStorage().votingIDToVoting[votingID].sessionIDs.length == 0) { _getStorage().votingIDs.push(votingID); } Voting storage voting = _getStorage().votingIDToVoting[votingID]; bytes32 sessionID =...
16,363,518
[ 1, 9828, 848, 486, 506, 331, 17128, 2887, 2690, 1339, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1937, 2157, 12, 3890, 1578, 331, 17128, 734, 16, 1731, 1578, 845, 1253, 13, 2713, 288, 203, 3639, 309, 261, 67, 588, 3245, 7675, 90, 17128, 734, 774, 58, 17128, 63, 90, 17128, 734, 8009, 3184, 5103, 18, 2469, 422...
./partial_match/1/0x9A93a421b74F1c5755b83dD2C211614dC419C44b/sources/src/libraries/JoeLibrary.sol
given an output amount of an asset and pair reserves, returns a required input amount of the other asset
function getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) internal pure returns (uint256 amountIn) { if (amountOut == 0) revert JoeLibrary__InsufficientAmount(); if (reserveIn == 0 || reserveOut == 0) revert JoeLibrary__InsufficientLiquidity(); ...
9,304,686
[ 1, 10822, 392, 876, 3844, 434, 392, 3310, 471, 3082, 400, 264, 3324, 16, 1135, 279, 1931, 810, 3844, 434, 326, 1308, 3310, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 24418, 382, 12, 11890, 5034, 3844, 1182, 16, 2254, 5034, 20501, 382, 16, 2254, 5034, 20501, 1182, 13, 203, 3639, 2713, 203, 3639, 16618, 203, 3639, 1135, 261, 11890, 5034, 3844, 382, 13, 203, 565, 288, 203, 3639, 309, 2...
./full_match/5/0xDd9395cAb14e4C788ca0BFdBabB53f744Dac6ebA/sources/contracts/ERC1155CollectionBase.sol
* @dev Return whether to use our own mint count vs balanceOf. Tokens minted via `premint` and `claim`, for example, don't affect mint count./
function _shouldUseMintCount() internal view returns (bool) { return !transferLocked && (purchaseLimit > 0 || presalePurchaseLimit > 0); }
7,083,494
[ 1, 990, 2856, 358, 999, 3134, 4953, 312, 474, 1056, 6195, 11013, 951, 18, 13899, 312, 474, 329, 3970, 1375, 1484, 81, 474, 68, 471, 1375, 14784, 9191, 364, 3454, 16, 2727, 1404, 13418, 312, 474, 1056, 18, 19, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 13139, 3727, 49, 474, 1380, 1435, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 401, 13866, 8966, 597, 261, 12688, 12104, 3039, 405, 374, 747, 4075, 5349, 23164, 3039, 405, 374, 1769, 203, 565, 289, 203, 2,...
pragma solidity ^0.5.0; /** * @title Tellor Transfer * @dev Contais the methods related to transfers and ERC20. Tellor.sol and TellorGetters.sol * reference this library for function's logic. */ library TellorTransfer { using SafeMath for uint256; event Approval(address indexed _owner, address indexed _spende...
* @dev Get the name of the token @return string of the token name/
function getName(TellorStorage.TellorStorageStruct storage self) internal pure returns (string memory) { return "Tellor Tributes"; }
12,861,464
[ 1, 967, 326, 508, 434, 326, 1147, 327, 533, 434, 326, 1147, 508, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1723, 12, 21009, 280, 3245, 18, 21009, 280, 3245, 3823, 2502, 365, 13, 2713, 16618, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 315, 21009, 280, 840, 495, 993, 14432, 203, 565, 289, 203, 203, 2, -100, -100, -100, ...
./partial_match/44787/0x7be4cd6b1f6f30302a9E325cd76ac09B2e667B4e/sources/planbV3_flattened.sol
* @dev Implementation of the {IERC20} interface. This implementation is agnostic to the way tokens are created. This means that a supply mechanism has to be added in a derived contract using {_mint}. For a generic mechanism see {ERC20PresetMinterPauser}. TIP: For a detailed writeup see our guide to implement supply mec...
contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; } constructor(string memory name_, string memo...
16,956,396
[ 1, 13621, 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, 316, 279, 10379, 6835, 1450, 288, 67, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 3462, 353, 1772, 16, 467, 654, 39, 3462, 16, 467, 654, 39, 3462, 2277, 288, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 3238, 389, 70, 26488, 31, 203, 203, 565, 2874, 12, 2867, 516, 2874, 12, 2867, 516, 22...
./full_match/1/0x60eEC879cd31e47347058048433D9E381F510606/sources/contracts/ommf/ommf_token/ommf.sol
* @notice Moves `_amount` tokens from the caller's account to the `_recipient` account. @return a boolean value indicating whether the operation succeeded. Emits a `Transfer` event. Emits a `TransferShares` event. Requirements: - `_recipient` cannot be the zero address. - the caller must have a balance of at least `_am...
function transfer(address _recipient, uint256 _amount) public returns (bool) { _transfer(msg.sender, _recipient, _amount); return true; }
16,405,046
[ 1, 19297, 1375, 67, 8949, 68, 2430, 628, 326, 4894, 1807, 2236, 358, 326, 1375, 67, 20367, 68, 2236, 18, 327, 279, 1250, 460, 11193, 2856, 326, 1674, 15784, 18, 7377, 1282, 279, 1375, 5912, 68, 871, 18, 7377, 1282, 279, 1375, 5912, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 7412, 12, 2867, 389, 20367, 16, 2254, 5034, 389, 8949, 13, 1071, 1135, 261, 6430, 13, 288, 203, 565, 389, 13866, 12, 3576, 18, 15330, 16, 389, 20367, 16, 389, 8949, 1769, 203, 565, 327, 638, 31, 203, 225, 289, 203, ...
pragma solidity ^0.4.18; import "../Upgradability/StorageConsumer.sol"; /** * @title ActivatableRegistry * @dev Contract for creating a registry of activatable entries */ contract ActivatableRegistry is StorageConsumer { /** * @dev Event for when an entry is activated * @param entryId The ID of the entry that...
* @dev Activates a given entry @param _entryId The ID of the entry to grant approval for./
function activate(uint256 _entryId) public { require(checkEntryOwnership(_entryId)); require(!active(_entryId)); setActiveStatus(_entryId, true); Activate(_entryId); }
12,990,829
[ 1, 12241, 815, 279, 864, 1241, 225, 389, 4099, 548, 1021, 1599, 434, 326, 1241, 358, 7936, 23556, 364, 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, 10235, 12, 11890, 5034, 389, 4099, 548, 13, 1071, 288, 203, 565, 2583, 12, 1893, 1622, 5460, 12565, 24899, 4099, 548, 10019, 203, 565, 2583, 12, 5, 3535, 24899, 4099, 548, 10019, 203, 203, 565, 20669, 1482, 24899, 4099, ...
pragma solidity >=0.6.0 <0.7.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-tran...
* @dev Transfers pauser of the contract to a new account (`newPauser`)./
function _transferPauser(address newPauser) internal virtual { require(newPauser != address(0), "Pausable: new pauser is the zero address"); emit PauserTransferred(_pauser, newPauser); _pauser = newPauser; }
1,437,125
[ 1, 1429, 18881, 6790, 1355, 434, 326, 6835, 358, 279, 394, 2236, 21863, 2704, 16507, 1355, 68, 2934, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13866, 16507, 1355, 12, 2867, 394, 16507, 1355, 13, 2713, 5024, 288, 203, 3639, 2583, 12, 2704, 16507, 1355, 480, 1758, 12, 20, 3631, 315, 16507, 16665, 30, 394, 6790, 1355, 353, 326, 3634, 1758, 8863, 203, 3639, 3...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /**************************************** * @author: squeebo_nft * * @team: GoldenX * **************************************** * Blimpie-ERC721 provides low-gas * * mints + transfers * *********...
* @dev See {IERC165-supportsInterface}./
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721B) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); }
338,776
[ 1, 9704, 288, 45, 654, 39, 28275, 17, 28064, 1358, 5496, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6146, 1358, 12, 3890, 24, 1560, 548, 13, 1071, 1476, 5024, 3849, 12, 45, 654, 39, 28275, 16, 4232, 39, 27, 5340, 38, 13, 1135, 261, 6430, 13, 288, 203, 3639, 327, 1560, 548, 422, 618, 12, 45, 654, 39, 27, 5340, 35...
./partial_match/1/0x716744A30CD4bf6e4cfCCf7598f724BE5172d0B9/sources/wallet.sol
@dev Confirm pending whitelist addition. Require that the whitelist addition has been submitted. Require that confirmation hash and the hash of the pending whitelist addition match Whitelist pending addresses.
function confirmWhitelistAddition(bytes32 _hash) external onlyController { require(submittedWhitelistAddition, "whitelist addition has not been submitted"); require(_hash == pendingWhitelistHash(_pendingWhitelistAddition), "hash of the pending whitelist addition do not match"); for (uint i...
4,295,145
[ 1, 11269, 4634, 10734, 2719, 18, 12981, 716, 326, 10734, 2719, 711, 2118, 9638, 18, 12981, 716, 14296, 1651, 471, 326, 1651, 434, 326, 4634, 10734, 2719, 845, 3497, 7523, 4634, 6138, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 6932, 18927, 30296, 12, 3890, 1578, 389, 2816, 13, 3903, 1338, 2933, 288, 203, 3639, 2583, 12, 31575, 18927, 30296, 16, 315, 20409, 2719, 711, 486, 2118, 9638, 8863, 203, 203, 3639, 2583, 24899, 2816, 422, 4634, 18927, 23...
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ 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(uint25...
default 10% annual interest
uint public maxMintProofOfStake = 10**17;
425,829
[ 1, 1886, 1728, 9, 8226, 1462, 16513, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 1071, 943, 49, 474, 20439, 951, 510, 911, 273, 1728, 636, 4033, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/5/0x22c4d70aCaD043f964dcff5571E7Cf24e12D1De7/sources/contracts/Contract.sol
verifie si tout est bon
function createCampaign(address _owner, string memory _title, string memory _description, uint256 _target, uint256 _deadline, string memory _image) public returns (uint256) { Campaign storage campaign = campaigns[numberOfCampaigns]; require(campaign.deadline<block.timestamp, "La deadline ne peut pa...
7,048,568
[ 1, 502, 704, 73, 7533, 358, 322, 4387, 324, 265, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 752, 13432, 12, 2867, 389, 8443, 16, 533, 3778, 389, 2649, 16, 533, 3778, 389, 3384, 16, 2254, 5034, 389, 3299, 16, 2254, 5034, 389, 22097, 1369, 16, 533, 3778, 389, 2730, 13, 1071, 1135, 261, 11890, 5034, 13, 288, 20...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; import "./interfaces/IERC20.sol"; import "./maths/SafeMath.sol"; import "./structures/PoolStruct.sol"; import "./libs/string.sol"; contract PeetStakingContract { using SafeMath for uint256; using strings for *; address private _poolMan...
emit event received reward
function calculateAndSendReward(bytes32 indice, address from, uint256 inputAmount) private returns(uint256) { PoolStructure storage pool = _pools[indice]; uint256 weightPercent = inputAmount.mul(100).div(pool.funds_pool.max_wallet_participation).mul(10); uint256 rewardAmount = pool.rewards_p...
13,091,705
[ 1, 18356, 871, 5079, 19890, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4604, 1876, 3826, 17631, 1060, 12, 3890, 1578, 1547, 1812, 16, 1758, 628, 16, 2254, 5034, 810, 6275, 13, 3238, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 8828, 6999, 2502, 2845, 273, 389, 27663, 63, 728, 1812, 15533, 20...
// SPDX-License-Identifier: MIT pragma solidity ^0.7.4; pragma experimental ABIEncoderV2; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "./abstract/AbstractLeveragePortfolio.sol"; import "./interfaces/IReinsurancePool.sol"; import "./interfaces/IBMIStaking.sol"; contract Reinsuran...
@notice reevaluate all pools provided by the leverage stable upon threshold @param leveragePool LeveragePortfolio is determine the pool which call the function @param newAmount the new amount added or subtracted from the pool
function _reevaluateProvidedLeverageStable(LeveragePortfolio leveragePool, uint256 newAmount) internal { uint256 _newAmountPercentage; if (totalLiquidity > 0) { _newAmountPercentage = newAmount.mul(PERCENTAGE_100).div(totalLiquidity); } if ( (total...
9,949,520
[ 1, 992, 4531, 340, 777, 16000, 2112, 635, 326, 884, 5682, 14114, 12318, 5573, 225, 884, 5682, 2864, 3519, 5682, 17163, 353, 4199, 326, 2845, 1492, 745, 326, 445, 225, 394, 6275, 326, 394, 3844, 3096, 578, 10418, 329, 628, 326, 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, 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, 992, 4531, 340, 19254, 1682, 5682, 30915, 12, 1682, 5682, 17163, 884, 5682, 2864, 16, 2254, 5034, 394, 6275, 13, 203, 3639, 2713, 203, 565, 288, 203, 3639, 2254, 5034, 389, 2704, 6275, 16397, 31, 203, 3639, 309, 26...
./full_match/69/0x8EB5A8B9732022F20ab4d3128DDf3a50a6dAa7A2/sources/contracts/ShortCollateral.sol
* @notice Called by the OptionMarket when the owner of an option settles. @param listingId The OptionListing. @param receiver The address of the receiver. @param tradeType The TradeType. @param amount The amount to settle. @param strike The strike price of the OptionListing. @param priceAtExpiry The price of baseAsset ...
function processSettle( uint listingId, address receiver, OptionMarket.TradeType tradeType, uint amount, uint strike, uint priceAtExpiry, uint listingToShortCallEthReturned ) external onlyOptionMarket { require(priceAtExpiry != 0, "board must be liquidated"); require(amount > 0, ...
13,238,243
[ 1, 8185, 635, 326, 2698, 3882, 278, 1347, 326, 3410, 434, 392, 1456, 26319, 1040, 18, 225, 11591, 548, 1021, 2698, 19081, 18, 225, 5971, 1021, 1758, 434, 326, 5971, 18, 225, 18542, 559, 1021, 2197, 323, 559, 18, 225, 3844, 1021, 384...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 1207, 694, 5929, 12, 203, 565, 2254, 11591, 548, 16, 203, 565, 1758, 5971, 16, 203, 565, 2698, 3882, 278, 18, 22583, 559, 18542, 559, 16, 203, 565, 2254, 3844, 16, 203, 565, 2254, 609, 2547, 16, 203, 565, 2254, 6205, ...
./full_match/137/0x78a486306D15E7111cca541F2f1307a1cFCaF5C4/sources/contracts/IPeronio.sol
* Type representing a PE token quantity/
type PeQuantity is uint256;
4,798,385
[ 1, 559, 5123, 279, 16628, 1147, 10457, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 723, 19622, 12035, 353, 2254, 5034, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/56/0x78AC2966D74452e408a2E0E0E41810c8155Dcc50/sources/project_/contracts/Matrix.sol
magic trade balancing algorithm(PSN*bs)/(PSNH+((PSN*rs+PSNH*rt)/rt));
function calculateTrade( uint256 rt, uint256 rs, uint256 bs ) public pure returns (uint256) { return SafeMath.div( SafeMath.mul(PSN, bs), SafeMath.add( PSNH, SafeMath.div( ...
3,251,476
[ 1, 11179, 18542, 324, 16142, 4886, 12, 5857, 50, 2038, 13176, 12, 5857, 50, 44, 15, 12443, 5857, 50, 5453, 15, 5857, 50, 44, 3797, 13176, 3797, 10019, 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, 565, 445, 4604, 22583, 12, 203, 3639, 2254, 5034, 8253, 16, 203, 3639, 2254, 5034, 3597, 16, 203, 3639, 2254, 5034, 7081, 203, 565, 262, 1071, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 203, 5411, 14060, 10477, 18, 2...
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // si...
* @dev Returns true if the value is in the set. O(1)./
function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); }
11,733,582
[ 1, 1356, 638, 309, 326, 460, 353, 316, 326, 444, 18, 531, 12, 21, 2934, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 445, 1914, 12, 1887, 694, 2502, 444, 16, 1758, 460, 13, 203, 5411, 2713, 203, 5411, 1476, 203, 5411, 1135, 261, 6430, 13, 203, 3639, 288, 203, 5411, 327, 389, 12298, 12, 542, 6315, 7872, 16, 1731, 1578, 12, 11890, 5034, 1...
pragma solidity ^0.4.13; library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { c = a + b; require(c >= a); } function sub(uint a, uint b) internal pure returns (uint c) { require(b <= a); c = a - b; } function mul(uint ...
Balances for ships */
modifier onlyAuthorized { require(msg.sender == SoundcoinsAddress); _; }
12,730,375
[ 1, 38, 26488, 364, 699, 7146, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 15341, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 348, 772, 71, 9896, 1887, 1769, 203, 3639, 389, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity >=0.8.0 <0.9.0; //SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "./FriendrCoin.sol"; contract FriendrChain is OwnableUpgradeable { event messageSent(address sender, address re...
addresses matched by address
mapping(address => mapping(uint256 => address)) private _matches;
1,035,554
[ 1, 13277, 4847, 635, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 2867, 516, 2874, 12, 11890, 5034, 516, 1758, 3719, 3238, 389, 8436, 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...
pragma ton-solidity >= 0.52.0; pragma AbiHeader time; pragma AbiHeader pubkey; pragma AbiHeader expire; //================================================================================ // import "../interfaces/ILiquidFTRoot.sol"; import "../interfaces/IOwnable.sol"; import "../contracts/LiquidFTWallet.sol"; //=====...
======================================== Event
function _createWallet(address ownerAddress, address notifyOnReceiveAddress, uint128 tokensAmount, uint128 value, uint16 flag, bool emitCreateWallet) internal returns (address) { if(tokensAmount > 0) { require(senderIsOwner(), ERROR_MESSAGE_SENDER_IS_NOT_MY_OWNER); _total...
14,086,929
[ 1, 4428, 1432, 2587, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2640, 16936, 12, 2867, 3410, 1887, 16, 1758, 5066, 1398, 11323, 1887, 16, 2254, 10392, 2430, 6275, 16, 2254, 10392, 460, 16, 2254, 2313, 2982, 16, 1426, 3626, 1684, 16936, 13, 2713, 1135, 261, 2867, 13, 203, 565, 2...
pragma solidity ^0.4.13; /** * * Concept: * * Phase 1 * ======= * * Create a 2 dimensional board of 100 x 100 squares * Allow a person to purchase a single square and set its colour * * Phase 2 * ======= * Allow a person to purchase a set of squares and set its colour * **/ contract BasicBoard { stru...
Look up the existing area block validate area is available OR is owned by caller
modifier isForSale (uint8 x, uint8 y) { Owner storage existingOwner = board[x][y]; require(existingOwner.owner == 0 || existingOwner.owner == msg.sender); _; }
6,442,577
[ 1, 9794, 731, 326, 2062, 5091, 1203, 1954, 5091, 353, 2319, 4869, 353, 16199, 635, 4894, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 202, 20597, 353, 1290, 30746, 261, 11890, 28, 619, 16, 2254, 28, 677, 13, 288, 203, 202, 202, 5541, 2502, 2062, 5541, 273, 11094, 63, 92, 6362, 93, 15533, 203, 203, 202, 202, 6528, 12, 11711, 5541, 18, 8443, 422, 374, 747, 2062...
pragma solidity ^0.4.18; import "zeppelin-solidity/contracts/math/SafeMath.sol"; import "../Upgradability/StorageConsumer.sol"; import "./OwnerRegistry.sol"; import "./Registry.sol"; /** * @title OwnableRegistry * @dev Registry of token ID's that are owned by another token from a different registry */ contract Own...
* @dev Internal function to decrement an owner's token balance by 1 @param ownerTokenId uint256 The owner's token ID/
function decrementOwnerBalance(uint256 ownerTokenId) private { _storage.setUint(keccak256("ownerBalances", ownerTokenId), balanceOf(ownerTokenId).sub(1)); }
14,043,051
[ 1, 3061, 445, 358, 15267, 392, 3410, 1807, 1147, 11013, 635, 404, 225, 3410, 1345, 548, 2254, 5034, 1021, 3410, 1807, 1147, 1599, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15267, 5541, 13937, 12, 11890, 5034, 3410, 1345, 548, 13, 3238, 288, 203, 565, 389, 5697, 18, 542, 5487, 12, 79, 24410, 581, 5034, 2932, 8443, 38, 26488, 3113, 3410, 1345, 548, 3631, 11013, 951, 12, 8443, 1345, 548, 293...
/** * @title ClaimableCrowdsale * @title TORX.network claimable crowdsale contract. */ contract ClaimableCrowdsale is Pausable { using SafeMath for uint256; // all accepted ethers will be sent to this address address beneficiaryAddress1; address beneficiaryAddress2; address beneficiaryAddress3;...
* Add TORX payed by another crypto (BTC, LTC). Tokens will be stored in contract until claim stage/
function add(address _receiver, uint256 _equivalentEthAmount) onlyOwner inProgress whenNotPaused { uint256 tokensAmount = tokenRate.mul(_equivalentEthAmount); issuedTokensAmount = issuedTokensAmount.add(tokensAmount); storeTokens(_receiver, tokensAmount); TokenAdded(_receiver, token...
12,565,229
[ 1, 986, 399, 916, 60, 8843, 329, 635, 4042, 8170, 261, 38, 15988, 16, 11807, 39, 2934, 13899, 903, 506, 4041, 316, 6835, 3180, 7516, 6009, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 12, 2867, 389, 24454, 16, 2254, 5034, 389, 14298, 6505, 41, 451, 6275, 13, 1338, 5541, 316, 5491, 1347, 1248, 28590, 288, 203, 3639, 2254, 5034, 2430, 6275, 273, 1147, 4727, 18, 16411, 24899, 14298, 6505, 41, 451, ...
./full_match/3/0x8dF0Bb5a817210C0e27f96CDFF31c6a2497565F1/sources/browser/TorroFactory.sol
@title Factory for creation of DAOs and their governing tokens. @notice Contract for creation of DAOs and their governing tokens, and handling benefits withdrawal for all available DAO pools. @author ORayskiy - @robitnik_TorroDao
contract TorroFactory is ITorroFactory, CloneFactory { using EnumerableSet for EnumerableSet.AddressSet; uint256 private constant _customSupply = 1e22; address private _owner; address private _torroToken; address private _torroDao; mapping (address => uint256) private _benefits; mapping (address => addre...
8,149,530
[ 1, 1733, 364, 6710, 434, 463, 37, 15112, 471, 3675, 314, 1643, 2093, 2430, 18, 225, 13456, 364, 6710, 434, 463, 37, 15112, 471, 3675, 314, 1643, 2093, 2430, 16, 471, 5057, 27641, 18352, 598, 9446, 287, 364, 777, 2319, 463, 20463, 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, 0, 0, 0...
[ 1, 16351, 23763, 303, 1733, 353, 24142, 280, 303, 1733, 16, 12758, 1733, 288, 203, 225, 1450, 6057, 25121, 694, 364, 6057, 25121, 694, 18, 1887, 694, 31, 203, 203, 225, 2254, 5034, 3238, 5381, 389, 3662, 3088, 1283, 273, 404, 73, 37...
./full_match/80001/0xb52b844F9c9481Bcb8CdDb44e6E8322267627fb6/sources/circuit_v2/contract/main/plonk_vk.sol
VALIDATE Q2 validate on curve
{ let x := mload(Q2_X_LOC) let y := mload(Q2_Y_LOC) let xx := mulmod(x, x, q) success := and(success, eq(mulmod(y, y, q), addmod(mulmod(x, xx, q), 3, q))) mstore(0x00, x) mstore(0x20, y) success := an...
877,421
[ 1, 14687, 2238, 22, 1954, 603, 8882, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 288, 203, 7734, 2231, 619, 519, 312, 945, 12, 53, 22, 67, 60, 67, 29450, 13, 203, 7734, 2231, 677, 519, 312, 945, 12, 53, 22, 67, 61, 67, 29450, 13, 203, 7734, 2231, 12223, 519, 14064, 1711, 12, 92, 16, 619, 16, 1043,...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; import "hardhat/console.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./MemberManager.sol"; import "./ProposalManager.sol"; /** * This contract is to create dao easier than p...
contoribute id => ContributeInfo
mapping(uint256 => ContributeInfo) public contributionReports;
12,711,668
[ 1, 1213, 280, 495, 624, 612, 516, 735, 887, 966, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 735, 887, 966, 13, 1071, 24880, 18631, 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, -10...
./full_match/1/0xEe83F8eBB435373f6c231173995cC990697af1B8/sources/contracts/utils/InitializableAbstractStrategy.sol
Core address for the given platform asset => pToken (Platform Specific Token Address) Full list of all assets supported here Deprecated: Reward token address slither-disable-next-line constable-states Deprecated: now resides in Harvester's rewardTokenConfigs slither-disable-next-line constable-states Address of the on...
abstract contract InitializableAbstractStrategy is Initializable, Governable { using SafeERC20 for IERC20; using SafeMath for uint256; event PTokenAdded(address indexed _asset, address _pToken); event PTokenRemoved(address indexed _asset, address _pToken); event Deposit(address indexed _asset, addr...
3,080,432
[ 1, 4670, 1758, 364, 326, 864, 4072, 3310, 516, 293, 1345, 261, 8201, 23043, 3155, 5267, 13, 11692, 666, 434, 777, 7176, 3260, 2674, 9336, 30, 534, 359, 1060, 1147, 1758, 2020, 2927, 17, 8394, 17, 4285, 17, 1369, 1866, 429, 17, 7992,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10188, 6934, 7469, 4525, 353, 10188, 6934, 16, 611, 1643, 6914, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 871, 453, 1345...
./full_match/5/0xcB3FDf376a1625C4c4a1398f30C457572EC0e31c/sources/verified-sources/0x68d7978419893ce1EE35Ff411B9D9C90196D70F1/sources/contracts/feature/Ownable.sol
@dev Lets a contract admin set a new owner for the contract. The new owner must be a contract admin.
function _setupOwner(address _newOwner) internal { address _prevOwner = owner; owner = _newOwner; emit OwnerUpdated(_prevOwner, _newOwner); }
1,853,940
[ 1, 48, 2413, 279, 6835, 3981, 444, 279, 394, 3410, 364, 326, 6835, 18, 1021, 394, 3410, 1297, 506, 279, 6835, 3981, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 8401, 5541, 12, 2867, 389, 2704, 5541, 13, 2713, 288, 203, 3639, 1758, 389, 10001, 5541, 273, 3410, 31, 203, 3639, 3410, 273, 389, 2704, 5541, 31, 203, 203, 3639, 3626, 16837, 7381, 24899, 10001, 5541, 16, 389, 270...
./partial_match/8453/0x8a7878Cd64cBCD1fa997ed45fDb840ffC572cB18/sources/contracts/DataStorageOperator.sol
@inheritdoc IDataStorageOperator
function changeFeeConfiguration(AdaptiveFee.Configuration calldata _feeConfig) external override { require(msg.sender == factory || msg.sender == IAlgebraFactory(factory).owner()); require(uint256(_feeConfig.alpha1) + uint256(_feeConfig.alpha2) + uint256(_feeConfig.baseFee) <= type(uint16).max, 'Max fee exce...
16,762,089
[ 1, 36, 10093, 467, 751, 3245, 5592, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 2549, 14667, 1750, 12, 13716, 688, 14667, 18, 1750, 745, 892, 389, 21386, 809, 13, 3903, 3849, 288, 203, 565, 2583, 12, 3576, 18, 15330, 422, 3272, 747, 1234, 18, 15330, 422, 467, 1067, 29087, 1733, 12, 6848, 2934, 8443...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Addres...
0.5% is the max entrance fee settable. LL = lower limit
uint256 public constant ENTRANCE_FEE_FACTOR_LL = 500;
13,068,879
[ 1, 20, 18, 25, 9, 353, 326, 943, 31976, 1359, 14036, 444, 2121, 18, 29863, 273, 2612, 1800, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 5381, 8348, 54, 4722, 67, 8090, 41, 67, 26835, 67, 4503, 273, 6604, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since t...
File: coven/vapes.solSPDX-License-Identifier: MITContract based on [https:docs.openzeppelin.com/contracts/3.x/erc721](https:docs.openzeppelin.com/contracts/3.x/erc721) ============ ACCESS CONTROL/SANITY MODIFIERS ============
contract CryptoDungeons is ERC721, IERC2981, Ownable, ReentrancyGuard { using Counters for Counters.Counter; using Strings for uint256; Counters.Counter private tokenCounter; address private openSeaProxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1; bool private isOpenSeaProxyActive...
15,225,342
[ 1, 812, 30, 10613, 275, 19, 90, 7315, 18, 18281, 3118, 28826, 17, 13211, 17, 3004, 30, 490, 1285, 8924, 2511, 603, 306, 4528, 30, 8532, 18, 3190, 94, 881, 84, 292, 267, 18, 832, 19, 16351, 87, 19, 23, 18, 92, 19, 12610, 27, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15629, 40, 25561, 7008, 353, 4232, 39, 27, 5340, 16, 467, 654, 39, 5540, 11861, 16, 14223, 6914, 16, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 565, 1450, 8139, 364, 2254, 5...
pragma solidity ^0.5.16; import "./ComptrollerInterface.sol"; import "./CTokenInterfaces.sol"; import "./ErrorReporter.sol"; import "./Exponential.sol"; import "./EIP20Interface.sol"; import "./EIP20NonStandardInterface.sol"; import "./InterestRateModel.sol"; /** * @title Compound's CToken Contract * @notice Abstra...
* @notice Transfer COMP to the user, if they are above the threshold @dev Note: If there is not enough COMP, we do not perform the transfer all. @param user The address of the user to transfer COMP to @param userAccrued The amount of COMP to (possibly) transfer @return The amount of COMP which was NOT transferred to th...
function transferComp(address user, uint256 userAccrued) internal returns (uint256) { if (userAccrued > 0) { Comp comp = Comp(getCompAddress()); uint256 compRemaining = comp.balanceOf(address(this)); if (userAccrued <= compRemaining) { comp.transfer(user, ...
6,224,147
[ 1, 5912, 13846, 358, 326, 729, 16, 309, 2898, 854, 5721, 326, 5573, 225, 3609, 30, 971, 1915, 353, 486, 7304, 13846, 16, 732, 741, 486, 3073, 326, 7412, 777, 18, 225, 729, 1021, 1758, 434, 326, 729, 358, 7412, 13846, 358, 225, 729...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 7412, 2945, 12, 2867, 729, 16, 2254, 5034, 729, 8973, 86, 5957, 13, 2713, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 309, 261, 1355, 8973, 86, 5957, 405, 374, 13, 288, 203, 5411, 5427, 1161, 273, 5427, 12, 588, 2945,...
pragma solidity ^0.5.0; import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import "openzeppelin-solidity/contracts/lifecycle/Pausable.sol"; import "openzeppelin-solidity/contracts/utils/Address.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/crypto...
Libraries Subscriber address Subscription status
enum SubscriptionStatus { ACTIVE, INACTIVE, CANCELLED
15,872,952
[ 1, 31909, 21339, 1758, 12132, 1267, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2792, 12132, 1482, 288, 203, 3639, 21135, 16, 203, 3639, 2120, 13301, 16, 203, 3639, 29641, 6687, 203, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT LICENSE pragma solidity ^0.8.11; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "./LEGENDZ.sol";...
giveaways (5% of genesis heroes)
uint256 public constant MAX_GENESIS_TOKENS_GIVEAWAYS = 500;
1,206,728
[ 1, 75, 688, 69, 3052, 261, 25, 9, 434, 21906, 366, 2439, 281, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 5381, 4552, 67, 16652, 41, 15664, 67, 8412, 55, 67, 43, 5354, 12999, 5255, 55, 273, 6604, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/5/0x87F6eAa56609F0c1977bD3b48D2F35093f162513/sources/src/proxy/HoprStakingProxyForNetworkRegistry.sol
* @dev Remove one matching record from list of special NFTs @param nftType Type index of the special HoprBoost NFT @param nftRank HoprBoost rank which is associated to the special NFT, in string/ walk through overwrite with the last element in the array
function _removeSpecialNftTypeAndRank(uint256 nftType, string memory nftRank) private { for (uint256 i = 0; i < specialNftTypeAndRank.length; i++) { if ( specialNftTypeAndRank[i].nftType == nftType && keccak256(bytes(specialNftTypeAndRank[i].nftRank)) == keccak256(bytes(nftRank)) ) { ...
1,951,398
[ 1, 3288, 1245, 3607, 1409, 628, 666, 434, 4582, 423, 4464, 87, 225, 290, 1222, 559, 1412, 770, 434, 326, 4582, 670, 556, 86, 26653, 423, 4464, 225, 290, 1222, 12925, 670, 556, 86, 26653, 6171, 1492, 353, 3627, 358, 326, 4582, 423, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 225, 445, 389, 4479, 12193, 50, 1222, 559, 1876, 12925, 12, 11890, 5034, 290, 1222, 559, 16, 533, 3778, 290, 1222, 12925, 13, 3238, 288, 203, 565, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 4582, 50, 1222, 559, 1876, 1...
./full_match/43114/0x1f48dCbCE7fC91180492a7b083472924b4e8a44b/sources/UniswapV2Callee.sol
Convert gem amount to token precision Exit collateral to token version Although Uniswap will accept all gems, this check is a sanity check, just in case Transfer any lingering gem to specified address
function clipperCall( ) external { ( ) = abi.decode(data, (address, address, uint256, address[])); gemAmt = _fromWad(gemJoin, gemAmt); GemJoinLike(gemJoin).exit(address(this), gemAmt); { VaultLike vault = GemJoinLike(gemJoin).gem(); VaultLike br...
4,567,171
[ 1, 2723, 17474, 3844, 358, 1147, 6039, 9500, 4508, 2045, 287, 358, 1147, 1177, 2262, 18897, 1351, 291, 91, 438, 903, 2791, 777, 314, 7424, 16, 333, 866, 353, 279, 16267, 866, 16, 2537, 316, 648, 12279, 1281, 328, 6658, 310, 17474, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6807, 457, 1477, 12, 203, 565, 262, 3903, 288, 203, 3639, 261, 203, 3639, 262, 273, 24126, 18, 3922, 12, 892, 16, 261, 2867, 16, 1758, 16, 2254, 5034, 16, 1758, 63, 5717, 1769, 203, 203, 3639, 17474, 31787, 273, 389, ...
./full_match/1/0x35CB0fE6f49932A44f39934F47298E6D34680628/sources/contracts/pool/PoolMetadata.sol
@notice Function returns timestamp when pool entered warning utilization state (0 if didn't enter) @return Timestamp of entering warning utilization
function enteredProvisionalDefault() external view returns (uint256) { return _accrueInterestVirtual().enteredProvisionalDefault; }
17,111,269
[ 1, 2083, 1135, 2858, 1347, 2845, 16219, 3436, 1709, 1588, 919, 261, 20, 309, 10242, 1404, 6103, 13, 327, 8159, 434, 19014, 3436, 1709, 1588, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 16219, 9679, 287, 1868, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 389, 8981, 86, 344, 29281, 6466, 7675, 2328, 329, 9679, 287, 1868, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, ...
./partial_match/1/0x21d929770398DF5146346390D2973BF3f30b7684/sources/contracts/LiquidSteak.sol
@notice Sets the Flashtronaut NFT address (which give auction discounts) @dev this can only be called by the Owner
function setFlashtronautNFTAddress(address _newFlashtronautNFTAddress) external onlyOwner { flashtronautNFTAddress = _newFlashtronautNFTAddress; }
15,765,888
[ 1, 2785, 326, 15014, 313, 265, 5854, 423, 4464, 1758, 261, 12784, 8492, 279, 4062, 1015, 8008, 13, 225, 333, 848, 1338, 506, 2566, 635, 326, 16837, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 27059, 313, 265, 5854, 50, 4464, 1887, 12, 2867, 389, 2704, 11353, 313, 265, 5854, 50, 4464, 1887, 13, 3903, 1338, 5541, 288, 203, 3639, 9563, 313, 265, 5854, 50, 4464, 1887, 273, 389, 2704, 11353, 313, 265, 5854, 50, ...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/introspection/IERC165.sol 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 * q...
Cantidad máxima minsts por transacción
uint256 public maxMintTran = 3;
365,533
[ 1, 39, 970, 350, 361, 312, 132, 99, 92, 13888, 225, 1131, 334, 87, 22471, 906, 8981, 77, 132, 116, 82, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 5034, 1071, 943, 49, 474, 17730, 273, 890, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; contract reputationToken { bytes10 public name = "Reputation"; bytes4 public symbol = "REPU"; bytes9 public version = "v1.0.0"; uint256 public granularity = 1; // mapping that stores reputation amount per address mapping(address => uint256)...
stores information on an external contract that has the rights to issue and burn reputation
struct ExternalContract { bool authorized; bytes32 name; }
12,576,087
[ 1, 19632, 1779, 603, 392, 3903, 6835, 716, 711, 326, 14989, 358, 5672, 471, 18305, 283, 458, 367, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 1958, 11352, 8924, 288, 203, 565, 1426, 10799, 31, 203, 565, 1731, 1578, 508, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.4.25; // https://github.com/ethereum/EIPs/issues/20 interface TRC20 { function totalSupply() external view returns (uint supply); function balanceOf(address _owner) external view returns (uint balance); function transfer(address _to, uint _value) external returns (bool success); funct...
@title simple interface for Network
interface SimpleNetworkInterface { function swapTokenToToken(TRC20 src, uint srcAmount, TRC20 dest, uint minConversionRate) external returns(uint); function swapTomoToToken(TRC20 token, uint minConversionRate) external payable returns(uint); function swapTokenToTomo(TRC20 token, uint srcAmount, uint minConv...
1,804,197
[ 1, 9647, 1560, 364, 5128, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 4477, 27413, 288, 203, 565, 445, 7720, 1345, 774, 1345, 12, 4349, 39, 3462, 1705, 16, 2254, 1705, 6275, 16, 4235, 39, 3462, 1570, 16, 2254, 1131, 6814, 4727, 13, 3903, 1135, 12, 11890, 1769, 203, 565, 445, 7720, 56, 362, ...
pragma solidity >=0.0; import "../Oracles/UltimateOracle.sol"; /// @title Ultimate oracle factory contract - Allows to create ultimate oracle contracts /// @author Stefan George - <stefan@gnosis.pm> contract UltimateOracleFactory { /* * Events */ event UltimateOracleCreation( address index...
Events/ Public functions/ @dev Creates a new ultimate Oracle contract @param oracle Oracle address @param collateralToken Collateral token address @param spreadMultiplier Defines the spread as a multiple of the money bet on other outcomes @param challengePeriod Time to challenge oracle outcome @param challengeAmount...
{ ultimateOracle = new UltimateOracle( oracle, collateralToken, spreadMultiplier, challengePeriod, challengeAmount, frontRunnerPeriod ); emit UltimateOracleCreation( msg.sender, ultimateOracle, ...
6,363,280
[ 1, 3783, 19, 225, 7224, 4186, 19, 225, 10210, 279, 394, 225, 406, 4988, 28544, 6835, 225, 20865, 28544, 1758, 225, 4508, 2045, 287, 1345, 17596, 2045, 287, 1147, 1758, 225, 15103, 23365, 18003, 281, 326, 15103, 487, 279, 3229, 434, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 288, 203, 3639, 225, 406, 4988, 23601, 273, 394, 587, 5618, 4988, 23601, 12, 203, 5411, 20865, 16, 203, 5411, 4508, 2045, 287, 1345, 16, 203, 5411, 15103, 23365, 16, 203, 5411, 12948, 5027, 16, 203, 5411, 12948, 6275, 16, 20...
./full_match/1/0x06903cC35c37f90B4A9ef38B0b037262a327F83B/sources/contracts/Packing.sol
@dev This packs inputs into a bytes32 @param a The first type to pack @param b The second type to pack @return retval The packed bytes32
function addressUint96(address a, uint96 b) internal pure returns (bytes32 retval) { }
16,586,328
[ 1, 2503, 2298, 87, 4540, 1368, 279, 1731, 1578, 282, 279, 1377, 1021, 1122, 618, 358, 2298, 282, 324, 1377, 1021, 2205, 618, 358, 2298, 327, 5221, 1021, 12456, 1731, 1578, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1758, 5487, 10525, 12, 2867, 279, 16, 2254, 10525, 324, 13, 2713, 16618, 1135, 261, 3890, 1578, 5221, 13, 288, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/3/0x23A14F4200b1eB8A6dbcdD28a9BE07a978F4712e/sources/scripts/simplecoin.sol
set up a balances mapping a mapping is like hash table, or a dictionary or like a two-column spreadsheet index-> value
contract SimpleCoin is ERC20Interface{ address public owner; uint256 _totalSupply; string private _name; string public _symbol; uint8 public _decimals; mapping(address => uint256) private _balances; constructor() { owner = msg.sender; _symbol = "DigitalCoin"; _...
8,211,324
[ 1, 542, 731, 279, 324, 26488, 2874, 279, 2874, 353, 3007, 1651, 1014, 16, 578, 279, 3880, 578, 3007, 279, 2795, 17, 2827, 30775, 770, 2122, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4477, 27055, 353, 4232, 39, 3462, 1358, 95, 203, 203, 565, 1758, 1071, 3410, 31, 203, 565, 2254, 5034, 389, 4963, 3088, 1283, 31, 203, 565, 533, 3238, 389, 529, 31, 203, 565, 533, 1071, 389, 7175, 31, 203, 565, 2254, 28,...
/* This file is part of The Colony Network. The Colony Network is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The Colony Netwo...
Reset recovery state
recoveryMode = true;
7,267,724
[ 1, 7013, 11044, 919, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11044, 2309, 273, 638, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2020-10-14 */ /* __ __ ___ _ _ ___ __ __ | \/ | / \ | \| | / \ \ V / | |\/| | | - | | .` | | - | _\_/_ |_|__|_| |_...
1 hour after vmana ends
uint256 public starttime = 1603573200;
2,338,465
[ 1, 21, 6126, 1839, 4268, 13848, 3930, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 23437, 273, 2872, 4630, 10321, 1578, 713, 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, ...
/** *Submitted for verification at Etherscan.io on 2021-07-02 */ // SPDX-License-Identifier: MIT pragma solidity =0.7.6; pragma experimental ABIEncoderV2; /******************************************************************************\ * Author: Kevin Park, Email: [email protected], Twitter: @tenQkp, Telegram: @free...
The initial account to grant all the tokens Proposer must own enough tokens to submit a proposal The minimum amount of time a proposal can be voted on. In hours. The maximum amount of time a proposal can be voted on. In hours. Require an amount of governance tokens for votes to pass a proposal Proposers get an additio...
struct GovernanceStorage { mapping(address => uint96) balances; mapping(address => mapping(address => uint96)) approved; uint96 totalSupplyCap; uint96 totalSupply; address loveMinter; address loveBoat; uint256 mintingAllowedAfter; mapping(uint256 => Pr...
7,953,721
[ 1, 1986, 2172, 2236, 358, 7936, 777, 326, 2430, 1186, 5607, 1297, 4953, 7304, 2430, 358, 4879, 279, 14708, 1021, 5224, 3844, 434, 813, 279, 14708, 848, 506, 331, 16474, 603, 18, 657, 7507, 18, 1021, 4207, 3844, 434, 813, 279, 14708, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 1958, 611, 1643, 82, 1359, 3245, 288, 203, 3639, 2874, 12, 2867, 516, 2254, 10525, 13, 324, 26488, 31, 203, 3639, 2874, 12, 2867, 516, 2874, 12, 2867, 516, 2254, 10525, 3719, 20412, 31, 203, 3639, 2254, 10525, 2078, 3088, 12...
/** *Submitted for verification at Etherscan.io on 2020-09-24 */ 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...
*/ Your logic goes here. !! Ensure that *this contract* has enough of `_reserve` funds to payback the `_fee` !! reserve2BorrowRouting = [_reserve, weth, underlyingBorrow];
This function is called after your contract has received the flash loaned amount function executeOperation( address _reserve, uint256 _amount, uint256 _fee, bytes calldata _params ) external override { require( _amount <= getBalanceInternal(address(thi...
8,061,837
[ 1, 19, 20471, 4058, 13998, 2674, 18, 401, 5, 7693, 716, 333, 6835, 711, 7304, 434, 1375, 67, 455, 6527, 68, 284, 19156, 358, 8843, 823, 326, 1375, 67, 21386, 68, 401, 5, 20501, 22, 38, 15318, 13966, 273, 306, 67, 455, 6527, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 1220, 445, 353, 2566, 1839, 3433, 6835, 711, 5079, 326, 9563, 28183, 329, 3844, 203, 565, 445, 1836, 2988, 12, 203, 3639, 1758, 389, 455, 6527, 16, 203, 3639, 2254, 5034, 389, 8949, 16, 203, 3639, 2254, 5034, 389, 21386, 16...
./full_match/80001/0xb52b844F9c9481Bcb8CdDb44e6E8322267627fb6/sources/circuit_v2/contract/main/plonk_vk.sol
* @notice Verify a Ultra Plonk proof @param _proof - The serialized proof @param _publicInputs - An array of the public inputs @return True if proof is valid, reverts otherwise/* LOAD PROOF FROM CALLDATA/* LOAD RECURSIVE PROOF INTO MEMORY/ validate these are valid bn128 G1 points The public input location is stored at ...
function verify(bytes calldata _proof, bytes32[] calldata _publicInputs) external view returns (bool) { loadVerificationKey(N_LOC, OMEGA_INVERSE_LOC); uint256 requiredPublicInputCount; assembly { requiredPublicInputCount := mload(NUM_INPUTS_LOC) } if (requiredPub...
877,347
[ 1, 8097, 279, 587, 80, 2033, 3008, 265, 79, 14601, 225, 389, 24207, 300, 1021, 5343, 14601, 225, 389, 482, 10059, 300, 1922, 526, 434, 326, 1071, 4540, 327, 1053, 309, 14601, 353, 923, 16, 15226, 87, 3541, 19, 24089, 4629, 3932, 457...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3929, 12, 3890, 745, 892, 389, 24207, 16, 1731, 1578, 8526, 745, 892, 389, 482, 10059, 13, 3903, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 1262, 13483, 653, 12, 50, 67, 29450, 16, 531, 958, 25043, 67, 706, 28489, 67,...
./full_match/80001/0x8d42bb819B9f758aEe864a88dfCe9fB18F4e1073/sources/src/contracts/ContractOpenablePack.sol
@dev Add contents to an existing packId.
function addPackContents( uint256 _packId, Token[] calldata _contents, uint256[] calldata _numOfRewardUnits, address _recipient ) external payable onlyRoleWithSwitch(minterRole) nonReentrant returns (uint256 packTotalSupply, uint256 newSupp...
859,154
[ 1, 986, 2939, 358, 392, 2062, 2298, 548, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 4420, 6323, 12, 203, 3639, 2254, 5034, 389, 2920, 548, 16, 203, 3639, 3155, 8526, 745, 892, 389, 3980, 16, 203, 3639, 2254, 5034, 8526, 745, 892, 389, 2107, 951, 17631, 1060, 7537, 16, 203, 3639, 1758, 389, 20367, ...
pragma solidity ^0.5.0; /* Future Goals: - remove admins necessity - encourage contributors to allocate - needs incentive for someone to call forfeit - read from previous versions of the script DApp: - show tokens to allocate - allocate token to person with praise - leaderboard, showing amount totalReceiv...
Set Owner, Token address, initial maxContributors Body previousMeritocracy = Meritocracy(_previousMeritocracy); importPreviousMeritocracyData() TODO
constructor(address _token, uint256 _maxContributors, bytes memory _contributorListIPFSHash) public { owner = msg.sender; addAdmin(owner); lastForfeit = block.timestamp; token = ERC20Token(_token); maxContributors= _maxContributors; contributorListIPFSHash = _contribu...
12,859,510
[ 1, 694, 16837, 16, 3155, 1758, 16, 225, 2172, 943, 442, 665, 13595, 5652, 2416, 8478, 305, 504, 354, 2431, 273, 14940, 305, 504, 354, 2431, 24899, 11515, 8478, 305, 504, 354, 2431, 1769, 1930, 8351, 8478, 305, 504, 354, 2431, 751, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 2867, 389, 2316, 16, 2254, 5034, 389, 1896, 442, 665, 13595, 16, 1731, 3778, 389, 591, 19293, 682, 2579, 4931, 2310, 13, 1071, 288, 203, 3639, 3410, 273, 1234, 18, 15330, 31, 203, 3639, 527, 4446, 12, 8443, 1769, ...
./partial_match/4/0xf3a48a8324E269325D85a55199cC4eA37518EcE8/sources/SmolMuseum.sol
* @dev Contract for handling the NFT staking and set creation./
contract SmolMuseum is Ownable { using SafeMath for uint256; struct CardSet { uint256[] cardIds; uint256 tingPerDayPerCard; bool isRemoved; } SmolStudio public smolStudio; SmolTing public ting; TingBooster public tingBooster; SmolTingPot public smolTingPot; addr...
16,980,938
[ 1, 8924, 364, 5057, 326, 423, 4464, 384, 6159, 471, 444, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 9425, 355, 49, 1202, 379, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 1958, 14338, 694, 288, 203, 3639, 2254, 5034, 8526, 5270, 2673, 31, 203, 3639, 2254, 5034, 268, 310, 2173, ...
pragma solidity ^0.4.18; import './FuturesContract.sol'; import './oraclizeAPI.sol'; contract MarketPlace is usingOraclize { // Enum definitions enum UserLoginStatus { Online, Offline, Archieved } // Unscoped variables string public binanceBaseAPI = "https://api.binance.com/api/v3/ticker/price?symbol="; str...
User online status
UserLoginStatus status;
12,661,588
[ 1, 1299, 12365, 1267, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2177, 5358, 1482, 1267, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/3/0xD5eCd70DD7F6aA73d8295EB878AA5B2BD2c76512/sources/HotPotToken.sol
* @dev mint amount to address/
function mint(address account, uint256 amount) public onlyCreator { _mint(account, amount); }
5,076,406
[ 1, 81, 474, 3844, 358, 1758, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 2867, 2236, 16, 2254, 5034, 3844, 13, 1071, 1338, 10636, 288, 203, 540, 389, 81, 474, 12, 4631, 16, 3844, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// Sources flattened with hardhat v2.6.0 https://hardhat.org // File @openzeppelin/contracts/math/SafeMath.sol@v3.4.1-solc-0.7-2 // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in So...
list of addresses for owners and marketing wallet mapping will allow us to create a relationship of investor to their current remaining balance
contract PaymentContract is AccessControl { using SafeMath for uint256; string public name = "Cardino Payment Contract"; address public owner; uint256 public decimals = 10 ** 18; address[] private owners = [0xB3BEB19190DbfDaf17782A656210A9D5DbC84BB3, 0x5c1C906e89b59569e020a84b7958014f210cA255, ...
1,256,382
[ 1, 1098, 434, 6138, 364, 25937, 471, 13667, 310, 9230, 2874, 903, 1699, 584, 358, 752, 279, 5232, 434, 2198, 395, 280, 358, 3675, 783, 4463, 11013, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 12022, 8924, 353, 24349, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 533, 1071, 508, 273, 315, 6415, 15020, 12022, 13456, 14432, 203, 565, 1758, 1071, 3410, 31, 203, 203, 565, 2254, 5034, 1071, 151...
./full_match/11155111/0x8c49FD4432410E56023F654cbD13eB03411d9c3D/sources/contracts/Contract.sol
assign the contract owner to the registerar
contract certificate { address owner; uint256 public numberOfCertificates = 0; uint256[] certificateKeys; constructor() { owner = msg.sender; } modifier onlyOwner() { require( msg.sender == owner, "Only the registerar can perform this action" ); ...
3,835,011
[ 1, 6145, 326, 6835, 3410, 358, 326, 1744, 297, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4944, 288, 203, 565, 1758, 3410, 31, 203, 565, 2254, 5034, 1071, 7922, 14133, 273, 374, 31, 203, 565, 2254, 5034, 8526, 4944, 2396, 31, 203, 203, 565, 3885, 1435, 288, 203, 3639, 3410, 273, 1234, 18, 15330, 31, 203, 565, ...
pragma solidity 0.5.16; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./IStakingContract.sol"; import "./IStakeChangeNotifier.sol"; contract StakingContract is IStakingContract, IMigratableStakingContract { using SafeMath for uint256; struct Stake { uint256 amount; uint256 coo...
Represents whether the contract accepts new staking requests. Please note, that even when it's turned off, it'd be still possible to unstake or withdraw tokens. Note: This can be turned off only once by the emergency manager of the contract.
bool public acceptingNewStakes = true;
1,815,869
[ 1, 23869, 87, 2856, 326, 6835, 8104, 394, 384, 6159, 3285, 18, 7801, 4721, 16, 716, 5456, 1347, 518, 1807, 21826, 3397, 16, 518, 14271, 506, 4859, 3323, 358, 640, 334, 911, 578, 598, 9446, 2430, 18, 3609, 30, 1220, 848, 506, 21826, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1426, 1071, 25806, 1908, 510, 3223, 273, 638, 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, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./utils/BaseTest.sol"; import "./utils/mocks/MockERC721A.sol"; // import "solmate/test/ERC721.t.sol"; /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/test/ERC721.t.sol) contract ERC721Recipient is ERC721TokenReceiver { func...
vm.expectRevert(ERC721A.InvalidAmount.selector);
function testFail_mint_amountZero() public { erc721a.mint(alice, 0); }
15,866,372
[ 1, 3489, 18, 12339, 426, 1097, 12, 654, 39, 27, 5340, 37, 18, 1941, 6275, 18, 9663, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 1842, 3754, 67, 81, 474, 67, 8949, 7170, 1435, 1071, 288, 203, 3639, 6445, 71, 27, 5340, 69, 18, 81, 474, 12, 287, 1812, 16, 374, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./full_match/5/0x08fA73274Dc7EF3Eb0CDBb5D6D07C8454cD48b5A/sources/_superfluid-finance/ethereum-contracts/contracts/interfaces/superfluid/Definitions.sol
Validate configWord cleaness for future compatibility, or else may introduce undefined future behavior
function isConfigWordClean(uint256 configWord) internal pure returns (bool) { return (configWord & ~(APP_LEVEL_MASK | APP_JAIL_BIT | AGREEMENT_CALLBACK_NOOP_BITMASKS)) == uint256(0); }
1,890,005
[ 1, 4270, 642, 3944, 2721, 403, 364, 3563, 8926, 16, 578, 469, 2026, 16658, 311, 3109, 3563, 6885, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 353, 809, 3944, 7605, 12, 11890, 5034, 642, 3944, 13, 2713, 16618, 1135, 261, 6430, 13, 288, 203, 3639, 327, 261, 1425, 3944, 473, 4871, 12, 7215, 67, 10398, 67, 11704, 571, 9146, 67, 46, 6575, 67, 15650, 571, 432, 43...
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.7.0; pragma abicoder v2; import "../../internal/valuation/ExchangeRate.sol"; import "../../internal/markets/CashGroup.sol"; import "../../internal/nTokenHandler.sol"; import "../../internal/balances/TokenHandler.sol"; import "../../global/StorageLayoutV1.sol"...
Max positive value for a ABDK64x64 integer
library Market { using SafeMath for uint256; using SafeInt256 for int256; using CashGroup for CashGroupParameters; using AssetRate for AssetRateParameters; int256 private constant MAX64 = 0x7FFFFFFFFFFFFFFF; function addLiquidity(MarketParameters memory market, int256 assetCash) intern...
14,585,093
[ 1, 2747, 6895, 460, 364, 279, 10336, 3398, 1105, 92, 1105, 3571, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12083, 6622, 278, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 1702, 5034, 364, 509, 5034, 31, 203, 565, 1450, 385, 961, 1114, 364, 385, 961, 1114, 2402, 31, 203, 565, 1450, 10494, 4727, 364, 104...
/** *Submitted for verification at FtmScan.com on 2021-10-26 */ // SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * ...
number of loops we do
uint256 public iterations;
12,945,562
[ 1, 2696, 434, 14075, 732, 741, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 11316, 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,...
//Address: 0x25e3d9ed8f5c06f2b4d334294986894810619309 //Contract name: PriIcoSale2 //Balance: 0 Ether //Verification Date: 5/29/2018 //Transacion Count: 5 // CODE STARTS HERE pragma solidity 0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /**...
white list resist event
event ResistWhiteList(address funder, bool isRegist);
2,558,692
[ 1, 14739, 666, 400, 376, 871, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 1124, 376, 13407, 682, 12, 2867, 284, 9341, 16, 1426, 353, 1617, 376, 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,...
/** *Submitted for verification at Etherscan.io on 2021-11-15 */ // SPDX-License-Identifier: BSD-3-Clause // File: contracts/interfaces/IOwner.sol pragma solidity 0.8.4; /** * @title BiFi-Bifrost-Extension IOwner Interface * @notice Interface for Owner Contract * @author BiFi-Bifrost-Extension(seinmyung25, Miller-k...
* @dev Destroys `amount` tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `amount`./
function burnFrom(address account, uint256 amount) override public virtual returns (bool) { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), currentAllowance - amount); ...
10,896,096
[ 1, 9378, 28599, 1375, 8949, 68, 2430, 628, 1375, 4631, 9191, 11140, 853, 310, 628, 326, 4894, 1807, 1699, 1359, 18, 2164, 288, 654, 39, 3462, 17, 67, 70, 321, 97, 471, 288, 654, 39, 3462, 17, 5965, 1359, 5496, 29076, 30, 300, 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, 18305, 1265, 12, 2867, 2236, 16, 2254, 5034, 3844, 13, 3849, 1071, 5024, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 5034, 783, 7009, 1359, 273, 1699, 1359, 12, 4631, 16, 389, 3576, 12021, 10663, 203, 3639, 2583, 12, 297...
// SPDX-License-Identifier: Apache-2.0 /** * Authors: Moonstream Engineering (engineering@moonstream.to) * GitHub: https://github.com/bugout-dev/dao * * An ERC1155 implementation which uses the Moonstream DAO common storage structure for proxies. * EIP1155: https://eips.ethereum.org/EIPS/eip-1155 * * The Moonst...
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. Requirements: - `ids` and `amounts` must have the same length./
function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require( from != address(0), "ERC1155WithTerminusStorage: burn from the zero address" ); require( ids.length == amounts.lengt...
1,796,036
[ 1, 22044, 30, 9185, 30, 12610, 2499, 2539, 18, 4539, 5303, 17, 17542, 63, 4497, 329, 65, 1177, 434, 288, 67, 70, 321, 5496, 29076, 30, 300, 1375, 2232, 68, 471, 1375, 8949, 87, 68, 1297, 1240, 326, 1967, 769, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 70, 321, 4497, 12, 203, 3639, 1758, 628, 16, 203, 3639, 2254, 5034, 8526, 3778, 3258, 16, 203, 3639, 2254, 5034, 8526, 3778, 30980, 203, 565, 262, 2713, 5024, 288, 203, 3639, 2583, 12, 203, 5411, 628, 480, 1758, ...
./partial_match/1/0x23a0e57620c875Cb3F1EdDcb7f8FAfBF2A466D83/sources/TWOBASED.sol
no fees for distributorsno fees between exchangerssellingbuying or selling
function _transfer(address sender, address recipient, uint256 amount) internal override { uint256 sellFeeAmount = 0; uint256 transferAmount = amount; if(!_isDistributor[sender] && !_isDistributor[recipient]) { if(!(_isExchanger[sender] && _is...
3,927,381
[ 1, 2135, 1656, 281, 364, 1015, 665, 13595, 2135, 1656, 281, 3086, 431, 24083, 414, 87, 1165, 310, 70, 9835, 310, 578, 357, 2456, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13866, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 13, 203, 3639, 2713, 203, 3639, 3849, 203, 565, 288, 203, 3639, 2254, 5034, 357, 80, 14667, 6275, 273, 374, 31, 203, 3639, 2254, 5034, 7412, 6275, 273, ...
pragma solidity ^0.4.18; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; return c; ...
STARTING_CLAIM_PRICE_WEI.add(STARTING_CLAIM_PRICE_WEI.mul(2));
uint nextMinimumPrice = 0.09 ether;
10,692,848
[ 1, 7570, 1360, 67, 15961, 3445, 67, 7698, 1441, 67, 6950, 45, 18, 1289, 12, 7570, 1360, 67, 15961, 3445, 67, 7698, 1441, 67, 6950, 45, 18, 16411, 12, 22, 10019, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 1024, 13042, 5147, 273, 374, 18, 5908, 225, 2437, 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, -...
pragma solidity ^0.5.0; // Copyright © 2017, 2018 Weald Technology Trading Limited // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // //...
* @title SimpleTokenStore SimpleTokenStore provides storage for an ERC-20 contract separate from the contract itself. This separation of token logic and storage allows upgrades to token functionality without requiring expensive copying of the token allocation information. Calling fun...
contract SimpleTokenStore is ITokenStore { using SafeMath for uint256; mapping(address=>uint256) internal balances; mapping(address=>mapping(address=>uint256)) internal allowances; bool public mintingEnabled; bytes32 internal constant PERM_MINT = keccak256("token storage: mint"); bytes32 inte...
1,060,016
[ 1, 5784, 1345, 2257, 3639, 4477, 1345, 2257, 8121, 2502, 364, 392, 4232, 39, 17, 3462, 6835, 9004, 628, 3639, 326, 6835, 6174, 18, 225, 1220, 5102, 367, 434, 1147, 4058, 471, 2502, 3639, 5360, 28844, 358, 1147, 14176, 2887, 29468, 193...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4477, 1345, 2257, 353, 467, 1345, 2257, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2874, 12, 2867, 9207, 11890, 5034, 13, 2713, 324, 26488, 31, 203, 565, 2874, 12, 2867, 9207, 6770, 12, 2867, 92...
./full_match/4/0x507CdaD90F8AE7D4BBa5e05F2a1012f7f4b07053/sources/_aave/core-v3/contracts/misc/AaveProtocolDataProvider.sol
* @notice Returns the debt ceiling decimals @return The debt ceiling decimals/
function getDebtCeilingDecimals() external pure returns (uint256) { return ReserveConfiguration.DEBT_CEILING_DECIMALS; }
661,612
[ 1, 1356, 326, 18202, 88, 5898, 4973, 15105, 327, 1021, 18202, 88, 5898, 4973, 15105, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 336, 758, 23602, 39, 73, 4973, 31809, 1435, 3903, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 1124, 6527, 1750, 18, 1639, 38, 56, 67, 1441, 2627, 1360, 67, 23816, 55, 31, 203, 225, 289, 203, 203, 2, -100, ...