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.6.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./libraries/TransferHelper.sol"; import "./interfaces/IWETH.sol"; contract ETHTosDisTransit is Ownable { using SafeMath ...
require(msg.sender == owner, "CHANGE_SIGNER_FORBIDDEN");
function changeSigner(address _wallet) external onlyOwner{ signWallet = _wallet; emit ChangedSigner(signWallet); }
1,377,486
[ 1, 6528, 12, 3576, 18, 15330, 422, 3410, 16, 315, 14473, 67, 11260, 654, 67, 7473, 30198, 8863, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2549, 15647, 12, 2867, 389, 19177, 13, 3903, 1338, 5541, 95, 203, 3639, 1573, 16936, 273, 389, 19177, 31, 203, 3639, 3626, 27707, 15647, 12, 2977, 16936, 1769, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -1...
./partial_match/1/0x72AD58f0917deB04eC8b6AdA584ABd0dBe502128/sources/SafeTransferLib.sol
Get a pointer to some free memory. Write the abi-encoded calldata to memory piece by piece: Call the token and store if it succeeded or not. We use 100 because the calldata length is 4 + 32 * 3.
function safeTransferFrom( ERC20 token, address from, address to, uint256 amount ) internal { bool callStatus; assembly { let freeMemoryPointer := mload(0x40) mstore( freeMemoryPointer, 0x23b872dd0000000000...
3,587,196
[ 1, 967, 279, 4407, 358, 2690, 4843, 3778, 18, 2598, 326, 24126, 17, 10787, 745, 892, 358, 3778, 11151, 635, 11151, 30, 3049, 326, 1147, 471, 1707, 309, 518, 15784, 578, 486, 18, 1660, 999, 2130, 2724, 326, 745, 892, 769, 353, 1059, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4183, 5912, 1265, 12, 203, 3639, 4232, 39, 3462, 1147, 16, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 288, 203, 3639, 1426, 745, 1482, 31, 203, 203, 3639, 199...
./partial_match/80001/0x8D506fbAb52d3982f32d23E3A8c987F83ae4E792/sources/contracts/ccip/Recoverable.sol
* @notice Allows the owner to recover eth sent to the contract by mistake @param _recipient: recipient @dev Callable by owner/
function recoverEth(address payable _recipient) external onlyOwner { uint256 balance = address(this).balance; require(balance != 0, "Cannot recover zero balance"); Address.sendValue(_recipient, balance); }
8,812,448
[ 1, 19132, 326, 3410, 358, 5910, 13750, 3271, 358, 326, 6835, 635, 27228, 911, 225, 389, 20367, 30, 8027, 225, 10464, 635, 3410, 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, 5910, 41, 451, 12, 2867, 8843, 429, 389, 20367, 13, 3903, 1338, 5541, 288, 203, 3639, 2254, 5034, 11013, 273, 1758, 12, 2211, 2934, 12296, 31, 203, 3639, 2583, 12, 12296, 480, 374, 16, 315, 4515, 5910, 3634, 11013, 8863...
//SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "./EpochUtils.sol"; import "./interfaces/IGetterUtils.sol"; /// @title Contract where getters and some convenience methods are implemented /// for the API3 pool contract GetterUtils is EpochUtils, IGetterUtils { /// @param api3TokenAddress Address of ...
@notice Returns the vested rewards that will be distributed at epochIndex @param epochIndex Epoch index @return vestedRewards Vested rewards
function getVestedRewards(uint256 epochIndex) external view override returns(uint256 vestedRewards) { vestedRewards = vestedRewardsAtEpoch[epochIndex]; }
966,911
[ 1, 1356, 326, 331, 3149, 283, 6397, 716, 903, 506, 16859, 622, 7632, 1016, 225, 7632, 1016, 512, 6127, 770, 327, 331, 3149, 17631, 14727, 776, 3149, 283, 6397, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11031, 3149, 17631, 14727, 12, 11890, 5034, 7632, 1016, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 3849, 203, 3639, 1135, 12, 11890, 5034, 331, 3149, 17631, 14727, 13, 203, 565, 288, 203, 3639, 331, 3149, 17631, 147...
pragma solidity ^0.4.4; import "@aragon/os/contracts/apps/AragonApp.sol"; import "@aragon/os/contracts/lib/zeppelin/math/SafeMath.sol"; contract VotingApp is AragonApp { using SafeMath for uint256; // Events event Increment(address indexed entity, uint256 step); event Decrement(address indexed entity...
Events Tracks the vote TODO: make this signed Voting Increment Threshold Tracks accounts that have voted Tracks vote passed
contract VotingApp is AragonApp { using SafeMath for uint256; event Increment(address indexed entity, uint256 step); event Decrement(address indexed entity, uint256 step); event VotePass(); uint256 public value; uint256 public step; uint256 public goal = 10; mapping(address => bool) pu...
12,652,016
[ 1, 3783, 11065, 87, 326, 12501, 2660, 30, 1221, 333, 6726, 776, 17128, 17883, 27139, 11065, 87, 9484, 716, 1240, 331, 16474, 11065, 87, 12501, 2275, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 776, 17128, 3371, 353, 1201, 346, 265, 3371, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 871, 17883, 12, 2867, 8808, 1522, 16, 2254, 5034, 2235, 1769, 203, 565, 871, 31073, 475, 12, 2867, 8808, 1...
pragma solidity ^0.5.0; library SafeMath{ /** * Returns the addition of two unsigned integers, reverting on * overflow. * * - Addition cannot overflow. */ function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { uint256 c = a + b; ...
Subtract from the sender
balanceOf[Account] =stage ;
1,290,582
[ 1, 27904, 628, 326, 5793, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11013, 951, 63, 3032, 65, 273, 12869, 274, 2398, 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, ...
/* Corporation SmartContract. developed by: cryptonomica.net, 2016 used sources: https://www.ethereum.org/token // example of the token standart https://github.com/ethereum/EIPs/issues/20 // token standart description https://www.ethereum.org/dao // voting example */ /* How to deploy (estimated: 1,641,268 ...
no votes after deadline
if (now > deadline[_proposalID] ){ return "vote not accepted after deadline"; } voted[_proposalID][msg.sender] = true; return "vote accepted";
12,829,260
[ 1, 2135, 19588, 1839, 14096, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 309, 261, 3338, 405, 14096, 63, 67, 685, 8016, 734, 65, 262, 95, 203, 5411, 327, 473, 9270, 31, 25911, 486, 8494, 1839, 14096, 10, 9270, 25708, 203, 3639, 289, 203, 203, 3639, 331, 16474, 63, 67, 685, 8016, 734, 6362, 357...
pragma solidity ^0.5.16; interface IERC20 { function TOTALSUPPLY39() external view returns (uint256); //inject NONSTANDARD NAMING function BALANCEOF342(address account) external view returns (uint256); //inject NONSTANDARD NAMING function T...
inject NONSTANDARD NAMING
function SETGOVERNANCE269(address _governance) public {
12,811,435
[ 1, 22170, 18708, 882, 18264, 423, 2192, 1360, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7855, 43, 12959, 50, 4722, 5558, 29, 12, 2867, 389, 75, 1643, 82, 1359, 13, 1071, 288, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./partial_match/1/0x66cD884c1C56bf00616e8c26FD89a96CaaA12d4D/sources/Pepe025.sol
0.5% * 0.81 = 0.4%
uint256 public _maxTxAmount = 2103450000000 * 10**_decimals;
15,615,367
[ 1, 20, 18, 25, 9, 225, 374, 18, 11861, 273, 374, 18, 24, 9, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 389, 1896, 4188, 6275, 273, 3639, 576, 2163, 25574, 17877, 380, 1728, 636, 67, 31734, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view retu...
Will call Aave Call the flash loan Convert part to WETH
function performFlashLoan(uint256 point1, uint256 point2, uint256 _amount) internal returns (uint256) { uint256 flashGain = tokenList[1].token.balanceOf(address(this)); flashParams[1] = point1; flashParams[2] = point2; address[] memory assets = new address...
6,320,779
[ 1, 13670, 745, 432, 836, 3049, 326, 9563, 28183, 4037, 1087, 358, 678, 1584, 44, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3073, 11353, 1504, 304, 12, 11890, 5034, 1634, 21, 16, 2254, 5034, 1634, 22, 16, 2254, 5034, 389, 8949, 13, 2713, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 9563, 43, 530, 273, 1147, 682, 63, 21, 8009, 23...
/** * @authors: [@mtsalenc] * @reviewers: [@clesaege] * @auditors: [] * @bounties: [] * @deployments: [] */ pragma solidity 0.5.17; /** * @title CappedMath * @dev Math operations with caps for under and overflow. */ library CappedMath { uint constant private UINT_MAX = 2**256 - 1; /** * @...
* @dev Gets the dispute data relative to a given item request. @param _itemID The ID of the queried item. @param _requestID The request to be queried. @return disputed True if a dispute was raised. @return disputeID ID of the dispute, if any. @return ruling The final ruling given, if any. @return numberOfRounds Number ...
function getRequestDisputeData(bytes32 _itemID, uint256 _requestID) internal view returns ( bool disputed, uint256 disputeID, uint256 numberOfRounds, Party ruling ) { DisputeData storage disputeData = requestsDisputeData[_it...
631,811
[ 1, 3002, 326, 1015, 2507, 501, 3632, 358, 279, 864, 761, 590, 18, 225, 389, 1726, 734, 1021, 1599, 434, 326, 23264, 761, 18, 225, 389, 2293, 734, 1021, 590, 358, 506, 23264, 18, 327, 1015, 458, 329, 1053, 309, 279, 1015, 2507, 170...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4328, 1669, 2507, 751, 12, 3890, 1578, 389, 1726, 734, 16, 2254, 5034, 389, 2293, 734, 13, 203, 3639, 2713, 203, 3639, 1476, 203, 3639, 1135, 261, 203, 5411, 1426, 1015, 458, 329, 16, 203, 5411, 2254, 5034, 1015, 2507, ...
pragma solidity 0.6.8; pragma experimental ABIEncoderV2; library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a ...
Distinguishes between withdrawals by asset symbol or address UUIDv1 unique to wallet Address of wallet to which funds will be returned Asset symbol Asset address Withdrawal quantity Gas fee deducted from withdrawn quantity to cover dispatcher tx costs Not currently used but reserved for future use. Must be true The EC...
struct Withdrawal { Enums.WithdrawalType withdrawalType; uint128 nonce; address payable walletAddress; string assetSymbol; uint64 quantityInPips; uint64 gasFeeInPips; bool autoDispatchEnabled; bytes walletSignature; }
7,513,026
[ 1, 5133, 14344, 1468, 281, 3086, 598, 9446, 1031, 635, 3310, 3273, 578, 1758, 5866, 90, 21, 3089, 358, 9230, 5267, 434, 9230, 358, 1492, 284, 19156, 903, 506, 2106, 10494, 3273, 10494, 1758, 3423, 9446, 287, 10457, 31849, 14036, 11140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1958, 3423, 9446, 287, 288, 203, 203, 203, 565, 6057, 87, 18, 1190, 9446, 287, 559, 598, 9446, 287, 559, 31, 203, 203, 203, 565, 2254, 10392, 7448, 31, 203, 203, 203, 565, 1758, 8843, 429, 9230, 1887, 31, 203, 203, 203, ...
pragma solidity 0.6.6; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol"; import "./interfaces/IVaultConfig.sol"; import "./interfa...
@dev Set all the basic parameters. Must only be called by the owner. @param _minDebtSize The new minimum debt size value. @param _reservePoolBps The new interests allocated to the reserve pool value. @param _killBps The new reward for killing a position value. @param _interestModel The new interest rate model contract...
function setParams( uint256 _minDebtSize, uint256 _reservePoolBps, uint256 _killBps, InterestModel _interestModel, address _wrappedNative, address _wNativeRelayer, address _fairLaunch ) public onlyOwner { minDebtSize = _minDebtSize; getReservePoolBps = _reservePoolBps; getKil...
5,358,099
[ 1, 694, 777, 326, 5337, 1472, 18, 6753, 1338, 506, 2566, 635, 326, 3410, 18, 225, 389, 1154, 758, 23602, 1225, 1021, 394, 5224, 18202, 88, 963, 460, 18, 225, 389, 455, 6527, 2864, 38, 1121, 1021, 394, 16513, 87, 11977, 358, 326, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 31705, 12, 203, 565, 2254, 5034, 389, 1154, 758, 23602, 1225, 16, 203, 565, 2254, 5034, 389, 455, 6527, 2864, 38, 1121, 16, 203, 565, 2254, 5034, 389, 16418, 38, 1121, 16, 203, 565, 5294, 395, 1488, 389, 2761, 395, 14...
pragma solidity ^0.4.8; // 'interface': // this is expected from another contract, // where tokens (ERC20) are managed contract Erc20TokensContract { function transfer(address _to, uint256 _value); // returns (bool success); // not in CoinOffering Corporation.sol function balanceOf(address acc)...
address public erc20TokensContractAddress; bool erc20TokensContractAddressSet = false; for price chart: number of change => [priceToBuyInFinney, block.number, block.timestamp] for deals chart: number of change => [priceInFinney, quantity, block.number, block.timestamp] with price 0 tokens sale stopped
contract ICO { Erc20TokensContract erc20TokensContract; address public erc20TokensContractAddress; bool erc20TokensContractSet = false; address public owner; mapping (uint => uint[3]) public priceChange; uint public currentPriceChangeNumber = 0; mapping (uint => uint[4]) public deal...
12,738,907
[ 1, 2867, 1071, 6445, 71, 3462, 5157, 8924, 1887, 31, 1426, 6445, 71, 3462, 5157, 8924, 1887, 694, 273, 629, 31, 364, 6205, 4980, 30, 1300, 434, 2549, 516, 306, 8694, 774, 38, 9835, 382, 6187, 82, 402, 16, 1203, 18, 2696, 16, 1203,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 3865, 288, 203, 203, 565, 512, 1310, 3462, 5157, 8924, 6445, 71, 3462, 5157, 8924, 31, 203, 203, 565, 1758, 1071, 6445, 71, 3462, 5157, 8924, 1887, 31, 203, 203, 565, 1426, 6445, 71, 3462, 5157, 8924, 694, 273, 629, ...
pragma solidity ^0.6.0; // ---------------------------------------------------------------------------- // 'FRT' Staking smart contract // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // SafeMath library //...
------------------------------------------------------------------------ Stakers can un stake the staked tokens using this function @param tokens the number of tokens to withdraw ------------------------------------------------------------------------ add pending rewards to remainder to be claimed by user later, if th...
function WITHDRAW(uint256 tokens) external { require(stakers[msg.sender].stakedTokens >= tokens && tokens > 0, "Invalid token amount to withdraw"); uint256 _unstakingFee = (onePercent(tokens).mul(unstakingFee)).div(10); uint256 owing = pendingReward(msg.sender); ...
2,342,932
[ 1, 29461, 934, 581, 414, 848, 640, 384, 911, 326, 384, 9477, 2430, 1450, 333, 445, 225, 2430, 326, 1300, 434, 2430, 358, 598, 9446, 8879, 17082, 527, 4634, 283, 6397, 358, 10022, 358, 506, 7516, 329, 635, 729, 5137, 16, 309, 1915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 565, 445, 13601, 40, 10821, 12, 11890, 5034, 2430, 13, 3903, 288, 203, 540, 203, 3639, 2583, 12, 334, 581, 414, 63, 3576, 18, 15330, 8009, 334, 9477, 5157, 1545, 2430, 597, 2430, 405, 374, 16, 315, 1941, 1147, 3844, 358, 598, 9...
pragma solidity ^0.5.0; pragma experimental ABIEncoderV2; contract Sample { uint public stateInt; bool public stateBool; uint public counter; constructor() public { stateInt = 1; stateBool = false; } function setStateVar(uint _stateInt, bool _stateBool) public { stateI...
Used in unit tests to simulate graceful deploy and compute receipt handling of callbacks that fail due to out of gas errors. This function contains a very large loop, that eventually fails due to out of gas.
function setStateVarGasFail(uint _stateInt, bool _stateBool) public { stateInt = _stateInt; stateBool = _stateBool; for (uint i = 0; i < 1000000; i++) { stateInt = i; stateBool = (i % 2 == 0); } }
14,084,404
[ 1, 6668, 316, 2836, 7434, 358, 20089, 24279, 7286, 471, 3671, 16030, 5057, 434, 6689, 716, 2321, 6541, 358, 596, 434, 16189, 1334, 18, 1220, 445, 1914, 279, 8572, 7876, 2798, 16, 716, 18011, 6684, 6541, 358, 596, 434, 16189, 18, 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, 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, 12947, 1537, 27998, 3754, 12, 11890, 389, 2019, 1702, 16, 1426, 389, 2019, 7464, 13, 1071, 288, 203, 3639, 919, 1702, 273, 389, 2019, 1702, 31, 203, 3639, 919, 7464, 273, 389, 2019, 7464, 31, 203, 3639, 364, 261, 11890,...
pragma solidity 0.5.16; import "./IBEP20.sol"; import "./SafeMath.sol"; import "./IERC900.sol"; contract Staking is IERC900 { using SafeMath for uint256; // Token used for staking IBEP20 stakingToken; uint256 public index; mapping(uint256 => Stake) private stakes; mapping(address => uint256) ...
* @dev Constructor function @param _stakingToken ERC20/BEP20 The address of the token contract used for staking/
constructor(IBEP20 _stakingToken) public { stakingToken = _stakingToken; index = 0; }
5,435,510
[ 1, 6293, 445, 225, 389, 334, 6159, 1345, 4232, 39, 3462, 19, 5948, 52, 3462, 1021, 1758, 434, 326, 1147, 6835, 1399, 364, 384, 6159, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 12, 45, 5948, 52, 3462, 389, 334, 6159, 1345, 13, 1071, 288, 203, 3639, 384, 6159, 1345, 273, 389, 334, 6159, 1345, 31, 203, 3639, 770, 273, 374, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is che...
* @dev Decrease the amount of tokens that an owner allowed to a spender. approve should be called when allowed[_spender] == 0. To decrement allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol @param _spender The address which will spen...
function decreaseApproval(address _spender, uint256 _subtractedValue) whenNotPaused public returns (bool) { uint256 oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; allowed[msg.sender][_spender] = oldValue.sub(_su...
47,938
[ 1, 23326, 448, 326, 3844, 434, 2430, 716, 392, 3410, 2935, 358, 279, 17571, 264, 18, 6617, 537, 1410, 506, 2566, 1347, 2935, 63, 67, 87, 1302, 264, 65, 422, 374, 18, 2974, 15267, 2935, 460, 353, 7844, 358, 999, 333, 445, 358, 4543...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20467, 23461, 12, 2867, 389, 87, 1302, 264, 16, 2254, 5034, 389, 1717, 1575, 329, 620, 13, 1347, 1248, 28590, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 2254, 5034, 11144, 273, 2935, 63, 3576, 18, 15330, 6362, 67, 87, ...
pragma solidity 0.5.12; import "chainlink/v0.5/contracts/Oracle.sol"; import "../contracts/UniswapExchangeInterface.sol"; import "../contracts/AaveLendingInterface.sol"; import "../contracts/ATokenInterface.sol"; /// @title Flannel Internal Contract /// @author hill399 (github.com/hill399) /// @notice Internal and he...
Address of user node */ Lending pool approval address */ Struct to customise and store allowances */
struct thresholds { string paramsName; uint256 pcUntouched; uint256 pcAave; uint256 pcTopUp; uint256 linkThreshold; uint256 ethThreshold; uint256 aaveThreshold; uint256 ethTopUp; } uint256 public storeBalance; uint256 public aaveBalance; ...
5,536,257
[ 1, 1887, 434, 729, 756, 342, 511, 2846, 2845, 23556, 1758, 342, 7362, 358, 1679, 784, 471, 1707, 1699, 6872, 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, ...
[ 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, 1958, 19983, 288, 203, 3639, 533, 859, 461, 31, 203, 3639, 2254, 5034, 6125, 57, 496, 1395, 2049, 31, 203, 3639, 2254, 5034, 6125, 37, 836, 31, 203, 3639, 2254, 5034, 6125, 3401, 1211, 31, 203, 3639, 2254, 5034, 1692, 7614, ...
/** *Submitted for verification at Etherscan.io on 2021-02-02 */ // File: @openzeppelin/contracts/math/SafeMath.sol // SPDX-License-Identifier: MIT pragma solidity ^0.7.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overf...
token => (address => HistoryBet[])
mapping(address => mapping(address => HistoryBet[])) private betHistory;
1,974,020
[ 1, 2316, 516, 261, 2867, 516, 16058, 38, 278, 63, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 2874, 12, 2867, 516, 2874, 12, 2867, 516, 16058, 38, 278, 8526, 3719, 3238, 2701, 5623, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0xf132f2c8F1EedE27070E0850775436A0E6e7268A/sources/src/Origamasks.sol
* @dev Tracker minted on Public/
function numberMintedPublic(address address_) external view returns (uint256) { return publicMints[address_]; }
8,430,264
[ 1, 8135, 312, 474, 329, 603, 7224, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1300, 49, 474, 329, 4782, 12, 2867, 1758, 67, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 327, 1071, 49, 28142, 63, 2867, 67, 15533, 203, 565, 289, 203, 203, ...
./full_match/44787/0x242d75C9B2d79a7B5B70Ea009cDed173D38cE836/sources/contracts/treasury/interfaces/TreasuryStorageV2.sol
* @title Storage for Treasury @notice For future upgrades, do not change TreasuryStorageV2. Create a new contract which implements TreasuryStorageV2 and following the naming convention TreasuryStorageVX./
abstract contract TreasuryStorageV2 is TreasuryStorageV1 { IDonationMiner public override donationMiner; ITreasuryLpSwap public override lpSwap; mapping(address => Token) public override tokens; EnumerableSet.AddressSet internal _tokenList; IERC20 public override PACT; pragma solidity 0.8.4; }
13,250,502
[ 1, 3245, 364, 399, 266, 345, 22498, 225, 2457, 3563, 28844, 16, 741, 486, 2549, 399, 266, 345, 22498, 3245, 58, 22, 18, 1788, 279, 394, 6835, 1492, 4792, 399, 266, 345, 22498, 3245, 58, 22, 471, 3751, 326, 14634, 15797, 399, 266, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17801, 6835, 399, 266, 345, 22498, 3245, 58, 22, 353, 399, 266, 345, 22498, 3245, 58, 21, 288, 203, 565, 1599, 265, 367, 2930, 264, 1071, 3849, 2727, 367, 2930, 264, 31, 203, 565, 24142, 266, 345, 22498, 48, 84, 12521, 1071, 38...
./full_match/5/0x28f083f2115fbE136F2c664E90DBc27429C55c9F/sources/src/Exchanger.sol
@inheritdoc IERC165
function supportsInterface(bytes4 interfaceId) external pure override returns (bool) { return interfaceId == this.commitTrade.selector ^ this.resolveTrade.selector ^ this.resolveTradeWithReport.selector ^ ...
7,079,574
[ 1, 36, 10093, 467, 654, 39, 28275, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6146, 1358, 12, 3890, 24, 1560, 548, 13, 203, 3639, 3903, 203, 3639, 16618, 203, 3639, 3849, 203, 3639, 1135, 261, 6430, 13, 203, 565, 288, 203, 3639, 327, 203, 5411, 1560, 548, 422, 203, 5411, 333, 18, 7371, 22583, 1...
pragma solidity ^0.4.24; import "./ERC721.sol"; import "./Ownable.sol"; import "./SafeMath.sol"; contract CrypteriumWars is ERC721, Ownable { using SafeMath for uint256; //-------------------------------------------------------------------------- // Events //-----------------------------------------...
-------------------------------------------------------------------------- Function to start a mission-------------------------------------------------------------------------- Note: this is not a secure way to generate randomness
function startMission() external hasCommander canStartMission { uint id = addressToCommander[msg.sender]; Commander storage commander = commanders[id - 1]; nonce++; uint totalPowerMultiplier = (uint(keccak256(abi.encodePacked(now, msg.sender, nonce))) % 100) + 1; uint diffic...
15,871,144
[ 1, 5802, 15392, 4284, 358, 787, 279, 29396, 5802, 15392, 3609, 30, 333, 353, 486, 279, 8177, 4031, 358, 2103, 2744, 4496, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 787, 49, 19710, 1435, 3903, 711, 2189, 264, 848, 1685, 49, 19710, 288, 203, 3639, 2254, 612, 273, 1758, 774, 2189, 264, 63, 3576, 18, 15330, 15533, 203, 3639, 3498, 264, 2502, 1296, 264, 273, 1296, 414, 63, 350, 300, ...
pragma solidity ^0.5.0; import "./LightClient.sol"; import "./MPTSolidity/ProvethVerifier.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20Detailed.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol"; import "@openzeppelin/contracts/token/...
thisSide mint => otherSide locked
mapping(address=>address) public ThisSideMint;
6,448,446
[ 1, 2211, 8895, 312, 474, 516, 1308, 8895, 8586, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2874, 12, 2867, 9207, 2867, 13, 1071, 1220, 8895, 49, 474, 31, 1377, 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...
// File: zos-lib/contracts/Initializable.sol pragma solidity >=0.4.24 <0.6.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer functions mus...
require(initialSupply > 0, ""); _mint(initialHolder, initialSupply);
public initializer { ERC20Detailed.initialize(name, symbol, decimals); ERC20Mintable.initialize(msg.sender); initializePausable(msg.sender); }
1,156,853
[ 1, 6528, 12, 6769, 3088, 1283, 405, 374, 16, 1408, 1769, 389, 81, 474, 12, 6769, 6064, 16, 2172, 3088, 1283, 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,...
[ 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, 282, 1071, 12562, 288, 203, 565, 4232, 39, 3462, 40, 6372, 18, 11160, 12, 529, 16, 3273, 16, 15105, 1769, 203, 565, 4232, 39, 3462, 49, 474, 429, 18, 11160, 12, 3576, 18, 15330, 1769, 203, 565, 4046, 16507, 16665, 12, 3576, 18,...
pragma solidity ^0.4.21; import "installed_contracts/oraclize-api/contracts/usingOraclize.sol"; contract OraclizeTest is usingOraclize { // Need the id's to identify which query invoked the callback bytes32 private ethQueryId; bytes32 private weatherQueryId; bytes32 private exchRateQueryId; addre...
Check if we have enough remaining funds Using XPath to to fetch the right element in the JSON response
function updateETH() payable public { if (oraclize_getPrice("URL") > address(this).balance) { emit LogInfo("Oraclize query was NOT sent, please add some ETH to cover for the query fee"); emit LogInfo("Oraclize query was sent, standing by for the answer.."); } } ...
7,268,691
[ 1, 1564, 309, 732, 1240, 7304, 4463, 284, 19156, 11637, 10172, 358, 358, 2158, 326, 2145, 930, 316, 326, 1796, 766, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1089, 1584, 44, 1435, 203, 565, 8843, 429, 203, 565, 1071, 288, 203, 3639, 309, 261, 280, 10150, 554, 67, 588, 5147, 2932, 1785, 7923, 405, 1758, 12, 2211, 2934, 12296, 13, 288, 203, 5411, 3626, 1827, 966, 2932, 51, 3...
./partial_match/11155111/0x35f2DAaCE3E1A0B3fDC02a6d18371087009e2212/sources/contracts/PolliwogsHelper.sol
generate the true child age probabilities array intervals
uint[] memory childAgeIntervals;
3,535,677
[ 1, 7163, 326, 638, 1151, 9388, 17958, 526, 10389, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2254, 8526, 3778, 1151, 9692, 24224, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
// Sources flattened with hardhat v2.8.0 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.4.1 // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev R...
Calculate amount of FRIES at sale price with USDC value
uint256 amount = value * salePrice / 10 ** USDC_DECIMALS;
5,430,243
[ 1, 8695, 3844, 434, 478, 2259, 3991, 622, 272, 5349, 6205, 598, 11836, 5528, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 3844, 273, 460, 380, 272, 5349, 5147, 342, 1728, 2826, 11836, 5528, 67, 23816, 55, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/1/0x84fE05f541cee93d0B02e03cD4319c29BA0030A2/sources/src/challenge/ChallengeManager.sol
* @dev this currently sets a challenge hash of 0 - no move is possible for the next participant to progress the state. It is assumed that wherever this function is consumed, the turn is then adjusted for the opposite party to timeout. This is done as a safety measure so challenges can only be resolved by timeouts durin...
function _currentWin( uint64 challengeIndex, ChallengeTerminationType /* reason */ ) private { ChallengeLib.Challenge storage challenge = challenges[challengeIndex]; challenge.challengeStateHash = bytes32(0); }
8,284,743
[ 1, 2211, 4551, 1678, 279, 12948, 1651, 434, 374, 300, 1158, 3635, 353, 3323, 364, 326, 1024, 14188, 358, 4007, 326, 919, 18, 2597, 353, 12034, 716, 1625, 502, 333, 445, 353, 12393, 16, 326, 7005, 353, 1508, 13940, 364, 326, 20759, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2972, 18049, 12, 203, 3639, 2254, 1105, 12948, 1016, 16, 203, 3639, 1680, 8525, 16516, 559, 1748, 3971, 1195, 203, 565, 262, 3238, 288, 203, 3639, 1680, 8525, 5664, 18, 18359, 2502, 12948, 273, 462, 7862, 2852, 63, ...
pragma solidity ^0.4.18; contract helper { function derive_sha256(string key, uint rounds) public pure returns(bytes32 hash){ if (rounds == 0) rounds = 1; hash = sha256(key); for (uint i = 0; i < rounds-1; i++) { hash = sha256(hash); } } ...
challenge the original owner validity
function QuantumLocksmith(bytes32 ownerChallenge) public payable { require(uint(ownerChallenge) > 0); locks[ownerChallenge].alive = true; locks[ownerChallenge].balance = msg.value; m_pending++; }
12,681,068
[ 1, 25092, 326, 2282, 3410, 13800, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 445, 4783, 970, 379, 2531, 4808, 483, 12, 3890, 1578, 3410, 18359, 13, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 11890, 12, 8443, 18359, 13, 405, 374, 1769, 203, 3639, 13046, 63, 8443, 18359, 8009, 11462, 273, 638, 31, 203,...
./full_match/5/0x1c25442C44FE5eC37af96B4137a15c823990d84D/sources/contracts/L1/tss/TssGroupManager.sol
user publicKey => Cpk
mapping(bytes => bytes) private _memberGroupKey;
11,625,097
[ 1, 1355, 12085, 516, 385, 5465, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3890, 516, 1731, 13, 3238, 389, 5990, 1114, 653, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity ^0.4.11; import "../KioskMarketToken.sol"; import "../Product.sol"; import "../Market.sol"; import "./ENS/ENS.sol"; /** * This is an example of how to sell an ENS domain. */ contract ENSPublicProduct is Product { ENS public ens; KioskMarketToken public KMT; Market public market; struct ENSNode ...
The buyer is only getting a single domain. Give ownership of the node to the buyer. Make sure to set the owner of the node to this contract first.
function handleOrder(uint256 orderID, uint256 DIN, uint256 quantity, address buyer) only_market { require(quantity == 1); ens.setOwner(nodes[DIN].node, buyer); }
12,743,974
[ 1, 1986, 27037, 353, 1338, 8742, 279, 2202, 2461, 18, 22374, 23178, 434, 326, 756, 358, 326, 27037, 18, 4344, 3071, 358, 444, 326, 3410, 434, 326, 756, 358, 333, 6835, 1122, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 1640, 2448, 12, 11890, 5034, 1353, 734, 16, 2254, 5034, 463, 706, 16, 2254, 5034, 10457, 16, 1758, 27037, 13, 1338, 67, 27151, 288, 203, 202, 202, 6528, 12, 16172, 422, 404, 1769, 203, 203, 202, 202, 773, 18, 542, 554...
/** *Submitted for verification at Etherscan.io on 2020-10-09 */ // SPDX-License-Identifier: MIT pragma solidity ^0.7.0; library Address { function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and ...
inject NONPUBLIC VAR ACCESSD BY PUBLIC FUNC
epochLength = durationMultiple *52 weeks;
12,754,191
[ 1, 22170, 18708, 14939, 8350, 13255, 40, 6953, 17187, 478, 21163, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7734, 7632, 1782, 273, 225, 3734, 8438, 380, 9401, 17314, 31, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.16; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; } contract TokenERC20 { // Public variables of the token string public name; string public symbol; uint8 public decimals = 18; // 18 decimals i...
* Set allowance for other address and notify Allows `_spender` to spend no more than `_value` tokens on your behalf, and then ping the contract about it @param _spender The address authorized to spend @param _value the max amount they can spend @param _extraData some extra information to send to the approved contract/
function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns (bool success) { require (!isTransferLocked()); tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sende...
10,289,342
[ 1, 694, 1699, 1359, 364, 1308, 1758, 471, 5066, 25619, 1375, 67, 87, 1302, 264, 68, 358, 17571, 1158, 1898, 2353, 1375, 67, 1132, 68, 2430, 603, 3433, 12433, 6186, 16, 471, 1508, 10087, 326, 6835, 2973, 518, 225, 389, 87, 1302, 264,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6617, 537, 1876, 1477, 12, 2867, 389, 87, 1302, 264, 16, 2254, 5034, 389, 1132, 16, 1731, 389, 7763, 751, 13, 203, 3639, 1071, 203, 3639, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 2583, 16051, 291, 5912, 8966, 10663, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.3; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/cont...
* @notice Return whether the faucet checks for the presence of LifeSpan NFT @return boolean/
function getIsTokenNFTCheck() public view returns (bool) { return tokenNFTCheck; }
13,121,754
[ 1, 990, 2856, 326, 11087, 5286, 278, 4271, 364, 326, 9805, 434, 28128, 6952, 423, 4464, 327, 1250, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 14279, 1345, 50, 4464, 1564, 1435, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 1147, 50, 4464, 1564, 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.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the on...
Like claim(), but transfer to `to` address.
function claimAndTransfer(address to, uint256 amount, bytes32[] memory proof) external { _claimAndTransfer(msg.sender, to, amount, proof); }
6,950,475
[ 1, 8804, 7516, 9334, 1496, 7412, 358, 1375, 869, 68, 1758, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7516, 1876, 5912, 12, 2867, 358, 16, 2254, 5034, 3844, 16, 1731, 1578, 8526, 3778, 14601, 13, 3903, 288, 203, 3639, 389, 14784, 1876, 5912, 12, 3576, 18, 15330, 16, 358, 16, 3844, 16, 14601, 1769, 203, 565, 289, 203, ...
pragma solidity ^ 0.4.24; // ---------------------------------------------------------------------------- // ERC Token Standard #20 Interface // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md // ---------------------------------------------------------------------------- contract ERC20Interface { ...
---------------------------------------------------------------------------- ERC Token Standard #20 Interface https:github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md ----------------------------------------------------------------------------
contract ERC20Interface { string public name; string public symbol; uint8 public decimals; uint256 public totalSupply; function balanceOf(address _owner) external view returns (uint256 amount); function transfer(address _to, uint256 _value) external returns(bool success); event Transfe...
1,818,192
[ 1, 5802, 7620, 4232, 39, 3155, 8263, 4200, 6682, 2333, 30, 6662, 18, 832, 19, 546, 822, 379, 19, 41, 18246, 19, 10721, 19, 7525, 19, 41, 2579, 55, 19, 73, 625, 17, 3462, 18, 1264, 8879, 13849, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 3462, 1358, 288, 203, 377, 203, 565, 533, 1071, 508, 31, 203, 565, 533, 1071, 3273, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 5034, 1071, 2078, 3088, 1283, 31, 203, 565, 445, 11013, 951, 12, 2867...
pragma solidity ^0.4.23; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { int256 constant private INT256_MIN = -2**255; /** * @dev Multiplies two unsigned integers, reverts on overflow. */ function mul(uint256 a, uint256 b) ...
@title Auction Core @dev Contains models, variables, and internal methods for the auction. @notice We omit a fallback function to prevent accidental sends to this contract. Represents an auction on an NFT
contract ClockAuctionBase { struct Auction { address seller; uint256 price; bool allowPayDekla; } ERC20 public tokens; event AuctionCreated(uint256 tokenId); event AuctionSuccessful(uint256 tokenId, uint256 totalPrice, address winner); event AuctionCancelled(uint256...
6,389,635
[ 1, 37, 4062, 4586, 225, 8398, 3679, 16, 3152, 16, 471, 2713, 2590, 364, 326, 279, 4062, 18, 225, 1660, 14088, 279, 5922, 445, 358, 5309, 25961, 287, 9573, 358, 333, 6835, 18, 868, 6706, 87, 392, 279, 4062, 603, 392, 423, 4464, 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, 18051, 37, 4062, 2171, 288, 203, 203, 565, 1958, 432, 4062, 288, 203, 3639, 1758, 29804, 31, 203, 3639, 2254, 5034, 6205, 31, 203, 3639, 1426, 1699, 9148, 758, 79, 11821, 31, 203, 565, 289, 203, 203, 203, 565, 4232, 39, ...
./partial_match/1/0xdecaCC56fc347274D3Df2b709602632845611D39/sources/src/Staking.sol
@notice The pauser contract. @dev Keeps the pause state across the protocol.
IPauserRead public pauser;
4,386,054
[ 1, 1986, 6790, 1355, 6835, 18, 225, 10498, 87, 326, 11722, 919, 10279, 326, 1771, 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, ...
[ 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, 2971, 69, 1355, 1994, 1071, 6790, 1355, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity >=0.5.0; //Libraries import './libraries/SafeMath.sol'; //Interfaces import './interfaces/IStrategyToken.sol'; import './interfaces/ITradingBot.sol'; import './interfaces/IIndicator.sol'; import './interfaces/IComparator.sol'; import './interfaces/IERC20.sol'; import './interfaces/IAddressResolver.sol...
* @dev Adds trading bot to the comparator @param isDefault Whether comparator is a default comparator @param comparatorIndex Index of comparator in array of available comparators @param firstIndicatorAddress Address of the first indicator @param secondIndicatorAddress Address of the second indicator @return address Add...
function _addBotToComparator(bool isDefault, uint comparatorIndex, address firstIndicatorAddress, address secondIndicatorAddress) private returns (address, uint) { require(firstIndicatorAddress != address(0), "Invalid first indicator address"); require(secondIndicatorAddress != address(0), "Invalid ...
1,807,611
[ 1, 3655, 1284, 7459, 2512, 358, 326, 8862, 225, 20652, 17403, 8862, 353, 279, 805, 8862, 225, 8862, 1016, 3340, 434, 8862, 316, 526, 434, 2319, 8862, 87, 225, 1122, 13140, 1887, 5267, 434, 326, 1122, 10664, 225, 2205, 13140, 1887, 526...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 1289, 6522, 774, 5559, 12, 6430, 20652, 16, 2254, 8862, 1016, 16, 1758, 1122, 13140, 1887, 16, 1758, 2205, 13140, 1887, 13, 3238, 1135, 261, 2867, 16, 2254, 13, 288, 203, 3639, 2583, 12, 3645, 13140, 1887, 480, 175...
./full_match/3/0x0328a867c3aFD0792F8b849A71F6a0c98e3E5901/sources/contracts/SigmoidBank.sol
recognise new stable stable coin
function addStablecoinToList(address contract_address) public override returns (bool) { require(msg.sender == governance_contract); require(checkIntheList(contract_address) == false); USD_token_list.push(contract_address); if(IUniswapV2Factory(SwapFactoryAddress).getPair(contract_add...
8,191,828
[ 1, 3927, 4198, 784, 394, 14114, 14114, 13170, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 527, 30915, 12645, 25772, 12, 2867, 6835, 67, 2867, 13, 1071, 3849, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 314, 1643, 82, 1359, 67, 16351, 1769, 203, 3639, 2583, 12, 1893, 382, 5787, 682, ...
pragma solidity 0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is che...
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender. Beware that changing an allowance with this method brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this race condition is to f...
function approve(address _spender, uint256 _value) whenNotPaused public returns (bool) { allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; }
47,933
[ 1, 12053, 537, 326, 2275, 1758, 358, 17571, 326, 1269, 3844, 434, 2430, 603, 12433, 6186, 434, 1234, 18, 15330, 18, 605, 359, 834, 716, 12770, 392, 1699, 1359, 598, 333, 707, 5186, 899, 326, 18404, 716, 18626, 2026, 999, 3937, 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, 6617, 537, 12, 2867, 389, 87, 1302, 264, 16, 2254, 5034, 389, 1132, 13, 1347, 1248, 28590, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 2935, 63, 3576, 18, 15330, 6362, 67, 87, 1302, 264, 65, 273, 389, 1132, 31, 203, ...
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.7.0 <0.9.0; import "./base/ModuleManager.sol"; import "./base/OwnerManager.sol"; import "./base/FallbackManager.sol"; import "./base/GuardManager.sol"; import "./common/EtherPaymentFallback.sol"; import "./common/Singleton.sol"; import "./common/SignatureDe...
solhint-disable-next-line payable-fallback,no-complex-fallback solhint-disable-next-line no-inline-assembly
fallback() external { bytes32 slot = FALLBACK_HANDLER_STORAGE_SLOT; assembly { let handler := sload(slot) if iszero(handler) { return(0, 0) } calldatacopy(0, 0, calldatasize()) returndatacopy(0, 0, returndatasize()) ...
431,280
[ 1, 18281, 11317, 17, 8394, 17, 4285, 17, 1369, 8843, 429, 17, 16471, 16, 2135, 17, 14259, 17, 16471, 3704, 11317, 17, 8394, 17, 4285, 17, 1369, 1158, 17, 10047, 17, 28050, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 5922, 1435, 3903, 288, 203, 3639, 1731, 1578, 4694, 273, 478, 4685, 8720, 67, 19937, 67, 19009, 67, 55, 1502, 56, 31, 203, 3639, 19931, 288, 203, 5411, 2231, 1838, 519, 272, 945, 12, 14194, 13, 203, 5411, 309, 353, 7124, 1...
./full_match/43114/0xA7A4541132a542E3eBa320FFEDDA8c4B27a65c05/sources/hallowinu.sol
* @dev Determine the prior number of votes for an account as of a block number @dev Block number must be a finalized block or else this function will revert to prevent misinformation. @param account The address of the account to check @param blockNumber The block number to get the vote balance at @return The number of ...
function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "HALLOW::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { retur...
4,626,814
[ 1, 8519, 326, 6432, 1300, 434, 19588, 364, 392, 2236, 487, 434, 279, 1203, 1300, 225, 3914, 1300, 1297, 506, 279, 727, 1235, 1203, 578, 469, 333, 445, 903, 15226, 358, 5309, 7524, 13117, 18, 225, 2236, 1021, 1758, 434, 326, 2236, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1689, 2432, 29637, 12, 2867, 2236, 16, 2254, 1203, 1854, 13, 203, 3639, 3903, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 5034, 13, 203, 565, 288, 203, 3639, 2583, 12, 2629, 1854, 411, 1203, 18, 2696, 16, 315, 44, 1...
./partial_match/1313161554/0x9C3AFDDEa87a726891A44C037242393D524CAcFE/sources/contracts/DonaswapV3Factory.sol
@title Canonical Donaswa V3 factory @notice Deploys Donaswap V3 pools and manages ownership and control over pool protocol fees
contract DonaswapV3Factory is IDonaswapV3Factory { address public override owner; address public immutable poolDeployer; mapping(uint24 => int24) public override feeAmountTickSpacing; mapping(address => mapping(address => mapping(uint24 => address))) public override getPool; mapping(uint24 => Tick...
16,934,626
[ 1, 15512, 7615, 345, 91, 69, 776, 23, 3272, 225, 4019, 383, 1900, 7615, 345, 91, 438, 776, 23, 16000, 471, 20754, 281, 23178, 471, 3325, 1879, 2845, 1771, 1656, 281, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 7615, 345, 91, 438, 58, 23, 1733, 353, 1599, 265, 345, 91, 438, 58, 23, 1733, 288, 203, 565, 1758, 1071, 3849, 3410, 31, 203, 203, 565, 1758, 1071, 11732, 2845, 10015, 264, 31, 203, 203, 565, 2874, 12, 11890, 3247, 516, ...
./partial_match/1/0xafCc79d4cbe7E5B6E6997BBE7233e8E9179f664a/sources/ProfitSharing.sol
Check for overflow
if (previousBalanceTo + _amount < previousBalanceTo) throw;
2,607,292
[ 1, 1564, 364, 9391, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 261, 11515, 13937, 774, 397, 389, 8949, 411, 2416, 13937, 774, 13, 604, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/73799/0x4545C3dAbc5b6D1c19A52006C2eaF598a599dE2A/sources/contracts/trove.sol
* @dev is called to redeem StableCoin for token, called by factory when MCR > ICR, amount of StableCoin is taken from balance and must be <= netDebt. uses priceFeed to calculate collateral amount. returns amount of StableCoin used and collateral recieved @param _recipient the address which recieves redeemed token @para...
function redeem(address _recipient, address _newNextTrove) public onlyFactory returns (uint256 _stableAmount, uint256 _collateralRecieved) { getLiquidationRewards(); require(mcr() < collateralization(), "e957f TCR must be gt MCR"); ITroveFactory factory_cache = factory; _stableAmount = f...
16,363,682
[ 1, 291, 2566, 358, 283, 24903, 934, 429, 27055, 364, 1147, 16, 2566, 635, 3272, 1347, 490, 5093, 405, 467, 5093, 16, 3844, 434, 934, 429, 27055, 353, 9830, 628, 11013, 471, 1297, 506, 1648, 2901, 758, 23602, 18, 4692, 6205, 8141, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 283, 24903, 12, 2867, 389, 20367, 16, 1758, 389, 2704, 2134, 56, 303, 537, 13, 203, 565, 1071, 203, 565, 1338, 1733, 203, 565, 1135, 261, 11890, 5034, 389, 15021, 6275, 16, 2254, 5034, 389, 12910, 2045, 287, 5650, 1385,...
pragma solidity ^0.4.18; import './deps/MintableToken.sol'; import './deps/ERC20Interface.sol'; import './deps/Ownable.sol'; import './deps/ApproveAndCallFallBack.sol'; contract Fr8NetworkToken is ERC20Interface, Ownable { using SafeMath for uint; // standard ERC20 stuff string public symbol; string public ...
initial erc20 settings
function Fr8NetworkToken() public { version = 10; symbol = "FR8"; name = "Fr8 Network Test Token"; decimals = 18; mintable = true; _totalSupply = 1000000000 * 10**uint(decimals); balances[owner] = _totalSupply; Transfer(address(0), owner, _totalSupply); }
13,017,470
[ 1, 6769, 6445, 71, 3462, 1947, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 13363, 28, 3906, 1345, 1435, 1071, 288, 203, 565, 1177, 273, 1728, 31, 203, 203, 565, 3273, 273, 315, 9981, 28, 14432, 203, 565, 508, 273, 315, 7167, 28, 5128, 7766, 3155, 14432, 203, 565, 15105, 273, 6549, 31, 203, 5...
pragma solidity 0.5.6; import "../ContractManager.sol"; import "../storage/OrderStorage.sol"; import "../storage/UserStorage.sol"; import "./VatLogic.sol"; import "./ProductLogic.sol"; contract OrderLogic { ContractManager internal contractManager; OrderStorage internal orderStorage; VatLogic internal ...
emit the event on the blockchain: the event shows the seller and the hash of the order
emit SellOrderInserted(_seller, _hashIpfs, vatLogic.createVatKey(_seller, _period));
1,840,421
[ 1, 18356, 326, 871, 603, 326, 16766, 30, 326, 871, 17975, 326, 29804, 471, 326, 1651, 434, 326, 1353, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3626, 348, 1165, 2448, 27329, 24899, 1786, 749, 16, 389, 2816, 5273, 2556, 16, 17359, 20556, 18, 2640, 15706, 653, 24899, 1786, 749, 16, 389, 6908, 10019, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./partial_match/1/0x00F3823D6bf45DF3c34354CbeC54F087479A6A11/sources/MerkleClaim.sol
@notice Emitted after a successful token claim @param to recipient of claim @param amount of tokens claimed
event Claim(address indexed to, uint256 amount);
4,157,210
[ 1, 1514, 11541, 1839, 279, 6873, 1147, 7516, 225, 358, 8027, 434, 7516, 225, 3844, 434, 2430, 7516, 329, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 871, 18381, 12, 2867, 8808, 358, 16, 2254, 5034, 3844, 1769, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/1/0xC4bfcAC43433C2435184c87aF26daDE9379b5B11/sources/project:/contracts/MtrollerCommon.sol
* @title Based on Compound's Mtroller Contract, with some modifications @dev This contract must not declare any variables. All required storage must be in MtrollerV1Storage @author Compound, mmo.finance/
contract MtrollerCommon is MtrollerV1Storage, MtrollerCommonInterface { constructor() public { } function getAdmin() public view returns (address payable admin) { bytes32 position = mDelegatorAdminPosition; assembly { admin := sload(position) } } function getAd...
4,993,132
[ 1, 9802, 603, 21327, 1807, 490, 88, 1539, 13456, 16, 598, 2690, 17953, 225, 1220, 6835, 1297, 486, 14196, 1281, 3152, 18, 4826, 1931, 2502, 1297, 506, 316, 490, 88, 1539, 58, 21, 3245, 225, 21327, 16, 312, 8683, 18, 926, 1359, 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, 16351, 490, 88, 1539, 6517, 353, 490, 88, 1539, 58, 21, 3245, 16, 490, 88, 1539, 6517, 1358, 288, 203, 203, 565, 3885, 1435, 1071, 288, 203, 565, 289, 203, 203, 565, 445, 22501, 1435, 1071, 1476, 1135, 261, 2867, 8843, 429, 398...
./full_match/3/0x0074FB56Aa4581D67Bb4f56AE17b5D6DcAb13BFc/sources/contracts/Nimble.sol
* @dev Returns true if the contract is paused, and false otherwise./
function paused(uint transferId) public view returns (bool) { return _blocked[_transferPending[transferId].tokenId]; }
14,155,178
[ 1, 1356, 638, 309, 326, 6835, 353, 17781, 16, 471, 629, 3541, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 17781, 12, 11890, 7412, 548, 13, 1071, 1476, 225, 1135, 261, 6430, 13, 288, 203, 3639, 327, 389, 23156, 63, 67, 13866, 8579, 63, 13866, 548, 8009, 2316, 548, 15533, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, ...
./partial_match/42/0x6179e059D9a892ee1a2BAC39dd6a8e5703583918/sources/LucasStaking.sol
yfdai token contract address reward rate 72.00% per year staking fee 1.50 percent unstaking fee 0.50 percent unstaking possible after 72 hours
contract LucasStaking is Ownable { using SafeMath for uint; using EnumerableSet for EnumerableSet.AddressSet; event RewardsTransferred(address holder, uint amount); address public tokenAddress; uint public constant rewardRate = 7200; uint public constant rewardInterval = 365 days;...
3,419,412
[ 1, 93, 74, 2414, 77, 1147, 6835, 1758, 19890, 4993, 19387, 18, 713, 9, 1534, 3286, 384, 6159, 14036, 404, 18, 3361, 5551, 640, 334, 6159, 14036, 374, 18, 3361, 5551, 640, 334, 6159, 3323, 1839, 19387, 7507, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 511, 5286, 345, 510, 6159, 353, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 565, 1450, 6057, 25121, 694, 364, 6057, 25121, 694, 18, 1887, 694, 31, 203, 377, 203, 565, 871, 534, 359, 14727, 1429, 419...
pragma solidity ^0.4.13; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { // Gas optimization: this is cheaper than asserting 'a' not being zero, but the // benefit is lost if 'b' is also tested. // ...
update crowdsale total amount of capital raised update investor's received tokens balance log tokens sent action
function sendTokens(address _investor, uint256 _amount) external onlyOwner { require(investors[_investor].status == InvestorStatus.WHITELISTED); require(_amount > 0); require(fitsTokensForSaleCap(_amount)); sentTokens = sentTokens.add(_amount); investors[_investor].receivedTokens = investors[_investor].rec...
187,908
[ 1, 2725, 276, 492, 2377, 5349, 2078, 3844, 434, 12872, 11531, 1089, 2198, 395, 280, 1807, 5079, 2430, 11013, 613, 2430, 3271, 1301, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 1366, 5157, 12, 2867, 389, 5768, 395, 280, 16, 2254, 5034, 389, 8949, 13, 3903, 1338, 5541, 288, 203, 202, 202, 6528, 12, 5768, 395, 1383, 63, 67, 5768, 395, 280, 8009, 2327, 422, 5454, 395, 280, 1482, 18, 16861, 7085...
pragma solidity ^0.5.0; // Copyright 2019 OpenST Ltd. // // 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 applica...
* @title Allows to create new proxy contact and execute a message call to the new proxy within one transaction. @dev This contract is adapted from a ProxyFactory contract implementation/
contract ProxyFactory { event ProxyCreated(Proxy _proxy); function createProxy(address _masterCopy, bytes memory _data) public returns (Proxy proxy_) { require( _masterCopy != address(0), "Master copy address is null." ); proxy_ = new Proxy...
12,888,910
[ 1, 19132, 358, 752, 394, 2889, 5388, 471, 1836, 279, 883, 745, 358, 326, 3639, 394, 2889, 3470, 1245, 2492, 18, 225, 1220, 6835, 353, 28345, 628, 279, 7659, 1733, 6835, 4471, 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, 16351, 7659, 1733, 288, 203, 203, 565, 871, 7659, 6119, 12, 3886, 389, 5656, 1769, 203, 203, 565, 445, 752, 3886, 12, 2867, 389, 7525, 2951, 16, 1731, 3778, 389, 892, 13, 203, 3639, 1071, 203, 3639, 1135, 261, 3886, 2889, 67, 1...
pragma solidity 0.6.2; //new things contract Old{ address payable owner; bytes32 bytesnum; bytes32 hashnum; //function that has same name with contract's //is deprecated constructor(uint256 num) public{ owner = msg.sender; //sha3 is deprecated bytesnum =keccak256(abi...
callcode and throw are deprecatedsuicide is deprecated
function callAnother() public{ bool flag; bytes memory data; (flag, data) = owner.call(""); if(flag){ revert(); } else{ require(msg.sender == owner); selfdestruct(owner); } }
13,037,777
[ 1, 1991, 710, 471, 604, 854, 6849, 26560, 335, 831, 353, 6849, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 745, 37, 24413, 1435, 1071, 95, 203, 3639, 1426, 2982, 31, 203, 3639, 1731, 3778, 501, 31, 203, 3639, 261, 6420, 16, 501, 13, 273, 3410, 18, 1991, 2932, 8863, 203, 3639, 309, 12, 6420, 15329, 203, 5411, 15226, 5621, 2...
pragma solidity ^0.5.0; pragma experimental ABIEncoderV2; import './SafeMath.sol'; contract Patron { using SafeMath for uint; // Total patrons on platform uint public numPatrons; // Mapping to keep track of new patrons mapping (address => bool) alreadyRegisteredPatron; // Mapping to get al...
Mapping to get data of a creator
mapping (address => CreatorDatastore) CreatorData;
14,070,792
[ 1, 3233, 358, 336, 501, 434, 279, 11784, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2874, 261, 2867, 516, 29525, 21191, 13, 29525, 751, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.5.16; import "openzeppelin-solidity-2.3.0/contracts/ownership/Ownable.sol"; import "openzeppelin-solidity-2.3.0/contracts/token/ERC20/ERC20.sol"; import "openzeppelin-solidity-2.3.0/contracts/math/SafeMath.sol"; import "openzeppelin-solidity-2.3.0/contracts/math/Math.sol"; import "openzeppelin-solidit...
@dev Kill the given to the position. Liquidate it immediately if terminator condition is met. @param id The position ID to be killed. 1. Verify that the position is eligible for liquidation. 2. Perform liquidation and compute the amount of ETH received. 3. Clear position debt and return funds to liquidator and positio...
function terminate(uint256 id) external onlyEOA accrue(0) nonReentrant { Position storage pos = positions[id]; require(pos.debtShare > 0, "no debt"); uint256 debt = _removeDebt(id); uint256 condition = Orbit(pos.orbit).condition(id); uint256 terminator = config.terminator(pos...
12,836,960
[ 1, 19045, 326, 864, 358, 326, 1754, 18, 511, 18988, 350, 340, 518, 7636, 309, 24965, 2269, 353, 5100, 18, 225, 612, 1021, 1754, 1599, 358, 506, 24859, 18, 404, 18, 8553, 716, 326, 1754, 353, 21351, 364, 4501, 26595, 367, 18, 576, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10850, 12, 11890, 5034, 612, 13, 3903, 1338, 41, 28202, 4078, 86, 344, 12, 20, 13, 1661, 426, 8230, 970, 288, 203, 3639, 11010, 2502, 949, 273, 6865, 63, 350, 15533, 203, 3639, 2583, 12, 917, 18, 323, 23602, 9535, 405...
// Copyright (C) 2020 Easy Chain. <https://easychain.tech> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // ...
* @dev BerezkaPriceOverride contract. This contract allows to override token prices from 1inch exchange to correctly adjust prices of composite tokens not yet supported by Zerion @author Vasin Denis <denis.vasin@easychain.tech>/
contract BerezkaPriceOverride is Ownable() { mapping(address => uint256) public prices; mapping(address => address) public tokens; function setPrice( address _token, uint256 _price ) public onlyOwner() import { Ownable } from "../Ownable.sol"; import { ERC20 } from "...
1,825,490
[ 1, 38, 822, 94, 7282, 5147, 6618, 6835, 18, 1220, 6835, 5360, 358, 3849, 1147, 19827, 628, 404, 267, 343, 7829, 358, 8783, 5765, 19827, 434, 9635, 2430, 486, 4671, 3260, 635, 2285, 264, 285, 225, 776, 345, 267, 22453, 291, 411, 1300...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 16351, 605, 822, 94, 7282, 5147, 6618, 353, 14223, 6914, 1435, 288, 203, 203, 565, 2874, 12, 2867, 516, 2254, 5034, 13, 1071, 19827, 31, 203, 203, 565, 2874, 12, 2867, 516, 1758, 13, 1071, 2430, 31, 203, 203, 565, 445, 444, 514...
./full_match/1/0xbF0972e87938483A02A0aB96F0d86e50C4dD1A11/sources/browser/MasterChef_all.sol
CREED tokens created per block.
uint256 public creedPerBlock;
4,877,987
[ 1, 5458, 2056, 2430, 2522, 1534, 1203, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 1519, 329, 2173, 1768, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.6.1; pragma experimental ABIEncoderV2; import "../ZeroOne/UserGroups/lib/UserGroup.sol"; /** * @title UserGroupMock * @dev mock for testing UserGroup lib */ contract UserGroupMock { using UserGroup for UserGroup.Group; UserGroup.Group group; constructor(UserGroup.Group memory _gr...
* @dev method for testing getAdmin() method of user group @return admin/
function testGetAdmin() public view returns(address admin) { return group.getAdmin(); }
990,489
[ 1, 2039, 364, 7769, 22501, 1435, 707, 434, 729, 1041, 327, 3981, 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, 565, 445, 1842, 967, 4446, 1435, 7010, 3639, 1071, 203, 3639, 1476, 203, 3639, 1135, 12, 2867, 3981, 13, 203, 565, 288, 203, 3639, 327, 1041, 18, 588, 4446, 5621, 203, 565, 289, 7010, 203, 2, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x472D40b3138b9f55f5eD8fcEEe5130321D2552E8/sources/Connector.sol
CORE CONNECTION CoreVault coreContract = CoreVault(_addresses[0]); NFund fund = NFund(fundAddress); if (keccak256(bytes(functionName)) == keccak256(bytes("deposit"))) { fund.approveSpendERC20(_addresses[1], integers[0]); coreContract.deposit(integers[1], integers[2]); } if (keccak256(bytes(functionName)) == kec...
function interfaceCore(string memory functionCode, string memory functionName, address[] memory _addresses, uint256[] memory integers, string[] memory strings, bytes[] memory bytesArr) internal { }
2,872,832
[ 1, 15715, 20695, 4586, 12003, 2922, 8924, 273, 4586, 12003, 24899, 13277, 63, 20, 19226, 423, 42, 1074, 284, 1074, 273, 423, 42, 1074, 12, 74, 1074, 1887, 1769, 309, 261, 79, 24410, 581, 5034, 12, 3890, 12, 915, 461, 3719, 422, 417,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1560, 4670, 12, 1080, 3778, 445, 1085, 16, 533, 3778, 14117, 16, 1758, 8526, 3778, 389, 13277, 16, 2254, 5034, 8526, 3778, 12321, 16, 533, 8526, 3778, 2064, 16, 1731, 8526, 3778, 1731, 5715, 13, 2713, 288, 203, 565, 289...
pragma solidity ^0.5.0; import "./ERC1155MixedFungible.sol"; import "./ERC1155Metadata_URI.sol"; import "./ERC1155URIProvider.sol"; import "./IERC1155Mintable.sol"; import "./Operators.sol"; import "./ERC20.sol"; import "./ERC721.sol"; import "./MintCallbackInterface.sol"; /** @title Blockchain Cuties Collectible...
Grant the items to the caller Emit the Transfer/Mint event. the 0x0 source address implies a mint It will also provide the circulating supply info.
function mintFungible(uint256 _id, address[] calldata _to, uint256[] calldata _quantities) external onlyOperator { require(isFungible(_id), "ERC1155: token is not fungible"); for (uint256 i = 0; i < _to.length; ++i) { address to = _to[i]; uint256 quantity = _quantities[i]; ...
1,119,868
[ 1, 9021, 326, 1516, 358, 326, 4894, 16008, 326, 12279, 19, 49, 474, 871, 18, 326, 374, 92, 20, 1084, 1758, 24168, 279, 312, 474, 2597, 903, 2546, 5615, 326, 5886, 1934, 1776, 14467, 1123, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 42, 20651, 1523, 12, 11890, 5034, 389, 350, 16, 1758, 8526, 745, 892, 389, 869, 16, 2254, 5034, 8526, 745, 892, 389, 17753, 1961, 13, 3903, 1338, 5592, 288, 203, 3639, 2583, 12, 291, 42, 20651, 1523, 24899, ...
/* ███████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ ███╗ ███╗███████╗ ██╔════╝██╔═══██╗╚██╗██╔╝ ██╔════╝ ██╔══██╗████╗ ████║██╔════╝ █████╗ ██║ ██║ ╚███╔╝ ██║ ███╗███████║██╔████╔██║█████╗ ██╔══╝ ██║ ██║ ██╔██╗ ██║ ██║██╔══██║██║╚██╔╝██║██╔══╝ ██║ ╚██████╔╝██╔╝ ██╗ ╚██████╔╝██║ ██║██║ ╚═╝...
stop earning additional $CARROT if it's all been earned
if (totalCrownEarned < MAXIMUM_GLOBAL_CROWN) { reward += (time - stakeStart) * HUNTER_EARNING_RATE; reward += (lastCrownClaimTimestamp - stakeStart) * HUNTER_EARNING_RATE; }
14,423,413
[ 1, 5681, 425, 9542, 3312, 271, 39, 985, 1457, 56, 309, 518, 1807, 777, 2118, 425, 1303, 329, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 309, 261, 4963, 39, 26253, 41, 1303, 329, 411, 4552, 18605, 67, 20402, 67, 39, 1457, 5665, 13, 288, 203, 1377, 19890, 1011, 261, 957, 300, 384, 911, 1685, 13, 380, 670, 5321, 654, 67, 41, 6343, 67, 24062, 31, 203, 1377, ...
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view re...
incentive to users who spend gas to lock token
uint256 public lockIncentive = 10;
1,563,672
[ 1, 267, 2998, 688, 358, 3677, 10354, 17571, 16189, 358, 2176, 1147, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11890, 5034, 1071, 2176, 382, 2998, 688, 273, 1728, 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, ...
./full_match/8453/0x14fa9FA3b4Ec9fE639a9E04B5D02ee2Ea65bd3F9/sources/home/user/Documents/git-repos/0x/protocol/contracts/zero-ex/contracts/src/external/FlashWallet.sol
@dev Allows this contract to receive ERC223 tokens.
) external pure {}
11,563,193
[ 1, 19132, 333, 6835, 358, 6798, 4232, 39, 3787, 23, 2430, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 262, 3903, 16618, 2618, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/1/0xB94613518f0EB4a898beD151F201EEB2Bf3BaE1a/sources/Kudos.sol
1.20% from total supply maxWallet
maxWallet = 120000 * 1e18;
8,450,923
[ 1, 21, 18, 3462, 9, 628, 2078, 14467, 943, 16936, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 943, 16936, 273, 2593, 2787, 380, 404, 73, 2643, 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, -1...
pragma solidity ^0.5.16; interface IORGovernor{ function getAccountInfo(address account) external view returns(bool governorFlag, bool suspendedFlag, uint256 power) ; function getSuspendReason(address account) external view returns(string memory reason); function userHasWrongVoting(address account, address...
todo: not a real function, just to mimic the Governance power
function setPower(address account, uint256 power) public{ powerPerUser[account] = power; }
12,748,292
[ 1, 9012, 30, 486, 279, 2863, 445, 16, 2537, 358, 20369, 335, 326, 611, 1643, 82, 1359, 7212, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 13788, 12, 2867, 2236, 16, 2254, 5034, 7212, 13, 1071, 95, 203, 3639, 7212, 2173, 1299, 63, 4631, 65, 273, 7212, 31, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/42161/0x3543488F480bDb42075283Bc354Cf5B0F58e8204/sources/project_/src/active/MemepadProject.sol
Set public sale time. - For holder duration = _publicTimeHolder - _publicTime - For everyone: after _publicTimeHolder
function setPublicTime(uint256 _publicTime, uint256 _publicTimeHolder) external onlyOwner { publicTime = _publicTime; publicTimeHolder = _publicTimeHolder; }
16,300,940
[ 1, 694, 1071, 272, 5349, 813, 18, 300, 2457, 10438, 3734, 273, 389, 482, 950, 6064, 300, 389, 482, 950, 300, 2457, 3614, 476, 30, 1839, 389, 482, 950, 6064, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 27467, 950, 12, 11890, 5034, 389, 482, 950, 16, 2254, 5034, 389, 482, 950, 6064, 13, 3903, 1338, 5541, 288, 203, 565, 1071, 950, 273, 389, 482, 950, 31, 203, 565, 1071, 950, 6064, 273, 389, 482, 950, 6064, 31, 203, ...
./full_match/100/0x0a5851524e638EDF1652010c7E6fB50c81d70977/sources/src/BaseConditionalOrder.sol
* @dev Set the visibility of this function to `public` to allow `verify` to call it. @inheritdoc IConditionalOrderGenerator/* @inheritdoc IERC165/
function getTradeableOrder(address owner, address sender, bytes calldata staticInput, bytes calldata offchainInput) public view virtual override returns (GPv2Order.Data memory); function supportsInterface(bytes4 interfaceId) external view virtual override returns (bool) ...
14,285,382
[ 1, 694, 326, 9478, 434, 333, 445, 358, 1375, 482, 68, 358, 1699, 1375, 8705, 68, 358, 745, 518, 18, 632, 10093, 467, 14132, 2448, 3908, 19, 632, 10093, 467, 654, 39, 28275, 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, 1, 0, 0, 0, 0, 0, 0, 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, 22583, 429, 2448, 12, 2867, 3410, 16, 1758, 5793, 16, 1731, 745, 892, 760, 1210, 16, 1731, 745, 892, 3397, 5639, 1210, 13, 203, 3639, 1071, 203, 3639, 1476, 203, 3639, 5024, 203, 3639, 3849, 203, 3639, 1135, 261, ...
// Based on https://github.com/HausDAO/Molochv2.1 // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.4; // import "hardhat/console.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * availabl...
TODO: whats this for?
address[] public memberList;
32,936
[ 1, 6241, 30, 600, 2323, 333, 364, 35, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1758, 8526, 1071, 3140, 682, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /// @author Jan Turk /// @title Administration contract Administration { mapping (address => bool) private registered; mapping (address => mapping (address => bool)) private owners; mapping (address => mapping (address => bool)) private admins; ma...
@notice Checks wether the caller is the owner, administrator or the registered user of the contract @param _tenant The address to be checked for permissions @return Confirmation of restriction of the permissions
function checkRegisteredUser(address _tenant) external view returns(bool){ return ( owners[msg.sender][_tenant] || admins[msg.sender][_tenant] || registeredUsers[msg.sender][_tenant] ); }
971,475
[ 1, 4081, 341, 2437, 326, 4894, 353, 326, 3410, 16, 22330, 578, 326, 4104, 729, 434, 326, 6835, 225, 389, 20115, 1021, 1758, 358, 506, 5950, 364, 4371, 327, 17580, 367, 434, 9318, 434, 326, 4371, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 866, 10868, 1299, 12, 2867, 389, 20115, 13, 3903, 1476, 1135, 12, 6430, 15329, 203, 565, 327, 261, 203, 1377, 25937, 63, 3576, 18, 15330, 6362, 67, 20115, 65, 747, 203, 1377, 31116, 63, 3576, 18, 15330, 6362, 67, 20115,...
pragma solidity 0.6.12; pragma experimental ABIEncoderV2; contract DSAuthEvents { event LogSetAuthority(address indexed authority); event LogSetOwner(address indexed owner); } contract DSAuth is DSAuthEvents { DSAuthority public authority; address public owner; constructor() public { ...
convert weth -> eth and send back
function buy(address _srcAddr, address _destAddr, uint _destAmount, bytes memory _additionalData) external override payable returns(uint) { address srcAddr = ethToWethAddr(_srcAddr); address destAddr = ethToWethAddr(_destAddr); ERC20(srcAddr).safeApprove(OTC_ADDRESS, uint(-1)); ...
7,334,170
[ 1, 6283, 341, 546, 317, 13750, 471, 1366, 1473, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12, 2867, 389, 4816, 3178, 16, 1758, 389, 10488, 3178, 16, 2254, 389, 10488, 6275, 16, 1731, 3778, 389, 13996, 751, 13, 3903, 3849, 8843, 429, 1135, 12, 11890, 13, 288, 203, 203, 3639, 1758, 1705, 3178, 273, 1375...
./full_match/56/0x59df07Af93fd66373813476E79fd9649A15C46A7/sources/project_/contracts/BNB247.sol
When investment finished
uint256 finishTime = users[userAddress].deposits[i].start.add(plans[currentPlan].time.mul(1 days));
3,259,052
[ 1, 9434, 2198, 395, 475, 6708, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9506, 202, 11890, 5034, 4076, 950, 273, 3677, 63, 1355, 1887, 8009, 323, 917, 1282, 63, 77, 8009, 1937, 18, 1289, 12, 412, 634, 63, 2972, 5365, 8009, 957, 18, 16411, 12, 21, 4681, 10019, 2, -100, -100, -100, -100, -100, -100, -...
// SPDX-License-Identifier: Unlicensed pragma solidity ^0.8.11; abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return payable(msg.sender); } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutab...
Lets go ahead and make sure that the lp pair doesn't get reflections
excludeFromReward(_PCS);
6,129,232
[ 1, 48, 2413, 1960, 17510, 471, 1221, 3071, 716, 326, 12423, 3082, 3302, 1404, 336, 5463, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 4433, 1265, 17631, 1060, 24899, 3513, 55, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./partial_match/42/0x95AB62FDA46949872e20b8726063721B52865857/sources/SushiToken.sol
SushiToken with Governance.
contract SushiToken is ERC20("SushiToken", "SUSHI"), Ownable { function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } mapping(address => address) internal _delegates; struct Checkpoint { uint...
9,069,079
[ 1, 55, 1218, 77, 1345, 598, 611, 1643, 82, 1359, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 348, 1218, 77, 1345, 353, 4232, 39, 3462, 2932, 55, 1218, 77, 1345, 3113, 315, 6639, 2664, 45, 6, 3631, 14223, 6914, 288, 203, 203, 565, 445, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1071, 1338, 5541,...
./full_match/1/0x71757da56B307c592A5e45c9B4CAB129bba8aD17/sources/src/token/Token.sol
Get the pointer to store the founder
Founder storage newFounder = founder[founderId];
2,955,417
[ 1, 967, 326, 4407, 358, 1707, 326, 284, 465, 765, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 7734, 478, 465, 765, 2502, 394, 42, 465, 765, 273, 284, 465, 765, 63, 74, 465, 765, 548, 15533, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity 0.8.2; interface ILendingPoolAddressesProviderV2 { /** * @notice Get the current address for Aave LendingPool * @dev Lending pool is the core contract on which to call deposit */ function getLendingPool() external view returns (address); } interface IAaveATokenV2 { /** ...
* @dev Get the pToken wrapped in the IAaveAToken interface for this bAsset, to use for withdrawing or balance checking. Fails if the pToken doesn't exist in our mappings. @param _bAsset Address of the bAsset @return aToken Corresponding to this bAsset/
function _getATokenFor(address _bAsset) internal view returns (IAaveATokenV2) { address aToken = bAssetToPToken[_bAsset]; require(aToken != address(0), "aToken does not exist"); return IAaveATokenV2(aToken); }
139,958
[ 1, 967, 326, 293, 1345, 5805, 316, 326, 467, 37, 836, 789, 969, 1560, 364, 333, 324, 6672, 16, 358, 999, 1377, 364, 598, 9446, 310, 578, 11013, 6728, 18, 8911, 87, 309, 326, 293, 1345, 3302, 1404, 1005, 316, 3134, 7990, 18, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 789, 969, 1290, 12, 2867, 389, 70, 6672, 13, 2713, 1476, 1135, 261, 15188, 836, 789, 969, 58, 22, 13, 288, 203, 3639, 1758, 279, 1345, 273, 324, 6672, 774, 52, 1345, 63, 67, 70, 6672, 15533, 203, 3639, 258...
./full_match/1/0x434bAc5efbE635d1bA4284Cf9Fb0938c489C468F/sources/contracts/protocol/libraries/types/DataTypes.sol
Map of reserves and their data (underlyingAssetOfReserve => reserveData) Map of users address and their configuration data (userAddress => userConfiguration) List of reserves as a map (reserveId => reserve). It is structured as a mapping for gas savings reasons, using the reserve id as index Maximum number of active r...
struct PoolStorage { mapping(address => ReserveData) _reserves; mapping(address => UserConfigurationMap) _usersConfig; mapping(uint256 => address) _reservesList; uint16 _reservesCount; uint64 _auctionRecoveryHealthFactor; }
8,328,452
[ 1, 863, 434, 400, 264, 3324, 471, 3675, 501, 261, 9341, 6291, 6672, 951, 607, 6527, 516, 20501, 751, 13, 1635, 434, 3677, 1758, 471, 3675, 1664, 501, 261, 1355, 1887, 516, 729, 1750, 13, 987, 434, 400, 264, 3324, 487, 279, 852, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 1958, 8828, 3245, 288, 203, 3639, 2874, 12, 2867, 516, 1124, 6527, 751, 13, 389, 455, 264, 3324, 31, 203, 3639, 2874, 12, 2867, 516, 2177, 1750, 863, 13, 389, 5577, 809, 31, 203, 3639, 2874, 12, 11890, 5034, 516, 1758, 13,...
/** *Submitted for verification at Etherscan.io on 2022-02-18 */ // Sources flattened with hardhat v2.8.4 https://hardhat.org // File @rari-capital/solmate/src/tokens/[email protected] // SPDX-License-Identifier: MIT pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. ///...
@notice Arithmetic library with operations for fixed-point numbers. @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/FixedPointMathLib.sol)
library FixedPointMathLib { COMMON BASE UNITS uint256 internal constant YAD = 1e8; uint256 internal constant WAD = 1e18; uint256 internal constant RAY = 1e27; uint256 internal constant RAD = 1e45; FIXED POINT OPERATIONS function fmul( u...
6,790,213
[ 1, 686, 16368, 5313, 598, 5295, 364, 5499, 17, 1153, 5600, 18, 225, 348, 355, 81, 340, 261, 4528, 2207, 6662, 18, 832, 19, 54, 12954, 17, 4664, 7053, 19, 18281, 81, 340, 19, 10721, 19, 5254, 19, 4816, 19, 5471, 19, 7505, 2148, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12083, 15038, 2148, 10477, 5664, 288, 203, 18701, 5423, 17667, 10250, 5019, 10158, 203, 203, 565, 2254, 5034, 2713, 5381, 1624, 1880, 273, 404, 73, 28, 31, 203, 565, 2254, 5034, 2713, 5381, 678, 1880, 273, 404, 73, 2643, 31, 203, ...
pragma solidity ^0.4.24; import "../Markets/Market.sol"; import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import "../Events/Event.sol"; import "../MarketMakers/MarketMaker.sol"; contract StandardMarketData { /* * Constants */ uint24 public constant FEE_RANGE = 1000000; // 100% } con...
@title Standard market contract - Backed implementation of standard markets @author Stefan George - <stefan@gnosis.pm>
contract StandardMarket is Proxied, Market, StandardMarketData { using SafeMath for *; modifier isCreator() { require(msg.sender == creator); _; } modifier atStage(Stages _stage) { require(stage == _stage); _; } function fund(uint _funding) public ...
12,533,793
[ 1, 8336, 13667, 6835, 300, 4297, 329, 4471, 434, 4529, 2267, 2413, 225, 7780, 74, 304, 15391, 280, 908, 300, 411, 334, 10241, 304, 36, 1600, 538, 291, 18, 7755, 34, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 8263, 3882, 278, 353, 1186, 92, 2092, 16, 6622, 278, 16, 8263, 3882, 278, 751, 288, 203, 565, 1450, 14060, 10477, 364, 380, 31, 203, 203, 565, 9606, 353, 10636, 1435, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 11784, ...
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * ...
* @dev Return the contract's current LINK balance./
function linkBalance() public view virtual returns (uint256) { return LINK.balanceOf(address(this)); }
10,052,400
[ 1, 990, 326, 6835, 1807, 783, 22926, 11013, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1692, 13937, 1435, 1071, 1476, 5024, 1135, 261, 11890, 5034, 13, 288, 203, 565, 327, 22926, 18, 12296, 951, 12, 2867, 12, 2211, 10019, 203, 225, 289, 203, 21281, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.18; interface token { function transferFrom (address _from,address _to, uint256 _value) external returns (bool success); function approve (address _spender,uint256 _value) external; function transfer(address _to, uint256 _value) external; } contract TrinityEvent{ event Deposit(by...
enable contract setting funciton
function unpause() public onlyOwner whenPaused { paused = false; }
13,044,826
[ 1, 7589, 6835, 3637, 1326, 26949, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 445, 640, 19476, 1435, 1071, 1338, 5541, 1347, 28590, 288, 203, 3639, 17781, 273, 629, 31, 203, 565, 289, 377, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.6.12; // SPDX-License-Identifier: MIT /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when de...
Update reward variables of the given pool to be up-to-date.
function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0) { pool.lastRewardBlock = block.number;...
11,781,016
[ 1, 1891, 19890, 3152, 434, 326, 864, 2845, 358, 506, 731, 17, 869, 17, 712, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1089, 2864, 12, 11890, 5034, 389, 6610, 13, 1071, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 309, 261, 2629, 18, 2696, 1648, 2845, 18, 2722, 17631, 1060, 1768, 13, 288, 203, ...
./full_match/1/0xdE874ad7cE27b6A01a996a03e5E1b81305aC6837/sources/contracts/FodlRewards/RewardsDistributor.sol
@dev Added to support recovering tokens sent by mistake or from airdrops
function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner { IERC20(tokenAddress).safeTransfer(owner(), tokenAmount); }
9,643,274
[ 1, 8602, 358, 2865, 5910, 310, 2430, 3271, 635, 27228, 911, 578, 628, 279, 6909, 16703, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5910, 654, 39, 3462, 12, 2867, 1147, 1887, 16, 2254, 5034, 1147, 6275, 13, 3903, 1338, 5541, 288, 203, 3639, 467, 654, 39, 3462, 12, 2316, 1887, 2934, 4626, 5912, 12, 8443, 9334, 1147, 6275, 1769, 203, 565, 289, 203, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.6; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupp...
* @notice deposit `amount` amount of liquidity for user @param amount the amount of liquidity to add for shares @return success/failure/
function deposit(uint amount) public returns (bool) { IERC20(pair).transferFrom(msg.sender, address(this), amount); uint _shares = 0; if (liquidityBalance() == 0) { _shares = amount; _shares = amount.mul(totalSupply).div(liquidityBalance()); } _mint(ms...
466,153
[ 1, 323, 1724, 1375, 8949, 68, 3844, 434, 4501, 372, 24237, 364, 729, 225, 3844, 326, 3844, 434, 4501, 372, 24237, 358, 527, 364, 24123, 327, 2216, 19, 12251, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 443, 1724, 12, 11890, 3844, 13, 1071, 1135, 261, 6430, 13, 288, 203, 3639, 467, 654, 39, 3462, 12, 6017, 2934, 13866, 1265, 12, 3576, 18, 15330, 16, 1758, 12, 2211, 3631, 3844, 1769, 203, 3639, 2254, 389, 30720, 273, ...
./full_match/11155111/0x8Ce305f5469A1df3Fec330d53EcF72657B97A95c/sources/lib/base58-solidity/contracts/Base58.sol
* @notice slice is used to slice the given byte, returns the bytes in the range of [start_, end_) @param data_ raw data, passed in as bytes. @param start_ start index. @param end_ end index. @return slice data/
function slice( bytes memory data_, uint256 start_, uint256 end_ ) public pure returns (bytes memory) { unchecked { bytes memory ret = new bytes(end_ - start_); for (uint256 i = 0; i < end_ - start_; i++) { ret[i] = data_[i + start_]; ...
3,826,866
[ 1, 6665, 353, 1399, 358, 2788, 326, 864, 1160, 16, 1135, 326, 1731, 316, 326, 1048, 434, 306, 1937, 67, 16, 679, 67, 13, 225, 501, 67, 1831, 501, 16, 2275, 316, 487, 1731, 18, 225, 787, 67, 787, 770, 18, 225, 679, 67, 679, 770...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2788, 12, 203, 3639, 1731, 3778, 501, 67, 16, 203, 3639, 2254, 5034, 787, 67, 16, 203, 3639, 2254, 5034, 679, 67, 203, 565, 262, 1071, 16618, 1135, 261, 3890, 3778, 13, 288, 203, 3639, 22893, 288, 203, 5411, 1731, 377...
pragma solidity ^0.4.24; import "openzeppelin-solidity/contracts/introspection/ERC165.sol"; import "./IRegistry.sol"; contract Registry is IRegistry, ERC165 { struct OrganizationRegistration { bytes32 organizationName; address owner; // member indexing note: // case (members[some...
* @dev Guard function that forces a revert if the referenced service does not meet an existence criteria. @param exists if true, revert when service does not exist, else revert when service exists/
function requireServiceExistenceConstraint(bytes32 orgName, bytes32 serviceName, bool exists) internal view { if (exists) { require(orgsByName[orgName].servicesByName[serviceName].serviceName != bytes32(0x0), "service does not exist"); require(orgsByName[orgName].servicesByName[servi...
12,630,365
[ 1, 16709, 445, 716, 26376, 279, 15226, 309, 326, 8042, 1156, 1552, 486, 18721, 392, 15782, 3582, 18, 225, 1704, 309, 638, 16, 15226, 1347, 1156, 1552, 486, 1005, 16, 469, 15226, 1347, 1156, 1704, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 2583, 1179, 4786, 802, 5806, 12, 3890, 1578, 2358, 461, 16, 1731, 1578, 6773, 16, 1426, 1704, 13, 2713, 1476, 288, 203, 3639, 309, 261, 1808, 13, 288, 203, 5411, 2583, 12, 280, 564, 5911, 63, 3341, 461, 8009, 8387, 59...
./partial_match/1/0x874B936cc69A68D4cb6f5f24aB90ba60eb376AD6/sources/BitmassExchangeToken.sol
Set the symbol for display purposes (CHANGE THIS)
symbol = "BMEV";
3,979,386
[ 1, 694, 326, 3273, 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, 3273, 273, 315, 38, 958, 58, 14432, 4766, 2868, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/44787/0x8cdC9deDE6cfe0f8c24eca20c2dc01dB2F4f3032/sources/contracts/registry/ENSRegistryUpgradeable.sol
* The ENS registry contract./
contract ENSRegistryUpgradeable is ENS, Initializable, UUPSProxy { pragma solidity >=0.8.4; import {ENS} from "./interfaces/IENS.sol"; import {UUPSProxy} from "../proxy/UUPSProxy.sol"; import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import {UUPSUpgradeable} from "@openze...
13,287,809
[ 1, 1986, 512, 3156, 4023, 6835, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 512, 3156, 4243, 10784, 429, 353, 512, 3156, 16, 10188, 6934, 16, 587, 3079, 55, 3886, 288, 203, 683, 9454, 18035, 560, 1545, 20, 18, 28, 18, 24, 31, 203, 5666, 288, 21951, 97, 628, 25165, 15898, 19, 45, 21951, 18, 18281...
// File: @openzeppelin/contracts/math/Math.sol pragma solidity ^0.5.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b...
a flag for disabling selling for simplified emergency exit UniswapV2Router02 https:uniswap.org/docs/v2/smart-contracts/router02/ https:etherscan.io/address/0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D These tokens cannot be claimed by the controller
contract SNXRewardUniLPStrategy is IStrategy, Controllable, RewardTokenProfitNotifier { using SafeMath for uint256; using SafeERC20 for IERC20; address public uniLPComponentToken0; address public uniLPComponentToken1; address public vault; SNXRewardInterface public rewardPool; bool public sell = true...
415,644
[ 1, 69, 2982, 364, 1015, 17912, 357, 2456, 364, 20482, 801, 24530, 2427, 1351, 291, 91, 438, 58, 22, 8259, 3103, 2333, 30, 318, 291, 91, 438, 18, 3341, 19, 8532, 19, 90, 22, 19, 26416, 17, 16351, 87, 19, 10717, 3103, 19, 2333, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14204, 60, 17631, 1060, 984, 77, 14461, 4525, 353, 467, 4525, 16, 1816, 30453, 16, 534, 359, 1060, 1345, 626, 7216, 14889, 288, 203, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 225, 1450, 14060, 654, 39, 3462, ...
// File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * ...
Anyone can harvest it at any given time. I understand the possibility of being frontrun But ETH is a dark forest, and I wanna see how this plays out i.e. will be be heavily frontrunned? if so, a new strategy will be deployed. Collects UNI tokens 10% is locked up for future gov Donates DUST Performance fee
function harvest() public { IStakingRewards(rewards).getReward(); uint256 _uni = IERC20(uni).balanceOf(address(this)); if(_uni <= uniThreshold) return; if (_uni > 0) { uint256 _keepUNI = _uni.mul(keepUNI).div(keepUNIMax); IERC20(uni).safeTransfer( ...
1,967,274
[ 1, 2961, 476, 848, 17895, 26923, 518, 622, 1281, 864, 813, 18, 467, 22413, 326, 25547, 434, 3832, 284, 1949, 313, 318, 12484, 512, 2455, 353, 279, 23433, 30763, 16, 471, 467, 341, 1072, 69, 2621, 3661, 333, 6599, 87, 596, 277, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 17895, 26923, 1435, 1071, 288, 203, 203, 3639, 467, 510, 6159, 17631, 14727, 12, 266, 6397, 2934, 588, 17631, 1060, 5621, 203, 3639, 2254, 5034, 389, 318, 77, 273, 467, 654, 39, 3462, 12, 318, 77, 2934, 12296, 951, 12, ...
pragma solidity ^0.4.18; //------------------------------- // ( ) ) ( ) // )\ ) ( /(( /( )\ ) ( ( /( //(()/( )\())\())(()/( )\ )\()) // /(_))((_)((_)\ /(_)|((_)((_)\ //(_)) |_ ((_)((_)(_)) )\___ _((_) /// __|| |/ // _ \| _ ((/ __| || | //\__ \ ' <| (_) | /| (__| __ | //|__...
staking requirement was too low at update maybe it has since surpassed the requirement?
function _getPoS(address target) internal view returns (uint256){ if (balances[target] == 0){ return 0; } int ONE_SECOND = 0x10000000000000000; uint TIME = timer[target]; if (TIME == 0){ TIME = GLOBAL_START_TIMER; } if (balances[target]...
402,504
[ 1, 334, 6159, 12405, 1703, 4885, 4587, 622, 1089, 6944, 518, 711, 3241, 5056, 23603, 326, 12405, 35, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 588, 29198, 55, 12, 2867, 1018, 13, 2713, 1476, 1135, 261, 11890, 5034, 15329, 203, 3639, 309, 261, 70, 26488, 63, 3299, 65, 422, 374, 15329, 203, 5411, 327, 374, 31, 203, 3639, 289, 203, 3639, 509, 15623, 67, 16...
./partial_match/4/0xEf7b3DA219D2A15CE327950cEA1666602A19dBaE/sources/InstantSwap.sol
* Swap Out function Deposit Asset backed tokens and claim back external tokens Prices are calculated from API services/@dev 'msg.sender' should have balance of 'address(this)' 'asset'@dev 'address(this)' should have balance of 'token' 'value'
function swapOut(address assetAdd, uint256 asset) external validateAsset(assetAdd) { _swapOut(assetAdd, asset); }
8,664,543
[ 1, 12521, 2976, 445, 4019, 538, 305, 10494, 20732, 2430, 471, 7516, 1473, 3903, 2430, 2301, 1242, 854, 8894, 628, 1491, 4028, 19, 296, 3576, 18, 15330, 11, 1410, 1240, 11013, 434, 296, 2867, 12, 2211, 2506, 296, 9406, 11, 296, 2867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7720, 1182, 12, 2867, 3310, 986, 16, 2254, 5034, 3310, 13, 7010, 3639, 3903, 7010, 3639, 1954, 6672, 12, 9406, 986, 13, 288, 203, 540, 203, 3639, 389, 22270, 1182, 12, 9406, 986, 16, 3310, 1769, 203, 565, 289, 203, 37...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.0; import "../modules/license/ILicenseController.sol"; import "../modules/ComponentController.sol"; import "../shared/WithRegistry.sol"; import "../shared/IModuleController.sol"; import "../shared/IModuleStorage.sol"; import "@gif-interface/contracts/modules/...
TODO update interface and rename to addRole
function createRole(bytes32 _role) external override onlyOwner { access().addRole(_role); }
12,784,056
[ 1, 6241, 1089, 1560, 471, 6472, 358, 527, 2996, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 752, 2996, 12, 3890, 1578, 389, 4615, 13, 7010, 3639, 3903, 3849, 203, 3639, 1338, 5541, 7010, 565, 288, 203, 3639, 2006, 7675, 1289, 2996, 24899, 4615, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -1...
./full_match/42/0xe0Ab69528526a07c03335B64487cFD5fD7273501/sources/index.sol
@dev Swaps one token for another. The router must support swap callbacks and ensure there isn't too much slippage. @dev Check Trident router has sent `amountIn` for skim into pool.
function flashSwap(bytes calldata data) public override lock returns (uint256 amountOut) { ( address tokenIn, address tokenOut, address recipient, bool unwrapBento, uint256 amountIn, bytes memory context ) = abi.decode(data, (ad...
9,572,394
[ 1, 6050, 6679, 1245, 1147, 364, 4042, 18, 1021, 4633, 1297, 2865, 7720, 6689, 471, 3387, 1915, 5177, 1404, 4885, 9816, 272, 3169, 2433, 18, 225, 2073, 840, 6392, 4633, 711, 3271, 1375, 8949, 382, 68, 364, 4343, 381, 1368, 2845, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9563, 12521, 12, 3890, 745, 892, 501, 13, 1071, 3849, 2176, 1135, 261, 11890, 5034, 3844, 1182, 13, 288, 203, 3639, 261, 203, 5411, 1758, 1147, 382, 16, 203, 5411, 1758, 1147, 1182, 16, 203, 5411, 1758, 8027, 16, 203, ...
./partial_match/8453/0xc0d3C0D3C0D3c0D3C0D3C0d3C0D3c0D3c0d30015/sources/contracts/universal/CrossDomainMessenger.sol
* @custom:legacy @title CrossDomainMessengerLegacySpacer @notice Contract only exists to add a spacer to the CrossDomainMessenger where the libAddressManager variable used to exist. Must be the first contract in the inheritance tree of the CrossDomainMessenger/
contract CrossDomainMessengerLegacySpacer { address private spacer_0_0_20; import { SafeCall } from "../libraries/SafeCall.sol"; import { Hashing } from "../libraries/Hashing.sol"; import { Encoding } from "../libraries/Encoding.sol"; import { Constants } from "../libraries/Constants.sol"; }
16,772,527
[ 1, 36, 3662, 30, 17386, 225, 19742, 3748, 29329, 12235, 3389, 10598, 225, 13456, 1338, 1704, 358, 527, 279, 31896, 358, 326, 19742, 3748, 29329, 1625, 326, 540, 2561, 1887, 1318, 2190, 1399, 358, 1005, 18, 6753, 506, 326, 1122, 6835, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 19742, 3748, 29329, 12235, 3389, 10598, 288, 203, 565, 1758, 3238, 31896, 67, 20, 67, 20, 67, 3462, 31, 203, 5666, 288, 14060, 1477, 289, 628, 315, 6216, 31417, 19, 9890, 1477, 18, 18281, 14432, 203, 5666, 288, 2474, 310, ...
./partial_match/1/0x5094a8f54B12AEc540bF7cCd0Dd7B62f4FecF7f2/sources/Users/Elena/Source/argent-contracts/contracts/modules/TransferManager.sol
* @inheritdoc IFeature/
function getStaticCallSignatures() external virtual override view returns (bytes4[] memory _sigs) { _sigs = new bytes4[](1); _sigs[0] = ERC1271_ISVALIDSIGNATURE_BYTES32; }
9,255,145
[ 1, 36, 10093, 467, 4595, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 445, 23414, 1477, 23918, 1435, 3903, 5024, 3849, 1476, 1135, 261, 3890, 24, 8526, 3778, 389, 7340, 87, 13, 288, 203, 3639, 389, 7340, 87, 273, 394, 1731, 24, 8526, 12, 21, 1769, 203, 3639, 389, 7340, 87, 63, 20, 65, 273, ...
pragma solidity ^0.5.13; import './interfaces/SyscoinClaimManagerI.sol'; import './interfaces/SyscoinSuperblocksI.sol'; import './SyscoinErrorCodes.sol'; import "@openzeppelin/upgrades/contracts/Initializable.sol"; import "./SyscoinParser/SyscoinMessageLibrary.sol"; // @dev - Manages a battle session between superblo...
if dummy 0x00 is present this is a witness transaction after dummy/flag the real var int comes for txins
function skipInputsCoinbase(bytes memory txBytes, uint pos) private view returns (uint, bytes memory) { uint n_inputs; uint script_len; (n_inputs, pos) = parseVarInt(txBytes, pos); if(n_inputs == 0x00){ require(n_inputs != 0x00); (n...
14,105,756
[ 1, 430, 9609, 374, 92, 713, 353, 3430, 333, 353, 279, 15628, 2492, 1839, 9609, 19, 6420, 326, 2863, 569, 509, 14535, 364, 2229, 2679, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2488, 10059, 27055, 1969, 12, 3890, 3778, 2229, 2160, 16, 2254, 949, 13, 203, 3639, 3238, 203, 3639, 1476, 203, 3639, 1135, 261, 11890, 16, 1731, 3778, 13, 203, 565, 288, 203, 3639, 2254, 290, 67, 10029, 31, 203, 3639, ...