file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
pragma solidity ^0.4.11; /* [{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"deci...
Balances for each account
mapping(address => uint256) balances;
1,004,383
[ 1, 38, 26488, 364, 1517, 2236, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 324, 26488, 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, -10...
//Address: 0xd29beca9c9749ab6b37082bcbd16d041a9285c8b //Contract name: LoopringProtocolImpl //Balance: 0 Ether //Verification Date: 4/30/2018 //Transacion Count: 6 // CODE STARTS HERE /* Copyright 2017 Loopring Project Ltd (Loopring Foundation). Licensed under the Apache License, Version 2.0 (the "License"); y...
@title An Implementation of LoopringProtocol. @author Daniel Wang - <daniel@loopring.org>, @author Kongliang Zhong - <kongliang@loopring.org> Recognized contributing developers from the community: https://github.com/Brechtpd https://github.com/rainydio https://github.com/BenjaminPrice https://github.co...
contract LoopringProtocolImpl is LoopringProtocol { using AddressUtil for address; using MathUint for uint; address public constant lrcTokenAddress = 0xEF68e7C694F40c8202821eDF525dE3782458639f; address public constant tokenRegistryAddress = 0x004DeF62C71992615CF22786d0b7Efb2285...
12,878,464
[ 1, 979, 25379, 434, 9720, 8022, 5752, 18, 225, 463, 28662, 292, 678, 539, 300, 411, 72, 28662, 292, 36, 6498, 8022, 18, 3341, 20401, 225, 1475, 932, 549, 539, 2285, 76, 932, 300, 411, 79, 932, 549, 539, 36, 6498, 8022, 18, 3341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9720, 8022, 5752, 2828, 353, 9720, 8022, 5752, 288, 203, 565, 1450, 5267, 1304, 282, 364, 1758, 31, 203, 565, 1450, 2361, 5487, 1377, 364, 2254, 31, 203, 565, 1758, 1071, 5381, 328, 1310, 1345, 1887, 2398, 273, 374, 17432, ...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be *...
* @dev Approves tokens to a swap Router. We can approve the most popular tokens before any swaps To spare users from paying for it @param _token The token address to approve/
function approveTokenToRouter(IERC20 _token, address _router) external onlyOwnerAndManager{ _token.approve(_router, type(uint256).max); }
2,531,599
[ 1, 12053, 3324, 2430, 358, 279, 7720, 9703, 18, 1660, 848, 6617, 537, 326, 4486, 1843, 2490, 2430, 1865, 1281, 1352, 6679, 2974, 1694, 834, 3677, 628, 8843, 310, 364, 518, 225, 389, 2316, 1021, 1147, 1758, 358, 6617, 537, 19, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6617, 537, 1345, 774, 8259, 12, 45, 654, 39, 3462, 389, 2316, 16, 1758, 389, 10717, 13, 3903, 1338, 5541, 1876, 1318, 95, 203, 3639, 389, 2316, 18, 12908, 537, 24899, 10717, 16, 618, 12, 11890, 5034, 2934, 1896, 1769, ...
./full_match/3/0x40C536F5A70968007eb95bC0ceE7610734187734/sources/contracts/LEARNToken.sol
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract LEARNToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; constructor() public { symbol = "LT"; ...
14,153,151
[ 1, 5802, 7620, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 5380, 4391, 1345, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, 389, 4963, ...
// SPDX-License-Identifier: MIT pragma solidity =0.8.4; /// @title A contract that stores fees for later withdrawal contract FeeBankContract { /// @notice The event emitted whenever ETH is deposited. /// @param depositor The address of the account making the deposit. /// @param receiver The address of the...
@notice Withdraw all ETH previously deposited in favor of the caller and send it to them.
function withdraw() external { _withdraw(msg.sender, deposits[msg.sender]); }
6,444,211
[ 1, 1190, 9446, 777, 512, 2455, 7243, 443, 1724, 329, 316, 18552, 434, 326, 4894, 471, 1366, 518, 358, 2182, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 598, 9446, 1435, 3903, 288, 203, 3639, 389, 1918, 9446, 12, 3576, 18, 15330, 16, 443, 917, 1282, 63, 3576, 18, 15330, 19226, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
Смертник взорвался на предвыборном митинге в Пакистане (ВЗОРВАТЬСЯ)
rus_verbs:ВЗОРВАТЬСЯ{},
5,484,059
[ 1, 145, 99, 145, 125, 145, 118, 146, 227, 146, 229, 145, 126, 145, 121, 145, 123, 225, 145, 115, 145, 120, 145, 127, 146, 227, 145, 115, 145, 113, 145, 124, 146, 228, 146, 242, 225, 145, 126, 145, 113, 225, 145, 128, 146, 227,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 436, 407, 67, 502, 2038, 30, 145, 245, 145, 250, 145, 257, 145, 259, 145, 245, 145, 243, 145, 100, 145, 110, 145, 99, 145, 112, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
/* Copyright 2017 Loopring Project Ltd (Loopring Foundation). 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 ...
Make sure it can't be withdrawn again
requestedBlock.blockFeeWithdrawn = true;
2,477,366
[ 1, 6464, 3071, 518, 848, 1404, 506, 598, 9446, 82, 3382, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 3764, 1768, 18, 2629, 14667, 1190, 9446, 82, 273, 638, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
/** *Submitted for verification at Etherscan.io on 2021-08-16 */ // Sources flattened with hardhat v2.6.0 https://hardhat.org // File @openzeppelin/contracts/utils/introspection/[email protected] // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in th...
mints 1 token to every input address
function mintMultiAddress(address[] memory addressList) public onlyAdminOrMinter{ for(uint i=0; i<addressList.length; i++){ _safeMint(addressList[i], totalSupply()+1); } }
10,498,190
[ 1, 81, 28142, 404, 1147, 358, 3614, 810, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5002, 1887, 12, 2867, 8526, 3778, 1758, 682, 13, 1071, 1338, 4446, 1162, 49, 2761, 95, 203, 3639, 364, 12, 11890, 277, 33, 20, 31, 277, 32, 2867, 682, 18, 2469, 31, 277, 27245, 95, 203, 5411, 389, 4626, 49...
./full_match/80001/0x7daB91C59c414e37e002AB4dab53cA0754733ab6/sources/contracts/v1/SwylClub.sol
* @notice Lets a Club's owner delete a Tier @param _tierId uint256 - the uid of the tier to be deleted/ CANNOT delete a Tier if there are still members in it get target Tier array validate if `_param.tierId` points to a valid Tier shift items toward to cover the target deleted tier => eventually create a duplicating...
function deleteTier(uint256 _clubId, uint256 _tierId) external override onlyClubOwner(_clubId) onlyClubOwnerRole() onlyExistingClub(_clubId) { require(getSubscriptionsAt(_clubId, _tierId).length == 0, "!UNDELETEABLE - Cannot delete a Tier if there are still members in it. Please update Tier instead!"); ...
5,629,047
[ 1, 48, 2413, 279, 3905, 373, 1807, 3410, 1430, 279, 399, 2453, 225, 389, 88, 2453, 548, 565, 2254, 5034, 300, 326, 4555, 434, 326, 17742, 358, 506, 4282, 19, 385, 16791, 1430, 279, 399, 2453, 309, 1915, 854, 4859, 4833, 316, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1430, 15671, 12, 11890, 5034, 389, 830, 373, 548, 16, 2254, 5034, 389, 88, 2453, 548, 13, 3903, 3849, 1338, 2009, 373, 5541, 24899, 830, 373, 548, 13, 1338, 2009, 373, 5541, 2996, 1435, 1338, 9895, 2009, 373, 24899, 830...
pragma solidity 0.5.8; import "../external/oraclizeAPI.sol"; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "../interfaces/IOracle.sol"; contract PolyOracle is usingOraclize, IOracle, Ownable { using SafeMath for uint256; /*s...
* @notice Allows owner to set new time tolerance on Oraclize queries @param _oraclizeTimeTolerance amount of time in seconds that an Oraclize query can be early/
function setOraclizeTimeTolerance(uint256 _oraclizeTimeTolerance) public onlyOwner { oraclizeTimeTolerance = _oraclizeTimeTolerance; }
5,396,811
[ 1, 19132, 3410, 358, 444, 394, 813, 10673, 603, 531, 354, 830, 554, 6218, 225, 389, 280, 10150, 554, 950, 22678, 3844, 434, 813, 316, 3974, 716, 392, 531, 354, 830, 554, 843, 848, 506, 11646, 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, 444, 51, 354, 830, 554, 950, 22678, 12, 11890, 5034, 389, 280, 10150, 554, 950, 22678, 13, 1071, 1338, 5541, 288, 203, 3639, 578, 10150, 554, 950, 22678, 273, 389, 280, 10150, 554, 950, 22678, 31, 203, 565, 289, 203, ...
./full_match/1/0x8787ca6A0aFffd8F634D09d7c2eE8D15b326e3f6/sources/src/lib/OptionalOnlyCaller.sol
* @dev Reverts if the verification mechanism is enabled and the given address is not the caller. @param user - Address to validate as the only allowed caller, if the verification is enabled./
modifier optionalOnlyCaller(address user) { _verifyCaller(user); _; }
2,980,100
[ 1, 426, 31537, 309, 326, 11805, 12860, 353, 3696, 471, 326, 864, 1758, 353, 486, 326, 4894, 18, 225, 729, 300, 5267, 358, 1954, 487, 326, 1338, 2935, 4894, 16, 309, 326, 11805, 353, 3696, 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, 9606, 3129, 3386, 11095, 12, 2867, 729, 13, 288, 203, 3639, 389, 8705, 11095, 12, 1355, 1769, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pragma solidity ^0.4.4; contract Token { /// @return total amount of tokens function totalSupply() constant returns (uint256 supply) {} /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) constant returns (uint256 balan...
Set the name for display purposes (CHANGE THIS)
name = "E-Asset";
410,192
[ 1, 694, 326, 508, 364, 2562, 13694, 261, 14473, 20676, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3639, 508, 273, 315, 41, 17, 6672, 14432, 4766, 565, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/3/0x4fd708aa23cD006dCd77F8D7539f75Eb9147350C/sources/ride3.sol
The auction has already ended. There is a bid that is lower or matches your bid The auction has not ended yet. The function auctionEnd has already been called.
constructor (address payable _passengerWalletAddr, uint _durationMin, uint distanceKm, uint _startPostal, uint _endPostal) { passenger = _passengerWalletAddr; startPostal = _startPostal; endPostal = _endPostal; fareAmount = 5; lowestFareAmount = fareAmount; ...
8,265,242
[ 1, 1986, 279, 4062, 711, 1818, 16926, 18, 6149, 353, 279, 9949, 716, 353, 2612, 578, 1885, 3433, 9949, 1021, 279, 4062, 711, 486, 16926, 4671, 18, 1021, 445, 279, 4062, 1638, 711, 1818, 2118, 2566, 18, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 261, 2867, 8843, 429, 389, 5466, 14348, 16936, 3178, 16, 2254, 389, 8760, 2930, 16, 2254, 3888, 47, 81, 16, 2254, 389, 1937, 3349, 287, 16, 2254, 389, 409, 3349, 287, 13, 288, 203, 540, 203, 3639, 1342, 14348, 273, 3...
./partial_match/1/0x9b5D1e314a8c8AF17150fe4e327e8523ee15d25f/sources/contracts/mixins/NFTMarketReserveAuction.sol
@param endTime The timestamp at which the auction will end.
error NFTMarketReserveAuction_Cannot_Finalize_Auction_In_Progress(uint256 endTime);
4,363,726
[ 1, 409, 950, 1021, 2858, 622, 1492, 326, 279, 4062, 903, 679, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1636, 423, 4464, 3882, 278, 607, 6527, 37, 4062, 67, 4515, 67, 7951, 554, 67, 37, 4062, 67, 382, 67, 5491, 12, 11890, 5034, 13859, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2022-02-07 */ /** *Submitted for verification at Etherscan.io on 2021-09-14 */ // File @openzeppelin/contracts/utils/introspection/[email protected] // SPDX-License-Identifier: MIT pragma solidity ^0.8.10; /** * @dev Interface of the ERC165 standard, as defined...
* @dev Returns the addition of two unsigned integers, reverting on overflow. Counterpart to Solidity's `+` operator. Requirements: - Addition cannot overflow./
function _beforeTokenTransfer( address from, address to, uint256 tokenId } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; }
2,434,772
[ 1, 1356, 326, 2719, 434, 2795, 9088, 12321, 16, 15226, 310, 603, 9391, 18, 9354, 2680, 358, 348, 7953, 560, 1807, 1375, 15, 68, 3726, 18, 29076, 30, 300, 1436, 608, 2780, 9391, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 1147, 548, 203, 97, 203, 203, 565, 445, 527, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261,...
pragma solidity 0.5.11; // tests for most gas efficient way to flip a uint to the equiviliant negative int value // they were all tested in remix 0.5.11 with optimizer off and optimizer on at 200 cycles // they are the only functions in each contract because the evm adds 20 gas for each additional function or external...
@dev naive naive multiplication by -1221 gas optimized 0.5.11, (1000000) input, as only function in contract287 gas unoptimized 0.5.11, (1000000) input, as only function in contract
contract B { function flip(uint256 _num) public pure returns(int256) { return int256(_num) * -1; } }
14,075,875
[ 1, 6582, 688, 28224, 23066, 635, 300, 2138, 5340, 16189, 15411, 374, 18, 25, 18, 2499, 16, 261, 21, 9449, 13, 810, 16, 487, 1338, 445, 316, 6835, 6030, 27, 16189, 640, 16689, 1235, 374, 18, 25, 18, 2499, 16, 261, 21, 9449, 13, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 605, 288, 203, 377, 445, 9668, 12, 11890, 5034, 389, 2107, 13, 1071, 16618, 1135, 12, 474, 5034, 13, 288, 203, 3639, 327, 509, 5034, 24899, 2107, 13, 380, 300, 21, 31, 203, 565, 289, 203, 97, 203, 2, -100, -100, -100, ...
./full_match/1/0xD3b9A1DCAbd16c482785Fd4265cB4580B84cdeD7/sources/tellor360/contracts/BaseToken.sol
* @dev This function approves a _spender an _amount of tokens to use @param _spender address receiving the allowance @param _amount amount the spender is being approved for @return bool true if spender approved successfully/
{ require(_spender != address(0), "ERC20: approve to the zero address"); _allowances[msg.sender][_spender] = _amount; emit Approval(msg.sender, _spender, _amount); return true; }
9,800,627
[ 1, 2503, 445, 6617, 3324, 279, 389, 87, 1302, 264, 392, 389, 8949, 434, 2430, 358, 999, 225, 389, 87, 1302, 264, 1758, 15847, 326, 1699, 1359, 225, 389, 8949, 3844, 326, 17571, 264, 353, 3832, 20412, 364, 327, 1426, 638, 309, 17571,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 2583, 24899, 87, 1302, 264, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 6617, 537, 358, 326, 3634, 1758, 8863, 203, 3639, 389, 5965, 6872, 63, 3576, 18, 15330, 6362, 67, 87, 1302, 264, 65, 273, 389, ...
pragma solidity ^0.4.25; import "./LibAddressSet.sol"; contract AddressSetDemo { using LibAddressSet for LibAddressSet.AddressSet; LibAddressSet.AddressSet private addressSet; event Log(uint256 size); function testAddress() public { //添加元素; addressSet.add(address(1)); // {1} ...
添加元素; {1} 查询set容器数量 获取指定index的元素 返回set中所有的元素 {0x1} 判断元素是否存在 删除元素
function testAddress() public { addressSet.add(address(1)); uint256 size = addressSet.getSize(); require(size == 1); address addr = addressSet.get(0); require(addr == (address(1)); addressSet.getAll(); bool contains = addressSet.contains(address(1)); r...
2,544,004
[ 1, 167, 120, 124, 166, 237, 259, 166, 232, 230, 168, 117, 259, 176, 125, 254, 288, 21, 97, 225, 167, 258, 103, 169, 112, 100, 542, 166, 111, 122, 166, 252, 106, 167, 248, 113, 170, 234, 242, 225, 169, 241, 120, 166, 242, 249, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 1887, 1435, 1071, 288, 203, 3639, 1758, 694, 18, 1289, 12, 2867, 12, 21, 10019, 203, 3639, 2254, 5034, 963, 273, 1758, 694, 18, 588, 1225, 5621, 203, 3639, 2583, 12, 1467, 422, 404, 1769, 203, 3639, 1758, 3091, ...
./partial_match/4/0xb4F4B34d76656a27965e5eb5575259FBD4a205e7/sources/ANWNFToken.sol
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension/
contract IERC721Metadata is IERC721 { function name() external view returns (string); function symbol() external view returns (string); function tokenURI(uint256 tokenId) external view returns (string); }
8,597,648
[ 1, 654, 39, 17, 27, 5340, 3858, 17, 42, 20651, 1523, 3155, 8263, 16, 3129, 1982, 2710, 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, 16351, 467, 654, 39, 27, 5340, 2277, 353, 467, 654, 39, 27, 5340, 288, 203, 225, 445, 508, 1435, 3903, 1476, 1135, 261, 1080, 1769, 203, 225, 445, 3273, 1435, 3903, 1476, 1135, 261, 1080, 1769, 203, 225, 445, 1147, 3098, 12, 11...
./partial_match/56/0x3d6D415be40159f207540f95E398F29a7173dC20/sources/JetfuelVaultDittoBoost.sol
* @dev Implementation of a vault to deposit funds for yield optimizing. This is the contract that receives funds and that users interface with. The yield optimizing strategy itself is implemented in a separate 'Strategy.sol' contract./
contract JetfuelVaultDittoBoost is ERC20, Ownable { using SafeERC20 for IERC20; using Address for address; using SafeMath for uint256; struct StratCandidate { address implementation; uint256 proposedTime; } address public constant unirouter = address(0x05fF2B0DB69458A...
11,118,454
[ 1, 13621, 434, 279, 9229, 358, 443, 1724, 284, 19156, 364, 2824, 5213, 6894, 18, 1220, 353, 326, 6835, 716, 17024, 284, 19156, 471, 716, 3677, 1560, 598, 18, 1021, 2824, 5213, 6894, 6252, 6174, 353, 8249, 316, 279, 9004, 296, 4525, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 804, 27227, 20317, 12003, 40, 305, 869, 26653, 353, 4232, 39, 3462, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565, 1450, 14060, 10477...
./full_match/5/0x74807E0EB3CEf9a9366419372E873286572112f1/sources/OpenNFTs/contracts/OpenNFTs/OpenMarketable.sol
Transfer back unspent funds to buyer
unspent = _transferValue(buyer, unspent);
1,920,339
[ 1, 5912, 1473, 640, 20693, 284, 19156, 358, 27037, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 640, 20693, 273, 389, 13866, 620, 12, 70, 16213, 16, 640, 20693, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: MIT pragma solidity ^0.4.25; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract FlightSuretyData { using SafeMath for uint256; /********************************************************************************************/ /* ...
* @dev Initial funding for the insurance. Unless there are too many delayed flights resulting in insurance payouts, the contract should be self-sustaining/ when airline has the required funds to Vote, set hasFunds to true
function fund ( address airline ) public payable { airlines[airline].funds += msg.value; airlines[airline].hasFunds = true; }
14,034,092
[ 1, 4435, 22058, 364, 326, 2763, 295, 1359, 18, 1351, 2656, 1915, 854, 4885, 4906, 15278, 1183, 10730, 1377, 8156, 316, 2763, 295, 1359, 293, 2012, 87, 16, 326, 6835, 1410, 506, 365, 17, 87, 641, 3280, 19, 1347, 23350, 1369, 711, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 284, 1074, 203, 18701, 261, 203, 17311, 1758, 23350, 1369, 203, 18701, 262, 203, 18701, 1071, 203, 18701, 8843, 429, 203, 565, 288, 203, 1377, 23350, 3548, 63, 1826, 1369, 8009, 74, 19156, 1011, 1234, 18, 1132, 31, 203, ...
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; import "./ShackledStructs.sol"; import "./ShackledMath.sol"; import "./Trigonometry.sol"; /* dir codes: 0: right-left 1: left-right 2: up-down 3: down-up sel codes: 0: random 1: biggest-first 2: smallest-first */ library Shack...
* @dev get the maximum extent of the geometry (vertical or horizontal) */
function getExtents(int256[3][3][] memory tris) internal view returns (int256[3][2] memory) { int256 minX = MAX_INT; int256 maxX = MIN_INT; int256 minY = MAX_INT; int256 maxY = MIN_INT; int256 minZ = MAX_INT; int256 maxZ = MIN_INT; ...
1,257,294
[ 1, 588, 326, 4207, 11933, 434, 326, 5316, 261, 17824, 578, 10300, 13, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 336, 2482, 4877, 12, 474, 5034, 63, 23, 6362, 23, 6362, 65, 3778, 433, 291, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 474, 5034, 63, 23, 6362, 22, 65, 3778, 13, 203, 565, 288, 203, 3639, 509, 5034,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns ...
Updates totalSupply
totalSupply = SafeMath.sub(totalSupply, amount);
15,799,468
[ 1, 5121, 2078, 3088, 1283, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2078, 3088, 1283, 273, 14060, 10477, 18, 1717, 12, 4963, 3088, 1283, 16, 3844, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol"; import "./TokenBase/Base.sol"; /** * @title dForce's Lending Protocol Contract. * @notice iTokens which wrap an EIP-20 underlying. * @author dForce Team. */ contract iToken i...
* @dev Caller borrows assets from the protocol. @param _borrower The account that will borrow tokens. @param _borrowAmount The amount of the underlying asset to borrow./ Calculates the new borrower and total borrow balances: newAccountBorrows = accountBorrows + borrowAmount newTotalBorrows = totalBorrows + borrowAmou...
function _borrowInternal(address payable _borrower, uint256 _borrowAmount) internal virtual { controller.beforeBorrow(address(this), _borrower, _borrowAmount); BorrowSnapshot storage borrowSnapshot = accountBorrows[_borrower]; borrowSnapshot.principal = _borrowBalanceInt...
133,192
[ 1, 11095, 324, 280, 3870, 7176, 628, 326, 1771, 18, 225, 389, 70, 15318, 264, 1021, 2236, 716, 903, 29759, 2430, 18, 225, 389, 70, 15318, 6275, 1021, 3844, 434, 326, 6808, 3310, 358, 29759, 18, 19, 26128, 326, 394, 29759, 264, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 70, 15318, 3061, 12, 2867, 8843, 429, 389, 70, 15318, 264, 16, 2254, 5034, 389, 70, 15318, 6275, 13, 203, 3639, 2713, 203, 3639, 5024, 203, 565, 288, 203, 3639, 2596, 18, 5771, 38, 15318, 12, 2867, 12, 2211, 3631...
pragma solidity 0.5.3; import './ICerticolCA.sol'; import './ICerticolDAOToken.sol'; import 'openzeppelin-solidity/contracts/math/SafeMath.sol'; import 'openzeppelin-solidity/contracts/ownership/Ownable.sol'; import 'openzeppelin-solidity/contracts/token/ERC20/IERC20.sol'; import 'openzeppelin-solidity/contracts/toke...
Event emitted when O10 voted confidence
event O10VotedConfidence(address indexed O10, address indexed target, uint256 PoSaTLocked);
13,141,374
[ 1, 1133, 17826, 1347, 531, 2163, 331, 16474, 15588, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 531, 2163, 58, 16474, 3976, 10328, 12, 2867, 8808, 531, 2163, 16, 1758, 8808, 1018, 16, 2254, 5034, 453, 31605, 69, 56, 8966, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.6.0; import "../utils/GasBurner.sol"; import "../interfaces/IAToken.sol"; import "../interfaces/ILendingPool.sol"; import "../interfaces/ILendingPoolAddressesProvider.sol"; import "../utils/SafeERC20.sol"; /// @title Basic compound interactions through the DSProxy contract AaveBasicProxy is GasBur...
@notice Return a rate for which we can sell an amount of tokens @param _srcAddr From token @param _destAddr To token @param _srcAmount From amount @return rate Rate multiply with decimal difference in src token divide with decimal difference in dest token
function getSellRate(address _srcAddr, address _destAddr, uint _srcAmount) public override view returns (uint rate) { (rate, ) = KyberNetworkProxyInterface(KYBER_INTERFACE) .getExpectedRate(ERC20(_srcAddr), ERC20(_destAddr), _srcAmount); rate = rate * (10**(18 - getDecimals(_srcAddr)));...
380,909
[ 1, 990, 279, 4993, 364, 1492, 732, 848, 357, 80, 392, 3844, 434, 2430, 225, 389, 4816, 3178, 6338, 1147, 225, 389, 10488, 3178, 2974, 1147, 225, 389, 4816, 6275, 6338, 3844, 327, 4993, 13025, 10194, 598, 6970, 7114, 316, 1705, 1147, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1322, 1165, 4727, 12, 2867, 389, 4816, 3178, 16, 1758, 389, 10488, 3178, 16, 2254, 389, 4816, 6275, 13, 1071, 3849, 1476, 1135, 261, 11890, 4993, 13, 288, 203, 3639, 261, 5141, 16, 262, 273, 1475, 93, 744, 3906, 3886, ...
./partial_match/1/0x5435Fc74aeD67C81BB500490A4365AF5e6021bba/sources/StrategySushiLpOptimizer.sol
===== View Functions =====
function baseStrategyVersion() public view returns (string memory) { return "1.1"; }
2,604,561
[ 1, 894, 33, 4441, 15486, 422, 12275, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1026, 4525, 1444, 1435, 1071, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 315, 21, 18, 21, 14432, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; // Part: IBasicRewards interface IBasicRewards { function stakeFor(address, uint256) external returns (bool); function balanceOf(address) external view returns (uint256); function earned(address) external view returns (uint256); function wit...
@notice Unstake from the Pounder as CVX and locks it @param amount - amount of uCRV to unstake @param minAmountOut - min amount of CVX expected @param to - address to lock on behalf of
function claimFromVaultAsCvxAndLock( uint256 amount, uint256 minAmountOut, address to ) public notToZeroAddress(to) { IERC20(vault).safeTransferFrom(msg.sender, address(this), amount); IUnionVault(vault).withdrawAllAs( address(this), IUnionVault.Op...
75,345
[ 1, 984, 334, 911, 628, 326, 453, 465, 765, 487, 385, 58, 60, 471, 13046, 518, 225, 3844, 300, 3844, 434, 582, 5093, 58, 358, 640, 334, 911, 225, 1131, 6275, 1182, 300, 1131, 3844, 434, 385, 58, 60, 2665, 225, 358, 300, 1758, 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, 1265, 12003, 1463, 39, 26982, 1876, 2531, 12, 203, 3639, 2254, 5034, 3844, 16, 203, 3639, 2254, 5034, 1131, 6275, 1182, 16, 203, 3639, 1758, 358, 203, 565, 262, 1071, 486, 774, 7170, 1887, 12, 869, 13, 288, 203, ...
./full_match/43114/0x02E07B6F27E5eC37CA6E9f846b6D48704031625A/sources/CauldronV2Multichain.sol
@title Cauldron @dev This contract allows contract calls to any contract (except BentoBox) from arbitrary callers thus, don't trust calls from this contract in any circumstances. Immutables (for MasterContract and all clones) MasterContract variables Per clone variables Clone init settings Total amounts User balances
contract CauldronV2Multichain is BoringOwnable, IMasterContract { using BoringMath for uint256; using BoringMath128 for uint128; using RebaseLibrary for Rebase; using BoringERC20 for IERC20; event LogExchangeRate(uint256 rate); event LogAccrue(uint128 accruedAmount); event LogAddCollateral(...
4,631,454
[ 1, 23508, 332, 72, 1949, 225, 1220, 6835, 5360, 6835, 4097, 358, 1281, 6835, 261, 14137, 605, 29565, 3514, 13, 628, 11078, 19932, 12493, 16, 2727, 1404, 10267, 4097, 628, 333, 6835, 316, 1281, 29951, 2639, 18, 2221, 10735, 1538, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23318, 332, 72, 1949, 58, 22, 5049, 1354, 530, 353, 605, 6053, 5460, 429, 16, 6246, 2440, 8924, 288, 203, 565, 1450, 605, 6053, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 605, 6053, 10477, 10392, 364, 2254, 10392, 31, 203...
./partial_match/1/0x47B0f414d5298CFFF5E043767d6715E2a5D92CC6/sources/BoiChillClub.sol
* @dev Sets the primary sale recipient address. @param recipient_ The address of the primary sale recipient./
function setupPrimarySaleRecipient(address recipient_) external override onlyOwner { _setupPrimarySaleRecipient(recipient_); }
4,455,952
[ 1, 2785, 326, 3354, 272, 5349, 8027, 1758, 18, 225, 8027, 67, 1021, 1758, 434, 326, 3354, 272, 5349, 8027, 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,...
[ 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, 3875, 6793, 30746, 18241, 12, 2867, 8027, 67, 13, 3903, 3849, 1338, 5541, 288, 203, 3639, 389, 8401, 6793, 30746, 18241, 12, 20367, 67, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/5/0x0B7082697a7bb855fb6F7Bf052B94464D98aa57E/sources/extension/TransactionFee.sol
@dev Platform wallet address @dev Transaction cost @dev At any given moment, returns the transaction fee.
function getTransactionFee() public view returns (uint256) { return transactionFee; }
1,958,086
[ 1, 8201, 9230, 1758, 225, 5947, 6991, 225, 2380, 1281, 864, 10382, 16, 1135, 326, 2492, 14036, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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, 15674, 14667, 1435, 1071, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 2492, 14667, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.6.0; import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/math/SafeMath.sol"; import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/token/ERC20/IERC20.sol"; import "https://github.com/OpenZeppelin/openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol"; import...
highest ballot index # on which the voter voted
uint256 highestIndexVote;
5,517,499
[ 1, 8766, 395, 26503, 352, 770, 225, 603, 1492, 326, 331, 20005, 331, 16474, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 9742, 1016, 19338, 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...
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementer...
First symbiote index 0
constructor() ERC721("Symbio", "SYMBIO"){ symbiotes.push(Symbiote(0, 0, 0, 0, 0, 0)); maxSupplyByTierOnPhase[0] = [ 33, 13, 3, 0, 0, 0]; maxSupplyByTierOnPhase[1] = [ 333, 33, 13, 3, 0, 0]; maxSupplyByTierOnPhase[2] = [1333, 333, 33, 13, 3, 0]; maxSupplyByTie...
5,777,068
[ 1, 3759, 1393, 1627, 77, 1168, 770, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 12316, 1435, 4232, 39, 27, 5340, 2932, 10876, 1627, 1594, 3113, 315, 7474, 7969, 4294, 7923, 95, 203, 565, 1393, 1627, 77, 6366, 18, 6206, 12, 10876, 1627, 77, 1168, 12, 20, 16, 374, 16, 374, 16, 374, 16, 374, 16, 374, 1...
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/math/Math.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./lib/Babylonian.sol"; impor...
saved enough to pay debt, mint as usual rate
function allocateSeigniorage() external onlyOneBlock { checkCondition(); checkEpoch(); checkOperator(); _updateCashPrice(); uint256 cashSupply = IERC20(cash).totalSupply().sub(seigniorageSaved); uint256 cashPrice = getCashPrice(); emit NewEpoch(epoch, cashPri...
12,536,001
[ 1, 14077, 7304, 358, 8843, 18202, 88, 16, 312, 474, 487, 25669, 4993, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 10101, 1761, 724, 77, 1531, 1435, 3903, 1338, 3335, 1768, 288, 203, 3639, 866, 3418, 5621, 203, 3639, 866, 14638, 5621, 203, 3639, 866, 5592, 5621, 203, 3639, 389, 2725, 39, 961, 5147, 5621, 203, 3639, 2254, 5034, 276, ...
./partial_match/42/0xAe7f87Bd18685e390736c9137D824754CCA80D06/sources/Orchestrator.sol
* @title uFragments ERC20 token @dev This is part of an implementation of the uFragments Ideal Money protocol. uFragments is a normal ERC20 token, but its supply can be adjusted by splitting and combining tokens proportionally across all wallets. uFragment balances are internally represented with a hidde...
contract UFragments is ERC20Detailed, Ownable { using SafeMath for uint256; using SafeMathInt for int256; event LogRebase(uint256 indexed epoch, uint256 totalSupply); event LogRebasePaused(bool paused); event LogTokenPaused(bool paused); event LogMonetaryPolicyUpdated(address monetaryPolicy); ...
9,070,008
[ 1, 89, 27588, 4232, 39, 3462, 1147, 225, 1220, 353, 1087, 434, 392, 4471, 434, 326, 582, 27588, 23062, 287, 16892, 1771, 18, 1377, 582, 27588, 353, 279, 2212, 4232, 39, 3462, 1147, 16, 1496, 2097, 14467, 848, 506, 13940, 635, 20347, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 587, 27588, 353, 4232, 39, 3462, 40, 6372, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 10477, 1702, 364, 509, 5034, 31, 203, 203, 565, 871, 1827, 426, 1969, 12, 11890, 50...
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 ...
Total number of interest cycles completed
uint256 public totalInterestCycles;
7,217,151
[ 1, 5269, 1300, 434, 16513, 15139, 5951, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 2254, 5034, 1071, 2078, 29281, 17992, 9558, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/80001/0x1C14B2a002367FDb0e03CBa23d63AA3b1f5096d9/sources/project_/contracts/superfluid/FlowNFTBase.sol
@note taking this out to deal with the stack too deep issue which occurs when you are attempting to abi.encodePacked too many elements @note upcasting is safe
function _flowDataString( uint256 tokenId ) internal view returns (string memory) { FlowNFTData memory flowData = flowDataByTokenId(tokenId); return string( abi.encodePacked( "&token_address=", Strings.toHexString( ...
5,674,425
[ 1, 36, 7652, 13763, 333, 596, 358, 10490, 598, 326, 2110, 4885, 4608, 5672, 1492, 9938, 1347, 1846, 854, 15600, 358, 24126, 18, 3015, 4420, 329, 4885, 4906, 2186, 632, 7652, 731, 4155, 310, 353, 4183, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 2426, 751, 780, 12, 203, 3639, 2254, 5034, 1147, 548, 203, 565, 262, 2713, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 9473, 50, 4464, 751, 3778, 4693, 751, 273, 4693, 751, 858, 1345, 548, 12, 2316, 548, 176...
./full_match/1/0x6D5Ac9cE19f996C33D810cf2ea62623C4Cbcaa28/sources/collector.sol
update _receivedPermissionNumber first
uint receivedPermissionNumber = _receivedPermissionNumber;
2,962,621
[ 1, 2725, 389, 15213, 5041, 1854, 1122, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5079, 5041, 1854, 273, 389, 15213, 5041, 1854, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/3/0x8A88015b8f9E54b47F24E3746a23167B079BFceb/sources/browser/3_balancer/1_code/Math.sol
* @dev Standard math utilities missing in the Solidity language./
library Math { pragma solidity ^0.6.0; function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } function average(uint256 a, uint256 b) internal pure ret...
8,265,525
[ 1, 8336, 4233, 22538, 3315, 316, 326, 348, 7953, 560, 2653, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2361, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 26, 18, 20, 31, 203, 565, 445, 943, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 279, 1545, 324, 692, ...
// SPDX-License-Identifier: agpl-3.0 pragma solidity 0.6.10; import {IERC20} from "../interfaces/IERC20.sol"; import {SafeMath} from "../open-zeppelin/SafeMath.sol"; import {VersionedInitializable} from "../utils/VersionedInitializable.sol"; /** * @title LendToAaveMigrator * @notice This contract implements the migr...
* @dev emitted on migration @param sender the caller of the migration @param amount the amount being migrated/* @param aave the address of the AAVE token @param lend the address of the LEND token @param lendAaveRatio the exchange rate between LEND and AAVE/
constructor(IERC20 aave, IERC20 lend, uint256 lendAaveRatio) public { AAVE = aave; LEND = lend; LEND_AAVE_RATIO = lendAaveRatio; }
15,782,311
[ 1, 351, 11541, 603, 6333, 225, 5793, 326, 4894, 434, 326, 6333, 225, 3844, 326, 3844, 3832, 24741, 19, 225, 279, 836, 326, 1758, 434, 326, 432, 26714, 1147, 225, 328, 409, 326, 1758, 434, 326, 511, 4415, 1147, 225, 328, 409, 37, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 45, 654, 39, 3462, 279, 836, 16, 467, 654, 39, 3462, 328, 409, 16, 2254, 5034, 328, 409, 37, 836, 8541, 13, 1071, 288, 203, 3639, 432, 26714, 273, 279, 836, 31, 203, 3639, 511, 4415, 273, 328, 409, 31, 203, 3...
pragma solidity ^0.4.24; import "./SimpleToken.sol"; import "./Buck.sol"; /** * @title ERC20 token * * @dev Implementation of the basic standard token. * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md * Originally based on code by OpenZeppelin: https://github.com/OpenZeppelin/openzeppelin-solidity/b...
* @dev Transfer tokens from one address to another if the address from approved msg.sender/
function transferFrom(address from, address to, uint256 value) public returns (bool) { require(value <= _allowed[from][msg.sender]); _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value); _transfer(from, to, value); return true; }
889,028
[ 1, 5912, 2430, 628, 1245, 1758, 358, 4042, 309, 326, 1758, 628, 20412, 1234, 18, 15330, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7412, 1265, 12, 2867, 628, 16, 1758, 358, 16, 2254, 5034, 460, 13, 1071, 1135, 261, 6430, 13, 288, 203, 565, 2583, 12, 1132, 1648, 389, 8151, 63, 2080, 6362, 3576, 18, 15330, 19226, 203, 203, 565, 389, 8151, 63, 2080,...
//Address: 0x449f5c827cf7726cc5f181090aa147ca5fb88a40 //Contract name: EthergotchiOwnershipV2 //Balance: 0 Ether //Verification Date: 3/26/2018 //Transacion Count: 380 // CODE STARTS HERE pragma solidity ^0.4.19; /// @title ERC-721 Non-Fungible Token Standard /// @dev See https://github.com/ethereum/EIPs/blob/maste...
* Modify method to only allow calls if the token is valid. Notice ------ Ethergotchi are valid if they are owned by an address that is not the zero address./
modifier onlyValidToken(uint256 _tokenId) { require(ownerByTokenId[_tokenId] != address(0)); _; }
12,544,590
[ 1, 11047, 707, 358, 1338, 1699, 4097, 309, 326, 1147, 353, 923, 18, 24914, 31913, 512, 1136, 13212, 24010, 854, 923, 309, 2898, 854, 16199, 635, 392, 1758, 716, 353, 486, 326, 3634, 1758, 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, 0, 0, 0, 0, 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, 1556, 1345, 12, 11890, 5034, 389, 2316, 548, 13, 288, 203, 3639, 2583, 12, 8443, 858, 1345, 548, 63, 67, 2316, 548, 65, 480, 1758, 12, 20, 10019, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100, -1...
// SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; // Global Enums and Structs struct StrategyParams { uint256 performanceFee; uint256 activation; uint256 debtRatio; uint256 rateLimit; uint256 lastReport; uint256 totalDebt; uint256 totalGain; ...
Override this to add all tokens/tokenized positions this contract manages on a *persistent* basis (e.g. not just for swapping back to want ephemerally) NOTE: Do *not* include `want`, already included in `sweep` below Example: function protectedTokens() internal override view returns (address[] memory) { addres...
function protectedTokens() internal override view returns (address[] memory) { address[] memory protected = new address[](1); protected[0] = gauge; return protected; }
14,009,933
[ 1, 6618, 333, 358, 527, 777, 2430, 19, 2316, 1235, 6865, 333, 6835, 20754, 281, 603, 279, 9195, 10853, 261, 73, 18, 75, 18, 486, 2537, 364, 7720, 1382, 1473, 358, 2545, 425, 12549, 264, 1230, 13, 5219, 30, 2256, 486, 2341, 1375, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4750, 5157, 1435, 203, 3639, 2713, 203, 3639, 3849, 203, 3639, 1476, 203, 3639, 1135, 261, 2867, 8526, 3778, 13, 203, 565, 288, 203, 203, 3639, 1758, 8526, 3778, 4750, 273, 394, 1758, 8526, 12, 21, 1769, 203, 1850, 4750...
./full_match/1/0x8Cba9816E49Ee0a2e6611Cf3ab81b195AD9C5514/sources/contracts/gemSwap/Atomicizer.sol
execute trades return remaining ETH (if any)
function batchBuyWithETH(MarketRegistry.TradeDetails[] memory tradeDetails) external payable nonReentrant { _trade(tradeDetails); assembly { if gt(selfbalance(), 0) { let callStatus := call( gas(), calle...
4,824,500
[ 1, 8837, 1284, 5489, 327, 4463, 512, 2455, 261, 430, 1281, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2581, 38, 9835, 1190, 1584, 44, 12, 3882, 278, 4243, 18, 22583, 3790, 8526, 3778, 18542, 3790, 13, 203, 3639, 3903, 203, 3639, 8843, 429, 203, 3639, 1661, 426, 8230, 970, 203, 565, 288, 203, 3639, 389, 20077, 12, 20077,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // Contracts import { PausableMods } from "../settings/pausable/PausableMods.sol"; import { ReentryMods } from "../contexts2/access-control/reentry/ReentryMods.sol"; import { RolesMods } from "../contexts2/access-control/roles/RolesMods.sol"; import { AUTHORI...
* @notice This event is emitted when loan terms have been successfully set @param loanID ID of loan from which collateral was withdrawn @param borrower Account address of the borrower/* @notice This event is emitted when a loan has been successfully taken out @param loanID ID of loan from which collateral was withdrawn...
{ CreateLoanLib.verifyCreateLoan(request, collateralToken); uint256 loanID = CreateLoanLib.initLoan(request, responses, collateralToken); if (collateralAmount > 0) { LibCollateral.deposit(loanID, collateralAmount); } emit LoanTermsSet(loanID, msg.sen...
12,730,847
[ 1, 2503, 871, 353, 17826, 1347, 28183, 6548, 1240, 2118, 4985, 444, 225, 28183, 734, 1599, 434, 28183, 628, 1492, 4508, 2045, 287, 1703, 598, 9446, 82, 225, 29759, 264, 6590, 1758, 434, 326, 29759, 264, 19, 225, 1220, 871, 353, 17826,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 288, 203, 3639, 1788, 1504, 304, 5664, 18, 8705, 1684, 1504, 304, 12, 2293, 16, 4508, 2045, 287, 1345, 1769, 203, 3639, 2254, 5034, 28183, 734, 273, 203, 5411, 1788, 1504, 304, 5664, 18, 2738, 1504, 304, 12, 2293, 16, 7220, ...
./full_match/1/0x9C070027cdC9dc8F82416B2e5314E11DFb4FE3CD/sources/contracts/bridge/Bridge.sol
@notice Allows to defeat a pending fraud challenge against a wallet if the transaction that spends the UTXO follows the protocol rules. In order to defeat the challenge the same `walletPublicKey` and signature (represented by `r`, `s` and `v`) must be provided as were used to calculate ...
function defeatFraudChallenge( bytes calldata walletPublicKey, bytes calldata preimage, bool witness ) external { self.defeatFraudChallenge(walletPublicKey, preimage, witness); }
4,856,485
[ 1, 19132, 358, 1652, 73, 270, 279, 4634, 284, 354, 1100, 12948, 5314, 279, 9230, 309, 540, 326, 2492, 716, 17571, 87, 326, 4732, 60, 51, 13040, 326, 1771, 2931, 18, 540, 657, 1353, 358, 1652, 73, 270, 326, 12948, 326, 1967, 1375, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1652, 73, 270, 42, 354, 1100, 18359, 12, 203, 3639, 1731, 745, 892, 9230, 9632, 16, 203, 3639, 1731, 745, 892, 675, 2730, 16, 203, 3639, 1426, 15628, 203, 565, 262, 3903, 288, 203, 3639, 365, 18, 536, 73, 270, 42, 3...
pragma solidity 0.4.24; // File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * See https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { function totalSupply() public view returns (uint256); function balanceOf(addr...
* @notice Transfers vested tokens to Early Investors. @param _beneficiary ERC20 token which is being vested @param _releaseAmount ERC20 token which is being vested/
function releaseToEarlyInvestors(address _beneficiary, uint256 _releaseAmount) public onlyOwner{ require(isWhitelisted(_beneficiary), "Beneficiary is not whitelisted"); require(now >= releaseTimeToUnlockEarlyInvestorTokens, "Release Early Investors tokens on or after GMT: Wednesday, 21 August 2019 0...
10,207,854
[ 1, 1429, 18881, 331, 3149, 2430, 358, 512, 20279, 5454, 395, 1383, 18, 225, 389, 70, 4009, 74, 14463, 814, 4232, 39, 3462, 1147, 1492, 353, 3832, 331, 3149, 225, 389, 9340, 6275, 4232, 39, 3462, 1147, 1492, 353, 3832, 331, 3149, 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, 3992, 774, 41, 20279, 3605, 395, 1383, 12, 2867, 389, 70, 4009, 74, 14463, 814, 16, 2254, 5034, 389, 9340, 6275, 13, 1071, 1338, 5541, 95, 203, 3639, 2583, 12, 291, 18927, 329, 24899, 70, 4009, 74, 14463, 814, 3631, 3...
./full_match/4/0xa3a58fAf3DcAe18a5F20792b1165AA609571C30d/sources/contract-867d3f40d0.sol
The following functions are overrides required by Solidity.
contract MyGovernor is Governor, GovernorSettings, GovernorCountingSimple, GovernorVotes, GovernorVotesQuorumFraction, GovernorTimelockControl { constructor(IVotes _token, TimelockController _timelock) Governor("MyGovernor") GovernorSettings(1 /* 1 block */, 45818 /* 1 week */, 0) GovernorVo...
12,444,234
[ 1, 1986, 3751, 4186, 854, 9515, 1931, 635, 348, 7953, 560, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 8005, 43, 1643, 29561, 353, 611, 1643, 29561, 16, 611, 1643, 29561, 2628, 16, 611, 1643, 29561, 1380, 310, 5784, 16, 611, 1643, 29561, 29637, 16, 611, 1643, 29561, 29637, 31488, 13724, 16, 611, 1643, 29561, 10178, 292, 975, ...
./partial_match/11155111/0x9B36F148D92494F144d8F70F60cCadC4b726194e/sources/nft/chainTransferAble/Tripster721ACreateFeeTransferChainSender.sol
uint256 _indexOfIpfsCollection = _indexOfCollectionId(collectionId);
function pause_mint(uint256 collectionIndex) public onlyOwner { IpfsCollections[collectionIndex].public_released = false; IpfsCollections[collectionIndex].whitelist_released = false; }
3,534,162
[ 1, 11890, 5034, 389, 31806, 5273, 2556, 2532, 273, 389, 31806, 2532, 548, 12, 5548, 548, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11722, 67, 81, 474, 12, 11890, 5034, 1849, 1016, 13, 1071, 1338, 5541, 288, 203, 3639, 14709, 2556, 15150, 63, 5548, 1016, 8009, 482, 67, 9340, 72, 273, 629, 31, 203, 3639, 14709, 2556, 15150, 63, 5548, 1016, 8009, 2040...
pragma solidity 0.8.10; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; impo...
modifier onlyRole(bytes32 role) { require(hasRole(role, msg.sender), "CronosGravity::Permission Denied"); _; }
contract CronosGravity is Gravity, AccessControl, Pausable, Ownable { using SafeERC20 for IERC20; bytes32 public constant RELAYER = keccak256("RELAYER"); bytes32 public constant RELAYER_ADMIN = keccak256("RELAYER_ADMIN"); bool public anyoneCanRelay; event AnyoneCanRelay(bool anyoneCanRelay); ...
1,052,284
[ 1, 20597, 1338, 2996, 12, 3890, 1578, 2478, 13, 288, 3639, 2583, 12, 5332, 2996, 12, 4615, 16, 1234, 18, 15330, 3631, 315, 18586, 538, 14571, 16438, 2866, 5041, 22453, 2092, 8863, 3639, 389, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 18972, 538, 14571, 16438, 353, 10812, 16438, 16, 24349, 16, 21800, 16665, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 203, 565, 1731, 1578, 1071, 5381, 15375, 5255, 654, 273,...
/** *Submitted for verification at Etherscan.io on 2022-02-14 */ /* Fee Percentages 1. 6% Team wallet 2. 5% Raid wallet 3. 5% Reward Reflection (auto) total: 16% tg: https://t.me/shartans Supply 10,000,000,000 SPDX-License-Identifier: MIT */ pragma solidity ^0.8.4; /** * @dev Provides information about the cu...
Uniswap Interfaces //
interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function getPair(address tokenA, address tokenB) external view returns (address pair); function createPair(address tokenA, address tokenB) external returns (address pair); }
7,976,007
[ 1, 984, 291, 91, 438, 27152, 368, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 467, 984, 291, 91, 438, 58, 22, 1733, 288, 203, 565, 871, 8599, 6119, 12, 2867, 8808, 1147, 20, 16, 1758, 8808, 1147, 21, 16, 1758, 3082, 16, 2254, 1769, 203, 565, 445, 1689, 1826, 12, 2867, 1147, 37, 16, 1758, 1147, 38...
// SPDX-License-Identifier: MIT pragma solidity 0.8.0; import "../Plus.sol"; import "./MockToken.sol"; /** * @dev Mock plus implementation. */ contract MockPlus is Plus { uint256 public underlyingAmount; function initialize(string memory _name, string memory _symbol) public { __PlusToken__init(_nam...
* @dev Checks whether a token can be salvaged via salvageToken(). @param _token Token to check salvageability./
function _salvageable(address _token) internal view override returns (bool) { underlyingAmount; return _token != address(0x0); }
7,292,861
[ 1, 4081, 2856, 279, 1147, 848, 506, 12814, 90, 11349, 3970, 12814, 90, 410, 1345, 7675, 225, 389, 2316, 3155, 358, 866, 12814, 90, 410, 2967, 18, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 21982, 90, 410, 429, 12, 2867, 389, 2316, 13, 2713, 1476, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 6808, 6275, 31, 203, 3639, 327, 389, 2316, 480, 1758, 12, 20, 92, 20, 1769, 203, 565, 289, 203, 203, 2, -100,...
/** *Submitted for verification at Etherscan.io on 2022-04-30 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /////////////////////////////////////// // ____ __ ___ __ __ // // /_ / ___ __\ \/ (_)__ / /__/ / // // / /_/ -_) _ \ / / -_) / _ / // // /___/\__/_//_/_/_/\__/_/\_,_/ ...
Apr 30 2022 14:00:00 GMT+0000
uint40 public yieldStartTime = 1651327200;
15,077,009
[ 1, 37, 683, 5196, 26599, 22, 5045, 30, 713, 30, 713, 21706, 15, 2787, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7132, 1071, 2824, 13649, 273, 2872, 10593, 1578, 27, 6976, 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, ...
//Address: 0x93012a1c354b2964ef88a55b7b11ed178f921b3e //Contract name: AffiliateManager //Balance: 0 Ether //Verification Date: 2/13/2018 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.19; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIP...
* @dev Gets the balance of the specified address. @param _owner The address to query the the balance of. @return An uint256 representing the amount owned by the passed address./
function balanceOf(address _owner) public view returns(uint256 balance) { return balances[_owner]; }
12,767,882
[ 1, 3002, 326, 11013, 434, 326, 1269, 1758, 18, 225, 389, 8443, 1021, 1758, 358, 843, 326, 326, 11013, 434, 18, 327, 1922, 2254, 5034, 5123, 326, 3844, 16199, 635, 326, 2275, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 11013, 951, 12, 2867, 389, 8443, 13, 1071, 1476, 1135, 12, 11890, 5034, 11013, 13, 288, 203, 3639, 327, 324, 26488, 63, 67, 8443, 15533, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
// 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...
unlocks at this timestamp
uint32 unlockDate;
6,651,790
[ 1, 318, 23581, 622, 333, 2858, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 202, 11890, 1578, 7186, 1626, 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, ...
./full_match/4/0xf57b3262dd2a54e7831f81eA5Eb6FC2e3cF00f2F/sources/browser/PearSteak.sol
returns true or false depending on if a stake is locked or free to withdraw./
function isStakeLocked(uint stake_) private view returns (bool) { uint stakingTime = now - _staking[msg.sender][stake_].startTime; return stakingTime < _stakingOptions[_staking[msg.sender][stake_].stakeType].lockedTime; }
812,403
[ 1, 6154, 638, 578, 629, 8353, 603, 309, 279, 384, 911, 353, 8586, 578, 4843, 358, 598, 9446, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 510, 911, 8966, 12, 11890, 384, 911, 67, 13, 3238, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 384, 6159, 950, 273, 2037, 300, 389, 334, 6159, 63, 3576, 18, 15330, 6362, 334, 911, 67, 8009, 1937, 950, 31, ...
./full_match/4/0xD1C18e3f0F1ea6Ff9EDCF9CD07c99BB6C38Ba3ae/sources/contracts/crowdsale/BrilliantNewMineStakeLast.sol
reward = uint256(_balanceMi(account));aSBlock = uint256(aSBlock); uint256 _aSBlock = uint256(aSBlock); if(smblock[account] > 0){ _aSBlock = uint256(smblock[account]); }uint256 mining = uint256((block.number.sub(_aSBlock))*mineDec); _reward = mining.mul(uint256(reward)).div(mineDiv); reward = uint256((reward) + _rewa...
if (!claimined[account]){ if(_balanceMi(account) > 0){ reward = uint256(_balanceMi(account)); uint256 _aSBlock = uint256(aSBlock); if(smblock[account] == 0){ _aSBlock = uint256(block.number); _aSBlock = uint256(smblock[account]); } if(_smine == true){ ...
791,369
[ 1, 266, 2913, 273, 2254, 5034, 24899, 12296, 49, 77, 12, 4631, 10019, 69, 55, 1768, 273, 2254, 5034, 12, 69, 55, 1768, 1769, 2254, 5034, 389, 69, 55, 1768, 273, 2254, 5034, 12, 69, 55, 1768, 1769, 309, 12, 87, 1627, 739, 63, 463...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 377, 309, 16051, 14784, 1920, 63, 4631, 5717, 95, 203, 540, 309, 24899, 12296, 49, 77, 12, 4631, 13, 405, 374, 15329, 203, 4202, 19890, 273, 2254, 5034, 24899, 12296, 49, 77, 12, 4631, 10019, 7010, 4202, 2254, 5034, 389, 69, 55, ...
./full_match/4/0x23651D5B32e4a0646C82bD8A76859497508506fb/sources/contract-efca0521de.sol
* @notice Sample code for an NFT drop protected by OpenZeppelin Defender. @dev Code has not been audited. Use at your own risk./ Address of OZ Defender's Relayer
contract ExampleNFT is ERC721, Pausable, ReentrancyGuard { address private immutable _defender; uint256 public tokenIdCounter = 1; pragma solidity ^0.8.2; constructor(address defender) ERC721("ExampleNFT", "EXNFT") { require(defender != address(0)); _defender = defender; } functio...
646,357
[ 1, 8504, 981, 364, 392, 423, 4464, 3640, 4750, 635, 3502, 62, 881, 84, 292, 267, 10922, 2345, 18, 225, 3356, 711, 486, 2118, 8215, 329, 18, 2672, 622, 3433, 4953, 18404, 18, 19, 5267, 434, 531, 62, 10922, 2345, 1807, 4275, 1773, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 5090, 50, 4464, 353, 4232, 39, 27, 5340, 16, 21800, 16665, 16, 868, 8230, 12514, 16709, 288, 203, 203, 565, 1758, 3238, 11732, 389, 536, 2345, 31, 203, 565, 2254, 5034, 1071, 1147, 548, 4789, 273, 404, 31, 203, 203, 683, ...
./full_match/1/0x13178e7c50D8b020367DD7097419193484a0488F/sources/browser/ballot_test.sol
Issue a new amount of tokens
function issue(uint amount) public isOwner { require(totalSupply + amount > totalSupply); require(balances[owner] + amount > balances[owner]); balances[owner] += amount; totalSupply += amount; emit Issue(amount); }
16,398,077
[ 1, 12956, 279, 394, 3844, 434, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5672, 12, 11890, 3844, 13, 1071, 353, 5541, 288, 203, 3639, 2583, 12, 4963, 3088, 1283, 397, 3844, 405, 2078, 3088, 1283, 1769, 203, 3639, 2583, 12, 70, 26488, 63, 8443, 65, 397, 3844, 405, 324, 26488, 63, 8443, 19226, ...
./full_match/80001/0xcefB4cA7f73697E14Fb450105BD4BAC33F0FC037/sources/src/Contract.sol
Increment the count of entries for the participant
function buyTicket(uint256 numberOfTickets) public payable { entryCounts[msg.sender] += numberOfTickets; if (!isPlayer(msg.sender)) { } }
876,110
[ 1, 10798, 326, 1056, 434, 3222, 364, 326, 14188, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 30143, 13614, 12, 11890, 5034, 7922, 6264, 2413, 13, 1071, 8843, 429, 288, 203, 203, 3639, 1241, 9211, 63, 3576, 18, 15330, 65, 1011, 7922, 6264, 2413, 31, 203, 203, 3639, 309, 16051, 291, 12148, 12, 3576, 18, 15330, 37...
/** *Submitted for verification at Etherscan.io on 2021-11-05 */ /** *Submitted for verification at Etherscan.io on 2021-04-16 */ // SPDX-License-Identifier: NONE pragma solidity 0.6.12; // Part: PandaNFT interface PandaNFT { function balanceOf(address _user) external view returns(uint256); function ownerOf(...
* @title Ownable @dev Ownable has an owner address to simplify "user permissions"./
contract Ownable { address public owner; constructor() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); owner = newOwner; } }
6,218,189
[ 1, 5460, 429, 225, 14223, 6914, 711, 392, 3410, 1758, 358, 16499, 315, 1355, 4371, 9654, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14223, 6914, 288, 203, 225, 1758, 1071, 3410, 31, 203, 203, 225, 3885, 1435, 1071, 288, 203, 565, 3410, 273, 1234, 18, 15330, 31, 203, 225, 289, 203, 203, 225, 9606, 1338, 5541, 1435, 288, 203, 565, 2583, 12, 3576, 18, 1...
./full_match/1/0x3B263378444ffFADb1374619278EcA4931f6084E/sources/contracts/CrytopAlienBabesNFTICO.sol
* @dev Required interface of an ERC721 compliant contract./
interface ICryptoAlienBabes { function balanceOf(address owner) external view returns (uint256 balance); function walletOfOwner(address owner) external view returns (uint256[] memory); function transferOwnership(address newOwner) external; function renounceMinter() external; function ownerOf(ui...
16,442,927
[ 1, 3705, 1560, 434, 392, 4232, 39, 27, 5340, 24820, 6835, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18048, 37, 549, 275, 38, 378, 281, 288, 203, 565, 445, 11013, 951, 12, 2867, 3410, 13, 3903, 1476, 1135, 261, 11890, 5034, 11013, 1769, 203, 7010, 565, 445, 9230, 951, 5541, 12, 2867, 3410, 13, 3903, 1476, 1135, 261, ...
./full_match/100/0x0e93f1e9a44AF236186a8cBCdeb22e2E6564856c/sources/contracts/core/connext/facets/BridgeFacet.sol
* @notice Format and send transfer message to a remote chain. @param _transferId Unique identifier for the transfer. @param _params The TransferInfo. @param _connextion The connext instance on the destination domain. @param _canonical The canonical token ID/domain info. @param _local The local token address. @param _am...
function _sendMessageAndEmit( bytes32 _transferId, TransferInfo memory _params, address _asset, uint256 _amount, bytes32 _connextion, TokenId memory _canonical, address _local, bool _isCanonical ) private { uint256 bridgedAmt = _params.bridgedAmt; if (bridgedAmt > 0) { ...
14,269,822
[ 1, 1630, 471, 1366, 7412, 883, 358, 279, 2632, 2687, 18, 225, 389, 13866, 548, 14584, 2756, 364, 326, 7412, 18, 225, 389, 2010, 1021, 12279, 966, 18, 225, 389, 591, 4285, 285, 1021, 1487, 408, 791, 603, 326, 2929, 2461, 18, 225, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 389, 4661, 1079, 1876, 17982, 12, 203, 565, 1731, 1578, 389, 13866, 548, 16, 203, 565, 12279, 966, 3778, 389, 2010, 16, 203, 565, 1758, 389, 9406, 16, 203, 565, 2254, 5034, 389, 8949, 16, 203, 565, 1731, 1578, 389, 59...
// SPDX-License-Identifier: Apache-2.0 pragma solidity 0.7.6; pragma abicoder v2; import {OwnableUpgradeable} from '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol'; import {ERC20} from '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20....
* @return The result of safely multiplying x and y, interpreting the operands as fixed-point decimals of a standard unit. @dev The operands should be in the standard unit factor which will be divided out after the product of x and y is evaluated, so that product must be less than 2256. Unlike multiplyDecimal, this func...
function multiplyDecimalRound(uint256 x, uint256 y) internal pure returns (uint256) { return _multiplyDecimalRound(x, y, UNIT); }
217,814
[ 1, 2463, 1021, 563, 434, 15303, 10194, 310, 619, 471, 677, 16, 10634, 310, 326, 14883, 487, 5499, 17, 1153, 15105, 434, 279, 4529, 2836, 18, 225, 1021, 14883, 1410, 506, 316, 326, 4529, 2836, 5578, 1492, 903, 506, 26057, 596, 1839, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10194, 5749, 11066, 12, 11890, 5034, 619, 16, 2254, 5034, 677, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 7027, 1283, 5749, 11066, 12, 92, 16, 677, 16, 28721, 1769, 203, 565, 289, 203, 203, ...
/** *Submitted for verification at Etherscan.io on 2020-07-28 */ pragma solidity 0.6.0; /** * @title Price contract * @dev Price check and call */ contract Nest_3_OfferPrice{ using SafeMath for uint256; using address_make_payable for address; using SafeERC20 for ERC20; Nest_3_VoteFactory _vot...
* @dev Add price @param ethAmount ETH amount @param tokenAmount Erc20 amount @param endBlock Effective price block @param tokenAddress Erc20 address @param offerOwner Offering address/ Add effective block price information
function addPrice(uint256 ethAmount, uint256 tokenAmount, uint256 endBlock, address tokenAddress, address offerOwner) public onlyOfferMain{ TokenInfo storage tokenInfo = _tokenInfo[tokenAddress]; PriceInfo storage priceInfo = tokenInfo.priceInfoList[endBlock]; priceInfo.offerOwner = offerO...
12,913,709
[ 1, 986, 6205, 225, 13750, 6275, 512, 2455, 3844, 225, 1147, 6275, 512, 1310, 3462, 3844, 225, 679, 1768, 512, 21446, 6205, 1203, 225, 1147, 1887, 512, 1310, 3462, 1758, 225, 10067, 5541, 25753, 310, 1758, 19, 1436, 11448, 1203, 6205, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 5147, 12, 11890, 5034, 13750, 6275, 16, 2254, 5034, 1147, 6275, 16, 2254, 5034, 679, 1768, 16, 1758, 1147, 1887, 16, 1758, 10067, 5541, 13, 1071, 1338, 10513, 6376, 95, 203, 3639, 3155, 966, 2502, 1147, 966, 273, 3...
pragma solidity ^0.4.11; import './SafeMath.sol'; import './Owned.sol'; /* A library that manages all funds for buyer, seller, and owner roles. */ library AccountLib { /************************************************* * Members *************************************************/ struct Data { // the p...
* Withdraw available seller funds. If Accepted, withdraws initial commission and a pro-rated amount of daily commission. If Settled, withdraws collateral. */
function sellerWithdraw(Data storage self, address to, uint amount) internal { withdrawFrom(self, self.seller, to, amount); }
12,891,545
[ 1, 1190, 9446, 2319, 29804, 284, 19156, 18, 971, 8662, 329, 16, 598, 9446, 87, 2172, 1543, 19710, 471, 279, 450, 17, 86, 690, 3844, 434, 18872, 1543, 19710, 18, 971, 1000, 88, 1259, 16, 598, 9446, 87, 4508, 2045, 287, 18, 342, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 29804, 1190, 9446, 12, 751, 2502, 365, 16, 1758, 358, 16, 2254, 3844, 13, 2713, 288, 203, 565, 598, 9446, 1265, 12, 2890, 16, 365, 18, 1786, 749, 16, 358, 16, 3844, 1769, 203, 225, 289, 203, 203, 2, -100, -100, -100...
/** *Submitted for verification at Etherscan.io on 2020-09-24 */ pragma solidity ^0.6.6; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an ov...
* @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 is the standard behavior in high level programming languages. `SafeMath` restor...
library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } }
8,061,757
[ 1, 24114, 1879, 348, 7953, 560, 1807, 30828, 5295, 598, 3096, 9391, 4271, 18, 27443, 5295, 316, 348, 7953, 560, 2193, 603, 9391, 18, 1220, 848, 17997, 563, 316, 22398, 16, 2724, 5402, 81, 414, 11234, 6750, 716, 392, 9391, 14183, 392, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 10477, 288, 203, 203, 565, 445, 527, 12, 11890, 5034, 279, 16, 2254, 5034, 324, 13, 2713, 16618, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 276, 273, 279, 397, 324, 31, 203, 3639, 2583, 12, 71, 1545, ...
./full_match/1/0xadeC97DDc587F5285528069112b9B09F5aE5D15e/sources/CyberSamurai.sol
* the Metadata extension. Built to optimize for lower gas during batch mints. Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). Assumes that an owner cannot have more than 264 - 1 (max value of uint64) of supply. Assumes that the maximum token id cannot exceed 2256 ...
contract ERC721A is IERC721A { uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; uint256 private constant BITPOS_NUMBER_MINTED = 64; uint256 private constant BITPOS_NUMBER_BURNED = 128; uint256 private constant BITPOS_AUX = 192; uint256 private constant BITMASK_AUX_COMPLEMENT ...
8,365,190
[ 1, 5787, 6912, 2710, 18, 27376, 358, 10979, 364, 2612, 16189, 4982, 2581, 312, 28142, 18, 25374, 2734, 87, 854, 695, 6979, 6261, 312, 474, 329, 5023, 622, 389, 1937, 1345, 548, 1435, 261, 7606, 358, 374, 16, 425, 18, 75, 18, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 27, 5340, 37, 353, 467, 654, 39, 27, 5340, 37, 288, 203, 565, 2254, 5034, 3238, 5381, 20469, 11704, 67, 15140, 67, 4883, 67, 19083, 273, 261, 21, 2296, 5178, 13, 300, 404, 31, 203, 203, 565, 2254, 5034, 3238, ...
./partial_match/1/0x1d2Cbe37E22E01DB3c513db44DE8458EA598A861/sources/script/Curvy.flat.sol
@solidity memory-safe-assembly Get a pointer to some free memory. Write the abi-encoded calldata into memory, beginning with the function selector. Set success to whether the call reverted, if not we check it either returned exactly 1 (can't just be non-zero data), or had no return data. We use 68 because the length o...
function safeApprove(ERC20 token, address to, uint256 amount) internal { bool success; assembly { let freeMemoryPointer := mload(0x40) mstore( freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000 ...
3,600,673
[ 1, 36, 30205, 560, 3778, 17, 4626, 17, 28050, 968, 279, 4407, 358, 2690, 4843, 3778, 18, 2598, 326, 24126, 17, 10787, 745, 892, 1368, 3778, 16, 8435, 598, 326, 445, 3451, 18, 1000, 2216, 358, 2856, 326, 745, 15226, 329, 16, 309, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 4183, 12053, 537, 12, 654, 39, 3462, 1147, 16, 1758, 358, 16, 2254, 5034, 3844, 13, 203, 3639, 2713, 203, 565, 288, 203, 3639, 1426, 2216, 31, 203, 203, 3639, 19931, 288, 203, 5411, 2231, 4843, 6031, 4926, 519, 312, 9...
./full_match/5/0x21517abae577dDC59Ac6945C501F36AF085d97A7/sources/contracts/CrowdFunding.sol
array of donations from the above donators there multiple amounts in the array
uint256[] donations;
1,856,055
[ 1, 1126, 434, 2727, 1012, 628, 326, 5721, 2727, 3062, 1915, 3229, 30980, 316, 326, 526, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8526, 2727, 1012, 31, 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,...
pragma solidity ^0.5.13; import "openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity/contracts/math/Math.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/utils/Address.sol"; import "./interfaces/IGovernance.sol"; import "./Prop...
* @notice Returns whether or not a dequeued proposal has expired. @param proposalId The ID of the proposal. @return Whether or not the dequeued proposal has expired./
function isDequeuedProposalExpired(uint256 proposalId) external view returns (bool) { Proposals.Proposal storage proposal = proposals[proposalId]; return _isDequeuedProposalExpired(proposal, proposal.getDequeuedStage(stageDurations)); }
5,455,411
[ 1, 1356, 2856, 578, 486, 279, 443, 19499, 14708, 711, 7708, 18, 225, 14708, 548, 1021, 1599, 434, 326, 14708, 18, 327, 17403, 578, 486, 326, 443, 19499, 14708, 711, 7708, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 353, 758, 19499, 14592, 10556, 12, 11890, 5034, 14708, 548, 13, 3903, 1476, 1135, 261, 6430, 13, 288, 203, 565, 1186, 22536, 18, 14592, 2502, 14708, 273, 450, 22536, 63, 685, 8016, 548, 15533, 203, 565, 327, 389, 291, 7...
./full_match/80001/0xBF6c49840EF2c86D237d55FdAF6CD51490942c5b/sources/Vault1155ERM.sol
* Clears the token filtering for a specific contract. */ Reentrancy guard. We require the contract to be frozen for extra security. Caller must be an admin. Make sure the contract is tracked. Clear the filters. Hello world!
function clearTokenFilters(address contractAddress) external { uint256 contractIndex = _coreAddressIndices[contractAddress]; require( _status == S_FROZEN && (_addressRoles[msg.sender] & R_IS_ADMIN) == R_IS_ADMIN && contractIndex > 0 , "Not authorized");...
866,588
[ 1, 18188, 326, 1147, 11346, 364, 279, 2923, 6835, 18, 342, 868, 8230, 12514, 11026, 18, 1660, 2583, 326, 6835, 358, 506, 12810, 364, 2870, 4373, 18, 20646, 1297, 506, 392, 3981, 18, 4344, 3071, 326, 6835, 353, 15200, 18, 10121, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2424, 1345, 5422, 12, 2867, 6835, 1887, 13, 3903, 288, 203, 3639, 2254, 5034, 6835, 1016, 273, 389, 3644, 1887, 8776, 63, 16351, 1887, 15533, 203, 3639, 2583, 12, 203, 5411, 389, 2327, 422, 348, 67, 42, 1457, 62, 1157, ...
pragma solidity ^ 0.4.19; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns(uint256) { if (a == 0) { ...
@dev Returns the total number of Animecards currently in existence. @notice Required for ERC-20 and ERC-721 compliance.
function totalSupply() public view returns(uint) { return animecards.length; }
5,525,940
[ 1, 1356, 326, 2078, 1300, 434, 1922, 494, 3327, 87, 4551, 316, 15782, 18, 225, 10647, 364, 4232, 39, 17, 3462, 471, 4232, 39, 17, 27, 5340, 29443, 18, 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, 2078, 3088, 1283, 1435, 1071, 1476, 1135, 12, 11890, 13, 288, 203, 3639, 327, 392, 494, 3327, 87, 18, 2469, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity 0.7.6; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; interface ICurvePairs { function add...
@notice Function to unstake LP token from Pickle Farm(gaugeP_WBTC), @notice withdraw from Pickle Jar(pickleJarWBTC), @notice and remove liquidity(router) from SushiSwap @param _amount Amount to withdraw in ETH
function _withdrawPickleWBTC(uint256 _amount) private { uint256 _totalPlpToken = gaugeP_WBTC.balanceOf(address(this)); uint256 _plpTokenShare = _totalPlpToken.mul(_amount).div(_poolWBTCETH); gaugeP_WBTC.withdraw(_plpTokenShare); pickleJarWBTC.withdraw(_plpTokenShare); router....
13,496,275
[ 1, 2083, 358, 640, 334, 911, 511, 52, 1147, 628, 23038, 298, 478, 4610, 12, 75, 8305, 52, 67, 59, 38, 15988, 3631, 225, 598, 9446, 628, 23038, 298, 15644, 12, 20847, 10813, 59, 38, 15988, 3631, 225, 471, 1206, 4501, 372, 24237, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 565, 445, 389, 1918, 9446, 17968, 298, 59, 38, 15988, 12, 11890, 5034, 389, 8949, 13, 3238, 288, 203, 3639, 2254, 5034, 389, 4963, 1749, 84, 1345, 273, 13335, 52, 67, 59, 38, 15988, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 20...
pragma solidity 0.5.16; /** * @title FundRaiser Smart Contract * @author Malarena SA - www.malarena.com * @notice A Fund Raising Smart Contract used to raise funds, with payments then released based on contributors voting */ contract FundRaiser { using SafeMath for uint256; // Initial set-up of Struct for Spen...
* @notice Process a Refund, including reversing any voting @dev Requires that the contribution exists, the deadline has passed and NO payments have been made. If the goal is reached then requires that initialPaymentDeadline has passed/ amountRaised = amountRaised.sub(amountToRefund); Removed to allow createRequest to ...
function getRefund() external returns (bool) { require(contributions[msg.sender] > 0, "No contribution to return"); require(block.number > deadline, "Deadline not reached"); require(amountPaidOut == 0, "Payments have already been made"); if (amountRaised >= goal) { require(block.number > initial...
12,880,400
[ 1, 2227, 279, 3941, 1074, 16, 6508, 19795, 310, 1281, 331, 17128, 225, 16412, 716, 326, 24880, 1704, 16, 326, 14096, 711, 2275, 471, 3741, 25754, 1240, 2118, 7165, 18, 971, 326, 17683, 353, 8675, 1508, 4991, 716, 2172, 6032, 15839, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17404, 1074, 1435, 3903, 1135, 261, 6430, 13, 288, 203, 565, 2583, 12, 591, 15326, 63, 3576, 18, 15330, 65, 405, 374, 16, 315, 2279, 24880, 358, 327, 8863, 203, 565, 2583, 12, 2629, 18, 2696, 405, 14096, 16, 315, 1583...
// SPDX-License-Identifier: MIT pragma solidity 0.7.4; // import "hardhat/console.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "...
------------------------------------------------------------------------ Calculate the number of days from 1970/01/01 to year/month/day using the date conversion algorithm from http:aa.usno.navy.mil/faq/docs/JD_Formula.php and subtracting the offset 2440588 so that 1970/01/01 is day 0 days = day - 32075 + ...
library BokkyPooBahsDateTimeLibrary { uint256 constant SECONDS_PER_DAY = 24 * 60 * 60; uint256 constant SECONDS_PER_HOUR = 60 * 60; uint256 constant SECONDS_PER_MINUTE = 60; int256 constant OFFSET19700101 = 2440588; uint256 constant DOW_MON = 1; uint256 constant DOW_TUE = 2; uint256 constan...
419,999
[ 1, 29461, 9029, 326, 1300, 434, 4681, 628, 5342, 7301, 19, 1611, 19, 1611, 358, 3286, 19, 7496, 19, 2881, 1450, 326, 1509, 4105, 4886, 628, 282, 1062, 30, 7598, 18, 407, 2135, 18, 11589, 93, 18, 81, 330, 19, 507, 85, 19, 8532, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 605, 601, 18465, 52, 5161, 38, 69, 4487, 5096, 9313, 288, 203, 565, 2254, 5034, 5381, 17209, 67, 3194, 67, 10339, 273, 4248, 380, 4752, 380, 4752, 31, 203, 565, 2254, 5034, 5381, 17209, 67, 3194, 67, 21372, 273, 4752, 380,...
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...
emitted when a new dispute is initializedemitted when a new vote happensemitted upon dispute tally
library TellorDispute { using SafeMath for uint256; using SafeMath for int256; event NewDispute(uint256 indexed _disputeId, uint256 indexed _requestId, uint256 _timestamp, address _miner); event Voted(uint256 indexed _disputeID, bool _position, address indexed _voter); event DisputeVoteTallied(uint...
12,579,083
[ 1, 351, 11541, 1347, 279, 394, 1015, 2507, 353, 4046, 323, 7948, 1347, 279, 394, 12501, 5865, 307, 7948, 12318, 1015, 2507, 268, 1230, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12083, 29860, 280, 1669, 2507, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 14060, 10477, 364, 509, 5034, 31, 203, 203, 565, 871, 1166, 1669, 2507, 12, 11890, 5034, 8808, 389, 2251, 2507, 548, 16, 2254, ...
//SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/access/Ownable.sol"; interface IERC20 { function transfer(address recipient, uint256 amount) external returns (bool); function balanceOf(address account) external view returns (uint256); event Transfer(...
Make sure faucet has tokens available to withdraw Allow owner to withdraw all tokens in the contract by entering 0
function liquidate(uint256 _amount) external onlyOwner { require( Token.balanceOf(address(this)) > 0, "Faucet balance insufficient." ); if (_amount == 0) { _amount = Token.balanceOf(address(this)); } Token.transfer(msg.sender, _amount); ...
1,080,035
[ 1, 6464, 3071, 11087, 5286, 278, 711, 2430, 2319, 358, 598, 9446, 7852, 3410, 358, 598, 9446, 777, 2430, 316, 326, 6835, 635, 19014, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 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, 4501, 26595, 340, 12, 11890, 5034, 389, 8949, 13, 3903, 1338, 5541, 288, 203, 3639, 2583, 12, 203, 5411, 3155, 18, 12296, 951, 12, 2867, 12, 2211, 3719, 405, 374, 16, 203, 5411, 315, 29634, 5286, 278, 11013, 2763, 11339...
// Sources flattened with hardhat v2.4.1 https://hardhat.org // File deps/@openzeppelin/contracts-upgradeable/utils/EnumerableSetUpgradeable.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * ty...
* @dev Library for managing types. Sets have the following properties: - Elements are added, removed, and checked for existence in constant time (O(1)). - Elements are enumerated in O(n). No guarantees are made on the ordering. ``` contract Example { using EnumerableSet for EnumerableSet.AddressSet; EnumerableS...
library EnumerableSetUpgradeable { struct Set { bytes32[] _values; mapping (bytes32 => uint256) _indexes; } function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); set._indexes[value] ...
1,338,662
[ 1, 9313, 364, 30632, 1953, 18, 11511, 1240, 326, 3751, 1790, 30, 300, 17219, 854, 3096, 16, 3723, 16, 471, 5950, 364, 15782, 316, 5381, 813, 261, 51, 12, 21, 13, 2934, 300, 17219, 854, 3557, 690, 316, 531, 12, 82, 2934, 2631, 2879...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 6057, 25121, 694, 10784, 429, 288, 203, 203, 203, 203, 203, 565, 1958, 1000, 288, 203, 3639, 1731, 1578, 8526, 389, 2372, 31, 203, 203, 3639, 2874, 261, 3890, 1578, 516, 2254, 5034, 13, 389, 11265, 31, 203, 565, 289, 203, ...
// 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...
**** External functions called by market makers* ONLY MARKET MAKERS: called by market makers to perform the actual trade by sending inboud components and receiveing outbound ones. @param _fund Address of the fund for which want to perform the trade @param _quantity The equivalent number of fund tokens to be trad...
function performTrade(ISetToken _fund, uint256 _quantity) external nonReentrant onlyRoleOrOpenRole(MARKET_MAKER_ROLE) { require(fundState[_fund] == FundState.TRADING, "Fund must be in trading state"); require(_quantity > 0, "Quantity must be positive"); uint256 fundTotalSupply = _fund.tota...
10,220,736
[ 1, 6841, 4186, 2566, 635, 13667, 29796, 414, 20747, 20503, 1584, 490, 14607, 11367, 30, 2566, 635, 13667, 29796, 414, 358, 3073, 326, 3214, 18542, 635, 5431, 316, 1075, 1100, 4085, 471, 6798, 310, 11663, 5945, 18, 225, 389, 74, 1074, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3073, 22583, 12, 45, 694, 1345, 389, 74, 1074, 16, 2254, 5034, 389, 16172, 13, 203, 565, 3903, 203, 565, 1661, 426, 8230, 970, 203, 565, 1338, 2996, 1162, 3678, 2996, 12, 12693, 1584, 67, 5535, 27221, 67, 16256, 13, 2...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.11; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/AccessControlEnumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/...
* @dev Unpauses all token transfers. See {ERC721Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`./
function unpause() public virtual { require( hasRole(PAUSER_ROLE, _msgSender()), "KDZTokens: must have pauser role to unpause." ); _unpause(); }
13,032,349
[ 1, 984, 8774, 6117, 777, 1147, 29375, 18, 2164, 288, 654, 39, 27, 5340, 16507, 16665, 97, 471, 288, 16507, 16665, 17, 67, 318, 19476, 5496, 29076, 30, 300, 326, 4894, 1297, 1240, 326, 1375, 4066, 4714, 67, 16256, 8338, 19, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 640, 19476, 1435, 1071, 5024, 288, 203, 3639, 2583, 12, 203, 5411, 28335, 12, 4066, 4714, 67, 16256, 16, 389, 3576, 12021, 1435, 3631, 203, 5411, 315, 47, 40, 62, 5157, 30, 1297, 1240, 6790, 1355, 2478, 358, 640, 19476,...
./full_match/5/0x24EbD77985F015DefEe0579449dAcbe58c1Ac25c/sources/project:/contracts/MedicalRecordAccessControl.sol
To ensure unique patient IDs
mapping(uint256 => bool) private usedPatientIDs;
1,871,905
[ 1, 774, 3387, 3089, 18608, 7115, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 12, 11890, 5034, 516, 1426, 13, 3238, 1399, 22834, 1979, 5103, 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, -...
pragma solidity ^0.4.24; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "openzeppelin-solidity/contracts/ECRecovery.sol"; import "./utils/GetCode2.sol"; import "openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol"; contract IERC20 { function balanceOf(address who) public view returns...
A registry of all active and historical tasks with their attributes TODO: do we keep tasks forever? if not, when do we delete them?
mapping(bytes32 => Task) public tasks;
12,955,341
[ 1, 37, 4023, 434, 777, 2695, 471, 23922, 4592, 598, 3675, 1677, 2660, 30, 741, 732, 3455, 4592, 21238, 35, 309, 486, 16, 1347, 741, 732, 1430, 2182, 35, 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, 2874, 12, 3890, 1578, 516, 3837, 13, 1071, 4592, 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, -10...
// SPDX-License-Identifier: MIT /* * JuiceBox.sol * * Created: October 27, 2021 * * Price: FREE * Rinkeby: 0x09494437a042494eAdA9801A85eE494cFB27D75b * Mainnet: * * Description: An ERC-721 token that will be claimable by anyone who owns 'the Plug' * * - There will be 4 variations, each with a different rari...
@dev Determine if `a` is in the `_whitelist
function isWhitelisted(address a) public view returns (bool) { return _whitelist[a]; }
6,133,009
[ 1, 8519, 309, 1375, 69, 68, 353, 316, 326, 1375, 67, 20409, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 202, 915, 353, 18927, 329, 12, 2867, 279, 13, 1071, 1476, 1135, 261, 6430, 13, 203, 202, 95, 203, 202, 202, 2463, 389, 20409, 63, 69, 15533, 203, 202, 97, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0xB3fE31F720F1832966e5603432c7e0437f724aff/sources/contracts/PresaleV2.sol
* @dev To calculate the price in USD for given amount of tokens. @param _amount No of tokens/
function calculatePrice(uint256 _amount) internal view returns (uint256 totalValue) { uint256 USDTAmount; require(_amount <= maxTokensToBuy, "Amount exceeds max tokens to buy"); if (_amount + totalTokensSold > token_amount[currentStep]) { require(curre...
8,439,416
[ 1, 774, 4604, 326, 6205, 316, 587, 9903, 364, 864, 3844, 434, 2430, 18, 225, 389, 8949, 2631, 434, 2430, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 4604, 5147, 12, 11890, 5034, 389, 8949, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 2078, 620, 13, 203, 565, 288, 203, 3639, 2254, 5034, 11836, 9081, 6275, 31, 203, 3639, 2583, 24899, 8949, ...
./partial_match/1/0xFa2B9E5f4b60767D4C3ca6e316d8599311419B3e/sources/ParadiseToken.sol
Compute the number of tokens to be rewarded to the sender Note: it's important for this calculation that both wei and PDT have the same number of decimal places (18) Transfer the tokens from the crowdsale supply to the sender update the total amount raised update the sender's balance of wei contributed Check if the fu...
function buy () payable public whenNotPaused beforeDeadline afterStartTime saleNotClosed { require(msg.value >= minContribution); uint amount = msg.value; uint numTokens = amount.mul(rate); if (tokenReward.transferFrom(tok...
2,839,414
[ 1, 7018, 326, 1300, 434, 2430, 358, 506, 283, 11804, 358, 326, 5793, 3609, 30, 518, 1807, 10802, 364, 333, 11096, 716, 3937, 732, 77, 471, 453, 9081, 1240, 326, 1967, 1300, 434, 6970, 12576, 261, 2643, 13, 12279, 326, 2430, 628, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 30143, 1832, 203, 3639, 8843, 429, 1071, 203, 3639, 1347, 1248, 28590, 203, 3639, 1865, 15839, 203, 3639, 1839, 13649, 203, 3639, 272, 5349, 1248, 7395, 203, 565, 288, 203, 3639, 2583, 12, 3576, 18, 1132, 1545, 1131, 442,...
./full_match/77/0xe7515f8DBb2545772C0F60ce14Bd117D6847eb4d/sources/contracts/MuliTokenForwardingRulesManager.sol
* Updates the forwarding rule for bridging specific token. Only owner can call this method. @param _token address of the token contract on the foreign side. @param _enable true, if bridge operations for a given token should be forwarded to the oracle-driven lane./
function setTokenForwardingRule(address _token, bool _enable) external { require(_token != ANY_ADDRESS); _setForwardingRule(_token, ANY_ADDRESS, ANY_ADDRESS, _enable ? int256(1) : int256(0)); }
5,049,456
[ 1, 5121, 326, 20635, 1720, 364, 324, 1691, 1998, 2923, 1147, 18, 5098, 3410, 848, 745, 333, 707, 18, 225, 389, 2316, 1758, 434, 326, 1147, 6835, 603, 326, 5523, 4889, 18, 225, 389, 7589, 638, 16, 309, 10105, 5295, 364, 279, 864, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22629, 21487, 2175, 12, 2867, 389, 2316, 16, 1426, 389, 7589, 13, 3903, 288, 203, 3639, 2583, 24899, 2316, 480, 16743, 67, 15140, 1769, 203, 3639, 389, 542, 21487, 2175, 24899, 2316, 16, 16743, 67, 15140, 16, 16743, 67, ...
./partial_match/1/0x74C3bAD428Ed6511Da87DF578d6577D5a75392eF/sources/KunlunToken.sol
Base class of token-owner
contract Ownable { function Ownable() public { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } @newOwner: address of newOwner function transferOwnership(address newOwner) onlyOwner public{ if (newOwner != address(0)) { owner = newOwner; } } function transferOw...
15,568,707
[ 1, 2171, 667, 434, 1147, 17, 8443, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 14223, 6914, 288, 203, 203, 202, 915, 14223, 6914, 1435, 1071, 7010, 202, 95, 203, 202, 202, 8443, 273, 1234, 18, 15330, 31, 203, 202, 97, 203, 203, 202, 20597, 1338, 5541, 1435, 288, 203, 202, 202, 6528, 12, 3576, 18, 1...
// SPDX-License-Identifier: GPL-3.0 /* This file is part of the Enzyme Protocol. (c) Enzyme Council <[email protected]> For the full license information, please view the LICENSE file that was distributed with this source code. */ pragma solidity 0.6.12; import "@openzeppelin/contracts/token/ERC20/E...
@dev Helper to set the `ethUsdAggregator` value
function __setEthUsdAggregator(address _nextEthUsdAggregator) private { address prevEthUsdAggregator = ethUsdAggregator; require( _nextEthUsdAggregator != prevEthUsdAggregator, "__setEthUsdAggregator: Value already set" ); __validateAggregator(_nextEthUsdAggr...
1,697,533
[ 1, 2276, 358, 444, 326, 1375, 546, 3477, 72, 17711, 68, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1001, 542, 41, 451, 3477, 72, 17711, 12, 2867, 389, 4285, 41, 451, 3477, 72, 17711, 13, 3238, 288, 203, 3639, 1758, 2807, 41, 451, 3477, 72, 17711, 273, 13750, 3477, 72, 17711, 31, 203, 3639, 2583, 12, 203, 5411, 389,...
./full_match/7001/0x40aF9F5720d7C573d06F9D2003Aa1d7dD60eD97B/sources/contracts/userContract.bitsave.sol
import "@zetachain/zevm-example-contracts/contracts/shared/SwapHelperLib.sol";
import "./utils/BitsaveHelperLib.sol";
13,228,856
[ 1, 5666, 8787, 94, 278, 497, 530, 19, 8489, 3489, 17, 8236, 17, 16351, 87, 19, 16351, 87, 19, 11574, 19, 12521, 2276, 5664, 18, 18281, 14432, 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, 5666, 25165, 5471, 19, 6495, 836, 2276, 5664, 18, 18281, 14432, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
/** * SPDX-License-Identifier: MIT **/ pragma solidity ^0.7.6; pragma experimental ABIEncoderV2; import "./FieldFacet/Dibbler.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * @author Publius * @title Budget Facet **/ contract BudgetFacet is Dibbler { using SafeMath for uint256; funct...
* @author Publius @title App Storage defines the state object for Beanstalk./
contract Account { SPDX-License-Identifier: MIT struct Field { mapping(uint256 => uint256) plots; mapping(address => uint256) podAllowances; } struct AssetSilo { mapping(uint32 => uint256) withdrawals; mapping(uint32 => uint256) deposits; mapping(uint32 => uint256...
173,777
[ 1, 52, 440, 8384, 225, 4677, 5235, 11164, 326, 919, 733, 364, 7704, 20852, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6590, 288, 203, 203, 11405, 28826, 17, 13211, 17, 3004, 30, 490, 1285, 203, 203, 565, 1958, 2286, 288, 203, 3639, 2874, 12, 11890, 5034, 516, 2254, 5034, 13, 17931, 31, 203, 3639, 2874, 12, 2867, 516, 2254, 5034, 13, 3713,...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error,...
SPDX-License-Identifier: GPL-3.0/ @title FeeManager Contract @author Enzyme Council <[email protected]> @notice Manages fees for funds @dev Any arbitrary fee is allowed by default, so all participants must be aware of their fund's configuration, especially whether they use official fees only. Fees can only be added up...
contract FeeManager is IFeeManager, ExtensionBase, PermissionedVaultActionMixin { using AddressArrayLib for address[]; using SafeMath for uint256; event FeeEnabledForFund( address indexed comptrollerProxy, address indexed fee, bytes settingsData ); event FeeSettledForFund( ...
223,728
[ 1, 3118, 28826, 17, 13211, 17, 3004, 30, 4948, 48, 17, 23, 18, 20, 19, 225, 30174, 1318, 13456, 225, 1374, 94, 2942, 73, 385, 465, 71, 330, 411, 63, 3652, 131, 259, 1117, 65, 34, 225, 490, 940, 281, 1656, 281, 364, 284, 19156, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30174, 1318, 353, 11083, 1340, 1318, 16, 10021, 2171, 16, 8509, 329, 12003, 1803, 14439, 288, 203, 565, 1450, 5267, 1076, 5664, 364, 1758, 8526, 31, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 871, 3017...
pragma solidity 0.5.11; import "../../utils/Bits.sol"; import "../../utils/PosLib.sol"; import "./OutputId.sol"; library ExitId { using PosLib for PosLib.Position; using Bits for uint168; using Bits for uint256; uint8 constant private FIRST_BIT_LOCATION = 167; /** * @notice Checks whether e...
* @notice Given transaction bytes, returns in-flight exit ID @param txBytes Transaction bytes @return Unique in-flight exit ID/
function getInFlightExitId(bytes memory txBytes) internal pure returns (uint168) { return uint168((uint256(keccak256(txBytes)) >> (256 - FIRST_BIT_LOCATION)).setBit(FIRST_BIT_LOCATION)); }
12,687,072
[ 1, 6083, 2492, 1731, 16, 1135, 316, 17, 19131, 2427, 1599, 225, 2229, 2160, 5947, 1731, 327, 14584, 316, 17, 19131, 2427, 1599, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7854, 24243, 6767, 548, 12, 3890, 3778, 2229, 2160, 13, 2713, 16618, 1135, 261, 11890, 23329, 13, 288, 203, 3639, 327, 2254, 23329, 12443, 11890, 5034, 12, 79, 24410, 581, 5034, 12, 978, 2160, 3719, 1671, 261, 5034, 300, ...
./full_match/5/0x50D80C9fD54a8ceCBF199d7Ee8d9F6207D27d316/sources/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, non-reverting calls are assumed to be successful./
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi....
1,888,425
[ 1, 23326, 448, 326, 4440, 6835, 1807, 1699, 1359, 358, 2913, 1375, 87, 1302, 264, 68, 635, 1375, 1132, 8338, 971, 1375, 2316, 68, 1135, 1158, 460, 16, 1661, 17, 266, 1097, 310, 4097, 854, 12034, 358, 506, 6873, 18, 19, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4183, 23326, 448, 7009, 1359, 12, 45, 654, 39, 3462, 1147, 16, 1758, 17571, 264, 16, 2254, 5034, 460, 13, 2713, 288, 203, 3639, 22893, 288, 203, 5411, 2254, 5034, 1592, 7009, 1359, 273, 1147, 18, 5965, 1359, 12, 2867, ...
./partial_match/1/0x8a9072Aa85C3Cf578503a5714319fF2F5B08C521/sources/Team3D.sol
Trade start checkSet Fee for BuysSet Fee for Sells
function _transfer( address from, address to, uint256 amount ) private { require(to != address(0), "ERC20: transfer to the zero address"); require(from != address(0), "ERC20: transfer from the zero address"); require(amount > 0, "Transfer amount must be greater t...
9,425,294
[ 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 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, 869, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 358, 326, 3...
./full_match/100/0x2594Abb99524d208C199a3F3F4B25243Ad49893e/sources/smartcontract-lottery-main/contracts/test/MockOracle.sol
* @title The Chainlink Mock Oracle contract @notice Chainlink smart contract developers can use this to test their contracts/
contract MockOracle is ChainlinkRequestInterface, LinkTokenReceiver { using SafeMathChainlink for uint256; uint256 constant public EXPIRY_TIME = 5 minutes; uint256 constant private MINIMUM_CONSUMER_GAS_LIMIT = 400000; pragma solidity ^0.6.0; struct Request { address callbackAddr; bytes4 callback...
14,277,929
[ 1, 1986, 7824, 1232, 7867, 28544, 6835, 225, 7824, 1232, 13706, 6835, 21701, 848, 999, 333, 358, 1842, 3675, 20092, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7867, 23601, 353, 7824, 1232, 13398, 16, 4048, 1345, 12952, 288, 203, 225, 1450, 14060, 10477, 3893, 1232, 364, 2254, 5034, 31, 203, 203, 225, 2254, 5034, 5381, 1071, 31076, 9590, 67, 4684, 273, 1381, 6824, 31, 203, 225, 225...
pragma solidity ^0.4.19; import "./Agricoin.sol"; import "./Owned.sol"; contract Ico is Owned { enum State { Runned, // Ico is running. Paused, // Ico was paused. Finished, // Ico has finished successfully. Expired, // Ico has finished unsuccessfully. Fai...
Set state to Runned.
state = State.Runned;
5,518,111
[ 1, 694, 919, 358, 1939, 11748, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 919, 273, 3287, 18, 1997, 11748, 31, 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.4; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "./interfaces/PLBTStaking/IPLBTStaking.sol"; import "./interfaces/DAO/IDAO.sol"; import "./sushiswap/IUniswapV2Router02.sol"; import "./gysr...
@dev modifier used for restricted function execution
modifier onlyDAO() { require( msg.sender == address(this), "DAO: only dao can call this function." ); _; } IERC20 private weth; IERC20 private wbtc; this.changeStrategy.selector, this.changeAllocation.selector, this.changeQuorum.s...
558,296
[ 1, 20597, 1399, 364, 15693, 445, 4588, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 18485, 1435, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 15330, 422, 1758, 12, 2211, 3631, 203, 5411, 315, 18485, 30, 1338, 15229, 848, 745, 333, 445, 1199, 203, 3639, 11272, 203, 3639, 389, 31, 203, 565, 289,...
pragma solidity 0.4.25; /* __ __ ___ ______ /\ \ __/\ \ /\_ \ /\__ _\ \ \ \/\ \ \ \ __\//\ \ ___ ___ ___ ___ __ \/_/\ \/ ___ \ \...
function to check wheter ICO is running or not.It will return current state of the crowdsale
function icoStatus() public view returns(string){ if(icoStartDate < now && icoEndDate > now ){ return "ICO is running"; return "ICO will start on November 30th 6.00 GMT"; return "ICO is over"; } }
14,114,888
[ 1, 915, 358, 866, 600, 847, 467, 3865, 353, 3549, 578, 486, 18, 7193, 903, 327, 783, 919, 434, 326, 276, 492, 2377, 5349, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 445, 277, 2894, 1482, 1435, 1071, 1476, 1135, 12, 1080, 15329, 203, 5411, 309, 12, 10764, 22635, 411, 2037, 597, 277, 2894, 24640, 405, 2037, 262, 95, 203, 7734, 327, 315, 2871, 51, 353, 3549, 14432, 203, 7734, 327, 315, 28...