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
./partial_match/1/0x071f7792202cDDf08d103BAE5885FF04F812D632/sources/LNR_SWAP_LIST_V1.sol
this gets set one time, then can never be changed, contract is *paused* until this is set
require(lnrAddress == address(0), 'Can only be changed once');
4,457,107
[ 1, 2211, 5571, 444, 1245, 813, 16, 1508, 848, 5903, 506, 3550, 16, 6835, 353, 17781, 3180, 333, 353, 444, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1377, 2583, 12, 2370, 86, 1887, 422, 1758, 12, 20, 3631, 296, 2568, 1338, 506, 3550, 3647, 8284, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.6.1; import "./StandardToken.sol"; /** * @notice ERC20Token for test scripts, can be minted by anyone. */ contract TestToken is StandardToken { string private _name; string private _symbol; uint256 private _decimals; constructor(string memory name, string memory symbol, uint256 decimals)...
* @notice ERC20Token for test scripts, can be minted by anyone./
contract TestToken is StandardToken { string private _name; string private _symbol; uint256 private _decimals; constructor(string memory name, string memory symbol, uint256 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } fallback() external { uint256 amount = 500...
12,804,970
[ 1, 654, 39, 3462, 1345, 364, 1842, 8873, 16, 848, 506, 312, 474, 329, 635, 1281, 476, 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, ...
[ 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, 16351, 7766, 1345, 353, 8263, 1345, 288, 203, 225, 533, 3238, 389, 529, 31, 203, 225, 533, 3238, 389, 7175, 31, 203, 225, 2254, 5034, 3238, 389, 31734, 31, 203, 203, 225, 3885, 12, 1080, 3778, 508, 16, 533, 3778, 3273, 16, 2254...
// SPDX-License-Identifier: MIT pragma solidity ^0.6.11; pragma experimental ABIEncoderV2; import "deps/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "deps/@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; import "deps/@openzeppelin/contracts-upgradeable/utils/AddressU...
Normalize the wBTC amount
amount = amount.mul(1e18).div(10**tokenList[1].decimals);
1,039,437
[ 1, 14380, 326, 341, 38, 15988, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 3844, 273, 3844, 18, 16411, 12, 21, 73, 2643, 2934, 2892, 12, 2163, 636, 2316, 682, 63, 21, 8009, 31734, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
//Address: 0xaB1EA6360CaAb4825fc1a7Bc4ab0FDa5F484E064 //Contract name: ImperialCredits //Balance: 0 Ether //Verification Date: 7/15/2017 //Transacion Count: 1 // CODE STARTS HERE pragma solidity ^0.4.11; contract Erc20Token { /* Map all our our balances for issued tokens */ mapping (address => uint256) bala...
Transfer the balance from owner's account to another account */
function transfer(address _to, uint256 _amount) returns (bool success) { if (balances[msg.sender] < _amount || balances[_to] + _amount < balances[_to]) throw; bool isRecipientNew = balances[_to] < 1; balances[msg.sender] -= _amount; balances[_to] += _amount; if...
12,810,605
[ 1, 5912, 326, 11013, 628, 3410, 1807, 2236, 358, 4042, 2236, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 12, 2867, 389, 869, 16, 2254, 5034, 389, 8949, 13, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 309, 261, 70, 26488, 63, 3576, 18, 15330, 65, 411, 389, 8949, 747, 324, 26488, 63, 67, 869, 65, 397, 389, 8949, 411...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.11; // ========== External imports ========== import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/interfaces/IERC2981Upgradeable.sol"; import "@openzeppelin/...
* @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential./
library BitMapsUpgradeable { pragma solidity ^0.8.0; struct BitMap { mapping(uint256 => uint256) _data; } function get(BitMap storage bitmap, uint256 index) internal view returns (bool) { uint256 bucket = index >> 8; uint256 mask = 1 << (index & 0xff); return bitmap._data[bu...
94,703
[ 1, 9313, 364, 30632, 2254, 5034, 358, 1426, 2874, 316, 279, 6739, 471, 14382, 4031, 16, 17721, 326, 1311, 854, 21210, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 6539, 8903, 10784, 429, 288, 203, 683, 9454, 18035, 560, 3602, 20, 18, 28, 18, 20, 31, 203, 565, 1958, 6539, 863, 288, 203, 3639, 2874, 12, 11890, 5034, 516, 2254, 5034, 13, 389, 892, 31, 203, 565, 289, 203, 203, 565, ...
/* Copyright 2020 Set Labs Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
When allowed on RebalancingSetToken, anyone can call for a new rebalance proposal. Assuming the criteria have been met, this begins a waiting period before the confirmation window starts where the signal can be confirmed./ Make sure Manager has been initialized with RebalancingSetToken Check enough time has passed for...
function initialPropose() external { require( address(rebalancingSetToken) != address(0), "AssetPairManagerV2.initialPropose: Manager must be initialized with RebalancingSetToken." ); require( rebalancingSetReady(), "AssetPairManag...
12,786,415
[ 1, 9434, 2935, 603, 868, 28867, 694, 1345, 16, 1281, 476, 848, 745, 364, 279, 394, 283, 12296, 14708, 18, 4725, 21249, 326, 3582, 1240, 2118, 5100, 16, 333, 17874, 279, 7336, 3879, 1865, 326, 14296, 2742, 2542, 1625, 326, 4277, 848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2172, 626, 4150, 1435, 203, 3639, 3903, 203, 565, 288, 203, 3639, 2583, 12, 203, 5411, 1758, 12, 266, 28867, 694, 1345, 13, 480, 1758, 12, 20, 3631, 203, 5411, 315, 6672, 4154, 1318, 58, 22, 18, 6769, 626, 4150, 30, ...
pragma solidity ^0.4.24; // File: contracts/LandBasic.sol /** * @title Land interface */ contract LandBasic { function createAndTransfer(address _to, uint32 _world, int64 _x, int64 _y) public; event Create(uint32 indexed _world, int64 indexed _x, int64 indexed _y); } // File: contracts/BidLandBasic.sol /** *...
Creates new struct and adds it in storage
currentAuction.plots.push(Plot(x, y, address(0), 0, 0, 0));
15,833,358
[ 1, 2729, 394, 1958, 471, 4831, 518, 316, 2502, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 783, 37, 4062, 18, 13214, 18, 6206, 12, 11532, 12, 92, 16, 677, 16, 1758, 12, 20, 3631, 374, 16, 374, 16, 374, 10019, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pragma solidity 0.5.10; import "./interfaces/IBlockRewardAuRa.sol"; import "./interfaces/IRandomAuRa.sol"; import "./interfaces/IStakingAuRa.sol"; import "./interfaces/IValidatorSetAuRa.sol"; import "./upgradeability/UpgradeabilityAdmin.sol"; import "./libs/SafeMath.sol"; /// @dev Stores the current validator set an...
@dev Called by the system when an initiated validator set change reaches finality and is activated. This function is called at the beginning of a block (before all the block transactions). Only valid when msg.sender == SUPER_USER (EIP96, 2**160 - 2). Stores a new validator set saved before by the `emitInitiateChange` ...
function finalizeChange() external onlySystem { if (_finalizeValidators.forNewEpoch) { _savePreviousValidators(); _finalizeNewValidators(true); IBlockRewardAuRa(blockRewardContract).clearBlocksCreated(); validatorSetApplyBlock = _getCurrentBlockNumber(); ...
14,065,540
[ 1, 8185, 635, 326, 2619, 1347, 392, 27183, 4213, 444, 2549, 30093, 727, 560, 471, 353, 14892, 18, 1220, 445, 353, 2566, 622, 326, 8435, 434, 279, 1203, 261, 5771, 777, 326, 1203, 8938, 2934, 5098, 923, 1347, 1234, 18, 15330, 422, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 12409, 3043, 1435, 3903, 1338, 3163, 288, 203, 3639, 309, 261, 67, 30343, 19420, 18, 1884, 1908, 14638, 13, 288, 203, 5411, 389, 5688, 8351, 19420, 5621, 203, 5411, 389, 30343, 1908, 19420, 12, 3767, 1769, 203, 5411, 467,...
./full_match/1/0xff9afFCdD4a6985A408352A06E82A6C728740845/sources/localhost/compound/CompoundBasicProxy.sol
@notice Helper method to withdraw tokens from the DSProxy @param _tokenAddr Address of the token to be withdrawn
function withdrawTokens(address _tokenAddr) public { if (_tokenAddr != ETH_ADDR) { IERC20(_tokenAddr).safeTransfer(msg.sender, IERC20(_tokenAddr).balanceOf(address(this))); msg.sender.transfer(address(this).balance); } }
16,610,813
[ 1, 2276, 707, 358, 598, 9446, 2430, 628, 326, 8678, 3886, 225, 389, 2316, 3178, 5267, 434, 326, 1147, 358, 506, 598, 9446, 82, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 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, 598, 9446, 5157, 12, 2867, 389, 2316, 3178, 13, 1071, 288, 203, 3639, 309, 261, 67, 2316, 3178, 480, 512, 2455, 67, 14142, 13, 288, 203, 5411, 467, 654, 39, 3462, 24899, 2316, 3178, 2934, 4626, 5912, 12, 3576, 18, 153...
pragma solidity ^0.5.7; interface ERC20Interface { function allowance(address, address) external view returns (uint); function balanceOf(address) external view returns (uint); function approve(address, uint) external; function transfer(address, uint) external returns (bool); function transferFrom(a...
* @dev get ethereum address for trade/
function getEthAddr() public pure returns (address eth) { eth = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; }
5,389,586
[ 1, 588, 13750, 822, 379, 1758, 364, 18542, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4774, 451, 3178, 1435, 1071, 16618, 1135, 261, 2867, 13750, 13, 288, 203, 3639, 13750, 273, 374, 17432, 1340, 1340, 41, 1340, 73, 41, 73, 41, 1340, 41, 73, 41, 73, 41, 1340, 9383, 41, 1340, 1340, 41, 1340, 1340, 1340,...
/** *Submitted for verification at Etherscan.io on 2021-06-19 */ pragma solidity ^0.5.0; /** * @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 existe...
deploy a staking reward contract for the staking token, and store the reward amount the reward will be distributed to the staking reward contract no sooner than the genesis
function deploy(address stakingToken, address payable collectionAddress, uint rewardAmount) public onlyOwner { StakingRewardsInfo storage info = stakingRewardsInfoByStakingToken[stakingToken]; require(info.stakingRewards == address(0), 'StakingRewardsFactory::deploy: already deployed'); inf...
6,847,954
[ 1, 12411, 279, 384, 6159, 19890, 6835, 364, 326, 384, 6159, 1147, 16, 471, 1707, 326, 19890, 3844, 326, 19890, 903, 506, 16859, 358, 326, 384, 6159, 19890, 6835, 1158, 17136, 264, 2353, 326, 21906, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7286, 12, 2867, 384, 6159, 1345, 16, 1758, 8843, 429, 1849, 1887, 16, 2254, 19890, 6275, 13, 1071, 1338, 5541, 288, 203, 3639, 934, 6159, 17631, 14727, 966, 2502, 1123, 273, 384, 6159, 17631, 14727, 966, 858, 510, 6159, ...
// $$\ $$\ $$\ $$\ $$\ $$\ $$\ $$\ $$\ // $$$\ $$$ | $$ | $$ | \__| \__| $$ |\__| $$ | // $$$$\ ...
* @dev External Function which checks for various caps before allowing LP to transfer their LpNFT. Only callable by LpNFT contract/ Release limit from _from Block limit of _to
function beforeLiquidityTransfer( address _from, address _to, address _token, uint256 _amount ) external onlyLpNft whenNotPaused { _beforeLiquidityRemoval(_from, _token, _amount); _beforeLiquidityAddition(_to, _token, _amount); }
13,899,982
[ 1, 6841, 4284, 1492, 4271, 364, 11191, 15788, 1865, 15632, 511, 52, 358, 7412, 3675, 511, 84, 50, 4464, 18, 5098, 4140, 635, 511, 84, 50, 4464, 6835, 19, 10819, 1800, 628, 225, 389, 2080, 3914, 1800, 434, 389, 869, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1865, 48, 18988, 24237, 5912, 12, 203, 3639, 1758, 389, 2080, 16, 203, 3639, 1758, 389, 869, 16, 203, 3639, 1758, 389, 2316, 16, 203, 3639, 2254, 5034, 389, 8949, 203, 565, 262, 3903, 1338, 48, 84, 50, 1222, 1347, 124...
./full_match/1/0xf607014406bc3Fa7aAB224a85A0318b4556e9C28/sources/browser/AuctionHouseLogicV1.sol
Modifier for functions that require to be called only by the Cryptograph Factory
modifier restrictedToFactory(){ require((msg.sender == factory), "Only the Cryptograph Factory smart contract can call this function"); _; }
3,151,811
[ 1, 9829, 364, 4186, 716, 2583, 358, 506, 2566, 1338, 635, 326, 22752, 8829, 7822, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9606, 15693, 774, 1733, 1435, 95, 203, 3639, 2583, 12443, 3576, 18, 15330, 422, 3272, 3631, 315, 3386, 326, 22752, 8829, 7822, 13706, 6835, 848, 745, 333, 445, 8863, 203, 3639, 389, 31, 203, 565, 289, 203, 203, 2, -100, -100...
/** *Submitted for verification at Etherscan.io on 2022-05-03 */ // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; ...
Mapping from token ID to ownership details An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details.
mapping(uint256 => address) private _ownerships;
6,810,356
[ 1, 3233, 628, 1147, 1599, 358, 23178, 3189, 1922, 1008, 1958, 460, 1552, 486, 23848, 3722, 326, 1147, 353, 640, 995, 329, 18, 2164, 23178, 951, 4471, 364, 3189, 18, 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, 225, 2874, 12, 11890, 5034, 516, 1758, 13, 3238, 389, 995, 12565, 87, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0x5128fb075c5F770bfC53152aBB37A62BB9dBf723/sources/contracts/BaseSilo.sol
@dev Main repay function that handles all repay logic and validation @param _asset asset address that is being repaid @param _borrower wallet address for which debt is being repaid @param _repayer wallet address that will pay the debt. It's possible that Router contract is executing repay for user and should be the on...
function _repay(address _asset, address _borrower, address _repayer, uint256 _amount) internal onlyExistingAsset(_asset) nonReentrant returns (uint256 repaidAmount, uint256 repaidShare) { _accrueInterest(_asset); AssetStorage storage _state = _assetStorage[_asset...
3,140,951
[ 1, 6376, 2071, 528, 445, 716, 7372, 777, 2071, 528, 4058, 471, 3379, 225, 389, 9406, 3310, 1758, 716, 353, 3832, 2071, 20736, 225, 389, 70, 15318, 264, 9230, 1758, 364, 1492, 18202, 88, 353, 3832, 2071, 20736, 225, 389, 14462, 1773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 266, 10239, 12, 2867, 389, 9406, 16, 1758, 389, 70, 15318, 264, 16, 1758, 389, 14462, 1773, 16, 2254, 5034, 389, 8949, 13, 203, 3639, 2713, 203, 3639, 1338, 9895, 6672, 24899, 9406, 13, 203, 3639, 1661, 426, 8230, ...
pragma solidity ^0.5.11; contract Box { uint public id; string public title; uint public openingTime; uint public numberOfNotes; address creator; mapping(address => bool) public voted; mapping(uint => string) notes; mapping(address => string) voterNote; constructor (uint _id, stri...
require(id > 0 && id < voterBoxCount[msg.sender], "Id is not valid");
function getBoxTitle(uint id) public view returns (string memory) { return voterBoxes[msg.sender][id].title(); }
12,884,456
[ 1, 6528, 12, 350, 405, 374, 597, 612, 411, 331, 20005, 3514, 1380, 63, 3576, 18, 15330, 6487, 315, 548, 353, 486, 923, 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, ...
[ 1, 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, 2882, 2409, 4247, 12, 11890, 612, 13, 1071, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 3639, 327, 331, 20005, 29521, 63, 3576, 18, 15330, 6362, 350, 8009, 2649, 5621, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT /** * @authors: [@jaybuidl, @shalzz, @hrishibhat, @shotaronowhere] * @reviewers: [] * @auditors: [] * @bounties: [] * @deployments: [] */ pragma solidity ^0.8.0; import "./SafeBridgeReceiverOnEthereum.sol"; import "./interfaces/IFastBridgeReceiver.sol"; /** * Fast Bridge ...
Use of send to prevent reverting fallback. User is responsibility for accepting ETH.
payable(ticket.claim.bridger).send(amount);
14,107,394
[ 1, 3727, 434, 1366, 358, 5309, 15226, 310, 5922, 18, 2177, 353, 29353, 364, 25806, 512, 2455, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 8843, 429, 12, 16282, 18, 14784, 18, 14400, 693, 2934, 4661, 12, 8949, 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, -1...
./partial_match/3/0xbe4A328576C72275B7b16B9D330dbB42553230C6/sources/BKP_PreSale.sol
2 january, 2021 5:45
unLockingDate = 1607517900;
5,178,407
[ 1, 22, 525, 304, 24335, 16, 26599, 21, 225, 1381, 30, 7950, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 640, 2531, 310, 1626, 273, 25430, 5877, 28814, 713, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/42/0x517DCAac724d657411D740d7Ff0E7FE932259e68/sources/LavaWallet.sol
check to make sure that signature == ecrecover signaturemake sure the signer is the depositor of the tokensmake sure the signature has not expiredremember to tip your relayer!
function _validatePacketSignature( string memory methodName, address relayAuthority,address from,address to, address token,uint256 tokens,uint256 relayerRewardTokens,uint256 expires,uint256 nonce, bytes memory signature) internal returns (bool success) { address wallet = address(this); Always ...
3,396,719
[ 1, 1893, 358, 1221, 3071, 716, 3372, 422, 425, 1793, 3165, 3372, 6540, 3071, 326, 10363, 353, 326, 443, 1724, 280, 434, 326, 2430, 6540, 3071, 326, 3372, 711, 486, 7708, 28155, 358, 9529, 3433, 1279, 1773, 5, 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, 282, 445, 389, 5662, 6667, 5374, 12, 225, 533, 3778, 4918, 16, 1758, 18874, 10962, 16, 2867, 628, 16, 2867, 358, 16, 1758, 1147, 16, 11890, 5034, 2430, 16, 11890, 5034, 1279, 1773, 17631, 1060, 5157, 16, 11890, 5034, 7368, 16, 11...
./partial_match/56/0x2879D0d796d9cdbCCa5D3906837f03cEAadc817a/sources/UnicToken.sol
update the unlocked tokens based on time if required
function _transfer(address sender, address recipient, uint256 amount) private { require(recipient != address(0),"Unicorns: Cannot have recipient as zero address"); require(sender != address(0),"Unicorns: Cannot have sender as zero address"); require(_balances[sender] >= amount,"...
11,188,737
[ 1, 2725, 326, 25966, 2430, 2511, 603, 813, 309, 1931, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13866, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 13, 3238, 288, 203, 203, 540, 203, 203, 3639, 2583, 12, 20367, 480, 1758, 12, 20, 3631, 6, 984, 335, 280, 2387, 30, 14143, 1240, 8027, 487, 3634, 1758,...
pragma solidity ^0.4.24; pragma experimental "v0.5.0"; import "openzeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol"; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; contract Pluvo is DetailedERC20("Pluvo", "PLV", 18) { using SafeMath for uint256; /*--------- CONSTANTS ---------*/ ...
maximum supply ever, used for calculating rain amount
uint256 public maxSupply;
6,434,949
[ 1, 15724, 14467, 14103, 16, 1399, 364, 21046, 767, 267, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 943, 3088, 1283, 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, ...
./full_match/1/0x36C2732f1B2ED69CF17133aB01f2876B614a2F27/sources/contracts/RevestA3.sol
* Amount will be per FNFT. So total ERC20s needed is amount quantity. We don't charge an ETH fee on depositAdditional, but do take the erc20 percentage. Users can deposit additional into their own Otherwise, if not an owner, they must distribute to all FNFTs equally/ Future versions may reintroduce series splitting, i...
function depositAdditionalToFNFT( uint fnftId, uint amount, uint quantity ) external override nonReentrant returns (uint) { address vault = addressesProvider.getTokenVault(); IRevest.FNFTConfig memory fnft = ITokenVault(vault).getFNFT(fnftId); require(fnftId < get...
3,000,448
[ 1, 6275, 903, 506, 1534, 27103, 4464, 18, 6155, 2078, 4232, 39, 3462, 87, 3577, 353, 3844, 225, 10457, 18, 1660, 2727, 1404, 13765, 392, 512, 2455, 14036, 603, 443, 1724, 10552, 16, 1496, 741, 4862, 326, 6445, 71, 3462, 11622, 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...
[ 1, 565, 445, 443, 1724, 10552, 774, 19793, 4464, 12, 203, 3639, 2254, 2295, 1222, 548, 16, 203, 3639, 2254, 3844, 16, 203, 3639, 2254, 10457, 203, 565, 262, 3903, 3849, 1661, 426, 8230, 970, 1135, 261, 11890, 13, 288, 203, 3639, 175...
./partial_match/4/0x7A0e1E2c92c8781296F9F0567a212D32de1F1e34/sources/TestCoin.sol
Функция для "одобрения" перевода токенов Запись в мапппинг число "одобренных" токенов Вызов ивента для логгирования события одобрения перевода токенов
function approve(address _to, uint256 _value) public returns (bool success) { allowance[msg.sender][_to] = _value; emit Approval(msg.sender, _to, _value); return true; }
8,743,912
[ 1, 145, 102, 146, 230, 145, 126, 145, 123, 146, 233, 145, 121, 146, 242, 225, 145, 117, 145, 124, 146, 242, 315, 145, 127, 145, 117, 145, 127, 145, 114, 146, 227, 145, 118, 145, 126, 145, 121, 146, 242, 6, 225, 145, 128, 145, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 869, 16, 2254, 5034, 389, 1132, 13, 1071, 1135, 261, 6430, 2216, 13, 288, 203, 3639, 1699, 1359, 63, 3576, 18, 15330, 6362, 67, 869, 65, 273, 389, 1132, 31, 203, 3639, 3626, 1716, 685, 1125, ...
pragma solidity ^0.4.13; // ------------------------------------------------- // 0.4.13+commit.0fb4cb1a // [Assistive Reality ARX token ETH cap presale contract] // [Contact <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d0a3a4b1b6b690b1a2bfbebcb9beb5feb9bf">[email&#160;protected]</a> for any ...
setup the presale parameters init addresses funding targets update values configure presalegas reduction experiment
function Setuppresale(uint256 _fundingStartBlock, uint256 _fundingEndBlock) onlyOwner returns (bytes32 response) { if ((msg.sender == admin) && (!(isPresaleSetup)) && (!(beneficiaryWallet > 0))){ fundingRemainingAvailableInEth = safeDiv(fundingMaxCapInWei,1 ether); fu...
10,936,840
[ 1, 8401, 326, 4075, 5349, 1472, 1208, 6138, 22058, 5774, 1089, 924, 5068, 4075, 287, 1332, 345, 20176, 8724, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 445, 10939, 12202, 5349, 12, 11890, 5034, 389, 74, 14351, 1685, 1768, 16, 2254, 5034, 389, 74, 14351, 1638, 1768, 13, 1338, 5541, 1135, 261, 3890, 1578, 766, 13, 288, 203, 1377, 309, 14015, 3576, 18, 15330, 422, 3981, 13, 20...
./full_match/44787/0xe49E6147B6327522ECAc51cc31C95940945AEc08/sources/contracts/Sacuda.sol
bytes32 public constant WOB = keccak256("WOMAN_OF_BUSSINESS"); /** @dev Is Enhancer Storage */ mapping(uint256 => bool) public isEnhancer;
contract Sacuda is ERC721, AccessControl { bytes32 public constant ADMIN_ROLE = keccak256("ADMIN"); bytes32 public constant MINTER_ROLE = keccak256("MINTER"); bytes32 public constant ENHANCER_ROLE = keccak256("ENHANCER"); bytes32 public constant WOB_ROLE = keccak256("WOMAN_OF_BUSSINESS"); uint256 ...
13,289,514
[ 1, 3890, 1578, 1071, 5381, 678, 5704, 273, 417, 24410, 581, 5034, 2932, 59, 1872, 1258, 67, 3932, 67, 3000, 1260, 3740, 1260, 8863, 342, 225, 2585, 1374, 25842, 2750, 5235, 342, 2874, 12, 11890, 5034, 516, 1426, 13, 1071, 353, 664, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 348, 1077, 13177, 353, 4232, 39, 27, 5340, 16, 24349, 288, 203, 565, 1731, 1578, 1071, 5381, 25969, 67, 16256, 273, 417, 24410, 581, 5034, 2932, 15468, 8863, 203, 565, 1731, 1578, 1071, 5381, 6989, 2560, 67, 16256, 273, 417,...
/** *Submitted for verification at Etherscan.io on 2020-06-08 */ pragma solidity ^0.5.17; // @notice SECURITY TOKEN CONTRACT // @dev ERC-1404 with ERC-20 with ERC-223 protection Token Standard Compliant // @author Geoffrey Tipton at AEN // ---------------------------------------------------------------------------- /...
Can Receive Rule applied
if (WHITELISTED_CAN_RX_CODE == (listRule & WHITELISTED_CAN_RX_CODE)){
956,731
[ 1, 2568, 17046, 6781, 6754, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16861, 7085, 2056, 67, 39, 1258, 67, 54, 60, 67, 5572, 422, 261, 1098, 2175, 473, 24353, 7085, 2056, 67, 39, 1258, 67, 54, 60, 67, 5572, 3719, 95, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/** * SPDX-License-Identifier: MIT * * Copyright (c) 2018-2020 CENTRE SECZ * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the right...
* @notice Constructor @dev If FiatTokenProxy is used to hold state and delegate calls, the proxy's address should be provided, not the implementation address @param fiatToken Address of the FiatToken contract/
constructor(address fiatToken) public { _fiatToken = fiatToken; }
2,262,786
[ 1, 6293, 225, 971, 478, 77, 270, 1345, 3886, 353, 1399, 358, 6887, 919, 471, 7152, 4097, 16, 326, 2889, 1807, 1758, 1410, 506, 2112, 16, 486, 326, 4471, 1758, 225, 7314, 270, 1345, 5267, 434, 326, 478, 77, 270, 1345, 6835, 19, 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, 565, 3885, 12, 2867, 7314, 270, 1345, 13, 1071, 288, 203, 3639, 389, 22056, 270, 1345, 273, 7314, 270, 1345, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
./full_match/1/0x961d3712F5835aBB0B367F83807B2f61e7d819a5/sources/contracts/utils/ManualStrikeSelection.sol
@dev Selected strike price @dev Delta for options strike price selection. 1 is 10000 (10**4)* @notice Sets the strike price, only callable by the owner @param _strikePrice is the strike price of the option/
function setStrikePrice(uint256 _strikePrice) external onlyOwner { strikePrice = _strikePrice; }
4,930,092
[ 1, 7416, 609, 2547, 6205, 225, 17799, 364, 702, 609, 2547, 6205, 4421, 18, 404, 353, 12619, 261, 21869, 13, 225, 11511, 326, 609, 2547, 6205, 16, 1338, 4140, 635, 326, 3410, 225, 389, 701, 2547, 5147, 353, 326, 609, 2547, 6205, 434,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 1585, 2547, 5147, 12, 11890, 5034, 389, 701, 2547, 5147, 13, 3903, 1338, 5541, 288, 203, 3639, 609, 2547, 5147, 273, 389, 701, 2547, 5147, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.6.0; import "./interfaces/MarketControllerInterface.sol"; import "./interfaces/HTokenInterface.sol"; import "./interfaces/EIP20Interface.sol"; import "./interfaces/EIP20NonStandardInterface.sol"; import "./interfaces/InterestRateStrategyInterface.sol"; import "./interfaces/DistributorInterface.sol";...
* @notice Transfers collateral tokens (this market) to the liquidator. @dev Will fail unless called by another hToken during the process of liquidation. Its absolutely critical to use msg.sender as the borrowed hToken and not a parameter. @param liquidator The account receiving seized collateral @param borrower The ac...
function seize( address liquidator, address borrower, uint256 seizeTokens ) external override nonReentrant returns (uint256) { return seizeInternal(msg.sender, liquidator, borrower, seizeTokens); }
6,356,876
[ 1, 1429, 18881, 4508, 2045, 287, 2430, 261, 2211, 13667, 13, 358, 326, 4501, 26595, 639, 18, 225, 9980, 2321, 3308, 2566, 635, 4042, 366, 1345, 4982, 326, 1207, 434, 4501, 26595, 367, 18, 225, 29517, 2417, 355, 322, 2357, 11239, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 695, 554, 12, 203, 202, 202, 2867, 4501, 26595, 639, 16, 203, 202, 202, 2867, 29759, 264, 16, 203, 202, 202, 11890, 5034, 695, 554, 5157, 203, 202, 13, 3903, 3849, 1661, 426, 8230, 970, 1135, 261, 11890, 5034, 13, 288...
./partial_match/1/0xCC4fCe9171dE972aE892BD0b749F96B49b3740E7/sources/etherscana_verify.sol
* @notice Calculates the CREATE2 address for a pool without making any external calls @param _token An ERC20 token address @param _factory The factory contract of Xfai @param _poolCodeHash The codehash of the Xfai pool contract @return pool The deterministic pool address for a given _token/
) internal pure returns (address pool) { pool = address( uint160( uint256( keccak256( abi.encodePacked( hex'ff', _factory, keccak256(abi.encodePacked(_token)), ) ) ) ) ); }
16,068,403
[ 1, 10587, 326, 13278, 22, 1758, 364, 279, 2845, 2887, 10480, 1281, 3903, 4097, 225, 389, 2316, 1922, 4232, 39, 3462, 1147, 1758, 225, 389, 6848, 1021, 3272, 6835, 434, 1139, 507, 77, 225, 389, 6011, 1085, 2310, 1021, 981, 2816, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 225, 262, 2713, 16618, 1135, 261, 2867, 2845, 13, 288, 203, 565, 2845, 273, 1758, 12, 203, 1377, 2254, 16874, 12, 203, 3639, 2254, 5034, 12, 203, 1850, 417, 24410, 581, 5034, 12, 203, 5411, 24126, 18, 3015, 4420, 329, 12, 203, ...
./full_match/1/0x980C680a90631c8Ea49fA37B47AbC3154219EC1a/sources/contracts/EthenaMinting.sol
@notice Enables smart contracts to delegate an address for signing
function setDelegatedSigner(address _delegateTo) external { delegatedSigner[_delegateTo] = msg.sender; }
17,057,136
[ 1, 25924, 13706, 20092, 358, 7152, 392, 1758, 364, 10611, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 15608, 690, 15647, 12, 2867, 389, 22216, 774, 13, 3903, 288, 203, 565, 30055, 15647, 63, 67, 22216, 774, 65, 273, 1234, 18, 15330, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity^0.4.21; contract EtheraffleInterface { uint public tktPrice; function getUserNumEntries(address _entrant, uint _week) public view returns (uint) {} } contract LOTInterface { function transfer(address _to, uint _value) public {} function balanceOf(address _owner) public view returns (ui...
@dev Function used to redeem promotional LOT owed. Use weekNo of 0 to get current week number. Requires user not to have already claimed week number in question's earnt promo LOT and for promo to be active. It calculates LOT owed, and sends them to the caller. Should contract's ...
function redeem(uint _weekNo) public { uint week = _weekNo == 0 ? getWeek() : _weekNo; uint entries = getNumEntries(msg.sender, week); require( !claimed[msg.sender][week] && entries > 0 && isActive ); uint amt = getPromoLOTEarnt(entr...
279,458
[ 1, 2083, 1399, 358, 283, 24903, 23024, 287, 1806, 56, 2523, 329, 18, 2672, 4860, 2279, 434, 1850, 374, 358, 336, 783, 4860, 1300, 18, 16412, 729, 486, 358, 1240, 1818, 1850, 7516, 329, 4860, 1300, 316, 5073, 1807, 6897, 496, 3012, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 283, 24903, 12, 11890, 389, 10741, 2279, 13, 1071, 288, 203, 3639, 2254, 4860, 565, 273, 389, 10741, 2279, 422, 374, 692, 336, 6630, 1435, 294, 389, 10741, 2279, 31, 203, 3639, 2254, 3222, 273, 11187, 5400, 12, 3576, 18...
./full_match/11155111/0xaf6EeD5e61BE0936BDE7fc347a218230FA661E9e/sources/contracts/Latest2_HRTCrowdfunding.sol
Contribute to a campaign
function donateToCampaign(uint256 _id) public payable { uint256 amount = msg.value; Campaign storage campaign = campaigns[_id]; require(amount > 0, "Donation amount should be greater than zero."); if (amount < campaign.minContribution && !isDonator[msg.sender][_id]) { ...
3,800,233
[ 1, 442, 887, 358, 279, 8965, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2727, 340, 774, 13432, 12, 11890, 5034, 389, 350, 13, 1071, 8843, 429, 288, 203, 3639, 2254, 5034, 3844, 273, 1234, 18, 1132, 31, 203, 203, 3639, 17820, 2502, 8965, 273, 8965, 87, 63, 67, 350, 15533, 203, 203, 3639, 2...
/* _ ___ __ _ _ _ _ _ _ _ | |/ (_) / _| | | | | | | | (_) | | | ' / _ _ __ __ _ ___ | |_ | |_| |__ ___ | |__| |_| | | | < | | '_ \ / _` | / _ \| _| | __| '_ \ / _ \ | __ | | | | | . \| | | | | (_| | | (_) | | | |_| | | | __/ ...
It's meLast income blockCurrent King of HillCurrent balanceMin participant bid (25 cent)Min Bid incrase for every bidRevenue for me :)Wait for 6000 block to claim all money on game startWait for 5 blocks in game barely finishedCurrent block distanceWe have a new king! All glory to new king!We have a winner
contract KingOfTheHill{ using SafeMath for uint256; address payable private _owner; uint256 public lastKingBlock; address payable public currentKing; uint256 public currentBalance = 0; uint256 public minBid = 725000 gwei; uint public constant BID_INCRASE = 29000 gwei; uint public...
13,779,411
[ 1, 7193, 1807, 1791, 3024, 316, 5624, 1203, 3935, 1475, 310, 434, 670, 737, 3935, 11013, 2930, 14188, 9949, 261, 2947, 8301, 13, 2930, 605, 350, 7290, 5648, 364, 3614, 9949, 426, 24612, 364, 1791, 294, 13, 5480, 364, 1666, 3784, 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, 1475, 310, 951, 1986, 44, 737, 95, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 1758, 8843, 429, 3238, 389, 8443, 31, 203, 203, 565, 2254, 5034, 1071, 1142, 47, 310, 1768, 31, 203, 203, 565, 1758, 88...
./full_match/1/0x1B2Af52fC41EAbfFD8B245Ea834F633E929Ff93C/sources/contracts/Pills.sol
Allows to set new token metadata Requirements: - caller should be a contract owner @param metadata - new token metadata @emit `MetadataUpdate` event/
function updateMetadata(string calldata metadata) external onlyOwner { _metadata = metadata; emit MetadataUpdate(metadata, msg.sender); }
9,665,949
[ 1, 19132, 358, 444, 394, 1147, 1982, 29076, 30, 300, 4894, 1410, 506, 279, 6835, 3410, 225, 1982, 300, 394, 1147, 1982, 632, 18356, 1375, 2277, 1891, 68, 871, 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, 1089, 2277, 12, 1080, 745, 892, 1982, 13, 3903, 1338, 5541, 288, 203, 3639, 389, 4165, 273, 1982, 31, 203, 203, 3639, 3626, 6912, 1891, 12, 4165, 16, 1234, 18, 15330, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100...
./full_match/1/0x3Bd85DF9633eF0205206BB519E4dDee152Bb0005/sources/contracts/token/RewardsDistributor.sol
* Set a customized profit rewards @param _garden Address of the garden @param _strategistShare New sharing profit % for strategist @param _stewardsShare New sharing profit % for stewards @param _lpShare New sharing profit % for lp/ [0]: _strategistProfit , [1]: _stewardsProfit, [2]: _lpProfit Dif...
function _setProfitRewards( address _garden, uint256 _strategistShare, uint256 _stewardsShare, uint256 _lpShare ) internal { _require(_strategistShare.add(_stewardsShare).add(_lpShare) == 95e16, Errors.PROFIT_SHARING_MISMATCH); if ( _strategistShare !=...
3,050,119
[ 1, 694, 279, 29063, 450, 7216, 283, 6397, 225, 389, 75, 24466, 6647, 5267, 434, 326, 314, 24466, 225, 389, 701, 1287, 376, 9535, 225, 1166, 21001, 450, 7216, 738, 364, 609, 1287, 376, 225, 389, 334, 359, 14727, 9535, 565, 1166, 2100...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 542, 626, 7216, 17631, 14727, 12, 203, 3639, 1758, 389, 75, 24466, 16, 203, 3639, 2254, 5034, 389, 701, 1287, 376, 9535, 16, 203, 3639, 2254, 5034, 389, 334, 359, 14727, 9535, 16, 203, 3639, 2254, 5034, 389, 9953, ...
./full_match/4/0x747bAE896cA3B8fACeedB262bfb3b618dfF999F1/sources/contracts/Counter.sol
@title Counter Contract - A simple counter contract for the Safe Apps Workshop @author Daniel Somoza - <daniel.somoza@safe.global>
contract Counter { event CounterChanged( string eventType, int256 prevCounter, int256 newCounter, address indexed userAddress ); mapping(address => int256) private addressToCounter; function increment() external { int256 prevCounter = addressToCounter[msg.sende...
13,341,514
[ 1, 4789, 13456, 300, 432, 4143, 3895, 6835, 364, 326, 14060, 1716, 1121, 4147, 5020, 225, 463, 28662, 292, 348, 362, 11142, 69, 300, 411, 72, 28662, 292, 18, 87, 362, 11142, 69, 36, 4626, 18, 6347, 34, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 9354, 288, 203, 565, 871, 9354, 5033, 12, 203, 3639, 533, 11216, 16, 203, 3639, 509, 5034, 2807, 4789, 16, 203, 3639, 509, 5034, 394, 4789, 16, 203, 3639, 1758, 8808, 729, 1887, 203, 565, 11272, 203, 203, 565, 2874, 12, ...
/* Attestation decode and validation */ /* AlphaWallet 2020 */ pragma solidity ^0.5.0; import "https://github.com/witnet/elliptic-curve-solidity/blob/master/contracts/EllipticCurve.sol"; contract DerDecode { address payable owner; bytes1 constant BOOLEAN_TAG = bytes1(0x01); bytes1 constant INTEGE...
TODO: Check maths; validate that it is correct to add the field size if the hash is negative
function mapToInteger(bytes memory input) private pure returns(uint256 idNumU) { bytes32 idHash = keccak256(input); int256 idNum = int256(bytes32ToUint(idHash)); if (idNum < 0) idNum = idNum + int256(PP); idNumU = uint256(idNum) % PP; idNumU = idNumU % CURVE_ORDER; } ...
13,116,616
[ 1, 6241, 30, 2073, 4233, 87, 31, 1954, 716, 518, 353, 3434, 358, 527, 326, 652, 963, 309, 326, 1651, 353, 6092, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 21178, 4522, 12, 3890, 3778, 810, 13, 3238, 16618, 1135, 12, 11890, 5034, 612, 2578, 57, 13, 203, 565, 288, 203, 3639, 1731, 1578, 612, 2310, 273, 417, 24410, 581, 5034, 12, 2630, 1769, 203, 3639, 509, 5034, 612, 2578, ...
pragma solidity ^0.4.23; import '../interfaces/StorageInterface.sol'; contract Proxy { // Registry storage address public proxy_admin; StorageInterface public app_storage; bytes32 public registry_exec_id; address public provider; bytes32 public app_name; // App storage bytes32 public app_version; ...
Constructor - sets proxy admin, as well as initial variables
constructor (address _storage, bytes32 _registry_exec_id, address _provider, bytes32 _app_name) public { proxy_admin = msg.sender; app_storage = StorageInterface(_storage); registry_exec_id = _registry_exec_id; provider = _provider; app_name = _app_name; }
6,423,642
[ 1, 6293, 300, 1678, 2889, 3981, 16, 487, 5492, 487, 2172, 3152, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 3885, 261, 2867, 389, 5697, 16, 1731, 1578, 389, 9893, 67, 4177, 67, 350, 16, 1758, 389, 6778, 16, 1731, 1578, 389, 2910, 67, 529, 13, 1071, 288, 203, 565, 2889, 67, 3666, 273, 1234, 18, 15330, 31, 203, 565, 595, 67, 569...
./partial_match/1/0x98b7893C5717aF41d3e351c6e3445Be02a062A90/sources/contracts/MapleLoan.sol
The amount specified is an optional amount to be transfer from the caller, as a convenience for EOAs. NOTE: FUNDS SHOULD NOT BE TRANSFERRED TO THIS CONTRACT NON-ATOMICALLY. IF THEY ARE, THE BALANCE MAY BE STOLEN USING `skim`. The drawable funds are increased by the extra funds in the contract, minus the total needed f...
function makePayment(uint256 amount_) external override whenNotPaused limitDrawableUse returns (uint256 principal_, uint256 interest_, uint256 fees_) { require( amount_ == uint256(0) || ERC20Helper.transferFrom(_fundsAsset, msg.sender, address(this), amount_), "ML:MP:TRAN...
3,924,802
[ 1, 1986, 3844, 1269, 353, 392, 3129, 3844, 358, 506, 7412, 628, 326, 4894, 16, 487, 279, 13553, 364, 512, 51, 1463, 18, 5219, 30, 478, 2124, 3948, 6122, 31090, 4269, 9722, 28093, 17356, 8493, 20676, 8020, 2849, 1268, 18708, 17, 28146,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 6032, 12, 11890, 5034, 3844, 67, 13, 203, 3639, 3903, 3849, 1347, 1248, 28590, 1800, 16149, 3727, 1135, 261, 11890, 5034, 8897, 67, 16, 2254, 5034, 16513, 67, 16, 2254, 5034, 1656, 281, 67, 13, 203, 565, 288, 203,...
/** *Submitted for verification at Etherscan.io on 2022-02-14 */ /* Fee Percentages 1. 6% Team wallet 2. 5% Raid wallet 3. 5% Reward Reflection (auto) total: 16% tg: https://t.me/shartans Supply 10,000,000,000 SPDX-License-Identifier: MIT */ pragma solidity ^0.8.4; /** * @dev Provides information about the cu...
must hold 40,000+ tokens
minimumTokenBalanceForDividends = 10**2 * (10**18);
7,976,033
[ 1, 11926, 6887, 8063, 16, 3784, 15, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5224, 1345, 13937, 1290, 7244, 350, 5839, 273, 1728, 636, 22, 380, 261, 2163, 636, 2643, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
./full_match/43113/0x7136f17a41CE1F6806854360DadE9b811cfF60A0/sources/TokenContract.sol
* @dev Moves tokens `amount` from `sender` to `recipient`. This is internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc. Emits a {Transfer} event. Requirements: - `sender` cannot be the zero address. - `recipient` cannot be the zero address. - `...
function _transfer(address sender, address recipient, uint256 amount, bool unlock) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); uint256 senderBalance = m_balances[sende...
7,192,232
[ 1, 19297, 2430, 1375, 8949, 68, 628, 1375, 15330, 68, 358, 1375, 20367, 8338, 1220, 353, 2713, 445, 353, 7680, 358, 288, 13866, 5779, 471, 848, 506, 1399, 358, 425, 18, 75, 18, 2348, 5859, 1147, 1656, 281, 16, 9026, 310, 1791, 28757...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 2867, 5793, 16, 1758, 8027, 16, 2254, 5034, 3844, 16, 1426, 7186, 13, 2713, 288, 203, 203, 3639, 2583, 12, 15330, 565, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, 326, 3634, 1758, 8863,...
./full_match/1/0x6c51041A91C91C86f3F08a72cB4D3F67f1208897/sources/src/base/Cellar.sol
* Emitted when sender is not approved to call `callOnAdaptor`./
error Cellar__CallerNotApprovedToRebalance();
5,008,874
[ 1, 1514, 11541, 1347, 5793, 353, 486, 20412, 358, 745, 1375, 1991, 1398, 29888, 8338, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 555, 8614, 297, 972, 11095, 1248, 31639, 774, 426, 12296, 5621, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.4.21 <0.7.0; import "./Shop.sol"; import "./Ownable.sol"; contract Customer is Ownable{ Shop shop; //@dev Event triggers after new item added to cart event addItemToCartEvent(string name, uint price, uint subtotal, uint cartItemsCount); ...
wines[id].inv_Qty-- cart[address][x].require(msg.value == subtotal[msg.sender]);balance[msg.sender] += msg.value; subtotal[msg.sender] = 0;
function CheckOutCart() public payable { emit checkoutEvent (subtotal[msg.sender]); }
12,651,001
[ 1, 91, 1465, 63, 350, 8009, 5768, 67, 53, 4098, 413, 225, 7035, 63, 2867, 6362, 92, 8009, 6528, 12, 3576, 18, 1132, 422, 720, 4963, 63, 3576, 18, 15330, 19226, 12296, 63, 3576, 18, 15330, 65, 1011, 1234, 18, 1132, 31, 565, 720, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2073, 1182, 13006, 1435, 1071, 8843, 429, 288, 203, 203, 203, 3639, 3626, 13926, 1133, 261, 1717, 4963, 63, 3576, 18, 15330, 19226, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
/* website: yiff.farm This project was forked from SUSHI, YUNO and KIMCHI projects. Unless those projects have severe vulnerabilities, this contract will be fine */ pragma solidity ^0.6.12; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data....
View function to see pending YIFFs on frontend.
function pendingYiff(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accYiffPerShare = pool.accYiffPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); ...
1,355,856
[ 1, 1767, 445, 358, 2621, 4634, 1624, 16962, 87, 603, 15442, 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, 4634, 61, 3048, 12, 11890, 5034, 389, 6610, 16, 1758, 389, 1355, 13, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 8828, 966, 2502, 2845, 273, 2845, 966, 63, 67, 6610, 15533, 203, 3639, 25003, 2502, 729, 273, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific funct...
* @notice Burn LP tokens to remove liquidity from the pool. Withdraw fee that decays linearly over period of 4 weeks since last deposit will apply. @dev Liquidity can always be removed, even when the pool is paused. @param amount the amount of LP tokens to burn @param minAmounts the minimum amounts of each token in the...
function removeLiquidity( uint256 amount, uint256[] calldata minAmounts, uint256 deadline ) external nonReentrant returns (uint256[] memory) { IERC20[] memory memBaseTokens = baseTokens; IERC20[] memory memMetaTokens = metaTokens; uint256[] memory totalRemovedAmou...
936,508
[ 1, 38, 321, 511, 52, 2430, 358, 1206, 4501, 372, 24237, 628, 326, 2845, 18, 3423, 9446, 14036, 716, 2109, 8271, 9103, 715, 1879, 3879, 434, 1059, 17314, 3241, 1142, 443, 1724, 903, 2230, 18, 225, 511, 18988, 24237, 848, 3712, 506, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1206, 48, 18988, 24237, 12, 203, 3639, 2254, 5034, 3844, 16, 203, 3639, 2254, 5034, 8526, 745, 892, 1131, 6275, 87, 16, 203, 3639, 2254, 5034, 14096, 203, 565, 262, 3903, 1661, 426, 8230, 970, 1135, 261, 11890, 5034, 85...
./full_match/3/0x4fF1f59845cA9a5426eC85Edb5BbF23002988EA6/sources/browser/asset.sol
Reject the new Property.
function rejectProperty(uint _propId)public verifiedSuperAdmin returns (bool){ require(properties[_propId].currOwner != msg.sender); properties[_propId].status = Status.Rejected; return true; }
8,236,164
[ 1, 21705, 326, 394, 4276, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 915, 4925, 1396, 12, 11890, 389, 5986, 548, 13, 482, 13808, 8051, 4446, 1135, 261, 6430, 15329, 203, 202, 202, 6528, 12, 4738, 63, 67, 5986, 548, 8009, 17016, 5541, 480, 1234, 18, 15330, 1769, 203, 202, 202, 4738, 63, 67, ...
./full_match/4/0x64989dc83c39B02b7117b76D74a853195Ea614Ba/sources/browser/nft_marketplace.sol
is allowance provided
require(allowance >= cytrAmount, "Check the CYTR allowance");
648,055
[ 1, 291, 1699, 1359, 2112, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2583, 12, 5965, 1359, 1545, 6143, 313, 6275, 16, 315, 1564, 326, 29335, 4349, 1699, 1359, 8863, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: Apache-2.0 pragma solidity >=0.6.4 <0.8.0; pragma experimental ABIEncoderV2; import "https://github.com/vigilance91/solidarity/contracts/accessControl/PausableWhitelist.sol"; //interface iPausableMintWhitelist is PausableWhitelist //{ // function hasRoleMinter( // address account ...
string private constant _NAME = ' MintPausableWhitelistAccessControl: ';
{ bytes32 public constant ROLE_MINTER = keccak256("Solidarity.MINT_PAUSABLE_WHITELIST.MINTER_ROLE"); bytes32 public constant ROLE_BURNER = keccak256("Solidarity.MINT_PAUSABLE_WHITELIST.BURNER_ROLE"); constructor( )internal PausableWhitelist() abstract contract MintPausableWhitelist ...
13,123,454
[ 1, 1080, 3238, 5381, 389, 1985, 273, 296, 490, 474, 16507, 16665, 18927, 16541, 30, 12386, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 95, 203, 377, 203, 565, 1731, 1578, 1071, 5381, 22005, 67, 6236, 2560, 273, 417, 24410, 581, 5034, 2932, 25044, 20498, 18, 49, 3217, 67, 4066, 3378, 2782, 67, 16861, 7085, 18, 6236, 2560, 67, 16256, 8863, 203, 565, 1731, 1578, 10...
./partial_match/80001/0x7C682dd6E5d569C2e38EA148032098B839B11c9F/sources/contracts/base/AlgebraPoolBase.sol
@inheritdoc IAlgebraPoolState
uint32 public override communityFeeLastTimestamp;
8,801,237
[ 1, 36, 10093, 467, 1067, 29087, 2864, 1119, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 2254, 1578, 1071, 3849, 19833, 14667, 3024, 4921, 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...
/* Decentralized digital asset exchange. Supports any digital asset that can be represented on the Ethereum blockchain (i.e. - transferred in an Ethereum transaction or sequence of transactions). Let us suppose two agents interacting with a distributed ledger have utility functions preferencing certain states of ...
* @dev Transfer fees @param from Address to charge fees @param amount Amount of protocol tokens to charge/
function transferExchangeTokens(address from, uint amount) internal { if(amount > 0) { uint burnAmount = devAmount; transferTokens(address(exchangeToken), from, protocolFeeRecipient, remAmount); transferTokens(address(exchangeToken), from, devWallet, devAmoun...
1,806,960
[ 1, 5912, 1656, 281, 225, 628, 5267, 358, 13765, 1656, 281, 225, 3844, 16811, 434, 1771, 2430, 358, 13765, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 11688, 5157, 12, 2867, 628, 16, 2254, 3844, 13, 203, 3639, 2713, 203, 565, 288, 203, 3639, 309, 12, 8949, 405, 374, 13, 288, 203, 5411, 2254, 18305, 6275, 273, 4461, 6275, 31, 203, 203, 5411, 7412, 5157, 12, 286...
pragma solidity ^0.4.25; // File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view returns (uint2...
Note: the ERC-165 identifier for this interface is 0x4bbee2df. 0x4bbee2df === bytes4(keccak256(&#39;transferAndCall(address,uint256)&#39;)) ^ bytes4(keccak256(&#39;transferAndCall(address,uint256,bytes)&#39;)) ^ bytes4(keccak256(&#39;transferFromAndCall(address,address,uint256)&#39;)) ^ bytes4(keccak256(&#39;t...
bytes4 internal constant _InterfaceId_ERC1363Transfer = 0x4bbee2df;
7,794,337
[ 1, 8067, 30, 326, 4232, 39, 17, 28275, 2756, 364, 333, 1560, 353, 374, 92, 24, 9897, 1340, 22, 2180, 18, 374, 92, 24, 9897, 1340, 22, 2180, 757, 282, 1731, 24, 12, 79, 24410, 581, 5034, 12, 10, 5520, 31, 13866, 1876, 1477, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 1731, 24, 2713, 5381, 389, 1358, 548, 67, 654, 39, 3437, 4449, 5912, 273, 374, 92, 24, 9897, 1340, 22, 2180, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/137/0x21a978FD9A2cF247819F694580910e6Ed8470C7f/sources/wec.sol
swapExactETHForTokens generate the uniswap pair path of token -> weth make the swap
function swapETHForTokens(uint256 amount) private { address[] memory path = new address[](2); path[0] = WMATIC; path[1] = address(this); path, block.timestamp ); }
4,775,491
[ 1, 22270, 14332, 1584, 44, 1290, 5157, 2103, 326, 640, 291, 91, 438, 3082, 589, 434, 1147, 317, 341, 546, 1221, 326, 7720, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7720, 1584, 44, 1290, 5157, 12, 11890, 5034, 3844, 13, 3238, 288, 203, 3639, 1758, 8526, 3778, 589, 273, 394, 1758, 8526, 12, 22, 1769, 203, 3639, 589, 63, 20, 65, 273, 678, 49, 11781, 31, 203, 3639, 589, 63, 21, 65...
pragma solidity ^0.5.0; //import "github.com/DOSNetwork/eth-contracts/contracts/DOSOnChainSDK.sol"; import "../DOSOnChainSDK.sol"; contract SimpleDice is DOSOnChainSDK { address payable public devAddress = 0xe4E18A49c6F1210FFE9a60dBD38071c6ef78d982; uint public devContributed = 0; // 1% winning payout goe...
100 / (rollUnder - 1) * 0.01
function computeDeveloperCut(uint rollUnder) public view returns(uint) { return 10 ** decimal / (rollUnder - 1); }
2,541,136
[ 1, 6625, 342, 261, 2693, 14655, 300, 404, 13, 225, 374, 18, 1611, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3671, 28145, 15812, 12, 11890, 5824, 14655, 13, 1071, 1476, 1135, 12, 11890, 13, 288, 203, 3639, 327, 1728, 2826, 6970, 342, 261, 2693, 14655, 300, 404, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -1...
./partial_match/1/0x6b2C42D2Aa4CB2D859CF7a88546dB12ae294F303/sources/contracts/base/PCToken.sol
* @notice Getter for the total supply @dev declared external for gas optimization @return uint - total number of tokens in existence/
function totalSupply() external view override returns (uint) { return varTotalSupply; }
2,714,518
[ 1, 8461, 364, 326, 2078, 14467, 225, 7886, 3903, 364, 16189, 14850, 327, 2254, 300, 2078, 1300, 434, 2430, 316, 15782, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 3849, 1135, 261, 11890, 13, 288, 203, 3639, 327, 569, 5269, 3088, 1283, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity ^0.4.18; contract Motion { // Contract Variables and events uint public minimumQuorum; // minimum quorum defined as an absolute number of voters uint public debatingPeriodInMinutes; int public majorityPercentage; // required majority expressed as percentage string public motionTitl...
Contract Variables and events option "object" structure
contract Motion { uint public debatingPeriodInMinutes; string public motionTitle; string public motionAbstract; struct Option { string name; uint voteValue; bool isVotePositive; uint numberOfVotes; } struct Vote { int optionID; address voter; ...
5,491,106
[ 1, 8924, 23536, 471, 2641, 1456, 315, 1612, 6, 3695, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16351, 28994, 288, 203, 565, 2254, 1071, 18202, 1776, 5027, 30470, 31, 203, 565, 533, 1071, 21188, 4247, 31, 203, 565, 533, 1071, 21188, 7469, 31, 203, 203, 565, 1958, 2698, 288, 203, 3639, 533, 508, 31, 203, 3639, 2254, 12501, 6...
pragma solidity ^0.4.24; import "./SafeMathLib.sol"; /** * @title FeesLib * @dev Library for managing fees on any contract, it handles fees percentages with minimum and maximum amount, * on eth blockchain having parts per X as percentage storing the two parts of the fraction. */ library FeesLib { using SafeMat...
* @dev Get maximum fee tokens/pennies/cents @return uint/
function getMaxFee(FeeStorage storage self) internal view returns (uint) { return self.max_Fee; }
2,507,260
[ 1, 967, 4207, 14036, 2430, 19, 1907, 82, 606, 19, 2998, 87, 327, 2254, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7288, 14667, 12, 14667, 3245, 2502, 365, 13, 2713, 1476, 1135, 261, 11890, 13, 288, 203, 202, 202, 2463, 365, 18, 1896, 67, 14667, 31, 203, 202, 97, 203, 202, 203, 202, 203, 202, 203, 2, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.8.0; pragma abicoder v2; import "../../common/implementation/FixedPoint.sol"; // Simple contract used to withdraw liquidations using a DSProxy from legacy contracts (1.2.2 and below). contract LiquidationWithdrawer { function withdrawLiquidation( ...
Implements FundingRateApplier internal methods to enable unit testing.
contract FundingRateApplierTest is FundingRateApplier { constructor( bytes32 _fundingRateIdentifier, address _collateralAddress, address _finderAddress, address _configStoreAddress, FixedPoint.Unsigned memory _tokenScaling, address _timerAddress ) FundingR...
272,685
[ 1, 17516, 478, 14351, 4727, 1294, 5742, 2713, 2590, 358, 4237, 2836, 7769, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 478, 14351, 4727, 1294, 5742, 4709, 353, 478, 14351, 4727, 1294, 5742, 288, 203, 565, 3885, 12, 203, 3639, 1731, 1578, 389, 74, 14351, 4727, 3004, 16, 203, 3639, 1758, 389, 12910, 2045, 287, 1887, 16, 203, 3639, 1758, 389, ...
./partial_match/4/0x7337175eCbC36db4838dFF57d3620814EAc96993/sources/CAFE.sol
--- EIP712 niceties --- Original source: https:etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f#code keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); The success fee (expressed in currency) that will be earned by setupFeeRecipient as soon as initGoal is re...
{ using SafeMath for uint; using Sqrt for uint; using SafeERC20 for IERC20; event Buy( address indexed _from, address indexed _to, uint _currencyValue, uint _fairValue ); event Sell( address indexed _from, address indexed _to, uint _currencyValue, uint _fairValue ); event...
8,501,534
[ 1, 6062, 512, 2579, 27, 2138, 11562, 278, 606, 9948, 19225, 1084, 30, 2333, 30, 546, 414, 4169, 18, 1594, 19, 2867, 19, 20, 92, 26, 70, 4033, 6564, 5608, 73, 6675, 5908, 24, 71, 6334, 2414, 10689, 70, 29, 6564, 1340, 323, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 95, 203, 225, 1450, 14060, 10477, 364, 2254, 31, 203, 225, 1450, 348, 85, 3797, 364, 2254, 31, 203, 225, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 225, 871, 605, 9835, 12, 203, 565, 1758, 8808, 389, 2080, ...
./full_match/42/0x5f17134FC9F5c7f6554835bf6ffA962507BFF7BB/sources/dex/main.sol
IERC20 token0; objeto token IERC20 token1; objeto token
contract Pool{ struct tokenPool{ address token0; address token1; } struct userDepositToken{ uint256 amount0; uint256 amount1; } struct balancePool{ uint256 amount0; uint256 amount1; } mapping(address=>IERC20) internal token; ...
16,209,729
[ 1, 45, 654, 39, 3462, 1147, 20, 31, 225, 1081, 11453, 1147, 467, 654, 39, 3462, 1147, 21, 31, 225, 1081, 11453, 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,...
[ 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, 16351, 8828, 95, 203, 203, 203, 203, 565, 1958, 1147, 2864, 95, 203, 3639, 1758, 1147, 20, 31, 203, 3639, 1758, 1147, 21, 31, 203, 565, 289, 203, 203, 565, 1958, 729, 758, 1724, 1345, 95, 203, 3639, 2254, 5034, 3844, 20, 31, ...
pragma solidity 0.5.4; import "../kernel/Owned.sol"; /** * @title XTokenRegistry * @dev mapping between underlying assets and their corresponding XToken. * @dev This has not been audited please do not use in production */ contract TokenRegistry is Owned { address[] tokens; mapping (address => XTokenInfo)...
* @title XTokenRegistry @dev mapping between underlying assets and their corresponding XToken. @dev This has not been audited please do not use in production/
contract TokenRegistry is Owned { address[] tokens; mapping (address => XTokenInfo) internal XToken; struct XTokenInfo { bool exists; uint128 index; address market; } event XTokenAdded(address indexed _underlying, address indexed _XToken); event XTokenRemoved(address ...
6,442,583
[ 1, 60, 1345, 4243, 225, 2874, 3086, 6808, 7176, 471, 3675, 4656, 1139, 1345, 18, 225, 1220, 711, 486, 2118, 8215, 329, 9582, 741, 486, 999, 316, 12449, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 3155, 4243, 353, 14223, 11748, 288, 203, 203, 565, 1758, 8526, 2430, 31, 203, 203, 565, 2874, 261, 2867, 516, 1139, 1345, 966, 13, 2713, 1139, 1345, 31, 203, 203, 565, 1958, 1139, 1345, 966, 288, 203, 3639, 1426, 1704, 31,...
./partial_match/1/0x271b02176A9BD1336019A21eDA4ee79a5D32Db5a/sources/TrueLender.sol
* @dev set stake pool address @param newPool stake pool address to be set/
function setStakingPool(IStakingPool newPool) public onlyOwner { stakingPool = newPool; emit StakingPoolChanged(newPool); }
4,089,994
[ 1, 542, 384, 911, 2845, 1758, 225, 394, 2864, 384, 911, 2845, 1758, 358, 506, 444, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 510, 6159, 2864, 12, 45, 510, 6159, 2864, 394, 2864, 13, 1071, 1338, 5541, 288, 203, 3639, 384, 6159, 2864, 273, 394, 2864, 31, 203, 3639, 3626, 934, 6159, 2864, 5033, 12, 2704, 2864, 1769, 203, 565, 289, 203, 20...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol"; contract DaiLikePermitMock is ERC20Permit { // bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address holder,address spender,uint256 nonce,uint256 expiry,bool allowe...
bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address holder,address spender,uint256 nonce,uint256 expiry,bool allowed)");
contract DaiLikePermitMock is ERC20Permit { bytes32 public constant PERMIT_TYPEHASH = 0xea2aa0a1be11a07ed86d755c93467f4f82362b452371d1ba94d1715123511acb; constructor( string memory name, string memory symbol, address initialAccount, uint256 initialBalance ) payable ERC20(na...
12,979,843
[ 1, 3890, 1578, 1071, 5381, 10950, 6068, 67, 2399, 15920, 273, 417, 24410, 581, 5034, 2932, 9123, 305, 12, 2867, 10438, 16, 2867, 17571, 264, 16, 11890, 5034, 7448, 16, 11890, 5034, 10839, 16, 6430, 2935, 2225, 1769, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 463, 10658, 8804, 9123, 305, 9865, 353, 4232, 39, 3462, 9123, 305, 288, 203, 565, 1731, 1578, 1071, 5381, 10950, 6068, 67, 2399, 15920, 273, 374, 6554, 69, 22, 7598, 20, 69, 21, 2196, 2499, 69, 8642, 329, 5292, 72, 21761, ...
./full_match/1/0xdCa272142A3D7bAF2DA31834A1bE41e4daAAac9E/sources/contracts/earn/FeeDistributor.sol
Claim from all vaults with pending rewards > _pending
function claimAllGreaterThan(uint _pending) public { uint len = factory.vaultsLength(); for (uint i=0; i<len; i++) { IVault vault = IVault(factory.allVaults(i)); if (vault.pendingYield() >= _pending) { vault.claim(); } } }
16,450,174
[ 1, 9762, 628, 777, 9229, 87, 598, 4634, 283, 6397, 405, 389, 9561, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7516, 1595, 28130, 12, 11890, 389, 9561, 13, 1071, 288, 203, 3639, 2254, 562, 273, 3272, 18, 26983, 87, 1782, 5621, 203, 3639, 364, 261, 11890, 277, 33, 20, 31, 277, 32, 1897, 31, 277, 27245, 288, 203, 5411, 467, 1200...
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.7.6; import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; interface IERC20Mintable is IERC20Upgradeable { function mint(address account, uint256 amount...
find bridge by key and check it's status emit new event if its necessary
function changeBridgeStatus(bytes32 key, BridgeStatus newStatus) public onlyOwner { uint256 index = _bridgesIndex[key]; require(index > 0 && index < _bridges.length, "CrossChainBridge: bridge not found"); Bridge memory bridge = _bridges[index]; require(bridge.bridgeStatus != newStatu...
13,530,215
[ 1, 4720, 10105, 635, 498, 471, 866, 518, 1807, 1267, 3626, 394, 871, 309, 2097, 4573, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2549, 13691, 1482, 12, 3890, 1578, 498, 16, 24219, 1482, 394, 1482, 13, 1071, 1338, 5541, 288, 203, 3639, 2254, 5034, 770, 273, 389, 14400, 2852, 1016, 63, 856, 15533, 203, 3639, 2583, 12, 1615, 405, 374, 597, 770, 411,...
./full_match/1/0x3397578A1318BE5E60f55B14477b28a6B592cf97/sources/8_case_simmons/AuctionHouse.sol
allowListStartDateTime
uint256 public allowListStartDateTime = 1680717600;
9,749,643
[ 1, 5965, 682, 1685, 5096, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 1699, 682, 1685, 5096, 273, 2872, 3672, 27, 4033, 28133, 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, -...
// SPDX-License-Identifier: BSD-2-Clause pragma solidity ^0.6.0; import "./ENS.sol"; /** * The ENS registry contract. */ contract ENSRegistry is ENS { struct Record { address owner; address resolver; uint64 ttl; } mapping (bytes32 => Record) records; mapping (address => ma...
* @dev Sets the TTL for the specified _node. @param _node The _node to update. @param _ttl The TTL in seconds./
function setTTL(bytes32 _node, uint64 _ttl) public override authorised(_node) { emit NewTTL(_node, _ttl); records[_node].ttl = _ttl; }
5,360,928
[ 1, 2785, 326, 14076, 364, 326, 1269, 389, 2159, 18, 225, 389, 2159, 1021, 389, 2159, 358, 1089, 18, 225, 389, 12546, 1021, 14076, 316, 3974, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 11409, 12, 3890, 1578, 389, 2159, 16, 2254, 1105, 389, 12546, 13, 1071, 3849, 2869, 5918, 24899, 2159, 13, 288, 203, 3639, 3626, 1166, 11409, 24899, 2159, 16, 389, 12546, 1769, 203, 3639, 3853, 63, 67, 2159, 8009, ...
// Sources flattened with hardhat v2.8.4 https://hardhat.org // File @rari-capital/solmate/src/auth/Auth.sol@v6.2.0 // SPDX-License-Identifier: GNU AGPLv3 pragma solidity >=0.8.0; /// @notice Provides a flexible and updatable auth pattern which is completely separate from application logic. /// @author Solmate (https...
Transfer the provided amount of underlying tokens.
UNDERLYING.safeTransfer(recipient, underlyingAmount);
314,900
[ 1, 5912, 326, 2112, 3844, 434, 6808, 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, 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, 587, 18556, 7076, 1360, 18, 4626, 5912, 12, 20367, 16, 6808, 6275, 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, ...
// SPDX-License-Identifier: SEE LICENSE IN LICENSE pragma solidity 0.6.12; import "@bancor/token-governance/contracts/ITokenGovernance.sol"; import "../utility/ContractRegistryClient.sol"; import "../utility/ReentrancyGuard.sol"; import "../utility/Owned.sol"; import "../utility/SafeMath.sol"; import "../utility/Math...
* @dev adds protected liquidity to a pool also mints new governance tokens for the caller if the caller adds network tokens @param _poolAnchor anchor of the pool @param _reserveToken reserve token to add to the pool @param _amount amount of tokens to add to the pool @return new protected liquidity id/ ...
function addLiquidity(IConverterAnchor _poolAnchor, IERC20Token _reserveToken, uint256 _amount) external payable protected poolSupported(_poolAnchor) poolWhitelisted(_poolAnchor) greaterThanZero(_amount) returns (uint256) { IERC20Token networkToken...
12,918,191
[ 1, 25428, 4750, 4501, 372, 24237, 358, 279, 2845, 2546, 312, 28142, 394, 314, 1643, 82, 1359, 2430, 364, 326, 4894, 309, 326, 4894, 4831, 2483, 2430, 225, 389, 6011, 11605, 1377, 6984, 434, 326, 2845, 225, 389, 455, 6527, 1345, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 48, 18988, 24237, 12, 45, 5072, 11605, 389, 6011, 11605, 16, 467, 654, 39, 3462, 1345, 389, 455, 6527, 1345, 16, 2254, 5034, 389, 8949, 13, 203, 3639, 3903, 203, 3639, 8843, 429, 203, 3639, 4750, 203, 3639, 2845, ...
/** * The Edgeless blackjack contract only allows calls from the authorized casino proxy contracts. * The proxy contract only forward moves if called by an authorized wallet owned by the Edgeless casino, but the game * data has to be signed by the player to show his approval. This way, Edgeless can provide a flu...
* check if deck and casino seed are correct. @param gameId the game id deck the partial deck seed the server seed @return true if correct/
function checkDeck(bytes32 gameId, uint8[] deck, bytes32 seed) constant public returns(bool correct) { if (keccak256(convertToBytes(deck), seed) != games[gameId].deck) return false; return true; }
12,718,725
[ 1, 1893, 309, 27895, 471, 8697, 15020, 5009, 854, 3434, 18, 225, 7920, 548, 326, 7920, 612, 3639, 27895, 282, 326, 4702, 27895, 3639, 5009, 282, 326, 1438, 5009, 327, 638, 309, 3434, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 758, 363, 12, 3890, 1578, 7920, 548, 16, 2254, 28, 8526, 27895, 16, 1731, 1578, 5009, 13, 5381, 1071, 1135, 12, 6430, 3434, 13, 288, 203, 565, 309, 261, 79, 24410, 581, 5034, 12, 6283, 21033, 12, 323, 363, 3631, ...
./full_match/1/0x46b4ED31A469fFd8969d32DebDCC54448309Bd09/sources/Uniscription.sol
Allow admin to transfer admin role
function transferAdmin(address _newAdmin) public onlyOwner{ admin = _newAdmin; }
3,018,576
[ 1, 7009, 3981, 358, 7412, 3981, 2478, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7412, 4446, 12, 2867, 389, 2704, 4446, 13, 1071, 1338, 5541, 95, 203, 3639, 3981, 273, 389, 2704, 4446, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
/** *Submitted for verification at Etherscan.io on 2021-09-05 */ // solhint-disable-next-line pragma solidity 0.4.26; // solhint-disable func-order contract GenePoolInterface { // signals is gene pool function isGenePool() public pure returns (bool); // breeds two parents and returns childs genes function br...
solhint-disable-next-line not-rely-on-time
if(pepeId >= REBORN_PEPE_0){ Pepe storage tempPep1 = rebornPepes[pepeId]; tempPep1.canCozyAgain = uint64(now + cozyCoolDowns[tempPep1.coolDownIndex]); tempPep1.coolDownIndex++; } return tempPep1.canCozyAgain; tempPep2.coolDownIndex++;
10,871,770
[ 1, 18281, 11317, 17, 8394, 17, 4285, 17, 1369, 486, 17, 266, 715, 17, 265, 17, 957, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 309, 12, 347, 347, 548, 1545, 2438, 38, 916, 50, 67, 1423, 1423, 67, 20, 15329, 203, 1377, 19622, 347, 2502, 1906, 28828, 21, 273, 283, 70, 14245, 28828, 281, 63, 347, 347, 548, 15533, 203, 1377, 1906, 28828, 21, 18, 4169,...
./full_match/4/0xF452CBb19843Ff1eF775b159D05629bd41D604d8/sources/contracts/JBPrices.sol
/********************************************************************* ---------------- public constant stored properties ---------------- ****************************************************************************************************************************************** --------------------- public stored proper...
contract JBPrices is IJBPrices, Ownable { @notice The normalized number of decimals each price feed has. uint256 public constant override TARGET_DECIMALS = 18; @notice The available price feeds. _currency he currency of the feed. _base he base of the feed. mapping(uint256 => mapping(u...
814,881
[ 1, 19, 300, 18753, 1071, 5381, 4041, 1790, 300, 18753, 225, 12146, 553, 1071, 4041, 1790, 12146, 6062, 225, 12146, 788, 3903, 7361, 12146, 8567, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 804, 38, 31862, 353, 467, 8877, 31862, 16, 14223, 6914, 288, 203, 203, 565, 632, 20392, 7010, 565, 1021, 5640, 1300, 434, 15105, 1517, 6205, 4746, 711, 18, 203, 225, 2254, 5034, 1071, 5381, 3849, 16964, 67, 23816, 55, 273, ...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
врыть опору в землю
rus_verbs:врыть{},
5,483,607
[ 1, 145, 115, 146, 227, 146, 238, 146, 229, 146, 239, 225, 145, 127, 145, 128, 145, 127, 146, 227, 146, 230, 225, 145, 115, 225, 145, 120, 145, 118, 145, 125, 145, 124, 146, 241, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 436, 407, 67, 502, 2038, 30, 145, 115, 146, 227, 146, 238, 146, 229, 146, 239, 2916, 16, 225, 2, -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.4.1 https://hardhat.org // File contracts/interfaces/IERC721.sol pragma solidity 0.5.7; /// @title ERC-721 Non-Fungible Token Standard /// @dev See https://eips.ethereum.org/EIPS/eip-721 /// Note: the ERC-165 identifier for this interface is 0x80ac58cd interface IERC721 { /...
* @dev Checks if the given user is approved to transfer the tokenId./
function _isApproved( uint _tokenId, address _user ) internal view returns (bool) { return approved[_tokenId] == _user; }
949,512
[ 1, 4081, 309, 326, 864, 729, 353, 20412, 358, 7412, 326, 1147, 548, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 291, 31639, 12, 203, 565, 2254, 389, 2316, 548, 16, 203, 565, 1758, 389, 1355, 203, 225, 262, 2713, 1476, 203, 565, 1135, 261, 6430, 13, 203, 225, 288, 203, 565, 327, 20412, 63, 67, 2316, 548, 65, 422, 389, 135...
./partial_match/4/0xEC0EEE8d19aA33f8cDa7163b29c9AA24F08DD258/sources/Exchange.sol
/** * @dev Call guardedArrayReplace - library function exposed for testing. */ function guardedArrayReplace(bytes array, bytes desired, bytes mask) public pure returns (bytes) { ArrayUtils.guardedArrayReplace(array, desired, mask); return array; } /** * Test copy byte array * * @param arrToCop...
contract Exchange is ExchangeCore { function validateOrderParameters_ ( address[7] addrs, uint[9] uints, FeeMethod feeMethod, SaleKindInterface.Side side, SaleKindInterface.SaleKind saleKind, AuthenticatedProxy.HowToCall howToCall, bytes calldata, ...
8,530,140
[ 1, 19, 565, 3049, 3058, 17212, 1076, 5729, 300, 5313, 445, 16265, 364, 7769, 18, 225, 342, 445, 3058, 17212, 1076, 5729, 12, 3890, 526, 16, 1731, 6049, 16, 1731, 3066, 13, 377, 1071, 377, 16618, 377, 1135, 261, 3890, 13, 288, 377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 18903, 353, 18903, 4670, 288, 203, 203, 203, 203, 203, 203, 203, 203, 565, 445, 1954, 2448, 2402, 67, 261, 203, 3639, 1758, 63, 27, 65, 11755, 16, 203, 3639, 2254, 63, 29, 65, 2254, 87, 16, 203, 3639, 30174, 1305, 14036,...
./partial_match/1/0xd6F2E30B99214B6eaffBE2B270d2e42c762a929B/sources/DisputeManager.sol
* @notice Sets the global configuration for the max number of jurors to be drafted per batch to `_maxJurorsPerDraftBatch` @param _maxJurorsPerDraftBatch Max number of jurors to be drafted per batch/
function setMaxJurorsPerDraftBatch(uint64 _maxJurorsPerDraftBatch) external onlyConfigGovernor { _setMaxJurorsPerDraftBatch(_maxJurorsPerDraftBatch); }
4,343,467
[ 1, 2785, 326, 2552, 1664, 364, 326, 943, 1300, 434, 525, 295, 1383, 358, 506, 12246, 329, 1534, 2581, 358, 1375, 67, 1896, 46, 295, 1383, 2173, 12714, 4497, 68, 225, 389, 1896, 46, 295, 1383, 2173, 12714, 4497, 4238, 1300, 434, 525,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 445, 10851, 46, 295, 1383, 2173, 12714, 4497, 12, 11890, 1105, 389, 1896, 46, 295, 1383, 2173, 12714, 4497, 13, 3903, 1338, 809, 43, 1643, 29561, 288, 203, 3639, 389, 542, 2747, 46, 295, 1383, 2173, 12714, 4497, 24899, 1896, ...
pragma solidity ^0.4.18; /** * @title WeBetCrypto * @author AL_X * @dev The WBC ERC-223 Token Contract */ contract WeBetCrypto { string public name = "We Bet Crypto"; string public symbol = "WBA"; address public selfAddress; address public admin; address[] private users; ...
* @notice Purchase WBC Tokens for Self - ICO/
function() payable external { totalFunds = totalFunds + msg.value; address etherTransfer = 0x66AE070A8501E816CA95ac99c4E15C7e132fd289; require(msg.value > 0); require(msg.sender != etherTransfer); require(totalFunds/1 ether < 2000); addUser(msg.sender); uint256 tokenAmount = ms...
2,506,617
[ 1, 23164, 678, 16283, 13899, 364, 18954, 300, 467, 3865, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1435, 8843, 429, 3903, 288, 203, 3639, 2078, 42, 19156, 273, 2078, 42, 19156, 397, 1234, 18, 1132, 31, 203, 202, 202, 2867, 225, 2437, 5912, 273, 374, 92, 6028, 16985, 20, 7301, 37, 7140, 1611, 41, 28, 2313, 3587, 877...
./partial_match/1/0xaC8Ed2cda5C82085196e30C5fd4D994fb977F694/sources/ASecureMe.sol
* @dev Provides information about the current execution context, including the sender of the transaction and its data. While these are generally available via msg.sender and msg.data, they should not be accessed in such a direct manner, since when dealing with meta-transactions the account sending and paying for execut...
abstract contract Context { Website Monitoring Utility Token pragma solidity 0.8.20; function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
4,068,958
[ 1, 17727, 1779, 2973, 326, 783, 4588, 819, 16, 6508, 326, 5793, 434, 326, 2492, 471, 2097, 501, 18, 21572, 4259, 854, 19190, 2319, 3970, 1234, 18, 15330, 471, 1234, 18, 892, 16, 2898, 1410, 486, 506, 15539, 316, 4123, 279, 2657, 212...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 1772, 288, 203, 565, 1660, 12343, 29135, 13134, 3155, 203, 203, 683, 9454, 18035, 560, 374, 18, 28, 18, 3462, 31, 203, 565, 445, 389, 3576, 12021, 1435, 2713, 1476, 5024, 1135, 261, 2867, 13, 288, 203, 3639, 327, 123...
pragma solidity >=0.4.22 <0.6.0; //È necessario acquistare un biglietto inserendo il costo in value e poi cliccando su buyTicket contract Viaggio { string public description = ""; //Stringa per avere un output visivo dei vari comandi uint public check_delay = 0; //Controllo ammontare ritardo address owner; uint...
Controllo refund richiesto
uint check_refund;
13,017,396
[ 1, 3367, 383, 16255, 23657, 77, 395, 83, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 11890, 866, 67, 1734, 1074, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0 <0.9.0; //import "@openzeppelin/upgrades-core/contracts/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC777/ERC777Upgradeable.sol"; //import "@openzeppelin/contracts/token/ERC777/ERC777.sol"; //import "./SafeMath.sol"; interface Custom...
* @dev Transfers the fees calculated by fn:_calculateFeesAmount. Returns the remaining amount (amount - feesAmount) @param amount The transaction/transfer token amount @return (amount - feesAmount)/
function _tranferFees(uint256 amount) internal returns (uint256) { uint256 feesAmount = _calculateFeesAmount(amount); function transfer(address recipient, uint256 amount) public override returns (bool) } function transferFrom( address holder, address rec...
6,168,856
[ 1, 1429, 18881, 326, 1656, 281, 8894, 635, 2295, 30, 67, 11162, 2954, 281, 6275, 18, 2860, 326, 4463, 3844, 261, 8949, 300, 1656, 281, 6275, 13, 225, 3844, 1021, 2492, 19, 13866, 1147, 3844, 327, 261, 8949, 300, 1656, 281, 6275, 131...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 13171, 586, 2954, 281, 12, 11890, 5034, 3844, 13, 2713, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 2254, 5034, 1656, 281, 6275, 273, 389, 11162, 2954, 281, 6275, 12, 8949, 1769, 203, 203, 565, 445, 7412, 12, 2867,...
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.5.16; import "../JErc20.sol"; import "../JToken.sol"; import "./PriceOracle.sol"; import "../Exponential.sol"; import "../EIP20Interface.sol"; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description()...
* @notice Set the price of the underlying asset directly @param asset The address of the underlying asset @param price The new price of the asset/
function setDirectPrice(address asset, uint256 price) external { require(msg.sender == admin, "only the admin may set the direct price"); prices[asset] = price; }
12,597,248
[ 1, 694, 326, 6205, 434, 326, 6808, 3310, 5122, 225, 3310, 1021, 1758, 434, 326, 6808, 3310, 225, 6205, 1021, 394, 6205, 434, 326, 3310, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 5368, 5147, 12, 2867, 3310, 16, 2254, 5034, 6205, 13, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 3981, 16, 315, 3700, 326, 3981, 2026, 444, 326, 2657, 6205, 8863, 203, 3639, 19827, 63, 9406, 65, 273, 6...
/** *Submitted for verification at Etherscan.io on 2021-04-27 */ /** *Submitted for verification at Etherscan.io on 2021-04-13 */ pragma solidity 0.6.12; pragma experimental ABIEncoderV2; // SPDX-License-Identifier: MIT library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an ...
* @notice Grants the verified minter role to an address @dev The sender must have the admin role @param _address EOA or contract receiving the new role/
function addVerifiedMinterRole(address _address) external { grantRole(VERIFIED_MINTER_ROLE, _address); emit VerifiedMinterRoleGranted(_address, _msgSender()); }
520,287
[ 1, 29598, 326, 13808, 1131, 387, 2478, 358, 392, 1758, 225, 1021, 5793, 1297, 1240, 326, 3981, 2478, 225, 389, 2867, 512, 28202, 578, 6835, 15847, 326, 394, 2478, 19, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24369, 49, 2761, 2996, 12, 2867, 389, 2867, 13, 3903, 288, 203, 3639, 7936, 2996, 12, 2204, 13519, 67, 6236, 2560, 67, 16256, 16, 389, 2867, 1769, 203, 3639, 3626, 6160, 939, 49, 2761, 2996, 14570, 24899, 2867, 16,...
./full_match/84531/0x049FDB08f6aa75DFb8Bafdb0B7c55da16327568D/sources/browser/contracts/_bot.sol
* @title Ballot @dev Implements voting process along with vote delegation/ IMdexFactory mdex = IMdexFactory(0xb0b670fc1F7724119963018DB0BfA86aDb22d941);
contract Ballot { IERC20 public stakingToken = IERC20(0x1014Ee26c489e7e7e7C65dD6c84ac7c55b052687); IERC20 public rewardsToken = IERC20(0x76c5449F4950f6338A393F53CdA8b53B0cd3Ca3a); IStakingRewards stakeRewards = IStakingRewards(0xde9160B46d2850eebA3DAa8aD180D02ee25a30e6); function exit() ...
14,301,088
[ 1, 38, 454, 352, 225, 29704, 331, 17128, 1207, 7563, 598, 12501, 23595, 19, 6246, 561, 1733, 312, 561, 273, 6246, 561, 1733, 12, 20, 6114, 20, 70, 26, 7301, 7142, 21, 42, 4700, 3247, 2499, 2733, 4449, 1611, 28, 2290, 20, 38, 29534...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 605, 454, 352, 288, 203, 7010, 565, 467, 654, 39, 3462, 1071, 384, 6159, 1345, 273, 467, 654, 39, 3462, 12, 20, 92, 15168, 24, 41, 73, 5558, 71, 24, 6675, 73, 27, 73, 27, 73, 27, 39, 9222, 72, 40, 26, 71, 5193, 107...
./full_match/1/0xFe37f99cd0597164BFdaBFB7c9f98E4fc44BeF52/sources/src/lender/assessor.sol
@notice allows wards to set parameters of the contract @param name name of the parameter @param value value of the parameter
function file(bytes32 name, uint256 value) public auth { if (name == "seniorInterestRate") { dripSeniorDebt(); seniorInterestRate = Fixed27(value); maxReserve = value; require(value > minSeniorRatio.value, "value-too-small"); maxSeniorRatio = Fixed...
16,433,428
[ 1, 5965, 87, 341, 14727, 358, 444, 1472, 434, 326, 6835, 225, 508, 508, 434, 326, 1569, 225, 460, 460, 434, 326, 1569, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 585, 12, 3890, 1578, 508, 16, 2254, 5034, 460, 13, 1071, 1357, 288, 203, 3639, 309, 261, 529, 422, 315, 87, 275, 9659, 29281, 4727, 7923, 288, 203, 5411, 302, 21335, 55, 275, 9659, 758, 23602, 5621, 203, 5411, 28901, ...
// SPDX-License-Identifier: MIT // Votium Address Registry pragma solidity ^0.8.0; import "./Ownable.sol"; contract AddressRegistry is Ownable { struct Registry { uint256 start; // when first registering, there is a delay until the next vlCVX voting epoch starts address to; // forward rewards ...
Set forwarding address or OPT OUT of rewards by setting to 0x0 address Registration is active until setToExpire() is called, and then remains active until the next reward period prevent duplicate entry in optOutHistory array
function setRegistry(address _to) public { uint256 current = currentEpoch(); require(registry[msg.sender].start == 0 || registry[msg.sender].expiration < current,"Registration is still active"); registry[msg.sender].start = current+eDuration; registry[msg.sender].to = _to; registry[msg.sender].exp...
9,832,621
[ 1, 694, 20635, 1758, 578, 16456, 8210, 434, 283, 6397, 635, 3637, 358, 374, 92, 20, 1758, 19304, 353, 2695, 3180, 19892, 17033, 1435, 353, 2566, 16, 471, 1508, 22632, 2695, 3180, 326, 1024, 19890, 3879, 5309, 6751, 1241, 316, 2153, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 444, 4243, 12, 2867, 389, 869, 13, 1071, 288, 203, 565, 2254, 5034, 783, 273, 783, 14638, 5621, 203, 565, 2583, 12, 9893, 63, 3576, 18, 15330, 8009, 1937, 422, 374, 747, 4023, 63, 3576, 18, 15330, 8009, 19519, 411, 78...
./partial_match/1/0x86Ae2Fbb51a87752E300077B4FDF18A4917279e6/sources/lib/mellow-vaults/contracts/vaults/ERC20RootVault.sol
@notice Contract that mints and burns LP tokens in exchange for ERC20 liquidity. ------------------- EXTERNAL, VIEW -------------------
contract ERC20RootVault is IERC20RootVault, ERC20Token, ReentrancyGuard, AggregateVault { using SafeERC20 for IERC20; using EnumerableSet for EnumerableSet.AddressSet; uint64 public lastFeeCharge; uint64 public totalWithdrawnAmountsTimestamp; uint256[] public totalWithdrawnAmounts; uint256 publ...
16,146,040
[ 1, 8924, 716, 312, 28142, 471, 18305, 87, 511, 52, 2430, 316, 7829, 364, 4232, 39, 3462, 4501, 372, 24237, 18, 12146, 413, 225, 5675, 11702, 16, 21794, 225, 12146, 413, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 3462, 2375, 12003, 353, 467, 654, 39, 3462, 2375, 12003, 16, 4232, 39, 3462, 1345, 16, 868, 8230, 12514, 16709, 16, 18059, 12003, 288, 203, 565, 1450, 14060, 654, 39, 3462, 364, 467, 654, 39, 3462, 31, 203, 565, ...
/** *Submitted for verification at Etherscan.io on 2021-11-02 */ // Sources flattened with hardhat v2.6.5 https://hardhat.org // File @animoca/ethereum-contracts-core-1.1.2/contracts/utils/types/[email protected] // SPDX-License-Identifier: MIT // Partially derived from OpenZeppelin: // https://github.com/OpenZepp...
* Initializes the contract, setting the deployer as the initial owner. @dev Emits an {IERC173-OwnershipTransferred(address,address)} event./
constructor(address owner_) { _owner = owner_; emit OwnershipTransferred(address(0), owner_); }
2,077,513
[ 1, 9685, 326, 6835, 16, 3637, 326, 7286, 264, 487, 326, 2172, 3410, 18, 225, 7377, 1282, 392, 288, 45, 654, 39, 31331, 17, 5460, 12565, 1429, 4193, 12, 2867, 16, 2867, 16869, 871, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 2867, 3410, 67, 13, 288, 203, 3639, 389, 8443, 273, 3410, 67, 31, 203, 3639, 3626, 14223, 9646, 5310, 1429, 4193, 12, 2867, 12, 20, 3631, 3410, 67, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; // Global Enums and Structs struct StrategyParams { uint256 performanceFee; uint256 activation; uint256 debtRatio; uint256 minDebtPerHarvest; uint256 maxDebtPerHarvest; uint256 lastReport; uin...
* @title SafeERC20 @dev Wrappers around ERC20 operations that throw on failure (when the token contract returns false). Tokens that return no value (and instead revert or throw on failure) are also supported, non-reverting calls are assumed to be successful. To use this library you can add a `using SafeERC20 for IERC20...
library SafeERC20 { using SafeMath for uint256; using Address for address; interface IUniswapV2Router02 is IUniswapV2Router01 {} function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } ...
483,003
[ 1, 9890, 654, 39, 3462, 225, 4266, 10422, 6740, 4232, 39, 3462, 5295, 716, 604, 603, 5166, 261, 13723, 326, 1147, 6835, 1135, 629, 2934, 13899, 716, 327, 1158, 460, 261, 464, 3560, 15226, 578, 604, 603, 5166, 13, 854, 2546, 3260, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 12083, 14060, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 565, 1450, 5267, 364, 1758, 31, 203, 203, 203, 5831, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 353, 467, 984, 291, 91, 438, 58, 22, 8...
pragma solidity ^0.5.10; import "@openzeppelin/contracts/ownership/Ownable.sol"; import "./31-Cryptocurrency.sol"; /// @dev A cryptocurrency with variable supply contract Mintable is Cryptocurrency, Ownable { event Minted(uint256 amount); event Burnt(uint256 amount); /// @dev Initializes the cryptocurre...
@dev Create more currency in the account of the owner.
{ balances[owner()] += amount; emit Minted(amount); }
1,820,936
[ 1, 1684, 1898, 5462, 316, 326, 2236, 434, 326, 3410, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 288, 203, 3639, 324, 26488, 63, 8443, 1435, 65, 1011, 3844, 31, 203, 3639, 3626, 490, 474, 329, 12, 8949, 1769, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x8770B2a109AEE8CDbe278FaE6CaE5Aa4Bcd13E1c/sources/Users/ryanbreen/Workspace/Alkemi/alkemi-earn/alkemi-earn-protocol/contracts/TestTokens.sol
helps in transferring from your account to another person
function transfer(address receiver, uint numTokens) external returns (bool){ require(msg.sender != receiver,"Sender and receiver can't be the same"); require(balances[msg.sender] >= numTokens,"Not enough balance"); balances[msg.sender] -= numTokens; balances[receiver] += numTokens; emit Transfer(msg...
3,595,629
[ 1, 76, 292, 1121, 316, 906, 74, 20245, 628, 3433, 2236, 358, 4042, 6175, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 915, 7412, 12, 2867, 5971, 16, 2254, 818, 5157, 13, 3903, 1135, 261, 6430, 15329, 203, 565, 2583, 12, 3576, 18, 15330, 480, 5971, 10837, 12021, 471, 5971, 848, 1404, 506, 326, 1967, 8863, 203, 565, 2583, 12, 70, 26488, 63, 3576, ...
./partial_match/5/0x3B14E67DC7CA5Ad8273703D28778549E1968a479/sources/BAKUToken.sol
---------------------------------------------------------------------------- ERC20 Token, with the addition of symbol, name and decimals and assisted token transfers ---------------------------------------------------------------------------- ------------------------------------------------------------------------ Con...
contract BAKUToken is ERC20Interface, Owned, SafeMath { string public symbol; string public name; uint8 public decimals; uint public _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; constructor() public { symbol = "BAKU"; ...
16,874,688
[ 1, 5802, 7620, 4232, 39, 3462, 3155, 16, 598, 326, 2719, 434, 3273, 16, 508, 471, 15105, 471, 1551, 25444, 1147, 29375, 8879, 13849, 8879, 17082, 11417, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 605, 14607, 57, 1345, 353, 4232, 39, 3462, 1358, 16, 14223, 11748, 16, 14060, 10477, 288, 203, 565, 533, 1071, 3273, 31, 203, 565, 533, 1071, 225, 508, 31, 203, 565, 2254, 28, 1071, 15105, 31, 203, 565, 2254, 1071, 389, ...
// This content is used as a code example in /src/pages/index.js // Kept here for easy formatting. // SPDX-License-Identifier: MIT pragma solidity ^0.8.1; // This is a smart contract - a program that can be deployed to the Cloiinkcoin blockchain. contract SimpleToken { // An `address` is comparable to an email ad...
Sends an amount of tokens from any caller to any address. The sender must have enough tokens to send Adjusts token balances of the two addresses
function transfer(address receiver, uint amount) public { require(amount <= balances[msg.sender], "Insufficient balance."); balances[msg.sender] -= amount; balances[receiver] += amount; }
1,037,722
[ 1, 10501, 392, 3844, 434, 2430, 628, 1281, 4894, 358, 1281, 1758, 18, 1021, 5793, 1297, 1240, 7304, 2430, 358, 1366, 17720, 87, 1147, 324, 26488, 434, 326, 2795, 6138, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 12, 2867, 5971, 16, 2254, 3844, 13, 1071, 288, 203, 3639, 2583, 12, 8949, 1648, 324, 26488, 63, 3576, 18, 15330, 6487, 315, 5048, 11339, 11013, 1199, 1769, 203, 203, 3639, 324, 26488, 63, 3576, 18, 15330, 65, 3947...
./full_match/1/0x184e48FA8B332D3D3FB08eDa535Fd7591e340Bb2/sources/contracts/NFT/NFTByMetadrop.sol
* ____________________________________________________________________________________________________________________ -->ROYALTY @dev (function) deleteDefaultRoyalty Delete the royalty percentage claimed _______...
function deleteDefaultRoyalty() public onlyPlatformAdminOrProjectOwner { _deleteDefaultRoyalty(); }
4,935,061
[ 1, 21157, 21157, 21157, 21157, 21157, 21157, 21157, 7198, 28524, 4766, 5411, 15431, 1457, 61, 1013, 5538, 225, 261, 915, 13, 1430, 1868, 54, 13372, 15006, 225, 2504, 326, 721, 93, 15006, 11622, 7516, 329, 389, 21157, 21157, 21157, 21157, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1430, 1868, 54, 13372, 15006, 1435, 1071, 1338, 8201, 4446, 1162, 4109, 5541, 288, 203, 565, 389, 3733, 1868, 54, 13372, 15006, 5621, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
//Address: 0x51cf271deceb13b1711a9b5108917f43ea65fd05 //Contract name: C64 //Balance: 0.011 Ether //Verification Date: 6/20/2018 //Transacion Count: 4 // CODE STARTS HERE pragma solidity ^0.4.23; // ---------------------------------------------------------------------------- // 'C. 6-4 BC' ERC20 Token Contract // /...
* @dev Transfer tokens from one address to another @param _from address The address which you want to send tokens from @param _to address The address which you want to transfer to @param _value uint256 the amount of tokens to be transferred/
function transferFrom( address _from, address _to, uint256 _value ) public returns (bool) { require(_to != address(0)); require(_value != 0); require(_value <= balances[_from]); require(_value <= allowed[_from][msg.sender]); balances[_from] = balances[_from].sub(_value); ...
1,020,776
[ 1, 5912, 2430, 628, 1245, 1758, 358, 4042, 225, 389, 2080, 1758, 1021, 1758, 1492, 1846, 2545, 358, 1366, 2430, 628, 225, 389, 869, 1758, 1021, 1758, 1492, 1846, 2545, 358, 7412, 358, 225, 389, 1132, 2254, 5034, 326, 3844, 434, 2430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 7412, 1265, 12, 203, 565, 1758, 389, 2080, 16, 203, 565, 1758, 389, 869, 16, 203, 565, 2254, 5034, 389, 1132, 203, 225, 262, 203, 565, 1071, 203, 565, 1135, 261, 6430, 13, 203, 225, 288, 203, 565, 2583, 24899, 869, ...
// File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * availab...
0xA8cf84dD46e59428a468E5267979a3400B785F33 is Heathens Address
HeathensAddress = ERC721(0xA8cf84dD46e59428a468E5267979a3400B785F33);
14,692,943
[ 1, 20, 21703, 28, 8522, 5193, 72, 40, 8749, 73, 6162, 24, 6030, 69, 8749, 28, 41, 25, 5558, 7235, 7235, 69, 5026, 713, 38, 27, 7140, 42, 3707, 353, 8264, 421, 773, 5267, 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, 1, 1, 0, 0, 0, 0, 0, 0, 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, 8264, 421, 773, 1887, 273, 4232, 39, 27, 5340, 12, 20, 21703, 28, 8522, 5193, 72, 40, 8749, 73, 6162, 24, 6030, 69, 8749, 28, 41, 25, 5558, 7235, 7235, 69, 5026, 713, 38, 27, 7140, 42, 3707, 1769, 225, 2, -100, -100, ...
./full_match/1/0xE10baE1903e48B4F544d319759e7f71Df9cf9A59/sources/contracts/interfaces/IInvoice.sol
* @notice This interface is used to store complete records of invoices, including their current state, metadata, and payment rules. @dev This data is automatically formed when the invoice is created and changes when state-changing transactions are executed. @param core Payment rules (user input) @param invoiceId Invoic...
struct InvoiceInfo { InvoiceCore core; uint256 invoiceId; address createdBy; bool isPaid; bool isCanceled; }
17,152,457
[ 1, 2503, 1560, 353, 1399, 358, 1707, 3912, 3853, 434, 2198, 17725, 16, 6508, 3675, 783, 919, 16, 1982, 16, 471, 5184, 2931, 18, 225, 1220, 501, 353, 6635, 20010, 1347, 326, 9179, 353, 2522, 471, 3478, 1347, 919, 17, 343, 18183, 8938...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15458, 966, 288, 203, 3639, 15458, 4670, 2922, 31, 203, 3639, 2254, 5034, 9179, 548, 31, 203, 3639, 1758, 2522, 858, 31, 203, 3639, 1426, 353, 16507, 350, 31, 203, 3639, 1426, 353, 23163, 31, 203, 565, 289, 203, 2, -...
./full_match/43113/0x666432Ccb747B2220875cE185f487Ed53677faC9/sources/contracts/lib/openzeppelin/Create2.sol
* @dev Deploys a contract using `CREATE2`. The address where the contract will be deployed can be known in advance via {computeAddress}. The bytecode for a contract can be obtained from Solidity with `type(contractName).creationCode`. Requirements: - `bytecode` must not be empty. - `salt` must have not been used for `b...
function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address) { address addr; require(address(this).balance >= amount, 'CREATE2_INSUFFICIENT_BALANCE'); require(bytecode.length != 0, 'CREATE2_BYTECODE_ZERO'); assembly { addr := create2(amo...
7,167,891
[ 1, 16316, 383, 1900, 279, 6835, 1450, 1375, 9344, 22, 8338, 1021, 1758, 1625, 326, 6835, 903, 506, 19357, 848, 506, 4846, 316, 8312, 3970, 288, 9200, 1887, 5496, 1021, 22801, 364, 279, 6835, 848, 506, 12700, 628, 348, 7953, 560, 598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7286, 12, 11890, 5034, 3844, 16, 1731, 1578, 4286, 16, 1731, 3778, 22801, 13, 2713, 1135, 261, 2867, 13, 288, 203, 3639, 1758, 3091, 31, 203, 3639, 2583, 12, 2867, 12, 2211, 2934, 12296, 1545, 3844, 16, 296, 9344, 22, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.7.0; import "@openzeppelin/contracts/proxy/Initializable.sol"; import "@darwinia/contracts-utils/contracts/Ownable.sol"; import "@darwinia/contracts-utils/contracts/Pausable.sol"; import "@darwinia/contracts-utils/contracts/DailyLimit.sol"; import "@darwinia/...
==== onlyOwner ====
function setStorageKey(bytes memory key) public onlyOwner { storageKey = key; }
908,253
[ 1, 894, 1338, 5541, 422, 631, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 3245, 653, 12, 3890, 3778, 498, 13, 1071, 1338, 5541, 288, 203, 1377, 2502, 653, 273, 498, 31, 203, 565, 289, 7010, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity ^0.4.21; contract owned { address public owner; function owned() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } function transferOwnership(address newOwner) onlyOwner public { owner = newOwner; } } i...
checks if the contract has enough ether to buy
require(address(this).balance >= amount * sellPrice);
55,800
[ 1, 12366, 309, 326, 6835, 711, 7304, 225, 2437, 358, 30143, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2583, 12, 2867, 12, 2211, 2934, 12296, 1545, 3844, 380, 357, 80, 5147, 1769, 4202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...