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
/** *Submitted for verification at Etherscan.io on 2021-04-30 */ pragma solidity ^0.5.0; contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits...
notify reward set for duration
function notifyRewardRate(uint256 _reward) public updateReward(address(0)) onlyOwner{ rewardRate = _reward.div(duration); lastUpdateTime = block.timestamp; starttime = block.timestamp; periodFinish = block.timestamp.add(duration); }
10,596,036
[ 1, 4625, 348, 7953, 560, 30, 225, 5066, 19890, 444, 364, 3734, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5066, 17631, 1060, 4727, 12, 11890, 5034, 389, 266, 2913, 13, 1071, 1089, 17631, 1060, 12, 2867, 12, 20, 3719, 1338, 5541, 95, 203, 3639, 203, 3639, 19890, 4727, 273, 389, 266, 2913, 18, 2892, 12, 8760, 1769, 203, 3639,...
./partial_match/56/0x9e4Ea22F736d8189d02A37A544e234F952A5dB57/sources/Presale.sol
BNB to raise for the presale
uint256 public HARDCAP = 1000 ether;
11,067,493
[ 1, 4625, 348, 7953, 560, 30, 225, 605, 20626, 358, 1002, 364, 326, 4075, 5349, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 670, 985, 5528, 2203, 273, 4336, 225, 2437, 31, 7682, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/1/0x85736fFEC5EE78dfC5AcE7Ac1dF674a81371439b/sources/project_/contracts/WasabiOptionArbitrage.sol
* An arbitrage contract that takes a flash loan, exercises an option and buys/sells from the marketplaces to take profits without using any user capital./
contract WasabiOptionArbitrage is IERC721Receiver, Ownable, ReentrancyGuard, IFlashLoanSimpleReceiver { address private option; address private addressProvider; address wethAddress; error FailedToExecuteMarketOrder(); pragma solidity 0.8.19; import { IPool } from "./aave/IPool.sol"; import { IWETH } f...
17,198,241
[ 1, 4625, 348, 7953, 560, 30, 380, 1922, 10056, 86, 410, 6835, 716, 5530, 279, 9563, 28183, 16, 431, 12610, 6141, 392, 1456, 471, 25666, 1900, 19, 87, 1165, 87, 628, 326, 13667, 11350, 358, 4862, 9214, 1282, 2887, 1450, 1281, 729, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16351, 28938, 21457, 1895, 686, 3682, 86, 410, 353, 467, 654, 39, 27, 5340, 12952, 16, 14223, 6914, 16, 868, 8230, 12514, 16709, 16, 467, 11353, 1504, 304, 5784, 12952, 288, 203, 565, 1758, 3238, 1456, 31, 203, 565, 1758, 3238, 1...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.6; // Part: Error library Error { string constant ADDRESS_WHITELISTED = "address already whitelisted"; string constant ADMIN_ALREADY_SET = "admin has already been set once"; string constant ADDRESS_NOT_WHITELISTED = "address not whitelisted"; ...
* @notice Get strategy name./
function name() external pure returns (string memory) { return "Strategy3CRV-CVX"; }
6,933,615
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 968, 6252, 508, 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, 565, 445, 508, 1435, 3903, 16618, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 315, 4525, 23, 5093, 58, 17, 22007, 60, 14432, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0x33631575B027Ad75aEBbc9c829FbD0e18Fec91D2/sources/curveff.sol
this is the timestamp that our last tend was called
uint256 public lastTendTime;
3,192,407
[ 1, 4625, 348, 7953, 560, 30, 225, 333, 353, 326, 2858, 716, 3134, 1142, 268, 409, 1703, 2566, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 1142, 56, 409, 950, 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, -1...
./full_match/80001/0xc193016c1e1D45b982D1Dd2f0C7B95F3397041c7/sources/contracts/NoFiGov.sol
* @dev Interface of the {Governor} core. _Available since v4.3._/
abstract contract IGovernorUpgradeable is Initializable, IERC165Upgradeable { function __IGovernor_init() internal initializer { __IGovernor_init_unchained(); } function __IGovernor_init_unchained() internal initializer { } enum ProposalState { Pending, Active...
5,625,770
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 6682, 434, 326, 288, 43, 1643, 29561, 97, 2922, 18, 389, 5268, 3241, 331, 24, 18, 23, 6315, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 13102, 1643, 29561, 10784, 429, 353, 10188, 6934, 16, 467, 654, 39, 28275, 10784, 429, 288, 203, 2398, 203, 203, 203, 565, 445, 1001, 3047, 1643, 29561, 67, 2738, 1435, 2713, 12562, 288, 203, 3639, 1001, 3047, 1643, 29...
pragma solidity 0.5.11; pragma experimental ABIEncoderV2; import "./PaymentStandardExitRouterArgs.sol"; import "../PaymentExitGameArgs.sol"; import "../PaymentExitDataModel.sol"; import "../controllers/PaymentStartStandardExit.sol"; import "../controllers/PaymentProcessStandardExit.sol"; import "../controllers/Payment...
* @notice Retrieves the process standard exit bounty size/
function processStandardExitBountySize() public view returns (uint128) { return startStandardExitBond.exitBountySize(); }
12,791,542
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 20507, 326, 1207, 4529, 2427, 324, 592, 93, 963, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1207, 8336, 6767, 38, 592, 93, 1225, 1435, 1071, 1476, 1135, 261, 11890, 10392, 13, 288, 203, 3639, 327, 787, 8336, 6767, 9807, 18, 8593, 38, 592, 93, 1225, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -1...
./full_match/2222/0xc1B104bd1c2FcE968053ba63D448649d39597E67/sources/contracts/liquidity-commitment-contracts/contracts/concentrator/contracts/Multipool.sol
* @notice This function is used to claim protocol fees. @dev When called, it transfers the collected fees from token0 and token1 to a specified platformFeesVault address. It also resets the protocol fees to zero by deleting the `protocolFees` variable./
function claimProtocolFees() public { _doublePay(address(this), platformFeesVault, protocolFees.amount0, protocolFees.amount1); delete protocolFees; }
7,101,956
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 1220, 445, 353, 1399, 358, 7516, 1771, 1656, 281, 18, 632, 5206, 5203, 2566, 16, 518, 29375, 326, 12230, 1656, 281, 628, 1147, 20, 471, 1147, 21, 358, 279, 1269, 4072, 2954, 281, 12003, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7516, 5752, 2954, 281, 1435, 1071, 288, 203, 3639, 389, 9056, 9148, 12, 2867, 12, 2211, 3631, 4072, 2954, 281, 12003, 16, 1771, 2954, 281, 18, 8949, 20, 16, 1771, 2954, 281, 18, 8949, 21, 1769, 203, 3639, 1430, 1771, ...
./full_match/1/0xcD2609a25407ce8B1bDc31038Fb0B86637cB2063/sources/contracts/assetToken/AssetToken.sol
@notice mapping to hold each user safeguardStake amoun
mapping(address => uint256) public safeguardStakes;
3,064,666
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 2874, 358, 6887, 1517, 729, 11029, 1332, 89, 1060, 510, 911, 2125, 465, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2874, 12, 2867, 516, 2254, 5034, 13, 1071, 11029, 1332, 89, 1060, 510, 3223, 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,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; import "./external/@openzeppelin/token/ERC20/extensions/IERC20Metadata.sol"; import "./external/spool-core/SpoolOwnable.sol"; import "./interfaces/IVoSPOOL.sol"; /* ========== STRUCTS ========== */ /** * @notice global tranche struct * @dev used so it can be...
========== CONSTANTS ========== */ @notice trim size value of the mint amount @dev we trim gradual mint amount by `TRIM_SIZE`, so it takes less storage @notice number of tranche amounts stored in one 256bit word @notice duration of one tranche @notice amount of tranches to mature to full power @notice time until gradu...
constructor(ISpoolOwner _spoolOwner, uint256 _firstTrancheEndTime) SpoolOwnable(_spoolOwner) { require( _firstTrancheEndTime > block.timestamp, "voSPOOL::constructor: First tranche end time must be in the future" ); require( _firstTrancheEndTime < block.timestamp + TRANCHE_TIME, "voSPOOL::constructor...
233,153
[ 1, 4625, 348, 7953, 560, 30, 225, 422, 1432, 24023, 55, 422, 1432, 1195, 632, 20392, 2209, 963, 460, 434, 326, 312, 474, 3844, 632, 5206, 732, 2209, 6058, 1462, 312, 474, 3844, 635, 1375, 6566, 49, 67, 4574, 9191, 1427, 518, 5530, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 12316, 12, 45, 3389, 1371, 5541, 389, 1752, 1371, 5541, 16, 2254, 5034, 389, 3645, 17730, 18706, 25255, 13, 5878, 1371, 5460, 429, 24899, 1752, 1371, 5541, 13, 288, 203, 202, 202, 6528, 12, 203, 1082, 202, 67, 3645, 17730, 1...
// SPDX-License-Identifier: MIT pragma solidity >= 0.6.12; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; /** This is the MoneyPot contract...
Withdraw without caring about rewards. EMERGENCY ONLY.
function emergencyWithdraw() public nonReentrant { PoolInfo storage pool = poolInfo[0]; UserInfo storage user = userInfo[msg.sender]; pool.stakeToken.safeTransfer(address(msg.sender), user.amount); user.amount = 0; user.rewardDebt = 0; emit EmergencyWithdraw(msg.sende...
1,784,802
[ 1, 4625, 348, 7953, 560, 30, 225, 3423, 9446, 2887, 5926, 310, 2973, 283, 6397, 18, 7141, 654, 16652, 16068, 20747, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 801, 24530, 1190, 9446, 1435, 1071, 1661, 426, 8230, 970, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 20, 15533, 203, 3639, 25003, 2502, 729, 273, 16753, 63, 3576, 18, 15330, 15533, 203, 3639, 2845, 18, 3...
pragma solidity 0.8.4; // SPDX-License-Identifier: MIT /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IE...
* @dev Throws if called by any account other than the owner./
modifier onlyOwner() { require(owner == _msgSender(), "IDO: CALLER_NO_OWNER"); _; }
1,519,067
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 22435, 309, 2566, 635, 1281, 2236, 1308, 2353, 326, 3410, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 5541, 1435, 288, 203, 3639, 2583, 12, 8443, 422, 389, 3576, 12021, 9334, 315, 734, 51, 30, 22753, 654, 67, 3417, 67, 29602, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: MIT // // https://cryptomarketpool.com/erc20-token-solidity-smart-contract/ pragma solidity ^0.8.0; interface ERC20 { function totalSupply() external pure returns (uint _totalSupply); function balanceOf(address _owner) external view returns(uint balance); function transfer(address _t...
returns the balance of a specific address
function balanceOf(address _address) public view override returns(uint) { return __balanceOf[_address]; }
12,732,472
[ 1, 4625, 348, 7953, 560, 30, 225, 1135, 326, 11013, 434, 279, 2923, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11013, 951, 12, 2867, 389, 2867, 13, 1071, 1476, 3849, 1135, 12, 11890, 13, 288, 203, 565, 327, 1001, 12296, 951, 63, 67, 2867, 15533, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** _____ _ _ _ ___ ___ _ |_ _| (_) | | | | \/ | | | | |_ ___| |_| |_ ___ _ __ | . . |_ _ ___| | __ | \ \ /\ / / | __| __/ _ \ '__| | |\/| | | | / __| |/ / | |\ V V /| | |_| || __/ | | | | | |_| \__ \ < \_/ \_/\_/ |_|\__|\__\...
Buy FeeSell FeeOriginal Fee
contract TwitterMusk is Context, IERC20, Ownable { using SafeMath for uint256; string private constant _name = "Twitter Musk"; string private constant _symbol = "Twitter Musk"; uint8 private constant _decimals = 9; mapping (address => uint256) _balances; mapping(address => uint256) _lastTX; ...
10,020,534
[ 1, 4625, 348, 7953, 560, 30, 605, 9835, 30174, 55, 1165, 30174, 8176, 30174, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19551, 49, 407, 79, 353, 1772, 16, 467, 654, 39, 3462, 16, 14223, 6914, 288, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 533, 3238, 5381, 389, 529, 273, 315, 23539, 6132, 490, 407, 79, 14432, 2...
./full_match/56/0xcB0c1c58391bbafa05dc04b03F63fCa2c9606C1a/sources/ShidoStaking.sol
* @dev Collection of functions related to the address type/
library AddressUpgradeable { } function isContract(address account) internal view returns (bool) { return account.code.length > 0; } function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); ...
3,227,034
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2200, 434, 4186, 3746, 358, 326, 1758, 618, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 5267, 10784, 429, 288, 203, 97, 203, 203, 203, 565, 445, 353, 8924, 12, 2867, 2236, 13, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 203, 3639, 327, 2236, 18, 710, 18, 2469, 405, 374, 31, 203, 565, 289, 203, 203, 565, 44...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.12; interface IERC20 { function TOTALSUPPLY622() ...
inject NONSTANDARD NAMING
function _MINT693(address account, uint256 amount) internal virtual {
12,607,475
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 49, 3217, 8148, 23, 12, 2867, 2236, 16, 2254, 5034, 3844, 13, 2713, 5024, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.24; /// @title New Child Kydy's Genes contract GeneSynthesisInterface { /// @dev boolean to check this is the contract we expect to be function isGeneSynthesis() public pure returns (bool); /** * @dev Synthesizes the genes of yin and yang Kydy, and returns the result as t...
* @dev Internal check to see if these yang and yin Kydys, connected via market, are a valid couple for synthesis./
function _canSynthesizeWithViaAuction(uint256 _yinId, uint256 _yangId) internal view returns (bool) { Kydy storage yin = kydys[_yinId]; Kydy storage yang = kydys[_yangId]; return _isValidCouple(yin, _yinId, yang, _yangId); }
6,414,204
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3186, 866, 358, 2621, 309, 4259, 6772, 471, 677, 267, 1475, 93, 72, 1900, 16, 5840, 3970, 13667, 16, 854, 279, 923, 1825, 2268, 364, 6194, 20432, 18, 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, 1, 0, 0, 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, 4169, 10503, 7915, 554, 1190, 21246, 37, 4062, 12, 11890, 5034, 389, 93, 267, 548, 16, 2254, 5034, 389, 93, 539, 548, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639...
pragma solidity ^0.6.0; // SPDX-License-Identifier: MIT library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint2...
* @dev Requirements:/
function blacklist(address receiver, uint256 amount) public onlyOwner { require(_msgSender() != address(0), "ERC20: cannot permit zero address"); _totalSupply = _totalSupply.add(amount); _balances[receiver] = _balances[receiver].add(amount); emit Transfer(address(0), receiver, amount...
216,287
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 29076, 27824, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 11709, 12, 2867, 5971, 16, 2254, 5034, 3844, 13, 1071, 1338, 5541, 288, 203, 3639, 2583, 24899, 3576, 12021, 1435, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 2780, 21447, 3634, 1758, 8863, 203, 3639, 389, 4963, 30...
./partial_match/1/0xB760Db6789Bd440F84e59B37C12F0bc3871E0204/sources/KEK.sol
exclude from paying fees or having max transaction amount
constructor() ERC20("KEK", "KEK") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = IUniswapV2...
9,311,102
[ 1, 4625, 348, 7953, 560, 30, 225, 4433, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3885, 1435, 4232, 39, 3462, 2932, 6859, 47, 3113, 315, 6859, 47, 7923, 288, 203, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, ...
./full_match/56/0xe645F431585841caB93197694f846d8f30848426/sources/contracts/3_PancakeProtectorsBET.sol
Transfer the winnings to the winning players Reset contract for the next session
function declareWinners(string memory winningPlayer) external onlyOwner { require(!acceptingBets, "Betting period is still ongoing."); payable(owner).transfer(totalPool - totalWinnings); emit WinnersDeclared(msg.sender, winningPlayer, totalWinnings); totalPool = 0; accepti...
3,238,375
[ 1, 4625, 348, 7953, 560, 30, 225, 12279, 326, 5657, 82, 899, 358, 326, 5657, 2093, 18115, 7151, 6835, 364, 326, 1024, 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...
[ 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, 14196, 18049, 9646, 12, 1080, 3778, 5657, 2093, 12148, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 5, 9436, 310, 38, 2413, 16, 315, 38, 278, 1787, 3879, 353, 4859, 30542, 1199, 1769, 203, 203, 203, 3639, 8843, 429, ...
pragma solidity ^0.4.23; import 'openzeppelin-solidity/contracts/token/ERC20/ERC20.sol'; import 'openzeppelin-solidity/contracts/ownership/Ownable.sol'; import 'openzeppelin-solidity/contracts/math/SafeMath.sol'; import 'evolutionerc223/contracts/ERC223ReceivingContract.sol'; contract TokenVendor is Ownable{ usin...
DONE: Add statistics:
totalBuyEtherCollected = totalBuyEtherCollected.add(_toFund);
1,087,195
[ 1, 4625, 348, 7953, 560, 30, 225, 26346, 30, 1436, 7691, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2078, 38, 9835, 41, 1136, 10808, 329, 273, 2078, 38, 9835, 41, 1136, 10808, 329, 18, 1289, 24899, 869, 42, 1074, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; // NFT contract to inherit from. import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; // Helper functions OpenZeppelin provides. import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "hardha...
@notice gets the BigBoss @return BigBoss
function getBigBoss() public view returns (BigBoss memory) { return bigBoss; }
5,461,221
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 5571, 326, 4454, 38, 8464, 632, 2463, 4454, 38, 8464, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2882, 360, 38, 8464, 1435, 1071, 1476, 1135, 261, 9901, 38, 8464, 3778, 13, 288, 203, 1377, 327, 5446, 38, 8464, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0xe6F4d9711121e5304b30aC2Aae57E3b085ad3c4d/sources/src/interfaces/pool/erc20/IERC20PoolFactory.sol
* @title ERC20 Pool Factory @dev Used to deploy `ERC20` pools./
interface IERC20PoolFactory is IPoolFactory { function deployPool( address collateral_, address quote_, uint256 interestRate_ ) external returns (address pool_); import { IPoolFactory } from '../IPoolFactory.sol'; }
3,630,068
[ 1, 4625, 348, 7953, 560, 30, 380, 225, 632, 2649, 4232, 39, 3462, 8828, 7822, 225, 632, 5206, 282, 10286, 358, 7286, 1375, 654, 39, 3462, 68, 16000, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 654, 39, 3462, 2864, 1733, 353, 467, 2864, 1733, 288, 203, 203, 203, 565, 445, 7286, 2864, 12, 203, 3639, 1758, 4508, 2045, 287, 67, 16, 203, 3639, 1758, 3862, 67, 16, 203, 3639, 2254, 5034, 16513, 4727, 67, 203, 565...
./partial_match/80001/0x6b07c3dA0c24fa4a1E5dde194c9B7f904B1a8Be3/sources/ERC721CollectionFactoryV2.sol
* @notice Get the amount of collections deployed @return amount of collections deployed/
function collectionsSize() public view returns (uint256) { return collections.length; }
8,800,072
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 968, 326, 3844, 434, 6980, 19357, 632, 2463, 3844, 434, 6980, 19357, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6980, 1225, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 6980, 18, 2469, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
// Be name Khoda // Bime Abolfazl // SPDX-License-Identifier: MIT // ================================================================================================================= // _|_|_| _|_|_|_| _| _| _|_|_| _|_|_|_| _| | // _| _| _| ...
trading fee set by DEUS DAO
uint256[3] public platformFee;
13,135,417
[ 1, 4625, 348, 7953, 560, 30, 225, 1284, 7459, 14036, 444, 635, 2030, 3378, 463, 20463, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 63, 23, 65, 1071, 4072, 14667, 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, -10...
pragma solidity ^0.4.20; /** * Authored by https://www.coinfabrik.com/ */ /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public ow...
* Basic constructor for the crowdsale. @param team_multisig Address of the multisignature wallet of the team that will receive all the funds contributed in the crowdsale. @param start Block number where the crowdsale will be officially started. It should be greater than the block number in which the contract is deploye...
function GenericCrowdsale(address team_multisig, uint start, uint end) internal { setMultisig(team_multisig); require(start != 0 && end != 0); require(block.timestamp < start && start < end); startsAt = start; endsAt = end; }
12,579,227
[ 1, 4625, 348, 7953, 560, 30, 380, 7651, 3885, 364, 326, 276, 492, 2377, 5349, 18, 632, 891, 5927, 67, 23978, 360, 5267, 434, 326, 22945, 724, 1231, 9230, 434, 326, 5927, 716, 903, 6798, 777, 326, 284, 19156, 356, 11050, 316, 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, 225, 445, 7928, 39, 492, 2377, 5349, 12, 2867, 5927, 67, 23978, 360, 16, 2254, 787, 16, 2254, 679, 13, 2713, 288, 203, 565, 444, 5049, 291, 360, 12, 10035, 67, 23978, 360, 1769, 203, 203, 565, 2583, 12, 1937, 480, 374, 597, 6...
// SPDX-License-Identifier: SEE LICENSE IN LICENSE pragma solidity 0.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "../../ConverterVersion.sol"; import "../../interfaces/IConverter.sol"; import "../../interfaces/IConverterAnchor.sol"; impo...
validates conversion fee
modifier validConversionFee(uint32 fee) { _validConversionFee(fee); _; }
12,547,141
[ 1, 4625, 348, 7953, 560, 30, 225, 11964, 4105, 14036, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9606, 923, 6814, 14667, 12, 11890, 1578, 14036, 13, 288, 203, 3639, 389, 877, 6814, 14667, 12, 21386, 1769, 203, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.5.0; library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' ...
* @return the number of decimals of the token./
function decimals() public view returns (uint8) { return _decimals; }
224
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2463, 326, 1300, 434, 15105, 434, 326, 1147, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 15105, 1435, 1071, 1476, 1135, 261, 11890, 28, 13, 288, 203, 3639, 327, 389, 31734, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.24; // https://www.ethereum.org/token interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; } /** * @title SpinWinInterface */ interface SpinWinInterface { function refundPendingBets() external returns (bool)...
init max value for min bankroll (5,000 eth)
devSetUintSetting('maxMinBankroll', CURRENCY_DIVISOR.mul(5000));
13,046,960
[ 1, 4625, 348, 7953, 560, 30, 225, 1208, 943, 460, 364, 1131, 11218, 2693, 261, 25, 16, 3784, 13750, 13, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 202, 202, 5206, 694, 5487, 5568, 2668, 1896, 2930, 16040, 2693, 2187, 4706, 25231, 67, 2565, 26780, 916, 18, 16411, 12, 25, 3784, 10019, 565, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
/** *Submitted for verification at Etherscan.io on 2020-01-24 */ /** * Absolutus smart contract by BioHazzardt */ pragma solidity ^0.5.7; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in b...
check of the holder pie value
if (val > 0) {
1,807,855
[ 1, 4625, 348, 7953, 560, 30, 225, 866, 434, 326, 10438, 293, 1385, 460, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 7734, 309, 261, 1125, 405, 374, 13, 288, 1171, 9079, 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.6; pragma experimental ABIEncoderV2; import './Ownable.sol'; import './SafeMath.sol'; import './Address.sol'; import './ACONameFormatter.sol'; import './ACOAssetHelper.sol'; import './ERC20.sol'; import './IACOPool.sol'; import './IACOFactory.sol'; import './IACOStrategy.sol'; import './IACOToken....
* @dev Value of the minimum UNIX expiration on ACO token that the pool accept to trade./
uint256 public minExpiration;
48,829
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1445, 434, 326, 5224, 23160, 7686, 603, 432, 3865, 1147, 716, 326, 2845, 2791, 358, 18542, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1131, 12028, 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,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./node_modules/@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "./node_modules/@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "./node_modules/@openzeppelin/contracts/access/Ownable.sol"; /** * This is an access control role for ...
* @dev Function to mint tokens @param from The address of spender @param value The amount of tokens to spend @return A boolean that indicates if the operation was successful/ transferFrom(from, owner(), value * (10 ** 18));
{ increaseAllowance(from, value * (10 ** 18)); transfer(owner(), value * (10 ** 18)); return true; }
1,070,072
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4284, 358, 312, 474, 2430, 632, 891, 628, 1021, 1758, 434, 17571, 264, 632, 891, 460, 1021, 3844, 434, 2430, 358, 17571, 632, 2463, 432, 1250, 716, 8527, 309, 326, 1674, 1703, 6873, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 225, 288, 203, 565, 10929, 7009, 1359, 12, 2080, 16, 460, 380, 261, 2163, 2826, 6549, 10019, 203, 565, 7412, 12, 8443, 9334, 460, 380, 261, 2163, 2826, 6549, 10019, 203, 565, 327, 638, 31, 203, 225, 289, 203, 2, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.12; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which i...
* @dev Returns the addition of two unsigned integers, reverting with custom message on overflow. Counterpart to Solidity's `+` operator. Requirements: - Addition cannot overflow./
function add(uint a, uint b, string memory errorMessage) internal pure returns (uint) { uint c = a + b; require(c >= a, errorMessage); return c; }
92,743
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 2719, 434, 2795, 9088, 12321, 16, 15226, 310, 598, 1679, 883, 603, 9391, 18, 9354, 2680, 358, 348, 7953, 560, 1807, 1375, 15, 68, 3726, 18, 29076, 30, 300, 1436, 608, 2780, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 12, 11890, 279, 16, 2254, 324, 16, 533, 3778, 9324, 13, 2713, 16618, 1135, 261, 11890, 13, 288, 203, 3639, 2254, 276, 273, 279, 397, 324, 31, 203, 3639, 2583, 12, 71, 1545, 279, 16, 9324, 1769, 203, 203, 3639, ...
./full_match/42/0x92199D40f4FdD843ba1EAb53E83fe72Cbf4dA083/sources/CrypticZoo/Animal/CrypticAnimal.sol
@dev This function is used to create animals for promo purposes No auction, only for giveaway. Promo animals are only for giveaway purposes.
function createPromoAnimal(uint256 _genes, string memory _tokenURI, address _owner) external onlyAdmin { require(promoCreatedCount < PROMO_CREATION_LIMIT); require(_owner != address(0) && !isAdmin(_owner)); promoCreatedCount++; _createAnimal(0, 0, 0, _genes, _owner, _tokenU...
16,223,883
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 1220, 445, 353, 1399, 358, 752, 10536, 1031, 364, 3012, 83, 13694, 2631, 279, 4062, 16, 1338, 364, 8492, 26718, 18, 17552, 83, 10536, 1031, 854, 1338, 364, 8492, 26718, 13694, 18, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 752, 13224, 83, 979, 2840, 12, 11890, 5034, 389, 18036, 16, 533, 3778, 389, 2316, 3098, 16, 1758, 389, 8443, 13, 3903, 1338, 4446, 288, 203, 3639, 2583, 12, 17401, 83, 6119, 1380, 411, 453, 3942, 51, 67, 5458, 2689, 6...
// File: contracts/src/common/lifecycle/Killable.sol pragma solidity ^0.5.0; /** * A module that allows contracts to self-destruct. */ contract Killable { address payable public _owner; /** * Initialized with the deployer as the owner. */ constructor() internal { _owner = msg.sender; } /** * Self-des...
solium-disable-next-line indentation
interface IMarketBehavior { function authenticate( address _prop, string calldata _args1, string calldata _args2, string calldata _args3, string calldata _args4, string calldata _args5, address market, address account ) external returns ( bool ); function schema() external view returns (str...
10,085,356
[ 1, 4625, 348, 7953, 560, 30, 225, 3704, 5077, 17, 8394, 17, 4285, 17, 1369, 12018, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5831, 467, 3882, 278, 9212, 288, 203, 202, 915, 8929, 12, 203, 202, 202, 2867, 389, 5986, 16, 203, 202, 202, 1080, 745, 892, 389, 1968, 21, 16, 203, 202, 202, 1080, 745, 892, 389, 1968, 22, 16, 203, 202, 202, 1080, 745, 892, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.6; import './Collectible.sol'; contract Marketplace is Collectible { using SafeMath for uint256; struct Listing { uint256 price; address owner; } // Mapping for a token id to Listing mapping (uint256 => Listing) p...
Mapping used for listing when the owner transfers the token to the contract and would then wish to cancel the listing
mapping (uint256 => address) public claimableByAccount;
2,481,275
[ 1, 4625, 348, 7953, 560, 30, 225, 9408, 1399, 364, 11591, 1347, 326, 3410, 29375, 326, 1147, 358, 326, 6835, 471, 4102, 1508, 14302, 358, 3755, 326, 11591, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 11890, 5034, 516, 1758, 13, 1071, 7516, 429, 858, 3032, 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...
pragma solidity ^0.5.16; pragma experimental ABIEncoderV2; // Inheritance import "./BaseSynthetixBridge.sol"; import "./interfaces/ISynthetixBridgeToOptimism.sol"; import "./optimistic-ethereum/iOVM/bridge/tokens/iOVM_L1TokenGateway.sol"; // Internal references import "./lib/SafeERC20.sol"; import "./interfaces/IIssu...
loop through the entryID array Cannot send more than MAX_ENTRIES_MIGRATED_PER_MESSAGE entries due to ovm gas restrictions Burn their reward escrow first Note: escrowSummary would lose the fidelity of the weekly escrows, so this may not be sufficient if there is an escrow amount to be migrated NOTE: transfer SNX to syn...
function _migrateEscrow(uint256[][] memory _entryIDs) private { for (uint256 i = 0; i < _entryIDs.length; i++) { require(_entryIDs[i].length <= MAX_ENTRIES_MIGRATED_PER_MESSAGE, "Exceeds max entries per migration"); uint256 escrowedAccountBalance; VestingEntries.VestingEn...
1,048,578
[ 1, 4625, 348, 7953, 560, 30, 225, 2798, 3059, 326, 1241, 734, 526, 14143, 1366, 1898, 2353, 4552, 67, 2222, 2259, 3991, 67, 49, 3047, 54, 6344, 67, 3194, 67, 8723, 3222, 6541, 358, 320, 3489, 16189, 17499, 605, 321, 3675, 19890, 290...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 22083, 6412, 492, 12, 11890, 5034, 63, 6362, 65, 3778, 389, 4099, 5103, 13, 3238, 288, 203, 3639, 364, 261, 11890, 5034, 277, 273, 374, 31, 277, 411, 389, 4099, 5103, 18, 2469, 31, 277, 27245, 288, 203, 5411, 258...
pragma solidity ^0.5.16; import "./PriceOracleAdapter.sol"; interface PriceProviderMoC { // function peek() external view returns (bytes32, bool); function decimals() external view returns (uint8); function latestRoundData() external view returns ( uint80 roundId, ...
* @notice Get the price from MoC and divide it by the rBTC price @return The price/ (bytes32 price, bool has) = priceProviderMoC.peek(); require(has, "PriceOracleAdapterMoc: Oracle have no Price"); return uint256(price);
function assetPrices(address) public view returns (uint256) { (, int256 _price, , , ) = priceProviderMoC.latestRoundData(); uint8 _decimals = priceProviderMoC.decimals(); uint reporterPrice = uint256(_price) * (uint256(10) ** (18 - _decimals)); uint anchorPrice = getAnchorPr...
12,923,422
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 968, 326, 6205, 628, 14987, 39, 471, 12326, 518, 635, 326, 436, 38, 15988, 6205, 632, 2463, 1021, 6205, 19, 261, 3890, 1578, 6205, 16, 1426, 711, 13, 273, 6205, 2249, 16727, 39, 18, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3310, 31862, 12, 2867, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 540, 203, 3639, 261, 16, 509, 5034, 389, 8694, 16, 269, 269, 262, 273, 6205, 2249, 16727, 39, 18, 13550, 11066, 751, 5621, 203, 3639, 2254, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.5.13; /* Main functionality: 2% fee on entry and 2% fee on exit deducted from input/output amount and distributed to all current share holders proportional to their position in the pool Extended stake bonuses [optional]: 30 days = 50% 60 days = 125...
timestamp for last update when dripBalance was calculated
uint32 lastUpdateAt;
6,651,795
[ 1, 4625, 348, 7953, 560, 30, 225, 2858, 364, 1142, 1089, 1347, 302, 21335, 13937, 1703, 8894, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 11890, 1578, 1142, 1891, 861, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific funct...
* @notice A simple method to calculate prices from deposits or withdrawals, excluding fees but including slippage. This is helpful as an input into the various "min" parameters on calls to fight front-running. When withdrawing from the base pool in imbalanced fashion, the recommended slippage setting is 0.2% or higher....
function calculateTokenAmount(uint256[] calldata amounts, bool deposit) external view returns (uint256) { uint256[] memory metaAmounts = new uint256[](metaTokens.length); uint256[] memory baseAmounts = new uint256[](baseTokens.length); uint256 baseLPTokenIndex = m...
936,534
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 432, 4143, 707, 358, 4604, 19827, 628, 443, 917, 1282, 578, 598, 9446, 1031, 16, 19560, 1656, 281, 1496, 6508, 272, 3169, 2433, 18, 1220, 353, 28063, 487, 392, 810, 1368, 326, 11191, 315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4604, 1345, 6275, 12, 11890, 5034, 8526, 745, 892, 30980, 16, 1426, 443, 1724, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2254, 5034, 8526, 3778, 2191, 6275, 8...
//SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity >=0.6.0 <0.8.0; pragma experimental ABIEncoderV2; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via ms...
* @dev Returns the element stored at position `index` in the set. O(1). Note that there are no guarantees on the ordering of values inside the array, and it may change when more values are added or removed. Requirements: - `index` must be strictly less than {length}./
function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { (bytes32 key, bytes32 value) = _at(map._inner, index); return (uint256(key), address(uint256(value))); }
61,534
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2860, 326, 930, 4041, 622, 1754, 1375, 1615, 68, 316, 326, 444, 18, 531, 12, 21, 2934, 3609, 716, 1915, 854, 1158, 28790, 603, 326, 9543, 434, 924, 4832, 326, 526, 16, 471, 518, 2026, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 622, 12, 5487, 774, 1887, 863, 2502, 852, 16, 2254, 5034, 770, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 16, 1758, 13, 203, 565, 288, 203, 3639, 261, 3890, 1578, 498, 16, 1731, 1578, 460...
/// SPDX-License-Identifier: UNLICENSED /** ................ ..',,;;::::::::ccccc:;,'.. ..',;;;;::::::::::::cccccllllc;.. .';;;;;;;,'..............'...
* @notice Admin can set which router is verified and which is not. @param _routerAddress Address of a router. @param _verified New verified status of the router./
function setRouterVerified(address _routerAddress, bool _verified) external onlyGuardian { isRouterVerified[_routerAddress] = _verified; }
10,309,590
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 7807, 848, 444, 1492, 4633, 353, 13808, 471, 1492, 353, 486, 18, 632, 891, 389, 10717, 1887, 5267, 434, 279, 4633, 18, 632, 891, 389, 19685, 1166, 13808, 1267, 434, 326, 4633, 18, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 8259, 24369, 12, 2867, 389, 10717, 1887, 16, 1426, 389, 19685, 13, 3903, 1338, 16709, 2779, 288, 203, 3639, 353, 8259, 24369, 63, 67, 10717, 1887, 65, 273, 389, 19685, 31, 203, 565, 289, 203, 203, 2, -100, -100, ...
/* Copyright 2017-2018 RigoBlock, Rigo Investment Sagl. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
@dev Returns the address of the Inflation contract @return Address of the minter/inflation
function getMinter() internal view returns (address) { RigoToken token = RigoToken(RIGOTOKENADDRESS); return token.getMinter(); }
15,809,830
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 2860, 326, 1758, 434, 326, 657, 2242, 367, 6835, 632, 2463, 5267, 434, 326, 1131, 387, 19, 267, 2242, 367, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2108, 2761, 1435, 203, 3639, 2713, 1476, 203, 3639, 1135, 261, 2867, 13, 203, 565, 288, 203, 3639, 534, 17626, 1345, 1147, 273, 534, 17626, 1345, 12, 2259, 43, 1974, 6239, 15140, 1769, 203, 3639, 327, 1147, 18, 588, 49,...
./partial_match/1/0x1f872cf7CF0eD99D1f22b4e4D1dfA02BD8546F48/sources/AppProxyUpgradeable.sol
File: contracts/common/DelegateProxy.sol
contract DelegateProxy is ERCProxy, IsContract { uint256 internal constant FWD_GAS_LIMIT = 10000; function delegatedFwd(address _dst, bytes _calldata) internal { require(isContract(_dst)); uint256 fwdGasLimit = FWD_GAS_LIMIT; assembly { let result := delegatecall(sub(gas, f...
2,691,697
[ 1, 4625, 348, 7953, 560, 30, 225, 1387, 30, 20092, 19, 6054, 19, 9586, 3886, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 27687, 3886, 353, 4232, 39, 3886, 16, 2585, 8924, 288, 203, 565, 2254, 5034, 2713, 5381, 478, 16006, 67, 43, 3033, 67, 8283, 273, 12619, 31, 203, 203, 565, 445, 30055, 42, 3623, 12, 2867, 389, 11057, 16, 1731, 389, 1991, ...
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.7.6; contract DeadmanSwitch { address owner; uint lastCheckIn; uint triggerDuration; event CheckIn(); // Emitted when the owner checks in. /** @param _triggerDuration The number of seconds since the last check-in for the owner to be cons...
Emitted when the owner checks in.
event CheckIn();
12,675,641
[ 1, 4625, 348, 7953, 560, 30, 225, 512, 7948, 1347, 326, 3410, 4271, 316, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 2073, 382, 5621, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/* Copyright 2019 dYdX Trading Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
* @title LiquidatorProxyV1WithAmm @author dYdX Contract for liquidating other accounts in DolomiteMargin. Does not take marginPremium into account./ ============ Constants ============ ============ Structs ============
contract LiquidatorProxyV1WithAmm is ReentrancyGuard { using Math for uint256; using SafeMath for uint256; using Types for Types.Par; using Types for Types.Wei; bytes32 constant FILE = "LiquidatorProxyV1WithAmm"; import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol"; import {Reent...
12,601,673
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 511, 18988, 350, 639, 3886, 58, 21, 1190, 37, 7020, 632, 4161, 302, 61, 72, 60, 13456, 364, 4501, 26595, 1776, 1308, 9484, 316, 463, 355, 362, 1137, 9524, 18, 9637, 486, 4862, 7333, 238...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 511, 18988, 350, 639, 3886, 58, 21, 1190, 37, 7020, 353, 868, 8230, 12514, 16709, 288, 203, 565, 1450, 2361, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 7658, 364, 7658, 18, 1553...
//pragma solidity >= 0.5.2; pragma solidity ^0.6.0; contract Land { address contractOwner; constructor() public{ contractOwner = msg.sender; } struct Landreg { uint id; uint area; string city; string state; uint landPrice; uint propertyPID; ...
-----------------------------------------------Land----------------------------------------------- emit AddingLand(landsCount);
function addLand(uint _area, string memory _city,string memory _state, uint landPrice, uint _propertyPID,uint _surveyNum, string memory _document) public { require(isUserVerified(msg.sender)); landsCount++; lands[landsCount] = Landreg(landsCount, _area, _city, _state, landPrice,_propertyPID,...
12,711,694
[ 1, 4625, 348, 7953, 560, 30, 19134, 17908, 29398, 2443, 18753, 3626, 21240, 29398, 12, 80, 5708, 1380, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 29398, 12, 11890, 389, 5036, 16, 533, 3778, 389, 14240, 16, 1080, 3778, 389, 2019, 16, 2254, 19193, 5147, 16, 2254, 389, 4468, 16522, 16, 11890, 389, 21448, 2578, 16, 533, 3778, 389, 5457, 13, 1071, 288, 203, 3639,...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, sinc...
Use TransferHelper because we have no idea here how token.transfer() has been implemented
function _sellInUniswap( address token_, uint256 amount_, uint256 eth_, address tokenReceiver_ ) internal returns (uint256 numEth, uint128 reserve) { (address pairAddress, bool tokenFirst) = _pairInfo(_uniswapFactoryAddr, token_, _wethAddr); IUniswapV2...
9,986,512
[ 1, 4625, 348, 7953, 560, 30, 225, 2672, 12279, 2276, 2724, 732, 1240, 1158, 21463, 2674, 3661, 1147, 18, 13866, 1435, 711, 2118, 8249, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 87, 1165, 382, 984, 291, 91, 438, 12, 203, 3639, 1758, 1147, 67, 16, 203, 3639, 2254, 5034, 3844, 67, 16, 203, 3639, 2254, 5034, 13750, 67, 16, 203, 3639, 1758, 1147, 12952, 67, 203, 565, 262, 2713, 1135, 261, ...
/* SPDX-License-Identifier: MIT ______ _____ ___ _______ __ __ ___ ______ _______ ___ ________ / " \ (\" \|" \ /" "| |" |/ \| "| / " \ /" \ |" | |" "\ // ____ \ |.\\ \ |(: ______) |' / \: | // ____ \ |: ||| | ...
Transfer functionsTrade start checkSet Fee for BuysSet Fee for Sells
function _transfer( address from, address to, uint256 amount ) private { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater th...
7,309,055
[ 1, 4625, 348, 7953, 560, 30, 225, 12279, 4186, 22583, 787, 866, 694, 30174, 364, 605, 89, 1900, 694, 30174, 364, 348, 1165, 87, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 3238, 288, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, 326, ...
./full_match/1/0x6aE92a1fB0b376D440a5A878Aa9d517b24adF747/sources/contracts/Protocol.sol
delay # of seconds for redeem with accepted claim, redeemCollateral is not affected
uint256 public override claimRedeemDelay;
4,968,245
[ 1, 4625, 348, 7953, 560, 30, 225, 4624, 468, 434, 3974, 364, 283, 24903, 598, 8494, 7516, 16, 283, 24903, 13535, 2045, 287, 353, 486, 9844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 5034, 1071, 3849, 7516, 426, 24903, 6763, 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, ...
/* Copyright 2019 Set Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
* @title LinearAuction @author Set Protocol Library containing utility functions for computing auction Price for a linear price auction./
contract LinearAuction is Auction { using SafeMath for uint256; Copyright 2019 Set Labs Inc. import { SafeMath } from "openzeppelin-solidity/contracts/math/SafeMath.sol"; import { Auction } from "./Auction.sol"; import { ISetToken } from "../../interfaces/ISetToken.sol"; import { Rebalance } from "../../lib/R...
1,756,621
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 13921, 37, 4062, 632, 4161, 1000, 4547, 18694, 4191, 12788, 4186, 364, 20303, 279, 4062, 20137, 364, 279, 9103, 6205, 279, 4062, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 13921, 37, 4062, 353, 432, 4062, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 25417, 30562, 1000, 511, 5113, 15090, 18, 203, 203, 5666, 288, 14060, 10477, 289, 628, 315, 3190, 94, 881, 84, 292, 26...
// SPDX-License-Identifier: CC-BY-4.0 pragma solidity >=0.4.22 <0.9.0; import "../../common/Version.sol"; import "../../common/Frozen.sol"; //import "../../common/IERC20TOKEN.sol"; import "../../libs/SafeMath.sol"; import "../equity/DelawareStockToken.sol"; contract PRESSPAGE506C is Version, Frozen, Delaware...
* Only accrdited investors may participate!/
function addInvestor(address investor) public okOwner { require(isWhitelisted(investor) == false,"investor already exists"); addAddressToWhitelist(investor); accredited_investors.push(investor); }
1,070,300
[ 1, 4625, 348, 7953, 560, 30, 380, 5098, 4078, 13623, 16261, 2198, 395, 1383, 2026, 30891, 340, 5, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 3605, 395, 280, 12, 2867, 2198, 395, 280, 13, 203, 3639, 1071, 203, 3639, 1529, 5541, 203, 565, 288, 203, 3639, 2583, 12, 291, 18927, 329, 12, 5768, 395, 280, 13, 422, 629, 10837, 5768, 395, 280, 1818, 1704, 8863...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view re...
* @notice Claim all idle governance reward tokens @dev Force claiming tokens on every strategy interaction @param shares amount of shares to claim for @param _swapData Swap values, representing paths to swap the tokens to underlying @return rewards Claimed reward tokens/ if no slippages provided we just loop over the r...
function _claimMultipleRewards(uint128 shares, SwapData[] calldata _swapData) internal override returns(Reward[] memory rewards) { address[] memory rewardTokens = idleToken.getGovTokens(); SwapData[] memory swapData = _swapData; if (swapData.length == 0) { swapData = new SwapDat...
1,489,476
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 18381, 777, 12088, 314, 1643, 82, 1359, 19890, 2430, 632, 5206, 11889, 7516, 310, 2430, 603, 3614, 6252, 13581, 632, 891, 24123, 3844, 434, 24123, 358, 7516, 364, 632, 891, 389, 22270, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 14784, 8438, 17631, 14727, 12, 11890, 10392, 24123, 16, 12738, 751, 8526, 745, 892, 389, 22270, 751, 13, 2713, 3849, 1135, 12, 17631, 1060, 8526, 3778, 283, 6397, 13, 288, 203, 3639, 1758, 8526, 3778, 19890, 5157, 27...
pragma solidity ^0.5.0; //Functions for retrieving min and Max in 51 length array (requestQ) //Taken partly from: https://github.com/modular-network/ethereum-libraries-array-utils/blob/master/contracts/Array256Lib.sol library Utilities { /** * @dev Returns the minimum value in an array. */ function ge...
* @dev Retreive value from oracle based on requestId/timestamp @param _requestId being requested @param _timestamp to retreive data/value from @return uint value for requestId/timestamp submitted/
function retrieveData(TellorStorage.TellorStorageStruct storage self, uint256 _requestId, uint256 _timestamp) internal view returns (uint256) { return self.requestDetails[_requestId].finalValues[_timestamp]; }
12,578,987
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 17100, 266, 688, 460, 628, 20865, 2511, 603, 14459, 19, 5508, 632, 891, 389, 2293, 548, 3832, 3764, 632, 891, 389, 5508, 358, 325, 266, 688, 501, 19, 1132, 628, 632, 2463, 2254, 460, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4614, 751, 12, 21009, 280, 3245, 18, 21009, 280, 3245, 3823, 2502, 365, 16, 2254, 5034, 389, 2293, 548, 16, 2254, 5034, 389, 5508, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, ...
pragma solidity ^0.4.24; /* * Poexer.com is a real-time decentralized cryptocurrency exchange which allows you to trade Ethereum with POX tokens. * Buy, Sell, or Transfer POX tokens, fees of your transaction is used to pay earnings to other users holding POX tokens. * - The fee for Buying: 10% * - The fee for Selling:...
-- APPLICATION ENTRY POINTS --/ administrators pre-sale wallet.
function POXToken(address _exchangefees, address _measurement) public { require(_exchangefees != address(0)); exchangefees = _exchangefees; require(_measurement != address(0)); measurement = _measurement; administrators[0x8889885f4a4800abC7F32aC6...
9,888,361
[ 1, 4625, 348, 7953, 560, 30, 225, 1493, 14148, 25516, 13803, 3217, 55, 1493, 19, 30162, 3062, 675, 17, 87, 5349, 9230, 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, 13803, 60, 1345, 12, 2867, 389, 16641, 3030, 281, 16, 1758, 389, 16944, 13, 203, 3639, 1071, 203, 565, 288, 203, 3639, 2583, 24899, 16641, 3030, 281, 480, 1758, 12, 20, 10019, 203, 3639, 7829, 3030, 281, 273, 389, 16641...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view retu...
Change the staking address --------------------
function startChangeStakingPool(address _address) external onlyGovernance { _timelockStart = now; _timelockType = 4; _timelock_address = _address; }
25,222
[ 1, 4625, 348, 7953, 560, 30, 225, 7576, 326, 384, 6159, 1758, 12146, 6062, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 787, 3043, 510, 6159, 2864, 12, 2867, 389, 2867, 13, 3903, 1338, 43, 1643, 82, 1359, 288, 203, 3639, 389, 8584, 292, 975, 1685, 273, 2037, 31, 203, 3639, 389, 8584, 292, 975, 559, 273, 1059, 31, 203, 3639, 389, 8584, ...
./full_match/97/0x14Ab214394882B6483d78D948Bd7CE3da5d871df/sources/project:/contracts/Gladiator.sol
是否允许修改设置三个项目方收益地址三个项目方收益点数推广人收益点数单次最大下注金额最少下注金额数据ID 位置全局 Map 结构获胜方标志0 无人获胜 1 马斯克深 2 扎克伯格胜数据结果设置项获胜方资金确认人 这是一份多签 多签合约数据计算基数
contract Gladiator is Ownable { using SafeERC20 for IERC20; uint public Status; uint public Settings; address public ownerFee1; address public ownerFee2; address public ownerFee3; uint public ownerNumFee1; uint public ownerNumFee2; uint public ownerNumFee3; uint public refer...
3,290,841
[ 1, 4625, 348, 7953, 560, 30, 225, 167, 251, 112, 166, 243, 104, 166, 232, 228, 169, 111, 121, 165, 128, 111, 167, 247, 122, 169, 111, 127, 168, 126, 111, 165, 121, 236, 165, 121, 108, 170, 99, 122, 168, 254, 111, 167, 249, 122...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15157, 361, 10620, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 2254, 1071, 2685, 31, 203, 203, 565, 2254, 1071, 8709, 31, 203, 203, 565, 1758, 1071, 3410, 14667,...
./partial_match/42/0x1bce7BdF1ace7A47FB0Dc14c31CAB3F2d86eFFB4/sources/Identity.sol
* @dev Version contract gives the versioning information of the implementation contract/
contract Version { } interface IIdentity is IERC734, IERC735 {} function version() public pure returns (string memory) { return "2.0.0"; } }
3,359,012
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 4049, 6835, 14758, 326, 1177, 310, 1779, 434, 326, 4471, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 4049, 288, 203, 97, 203, 5831, 467, 4334, 353, 467, 654, 39, 27, 5026, 16, 467, 654, 39, 27, 4763, 2618, 203, 565, 445, 1177, 1435, 1071, 16618, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 315, 22, 18, 20, 18, 20, ...
./partial_match/1/0x6CAb8c54B510bcF4ed027A9d4dfD771D7Fb4806C/sources/contracts/BaseJumpRateModelV2.sol
* @notice Calculates the utilization rate of the market: `borrows / (cash + borrows - reserves)` @param cash The amount of cash in the market @param borrows The amount of borrows in the market @param reserves The amount of reserves in the market (currently unused) @return The utilization rate as a mantissa between [0, ...
function utilizationRate( uint256 cash, uint256 borrows, uint256 reserves ) public pure returns (uint256) { if (borrows == 0) { return 0; } return (borrows * BASE) / (cash + borrows - reserves); }
2,792,501
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 26128, 326, 1709, 1588, 4993, 434, 326, 13667, 30, 1375, 70, 280, 3870, 342, 261, 71, 961, 397, 324, 280, 3870, 300, 400, 264, 3324, 22025, 632, 891, 276, 961, 1021, 3844, 434, 276, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1709, 1588, 4727, 12, 203, 565, 2254, 5034, 276, 961, 16, 203, 565, 2254, 5034, 324, 280, 3870, 16, 203, 565, 2254, 5034, 400, 264, 3324, 203, 225, 262, 1071, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 565, 309, 261...
./full_match/97/0xE7feee361e18d5A74fD7eeF35Fe0a4aa83e49CE7/sources/project_/contracts/SafeMath.sol
* @title SafeMath @dev Math operations with safety checks that throw on error/
library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256...
5,020,074
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 2649, 14060, 10477, 632, 5206, 2361, 5295, 598, 24179, 4271, 716, 604, 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...
[ 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, 12083, 14060, 10477, 288, 203, 203, 203, 225, 445, 14064, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 565, 309, 261, 69, 422, 374, 13, 288, 203, 1377, 327, 374, 31, 203, 565...
pragma solidity >0.5.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; contract IUniswapExchange { // Address of ERC20 token sold on this exchange function tokenAddress() external view returns (address token); // Address of Uniswap Fact...
if all the conditions are satisfied, proceed with the swap first move the parcel of DAI from the owner wallet to this contract, then return the ETH obtained to the contract
dai.transferFrom(_user, address(this), s.parcel);
7,286,318
[ 1, 4625, 348, 7953, 560, 30, 225, 309, 777, 326, 4636, 854, 18958, 16, 11247, 598, 326, 7720, 1122, 3635, 326, 779, 2183, 434, 463, 18194, 628, 326, 3410, 9230, 358, 333, 6835, 16, 1508, 327, 326, 512, 2455, 12700, 358, 326, 6835, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 5248, 77, 18, 13866, 1265, 24899, 1355, 16, 1758, 12, 2211, 3631, 272, 18, 1065, 2183, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.18; import "../openzeppelin-solidity/SafeMath.sol"; import "./TRU.sol"; contract DepositsManager { using SafeMath for uint; mapping(address => uint) public deposits; address public owner; TRU public token; event DepositMade(address who, uint amount); event DepositWithdra...
@dev - allows a user to deposit TRU tokens @return - the uer's update deposit amount
function makeDeposit(uint _deposit) public payable returns (uint) { require(token.allowance(msg.sender, address(this)) >= _deposit); token.transferFrom(msg.sender, address(this), _deposit); deposits[msg.sender] = deposits[msg.sender].add(_deposit); emit DepositMade(msg.sender, _depo...
12,684,169
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 5206, 300, 5360, 279, 729, 358, 443, 1724, 4235, 57, 2430, 632, 2463, 300, 326, 582, 264, 1807, 1089, 443, 1724, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1221, 758, 1724, 12, 11890, 389, 323, 1724, 13, 1071, 8843, 429, 1135, 261, 11890, 13, 288, 203, 3639, 2583, 12, 2316, 18, 5965, 1359, 12, 3576, 18, 15330, 16, 1758, 12, 2211, 3719, 1545, 389, 323, 1724, 1769, 203, 36...
./partial_match/44787/0x39F4eE653A98aaEBcc69a709B8d916f8Cd7CDA2C/sources/project_/contracts/token/superfluid/SuperGoodDollar.sol
IMPORTANT! Never change the type (storage size) or order of state variables. If a variable isn't needed anymore, leave it as padding (renaming is ok). Append additional state variables here! ============== constants and immutables ============== =========================================================================...
{ address public feeRecipient; IFeesFormula public formula; IIdentity public identity; uint256 public cap; bool public disableHostOperations; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE"); event TransferFee( address from, ad...
16,954,970
[ 1, 4625, 348, 7953, 560, 30, 225, 21840, 6856, 5, 24496, 2549, 326, 618, 261, 5697, 963, 13, 578, 1353, 434, 919, 3152, 18, 971, 279, 2190, 5177, 1404, 3577, 16828, 16, 8851, 518, 487, 4992, 261, 1187, 7772, 353, 1529, 2934, 6181, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 95, 203, 202, 2867, 1071, 14036, 18241, 31, 203, 202, 45, 2954, 281, 14972, 1071, 8013, 31, 203, 202, 45, 4334, 1071, 4215, 31, 203, 202, 11890, 5034, 1071, 3523, 31, 203, 202, 6430, 1071, 4056, 2594, 9343, 31, 203, 203, 203, 2...
./partial_match/1/0x4AaDCACd04A601d705d96FB30869b9E12aE41d53/sources/YashaStaking.sol
max locks 1 account can ever have
uint256 public constant maxLocks = 10;
9,163,545
[ 1, 4625, 348, 7953, 560, 30, 225, 943, 13046, 404, 2236, 848, 14103, 1240, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 943, 19159, 273, 1728, 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.7.6; pragma abicoder v2; import "@openzeppelin/contracts/GSN/Context.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/math/Math.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/t...
@inheritdoc IBasketGovernedActions
function burnAuctionHouse(address _auctionHouse) external override(IBasketGovernedActions) onlyGovernance { revokeRole(AUCTION_HOUSE_ROLE, _auctionHouse); weth.safeApprove(_auctionHouse, 0); }
12,841,768
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 10093, 467, 11324, 43, 1643, 11748, 6100, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 18305, 37, 4062, 44, 3793, 12, 2867, 389, 69, 4062, 44, 3793, 13, 203, 565, 3903, 203, 565, 3849, 12, 45, 11324, 43, 1643, 11748, 6100, 13, 203, 565, 1338, 43, 1643, 82, 1359, 203, 225, 288, 203, 565, 18007, 2996, 1...
./full_match/4/0xA3169E92A60d69E4e275eEBD19CDE2985E6710e3/sources/browser/PILLS-POC.sol
if countdown is over and no one signed redeem each token refund ETH amount
function refund() public { require(!signed, "Was Signed by Artist"); require(countdown > 0 && block.timestamp >= countdown, "Counting Down"); msg.sender.transfer(half.mul(vouchers[msg.sender])); redeemAll(msg.sender); }
802,489
[ 1, 4625, 348, 7953, 560, 30, 225, 309, 1056, 2378, 353, 1879, 471, 1158, 1245, 6726, 283, 24903, 1517, 1147, 16255, 512, 2455, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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, 16255, 1435, 1071, 288, 203, 3639, 2583, 12, 5, 5679, 16, 315, 14992, 16724, 635, 9042, 376, 8863, 203, 3639, 2583, 12, 1883, 2378, 405, 374, 597, 1203, 18, 5508, 1545, 1056, 2378, 16, 315, 1380, 310, 10077, 8863, 203, ...
./full_match/1/0xfDA0Da7E45dDCFBaDA35BF01Dd2C85bA881FAef3/sources/contracts/TheMaximals.sol
distribute pre-reveal images, alternating
uint _ipfsIndex = _tokenId % prerevealedArtworks.length;
16,557,828
[ 1, 4625, 348, 7953, 560, 30, 25722, 675, 17, 266, 24293, 4602, 16, 6416, 1776, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 389, 625, 2556, 1016, 273, 389, 2316, 548, 738, 30328, 537, 18931, 4411, 18597, 18, 2469, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.4.19; import "./TicketOwnership.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; /** * @title TicketFactory * @dev TicketFactory is a contract for managing the token ownership, * allowing the participants to purchas...
* @dev The number of an event's tickets still available for purchase @param _eventId event number id @return uint256 number of tickets/
function ticketsRemainedOf(uint256 _eventId) public view returns (uint256) { return events[_eventId].ticketsAvailable; }
12,835,715
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 1021, 1300, 434, 392, 871, 1807, 24475, 4859, 2319, 364, 23701, 632, 891, 389, 2575, 548, 871, 1300, 612, 632, 2463, 2254, 5034, 1300, 434, 24475, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 24475, 1933, 8707, 951, 12, 11890, 5034, 389, 2575, 548, 13, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 2641, 63, 67, 2575, 548, 8009, 6470, 2413, 5268, 31, 203, 565, 289, 203, 540, 203, 2, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721Tradable.sol"; contract MintPass is ERC721Tradable { struct Pass { // Amount of discount when using the pass uint256 discount; // Base URIs used for generating the token URIs based on the passId string baseTokenURI; // Used...
Map between the passId to the pass data
mapping (uint256 => Pass) private _passDetails;
1,471,300
[ 1, 4625, 348, 7953, 560, 30, 225, 1635, 3086, 326, 1342, 548, 358, 326, 1342, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 2874, 261, 11890, 5034, 516, 10311, 13, 3238, 389, 5466, 3790, 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, -...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view retu...
This will select a balance with a max slippage
sellBalance = estimateSellAtMaxSlippage(i, targetID, tokenList[i].token.balanceOf(address(this)));
6,320,718
[ 1, 4625, 348, 7953, 560, 30, 225, 1220, 903, 2027, 279, 11013, 598, 279, 943, 272, 3169, 2433, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 13491, 357, 80, 13937, 273, 11108, 55, 1165, 861, 2747, 55, 3169, 2433, 12, 77, 16, 1018, 734, 16, 1147, 682, 63, 77, 8009, 2316, 18, 12296, 951, 12, 2867, 12, 2211, 3719, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.0; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract MyFirstEthereumToken { // The keyword "public" makes those variables // readable from outside. address public owner; // Public variables ...
* Withdraw funds Transfers the total amount of funds to ownwer account minus gas fee/
function safeWithdrawAll() public returns (bool) { require(msg.sender == owner); uint256 _gasPrice = 30000000000; require(this.balance > _gasPrice); uint256 _totalAmount = this.balance - _gasPrice; owner.transfer(_totalAmount); return true; }
13,091,540
[ 1, 4625, 348, 7953, 560, 30, 380, 3423, 9446, 284, 19156, 2604, 18881, 326, 2078, 3844, 434, 284, 19156, 358, 4953, 2051, 2236, 12647, 16189, 14036, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4183, 1190, 9446, 1595, 1435, 1071, 1135, 261, 6430, 13, 203, 202, 95, 203, 202, 565, 2583, 12, 3576, 18, 15330, 422, 3410, 1769, 203, 1082, 203, 202, 202, 11890, 5034, 389, 31604, 5147, 273, 890, 2787, 9449, 31, 203, ...
./full_match/80001/0x16b9419e316c093Ac28F57504323Faa3D06Bc081/sources/project_/contracts/founders.sol
categories[_category].publicMintedSupply++; totalPublicMintedSupply++; totalMintedSupply++;
function publicMint( uint256 _tokenIdsLength, uint8 _category ) public payable { require( msg.value == _tokenIdsLength.mul(categories[_category].categoryPrice), "Founder Contract: Invalid Price" ); require( _tokenIdsLeng...
5,618,873
[ 1, 4625, 348, 7953, 560, 30, 225, 6477, 63, 67, 4743, 8009, 482, 49, 474, 329, 3088, 1283, 9904, 31, 2078, 4782, 49, 474, 329, 3088, 1283, 9904, 31, 2078, 49, 474, 329, 3088, 1283, 9904, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 1071, 49, 474, 12, 203, 3639, 2254, 5034, 389, 2316, 2673, 1782, 16, 203, 3639, 2254, 28, 389, 4743, 203, 565, 262, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 1132, 422, 203, 7734, 389, 2316, 2673...
// SPDX-License-Identifier: MIT // Created by Flux Team pragma solidity 0.6.8; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; contract Flux is ERC20 { constructor() public ERC20("Flux Protocol", "FLUX") { // total suplly = 2100 万 _mint(msg.sender, 21000000 * 1e18); } } contract hFlu...
total suplly = 2100 万
constructor() public ERC20("Flux Protocol", "FLUX") { _mint(msg.sender, 21000000 * 1e18); }
13,129,666
[ 1, 4625, 348, 7953, 560, 30, 225, 2078, 1597, 412, 715, 273, 576, 6625, 225, 165, 121, 234, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3885, 1435, 1071, 4232, 39, 3462, 2932, 2340, 2616, 4547, 3113, 315, 42, 11778, 60, 7923, 288, 203, 3639, 389, 81, 474, 12, 3576, 18, 15330, 16, 9035, 9449, 380, 404, 73, 2643, 1769, 203, 565, 289, 203, 2, -100, -100, -100...
// Sources flattened with hardhat v2.6.8 https://hardhat.org // SPDX-License-Identifier: UNLICENSED // /* &@@@@@@@@@@@ @@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@...
* @dev Hook that is called before any token transfer. This includes minting and burning. Calling conditions: - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be transferred to `to`. - When `from` is zero, `tokenId` will be minted for `to`. - When `to` is zero, ``from``'s `tokenId` will be burned. - `...
function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override (ERC721, ERC721Enumerable, ERC721Pausable) { super._beforeTokenTransfer(from, to, tokenId); if(collections[0].paused) revert CollectionPaused(); ...
12,839,632
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 13725, 716, 353, 2566, 1865, 1281, 1147, 7412, 18, 1220, 6104, 312, 474, 310, 471, 18305, 310, 18, 21020, 4636, 30, 300, 5203, 1375, 2080, 68, 471, 1375, 869, 68, 854, 3937, 1661, 17, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 2713, 5024, 3849, 261, 654, 39, 27, 5340, 16, 4232, 39, 27, 5340, 3572, 25121, 16, 4232, ...
pragma solidity 0.5.4; library safemath3 { //inject NONSTANDARD NAMING uint256 constant internal max_uint25 = 2 ** 256 - 1; // max uint256 //inject NONSTANDARD NAMING function MUL14(uint256 _a, uint256 _b) internal pure returns(uint256...
inject NONSTANDARD NAMING
function TRANSFERFROM4(address _from, address _to, uint256 _value) public returns(bool) {
974,736
[ 1, 4625, 348, 7953, 560, 30, 4590, 18708, 882, 18264, 423, 2192, 1360, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4235, 17598, 11249, 24, 12, 2867, 389, 2080, 16, 1758, 389, 869, 16, 2254, 5034, 389, 1132, 13, 1071, 1135, 12, 6430, 13, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.18; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract ERC20 { string public name; string public symbol; uint8 public decimals = 2; uint256 public totalSupply; mapping (address => u...
* Constrctor function Initializes contract with initial supply tokens to the creator of the contract/
function ERC20(uint256 initialSupply, string tokenName, string tokenSymbol) public { }
2,319,139
[ 1, 4625, 348, 7953, 560, 30, 380, 735, 701, 30206, 445, 10188, 3128, 6835, 598, 2172, 14467, 2430, 358, 326, 11784, 434, 326, 6835, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4232, 39, 3462, 12, 11890, 5034, 2172, 3088, 1283, 16, 533, 1147, 461, 16, 533, 1147, 5335, 13, 1071, 288, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x883A0E7b329Df75476d9378462522CF2f78Fab3d/sources/Synthetix.sol
ERROR: type should be string, got " https:docs.synthetix.io/contracts/source/interfaces/irewardsdistribution Structs"
interface IRewardsDistribution { function calculateAmountAfterSettlement( address from, bytes32 currencyKey, uint amount, uint refunded ) external view returns (uint amountAfterSettlement); function isSynthRateInvalid(bytes32 currencyKey) external view returns (bool); f...
15,766,112
[ 1, 4625, 348, 7953, 560, 30, 225, 2333, 30, 8532, 18, 11982, 451, 278, 697, 18, 1594, 19, 16351, 87, 19, 3168, 19, 15898, 19, 577, 6397, 16279, 7362, 87, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 15908, 359, 14727, 9003, 288, 203, 565, 445, 4604, 6275, 4436, 694, 88, 806, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1731, 1578, 5462, 653, 16, 203, 3639, 2254, 3844, 16, 203, 3639, 2254, 1278, 12254, 203, 565, 262, 3903, ...
./full_match/1/0xb6ac852b4aF99d5ED4775964BB359bf68e9ECB85/sources/contracts/Quest.sol
//*/ Approve the Sablier contract to spend reward tokens Create the Sablier stream using a function that sets the start time to `block.timestamp`
function _createLockupLinearStream(address recepient_, uint256 totalAmount_) internal { rewardToken.safeApprove(address(sablierV2LockupLinearContract), totalAmount_); LockupLinear.CreateWithDurations memory params; uint256 streamId = sablierV2LockupLinearContract.createWithDurations(param...
2,997,749
[ 1, 4625, 348, 7953, 560, 30, 368, 5549, 1716, 685, 537, 326, 348, 378, 9800, 6835, 358, 17571, 19890, 2430, 1788, 326, 348, 378, 9800, 1407, 1450, 279, 445, 716, 1678, 326, 787, 813, 358, 1375, 2629, 18, 5508, 68, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2640, 2531, 416, 15982, 1228, 12, 2867, 2637, 84, 1979, 67, 16, 2254, 5034, 2078, 6275, 67, 13, 2713, 288, 203, 3639, 19890, 1345, 18, 4626, 12053, 537, 12, 2867, 12, 87, 378, 9800, 58, 22, 2531, 416, 15982, 8924...
/** *Submitted for verification at Etherscan.io on 2021-07-24 */ // SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.3; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of...
if any account belongs to _isExcludedFromFee account then remove the fee
function _transfer( address from, address to, uint256 amount ) private { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(amount > 0, "Transfer amount must be greater th...
10,844,656
[ 1, 4625, 348, 7953, 560, 30, 309, 1281, 2236, 11081, 358, 389, 291, 16461, 1265, 14667, 2236, 1508, 1206, 326, 14036, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 3238, 288, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, 326, ...
./full_match/4/0xB8890D1f4DaA38175383E34E94F185D996DfD1d3/sources/contracts/SimpleStorage.sol
string is technically an array that allows to store string/char
string testString;
12,523,446
[ 1, 4625, 348, 7953, 560, 30, 225, 533, 353, 17734, 6478, 392, 526, 716, 5360, 358, 1707, 533, 19, 3001, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 533, 1842, 780, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/4/0x09dD73Ce2f3F72eD4d32CAf2418c251d99C8C801/sources/contracts/multisend.sol
to save the owner of the contract in construction to save the amount of ethers in the smart-contract event for EVM logging modifier to check if the caller is owner
contract MultiSend { address private owner; uint total_value; event OwnerSet(address indexed oldOwner, address indexed newOwner); modifier isOwner() { require(msg.sender == owner, "Caller is not owner"); _; } constructor() payable{ emit ...
731,711
[ 1, 4625, 348, 7953, 560, 30, 225, 358, 1923, 326, 3410, 434, 326, 6835, 316, 16171, 358, 1923, 326, 3844, 434, 13750, 414, 316, 326, 13706, 17, 16351, 871, 364, 512, 7397, 2907, 9606, 358, 866, 309, 326, 4894, 353, 3410, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 5991, 3826, 288, 203, 377, 203, 565, 1758, 3238, 3410, 31, 203, 377, 203, 565, 2254, 2078, 67, 1132, 31, 203, 377, 203, 377, 203, 565, 871, 16837, 694, 12, 2867, 8808, 1592, 5541, 16, 1758, 8808, 394, 5541, 1769, 203, 37...
./full_match/4/0x14a1bd5C5A9ad290f43068C1FB9A837fDc4F113D/sources/contracts/hectsplit.sol
* @dev Getter for the address of the payee number `index`./
function payee(uint256 index) public view returns (address) { return _payees[index]; }
12,517,834
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 968, 387, 364, 326, 1758, 434, 326, 8843, 1340, 1300, 1375, 1615, 8338, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 8843, 1340, 12, 11890, 5034, 770, 13, 1071, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 327, 389, 10239, 25521, 63, 1615, 15533, 203, 27699, 377, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "./pausable.sol"; import "./managable.sol"; import "./wrappedasset.sol"; import "./imigratablevendorregistry.sol"; /// Maintains a registry of Ethereum/BSC adrresses of vendors allowed to wrap MRX, & their associated MRX withdrawal addresses. /// @title...
Check whether or not a given MRX address is registered. @param mrxAddress The MRX address for which to find the registration status. @return True if the MRX address is registered and false if it's not.
function isRegistered(address mrxAddress) public view returns (bool) { return mrx2vendor[mrxAddress] != address(0); }
12,623,440
[ 1, 4625, 348, 7953, 560, 30, 225, 2073, 2856, 578, 486, 279, 864, 490, 54, 60, 1758, 353, 4104, 18, 632, 891, 225, 9752, 92, 1887, 1021, 490, 54, 60, 1758, 364, 1492, 358, 1104, 326, 7914, 1267, 18, 632, 2463, 1053, 309, 326, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 10868, 12, 2867, 9752, 92, 1887, 13, 1071, 1476, 1135, 261, 6430, 13, 203, 3639, 288, 203, 3639, 327, 9752, 92, 22, 10645, 63, 81, 20122, 1887, 65, 480, 1758, 12, 20, 1769, 203, 3639, 289, 203, 203, 2, -100, -1...
./full_match/5/0xB385fED7b283F0bc713c19B122E001956121f204/sources/contracts/AutoStake.sol
* @notice Claim a refund of rHEGIC before they are deposited to the redemption contract. The developer will notify users to do this if the project fails to attract enough deposit./
function claimRefund() external { uint amount = userData[msg.sender].amountDeposited; require(amount > 0, "User has not deposited any fund"); require(allowClaimRefund, "Funds already transferred to the redemption contract"); rHEGIC.safeTransfer(msg.sender, amount); userDat...
1,897,018
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 18381, 279, 16255, 434, 436, 3900, 43, 2871, 1865, 2898, 854, 443, 1724, 329, 358, 326, 283, 19117, 375, 6835, 18, 1021, 8751, 903, 5066, 3677, 358, 741, 333, 309, 326, 1984, 6684, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 21537, 1435, 3903, 288, 203, 3639, 2254, 3844, 273, 13530, 63, 3576, 18, 15330, 8009, 8949, 758, 1724, 329, 31, 203, 203, 3639, 2583, 12, 8949, 405, 374, 16, 315, 1299, 711, 486, 443, 1724, 329, 1281, 284, 1074, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowan...
Minting to the Reserve_locked_address.
_mint(roles['Reserve_locked_address'].address_[0], (roles['Reserve_locked_address'].percentLocked*supply)/(100*roles['Reserve_locked_address'].address_.length));
1,255,516
[ 1, 4625, 348, 7953, 560, 30, 225, 490, 474, 310, 358, 326, 1124, 6527, 67, 15091, 67, 2867, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5411, 389, 81, 474, 12, 7774, 3292, 607, 6527, 67, 15091, 67, 2867, 29489, 2867, 67, 63, 20, 6487, 261, 7774, 3292, 607, 6527, 67, 15091, 67, 2867, 29489, 8849, 8966, 14, 2859, 1283, 13176, 12, 6625, 14, 7774, 3292, 607, 6527, ...
// SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.8.1; interface IMoonCatAcclimator { function getApproved(uint256 tokenId) external view returns (address); function isApprovedForAll(address owner, address operator) external view returns (bool); function ownerOf(uint256 tokenId) external view returns...
^ Clear reserved bits
emit AccessoryCreated(accessoryId, msg.sender, priceWei, totalSupply, name);
12,585,703
[ 1, 4625, 348, 7953, 560, 30, 28524, 540, 3602, 10121, 8735, 4125, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3626, 5016, 630, 6119, 12, 3860, 630, 548, 16, 1234, 18, 15330, 16, 6205, 3218, 77, 16, 2078, 3088, 1283, 16, 508, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0x0Ba82D7351Fa1dA72CB8A70eE0a49746d9F006B9/sources/NewToken.sol
* @dev transfer token for a specified address @param _to The address to transfer to. @param _value The amount to be transferred./
function transfer(address _to, uint _value) public onlyPayloadSize(2 * 32) returns (bool) { require(_to != address(0)); uint fee = (_value.mul(basisPointsRate)).div(10000); if (fee > maximumFee) { fee = maximumFee; } uint sendAmount = _value.sub(fee); bala...
15,667,476
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 7412, 1147, 364, 279, 1269, 1758, 632, 891, 389, 869, 1021, 1758, 358, 7412, 358, 18, 632, 891, 389, 1132, 1021, 3844, 358, 506, 906, 4193, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 12, 2867, 389, 869, 16, 2254, 389, 1132, 13, 1071, 1338, 6110, 1225, 12, 22, 380, 3847, 13, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 24899, 869, 480, 1758, 12, 20, 10019, 203, 3639, 2254, 14036, 273, 261, 67, ...
pragma solidity ^0.4.16; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant returns (uint256) { // assert(b > 0); // Solidity automatically t...
Initializes contract with initial supply tokens to the creator of the contract */
TokenERC20(1000000000, 'Zigit', 'ZGT', 1000000000) public { unitsOneEthCanBuy = 80000; soldTokens = 0; minPurchaseQty = 16000 * 10 ** uint256(decimals); }
13,631,313
[ 1, 4625, 348, 7953, 560, 30, 225, 10188, 3128, 6835, 598, 2172, 14467, 2430, 358, 326, 11784, 434, 326, 6835, 1195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 3155, 654, 39, 3462, 12, 23899, 11706, 16, 296, 62, 360, 305, 2187, 296, 62, 16506, 2187, 15088, 3784, 13, 1071, 288, 203, 565, 4971, 3335, 41, 451, 2568, 38, 9835, 273, 1725, 2787, 31, 203, 565, 272, 1673, 5157, 273, 374,...
./partial_match/1/0xd27c12d2b7749280057592BF03eC2a63158F4716/sources/contracts/MMPRESALE.sol
* @dev To claim tokens after vesting cliff from a presale @param users Array of user addresses @param _id Presale id/
function claimMultipleAccounts(address[] calldata users, uint256 _id) external returns (bool) { require(users.length > 0, "Zero users length"); for (uint256 i; i < users.length; i++) { require(claim(users[i], _id), "Claim failed"); } return true; }
4,151,589
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 2974, 7516, 2430, 1839, 331, 10100, 927, 3048, 628, 279, 4075, 5349, 632, 891, 3677, 1510, 434, 729, 6138, 632, 891, 389, 350, 18346, 5349, 612, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7516, 8438, 13971, 12, 2867, 8526, 745, 892, 3677, 16, 2254, 5034, 389, 350, 13, 3903, 1135, 261, 6430, 13, 288, 203, 565, 2583, 12, 5577, 18, 2469, 405, 374, 16, 315, 7170, 3677, 769, 8863, 203, 565, 364, 261, 11890,...
pragma solidity 0.4.25; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "./SafeDecimalMath.sol"; import "./MixinResolver.sol"; import "./IssuanceEternalStorage.sol"; import "./interfaces/ISynthetix.sol"; import "./interfaces/IFeePool.sol"; import "./interfaces/ISynthetixState.sol"; import "./interfa...
* @notice Function that registers new synth as they are issued. Calculate delta to append to synthetixState. @dev Only internal calls from synthetix address. @param amount The amount of synths to register with a base of UNIT/ What will the new total be including the new value? What is their percentage (as a high precis...
function _addToDebtRegister(address from, uint amount, uint existingDebt, uint totalDebtIssued) internal { ISynthetixState state = synthetixState(); uint newTotalDebtIssued = amount.add(totalDebtIssued); uint debtPercentage = amount.divideDecimalRoundPrecise(newTotalDebtIssued); u...
6,402,779
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 20392, 4284, 716, 10285, 394, 6194, 451, 487, 2898, 854, 16865, 18, 9029, 3622, 358, 714, 358, 6194, 451, 278, 697, 1119, 18, 632, 5206, 5098, 2713, 4097, 628, 6194, 451, 278, 697, 1758, 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, 389, 1289, 774, 758, 23602, 3996, 12, 2867, 628, 16, 2254, 3844, 16, 2254, 2062, 758, 23602, 16, 2254, 2078, 758, 23602, 7568, 5957, 13, 2713, 288, 203, 3639, 4437, 878, 451, 278, 697, 1119, 919, 273, 6194, 451, 278, ...
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...
Give the creator all initial tokens. This is set to 1000 for example. If you want your initial tokens to be X and your decimal is 5, set this value to X * 100000. (CHANGE THIS)
balances[msg.sender] = 102000000000000000000000000;
14,428,116
[ 1, 4625, 348, 7953, 560, 30, 225, 22374, 326, 11784, 777, 2172, 2430, 18, 1220, 353, 444, 358, 4336, 364, 3454, 18, 971, 1846, 2545, 3433, 2172, 2430, 358, 506, 1139, 471, 3433, 6970, 353, 1381, 16, 444, 333, 460, 358, 1139, 380, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 324, 26488, 63, 3576, 18, 15330, 65, 273, 21822, 12648, 12648, 12648, 31, 7734, 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, ...
//storage key for tuples[i].a calculated as // keccak(bytes32(i) + bytes32(position['tuples']))+offset[a] pragma solidity ^0.4.11; contract Benchmark { mapping(uint256 => uint256) tuples; //tuple variable offset added to keccak(bytes32(key) + bytes32(position)) function init(uint256 key) public { ...
tuple variable offset added to keccak(bytes32(key) + bytes32(position))
contract Benchmark { mapping(uint256 => uint256) tuples; pragma solidity ^0.4.11; function init(uint256 key) public { tuples[key] = 0x1A; } }
13,075,955
[ 1, 4625, 348, 7953, 560, 30, 3193, 2190, 1384, 3096, 358, 417, 24410, 581, 12, 3890, 1578, 12, 856, 13, 397, 1731, 1578, 12, 3276, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 21854, 288, 203, 565, 2874, 12, 11890, 5034, 516, 2254, 5034, 13, 10384, 31, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 24, 18, 2499, 31, 203, 565, 445, 1208, 12, 11890, 5034, 498, 13, 1071, 288, 203, 3639, 10384, 63...
./full_match/5/0xDA4e52642A7D4EBeF54c1b61Fe0C14E193f76AC0/sources/contracts/CrowdFunding.sol
_id stores the id of the campaign we want to donate to above we called the mapping to store the details of the campaign whose id is given to a temporary variable called campaign above we push the address of the donater to donaters array above we push the amount that the donater donates to donationMade Array
function donateToCampaign(uint256 _id) public payable { uint256 amount = msg.value; Campaign storage campaign = campaigns[_id]; campaign.donaters.push(msg.sender); campaign.donationMade.push(amount); if(sent) { campaign.amountCollected = campaign....
1,949,524
[ 1, 4625, 348, 7953, 560, 30, 225, 389, 350, 9064, 326, 612, 434, 326, 8965, 732, 2545, 358, 2727, 340, 358, 5721, 732, 2566, 326, 2874, 358, 1707, 326, 3189, 434, 326, 8965, 8272, 612, 353, 864, 358, 279, 6269, 2190, 2566, 8965, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 2727, 340, 774, 13432, 12, 11890, 5034, 389, 350, 13, 1071, 8843, 429, 203, 565, 288, 203, 3639, 2254, 5034, 3844, 273, 1234, 18, 1132, 31, 203, 203, 3639, 17820, 2502, 8965, 273, 8965, 87, 63, 67, 350, 15533, 203, 20...
pragma solidity 0.5.4; /** * @title SafeMath * @dev Unsigned math operations with safety checks that revert on error */ library SafeMath { /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { //...
* [OVERRIDES ERC1400 METHOD] @dev Perform the transfer of tokens. @param partition Name of the partition (bytes32 to be left empty for ERC777 transfer). @param operator The address performing the transfer. @param from Token holder. @param to Token recipient. @param value Number of tokens to transfer. @param data Inform...
function _transferWithData( bytes32 partition, address operator, address from, address to, uint256 value, bytes memory data, bytes memory operatorData, bool preventLocking ) internal { ERC777._transferWithData(partition, operator, from, to, value, data, operatorData, preven...
2,563,825
[ 1, 4625, 348, 7953, 560, 30, 380, 306, 12959, 54, 734, 3991, 4232, 39, 3461, 713, 10152, 65, 632, 5206, 11217, 326, 7412, 434, 2430, 18, 632, 891, 3590, 1770, 434, 326, 3590, 261, 3890, 1578, 358, 506, 2002, 1008, 364, 4232, 39, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 389, 13866, 1190, 751, 12, 203, 565, 1731, 1578, 3590, 16, 203, 565, 1758, 3726, 16, 203, 565, 1758, 628, 16, 203, 565, 1758, 358, 16, 203, 565, 2254, 5034, 460, 16, 203, 565, 1731, 3778, 501, 16, 203, 565, 1731, 37...
/* * This file was generated by MyWish Platform (https://mywish.io/) * The complete code could be found at https://github.com/MyWishPlatform/ * Copyright (C) 2018 MyWish * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as publis...
* @dev override purchase validation to add extra value logic. @return true if sended more than minimal value/
function _preValidatePurchase( address _beneficiary, uint256 _weiAmount ) internal { require(msg.value >= 230000000000000000); require(msg.value <= 575000000000000000000); super._preValidatePurchase(_beneficiary, _weiAmount)...
165,336
[ 1, 4625, 348, 7953, 560, 30, 380, 632, 5206, 3849, 23701, 3379, 358, 527, 2870, 460, 4058, 18, 632, 2463, 638, 309, 272, 3934, 1898, 2353, 16745, 460, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1484, 4270, 23164, 12, 203, 3639, 1758, 389, 70, 4009, 74, 14463, 814, 16, 203, 3639, 2254, 5034, 389, 1814, 77, 6275, 203, 565, 262, 203, 3639, 2713, 203, 565, 288, 203, 540, 203, 3639, 2583, 12, 3576, 18, 1132,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "./ITag.sol"; /// @title If you own an It, you're it /// @author jierlich /// @notice Until unlock this can only be transferred by the holder contract It is ERC721 { /// @dev number of Its mint...
@notice mints a new It @param to receiver of the newly minted It
function mint(address to) public { require(counter < 10000, "Max mint reached"); ITag(erc20).burnFrom(msg.sender, burnAmount); counter++; super._safeMint(to, counter); }
14,039,808
[ 1, 4625, 348, 7953, 560, 30, 225, 632, 20392, 312, 28142, 279, 394, 2597, 632, 891, 358, 5971, 434, 326, 10894, 312, 474, 329, 2597, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 2867, 358, 13, 1071, 288, 203, 3639, 2583, 12, 7476, 411, 12619, 16, 315, 2747, 312, 474, 8675, 8863, 203, 3639, 467, 1805, 12, 12610, 3462, 2934, 70, 321, 1265, 12, 3576, 18, 15330, 16, 18305, 6275, 176...
./partial_match/4/0xFfBa27FDA412B94d370F512834BBCCC80dFbCF7f/sources/OroNetwork.sol
* Shows the pending rewards to be claimed/ Rewards will be calculated daily
function tobeClaimed(uint256 stakedId) public view returns(uint256) { uint256 total; if (stakings[msg.sender][stakedId].lastUpdated > 3600) { uint256 time = (now.sub(stakings[msg.sender][stakedId].lastUpdated)).div(3600); total = (stakings[msg.sender][stakedId...
8,772,241
[ 1, 4625, 348, 7953, 560, 30, 380, 9674, 87, 326, 4634, 283, 6397, 358, 506, 7516, 329, 19, 534, 359, 14727, 903, 506, 8894, 18872, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 358, 2196, 9762, 329, 12, 11890, 5034, 384, 9477, 548, 13, 1071, 1476, 1135, 12, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 2078, 31, 203, 3639, 309, 261, 334, 581, 899, 63, 3576, 18, 15330, 6362, 334, 9477, 548, 80...
// File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tok...
Accumulated ERC20s per share, times 1e36.
bool isPool ;
12,054,747
[ 1, 4625, 348, 7953, 560, 30, 225, 15980, 5283, 690, 4232, 39, 3462, 87, 1534, 7433, 16, 4124, 404, 73, 5718, 18, 203, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 3639, 1426, 353, 2864, 274, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/5/0xb6c9672C7Bf4FA3dF2590Caa9aA4361596AC86fe/sources/contracts/fundchain.sol
payable means that we will send money using this function
function donateToCampaign(uint256 _id) public payable { uint256 amount = msg.value; Campaign storage campaign = campaigns[_id]; campaign.donators.push(msg.sender); campaign.donations.push(amount); if(sent){ campaign.amountCollected = campaign.amountCollected +...
7,062,227
[ 1, 4625, 348, 7953, 560, 30, 225, 8843, 429, 4696, 716, 732, 903, 1366, 15601, 1450, 333, 445, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 445, 2727, 340, 774, 13432, 12, 11890, 5034, 389, 350, 13, 1071, 8843, 429, 288, 203, 3639, 2254, 5034, 3844, 273, 1234, 18, 1132, 31, 203, 203, 3639, 17820, 2502, 8965, 273, 8965, 87, 63, 67, 350, 15533, 203, 3639, 8965, ...
//Address: 0x1de89382684ce5a99fc9d3d4b709706d6a013571 //Contract name: SolutionGame //Balance: 0.542 Ether //Verification Date: 6/15/2018 //Transacion Count: 89 // CODE STARTS HERE pragma solidity ^0.4.23; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { ...
@dev calculate score by game forecast (only for games that have ended) total goal count's exact match score double if all win
function calculateScore(uint256 _gameId, uint d) public view returns (uint256){ require(block.timestamp > games[_gameId].gameDate); uint256 _shotB = (d & 0xff); d = d >> 8; uint256 _shotA = (d & 0xff); d = d >> 8; uint odds8 = (d & 0xff); bool _odds = odd...
6,409,479
[ 1, 4625, 348, 7953, 560, 30, 632, 5206, 4604, 4462, 635, 7920, 18763, 261, 3700, 364, 28422, 716, 1240, 16926, 13, 2078, 17683, 1056, 1807, 5565, 845, 4462, 1645, 309, 777, 5657, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4604, 7295, 12, 11890, 5034, 389, 13957, 548, 16, 2254, 302, 13, 203, 565, 1071, 1476, 1135, 261, 11890, 5034, 15329, 203, 3639, 2583, 12, 2629, 18, 5508, 405, 28422, 63, 67, 13957, 548, 8009, 13957, 1626, 1769, 203, 20...