More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 198 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 15190099 | 781 days ago | IN | 0 ETH | 0.00092792 | ||||
Withdraw | 14646727 | 870 days ago | IN | 0 ETH | 0.0020531 | ||||
Withdraw | 14480533 | 896 days ago | IN | 0 ETH | 0.00396135 | ||||
Claim Reward | 14441594 | 902 days ago | IN | 0 ETH | 0.00199398 | ||||
Withdraw | 14412577 | 907 days ago | IN | 0 ETH | 0.00358684 | ||||
Claim Reward | 14412430 | 907 days ago | IN | 0 ETH | 0.00374126 | ||||
Withdraw | 14368901 | 913 days ago | IN | 0 ETH | 0.00168147 | ||||
Withdraw | 14360107 | 915 days ago | IN | 0 ETH | 0.00595997 | ||||
Withdraw | 14326375 | 920 days ago | IN | 0 ETH | 0.00194619 | ||||
Claim Reward | 14326367 | 920 days ago | IN | 0 ETH | 0.00253534 | ||||
Withdraw | 14325235 | 920 days ago | IN | 0 ETH | 0.00207289 | ||||
Claim Reward | 14325203 | 920 days ago | IN | 0 ETH | 0.0023591 | ||||
Withdraw | 14316535 | 921 days ago | IN | 0 ETH | 0.00525741 | ||||
Withdraw | 14231394 | 935 days ago | IN | 0 ETH | 0.0157981 | ||||
Claim Reward | 14231100 | 935 days ago | IN | 0 ETH | 0.01234112 | ||||
Withdraw | 14218892 | 937 days ago | IN | 0 ETH | 0.00751852 | ||||
Claim Reward | 14218761 | 937 days ago | IN | 0 ETH | 0.00593309 | ||||
Withdraw | 14215945 | 937 days ago | IN | 0 ETH | 0.010695 | ||||
Withdraw | 14215724 | 937 days ago | IN | 0 ETH | 0.00584429 | ||||
Withdraw | 14205840 | 939 days ago | IN | 0 ETH | 0.01671542 | ||||
Withdraw | 14203615 | 939 days ago | IN | 0 ETH | 0.00333807 | ||||
Claim Reward | 14201172 | 939 days ago | IN | 0 ETH | 0.00510995 | ||||
Claim Reward | 14201072 | 939 days ago | IN | 0 ETH | 0.00442514 | ||||
Withdraw | 14200154 | 939 days ago | IN | 0 ETH | 0.00807 | ||||
Claim Reward | 14198624 | 940 days ago | IN | 0 ETH | 0.0063845 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
LiquidityMining
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 600 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//"SPDX-License-Identifier: MIT" pragma solidity 0.8.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract LiquidityMining is Ownable { using SafeERC20 for IERC20; uint256 constant DECIMALS = 18; uint256 constant UNITS = 10**DECIMALS; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. uint256 rewardDebtAtBlock; // the last block user stake } // Info of each pool. struct PoolInfo { IERC20 token; // Address of LP token contract. uint256 tokenPerBlock; // tokens to distribute per block. There are aprox. 6500 blocks per day. 6500 * 1825 (5 years) = 11862500 total blocks. 600000000 token to be distributed in 11862500 = 50,579557428872497 token per block. uint256 lastRewardBlock; // Last block number that token distribution occurs. uint256 acctokenPerShare; // Accumulated tokens per share, times 1e18 (UNITS). uint256 waitForWithdraw; // Spent tokens until now, even if they are not withdrawn. } IERC20 public tokenToken; address public tokenLiquidityMiningWallet; // The block number when token mining starts. uint256 public START_BLOCK; // Info of each pool. PoolInfo[] public poolInfo; // tokenToPoolId mapping(address => uint256) public tokenToPoolId; // Info of each user that stakes LP tokens. pid => user address => info mapping(uint256 => mapping(address => UserInfo)) public userInfo; event Deposit(address indexed user, uint256 indexed poolId, uint256 amount); event Withdraw( address indexed user, uint256 indexed poolId, uint256 amount ); event EmergencyWithdraw( address indexed user, uint256 indexed poolId, uint256 amount ); event SendTokenReward( address indexed user, uint256 indexed poolId, uint256 amount ); event TokenPerBlockSet(uint256 amount); constructor( address _tokenAddress, address _tokenLiquidityMiningWallet, uint256 _startBlock ) public { require(_tokenAddress != address(0), "Token address should not be 0"); require(_tokenLiquidityMiningWallet != address(0), "TokenLiquidityMiningWallet address should not be 0"); tokenToken = IERC20(_tokenAddress); tokenLiquidityMiningWallet = _tokenLiquidityMiningWallet; START_BLOCK = _startBlock; } /********************** PUBLIC ********************************/ // Add a new erc20 token to the pool. Can only be called by the owner. function add( uint256 _tokenPerBlock, IERC20 _token, bool _withUpdate ) external onlyOwner { require( tokenToPoolId[address(_token)] == 0, "Token is already in pool" ); if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock = block.number > START_BLOCK ? block.number : START_BLOCK; tokenToPoolId[address(_token)] = poolInfo.length + 1; poolInfo.push( PoolInfo({ token: _token, tokenPerBlock: _tokenPerBlock, lastRewardBlock: lastRewardBlock, acctokenPerShare: 0, waitForWithdraw: 0 }) ); } // Update the given pool's token allocation point. Can only be called by the owner. function set( uint256 _poolId, uint256 _tokenPerBlock, bool _withUpdate ) external onlyOwner { if (_withUpdate) { massUpdatePools(); } poolInfo[_poolId].tokenPerBlock = _tokenPerBlock; emit TokenPerBlockSet(_tokenPerBlock); } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 poolId = 0; poolId < length; ++poolId) { updatePool(poolId); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _poolId) public { PoolInfo storage pool = poolInfo[_poolId]; // Return if it's too early (if START_BLOCK is in the future probably) if (block.number <= pool.lastRewardBlock) return; // Retrieve amount of tokens held in contract uint256 poolBalance = pool.token.balanceOf(address(this)); // If the contract holds no tokens at all, don't proceed. if (poolBalance == 0) { pool.lastRewardBlock = block.number; return; } // Calculate the amount of token to send to the contract to pay out for this pool uint256 rewards = getPoolReward( pool.lastRewardBlock, block.number, pool.tokenPerBlock, pool.waitForWithdraw ); pool.waitForWithdraw += rewards; // Update the accumulated tokenPerShare pool.acctokenPerShare = pool.acctokenPerShare + (rewards * UNITS/poolBalance); // Update the last block pool.lastRewardBlock = block.number; } // Get rewards for a specific amount of tokenPerBlocks function getPoolReward( uint256 _from, uint256 _to, uint256 _tokenPerBlock, uint256 _waitForWithdraw ) public view returns (uint256 rewards) { // Calculate number of blocks covered. uint256 blockCount = _to - _from; // Get the amount of token for this pool uint256 amount = blockCount*(_tokenPerBlock); // Retrieve allowance and balance uint256 allowedToken = tokenToken.allowance( tokenLiquidityMiningWallet, address(this) ); uint256 farmingBalance = tokenToken.balanceOf(tokenLiquidityMiningWallet); // If the actual balance is less than the allowance, use the balance. allowedToken = farmingBalance < allowedToken ? farmingBalance : allowedToken; //no more token to pay as reward if(allowedToken <= _waitForWithdraw){ return 0; } allowedToken = allowedToken - _waitForWithdraw; // If we reached the total amount allowed already, return the allowedToken if (allowedToken < amount) { rewards = allowedToken; } else { rewards = amount; } } function claimReward(uint256 _poolId) external { updatePool(_poolId); _harvest(_poolId); } // Deposit LP tokens to tokenStaking for token allocation. function deposit(uint256 _poolId, uint256 _amount) external { require(_amount > 0, "Amount cannot be 0"); PoolInfo storage pool = poolInfo[_poolId]; UserInfo storage user = userInfo[_poolId][msg.sender]; updatePool(_poolId); _harvest(_poolId); // This is the very first deposit if (user.amount == 0) { user.rewardDebtAtBlock = block.number; } user.amount = user.amount+(_amount); user.rewardDebt = user.amount*(pool.acctokenPerShare)/(UNITS); emit Deposit(msg.sender, _poolId, _amount); pool.token.safeTransferFrom( address(msg.sender), address(this), _amount ); } // Withdraw LP tokens from tokenStaking. function withdraw(uint256 _poolId, uint256 _amount) external { PoolInfo storage pool = poolInfo[_poolId]; UserInfo storage user = userInfo[_poolId][msg.sender]; require(_amount > 0, "Amount cannot be 0"); updatePool(_poolId); _harvest(_poolId); user.amount = user.amount-(_amount); user.rewardDebt = user.amount*(pool.acctokenPerShare)/(UNITS); emit Withdraw(msg.sender, _poolId, _amount); pool.token.safeTransfer(address(msg.sender), _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _poolId) external { PoolInfo storage pool = poolInfo[_poolId]; UserInfo storage user = userInfo[_poolId][msg.sender]; uint256 amountToSend = user.amount; user.amount = 0; user.rewardDebt = 0; user.rewardDebtAtBlock = 0; emit EmergencyWithdraw(msg.sender, _poolId, amountToSend); pool.token.safeTransfer(address(msg.sender), amountToSend); } /********************** EXTERNAL ********************************/ // Return the number of added pools function poolLength() external view returns (uint256) { return poolInfo.length; } // View function to see pending tokens on frontend. function pendingReward(uint256 _poolId, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_poolId]; UserInfo storage user = userInfo[_poolId][_user]; uint256 acctokenPerShare = pool.acctokenPerShare; uint256 poolBalance = pool.token.balanceOf(address(this)); if (block.number > pool.lastRewardBlock && poolBalance > 0) { uint256 rewards = getPoolReward( pool.lastRewardBlock, block.number, pool.tokenPerBlock, pool.waitForWithdraw ); acctokenPerShare = acctokenPerShare+( rewards*(UNITS)/(poolBalance) ); } uint256 pending = user.amount*(acctokenPerShare)/(UNITS)-( user.rewardDebt ); return pending; } /********************** INTERNAL ********************************/ function _harvest(uint256 _poolId) internal { PoolInfo storage pool = poolInfo[_poolId]; UserInfo storage user = userInfo[_poolId][msg.sender]; if (user.amount == 0) return; uint256 pending = user.amount*(pool.acctokenPerShare)/(UNITS)-(user.rewardDebt); uint256 tokenAvailable = tokenToken.balanceOf(tokenLiquidityMiningWallet); if (pending > tokenAvailable) { pending = tokenAvailable; } if (pending > 0) { user.rewardDebtAtBlock = block.number; user.rewardDebt = user.amount*(pool.acctokenPerShare)/(UNITS); pool.waitForWithdraw -= pending; emit SendTokenReward(msg.sender, _poolId, pending); // Pay out the pending rewards tokenToken.safeTransferFrom( tokenLiquidityMiningWallet, msg.sender, pending ); return; } user.rewardDebt = user.amount*(pool.acctokenPerShare)/(UNITS); } function changeRewardsWallet(address _address) external onlyOwner { require(_address != address(0),"Address should not be 0"); tokenLiquidityMiningWallet = _address; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @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;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 600 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"address","name":"_tokenLiquidityMiningWallet","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SendTokenReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenPerBlockSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"START_BLOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenPerBlock","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"changeRewardsWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"},{"internalType":"uint256","name":"_tokenPerBlock","type":"uint256"},{"internalType":"uint256","name":"_waitForWithdraw","type":"uint256"}],"name":"getPoolReward","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"tokenPerBlock","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"acctokenPerShare","type":"uint256"},{"internalType":"uint256","name":"waitForWithdraw","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_tokenPerBlock","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenLiquidityMiningWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenToPoolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"rewardDebtAtBlock","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001b4f38038062001b4f8339810160408190526200003491620001b4565b6200003f3362000147565b6001600160a01b0383166200009b5760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e20616464726573732073686f756c64206e6f74206265203000000060448201526064015b60405180910390fd5b6001600160a01b0382166200010e5760405162461bcd60e51b815260206004820152603260248201527f546f6b656e4c69717569646974794d696e696e6757616c6c6574206164647265604482015271073732073686f756c64206e6f7420626520360741b606482015260840162000092565b600180546001600160a01b039485166001600160a01b0319918216179091556002805493909416921691909117909155600355620001f5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620001af57600080fd5b919050565b600080600060608486031215620001ca57600080fd5b620001d58462000197565b9250620001e56020850162000197565b9150604084015190509250925092565b61194a80620002056000396000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c8063715018a6116100d857806398969e821161008c578063d587d36311610066578063d587d36314610342578063e2bbb15814610362578063f2fde38b1461037557600080fd5b806398969e8214610309578063ae169a501461031c578063cfcbe5c51461032f57600080fd5b80638da5cb5b116100bd5780638da5cb5b14610290578063902ca1ff146102a157806393f1a40b146102b457600080fd5b8063715018a6146102755780638bf640d41461027d57600080fd5b806351eb05a61161012f5780635312ea8e116101145780635312ea8e14610247578063630b5ba11461025a57806364482f791461026257600080fd5b806351eb05a614610209578063523df7631461021c57600080fd5b80631eaaa045116101605780631eaaa045146101d857806339b3e826146101ed578063441a3e70146101f657600080fd5b8063081e3eda1461017c5780631526fe2714610193575b600080fd5b6004545b6040519081526020015b60405180910390f35b6101a66101a13660046115ae565b610388565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a00161018a565b6101eb6101e6366004611610565b6103d3565b005b61018060035481565b6101eb610204366004611652565b6105f8565b6101eb6102173660046115ae565b610717565b60015461022f906001600160a01b031681565b6040516001600160a01b03909116815260200161018a565b6101eb6102553660046115ae565b61084f565b6101eb6108ed565b6101eb610270366004611674565b610918565b6101eb6109e7565b60025461022f906001600160a01b031681565b6000546001600160a01b031661022f565b6101eb6102af366004611574565b610a4d565b6102ee6102c23660046115e0565b600660209081526000928352604080842090915290825290208054600182015460029092015490919083565b6040805193845260208401929092529082015260600161018a565b6101806103173660046115e0565b610b1f565b6101eb61032a3660046115ae565b610c8b565b61018061033d3660046116a2565b610ca0565b610180610350366004611574565b60056020526000908152604090205481565b6101eb610370366004611652565b610e1f565b6101eb610383366004611574565b610f49565b6004818154811061039857600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909185565b6000546001600160a01b031633146104325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038216600090815260056020526040902054156104985760405162461bcd60e51b815260206004820152601860248201527f546f6b656e20697320616c726561647920696e20706f6f6c00000000000000006044820152606401610429565b80156104a6576104a66108ed565b600060035443116104b9576003546104bb565b435b6004549091506104cc906001611723565b6001600160a01b03938416600081815260056020818152604080842095909555845160a0810186529384528301978852928201938452606082018181526080830182815260048054600181018255935292517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b9290940291820180546001600160a01b031916949097169390931790955594517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c85015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d840155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e8301555090517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f90910155565b60006004838154811061060d5761060d6118db565b60009182526020808320868452600682526040808520338652909252922060059091029091019150826106775760405162461bcd60e51b81526020600482015260126024820152710416d6f756e742063616e6e6f7420626520360741b6044820152606401610429565b61068084610717565b61068984611011565b8054610696908490611867565b81556106a46012600a6117a0565b600383015482546106b59190611848565b6106bf919061173b565b6001820155604051838152849033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a38154610711906001600160a01b0316338561120b565b50505050565b60006004828154811061072c5761072c6118db565b906000526020600020906005020190508060020154431161074b575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561078e57600080fd5b505afa1580156107a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c691906115c7565b9050806107d857504360029091015550565b60006107f283600201544385600101548660040154610ca0565b9050808360040160008282546108089190611723565b9091555082905061081b6012600a6117a0565b6108259083611848565b61082f919061173b565b836003015461083e9190611723565b600384015550504360029091015550565b600060048281548110610864576108646118db565b6000918252602080832085845260068252604080852033808752908452818620805487825560018201889055600282019790975591518681526005959095029092019550939286927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595910160405180910390a38254610711906001600160a01b0316338361120b565b60045460005b818110156109145761090481610717565b61090d816118aa565b90506108f3565b5050565b6000546001600160a01b031633146109725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610429565b8015610980576109806108ed565b8160048481548110610994576109946118db565b9060005260206000209060050201600101819055507f4634e97141dfe8a055fa77e4cc7d1fd34e4c7c6c4d78112e2510ba32b52a60fc826040516109da91815260200190565b60405180910390a1505050565b6000546001600160a01b03163314610a415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610429565b610a4b60006112a0565b565b6000546001600160a01b03163314610aa75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610429565b6001600160a01b038116610afd5760405162461bcd60e51b815260206004820152601760248201527f416464726573732073686f756c64206e6f7420626520300000000000000000006044820152606401610429565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008060048481548110610b3557610b356118db565b600091825260208083208784526006825260408085206001600160a01b03898116875293528085206005949094029091016003810154815492516370a0823160e01b815230600482015291965093949291909116906370a082319060240160206040518083038186803b158015610bab57600080fd5b505afa158015610bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be391906115c7565b9050836002015443118015610bf85750600081115b15610c48576000610c1785600201544387600101548860040154610ca0565b905081610c266012600a6117a0565b610c309083611848565b610c3a919061173b565b610c449084611723565b9250505b6001830154600090610c5c6012600a6117a0565b8554610c69908690611848565b610c73919061173b565b610c7d9190611867565b955050505050505b92915050565b610c9481610717565b610c9d81611011565b50565b600080610cad8686611867565b90506000610cbb8583611848565b600154600254604051636eb1769f60e11b81526001600160a01b03918216600482015230602482015292935060009291169063dd62ed3e9060440160206040518083038186803b158015610d0e57600080fd5b505afa158015610d22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4691906115c7565b6001546002546040516370a0823160e01b81526001600160a01b0391821660048201529293506000929116906370a082319060240160206040518083038186803b158015610d9357600080fd5b505afa158015610da7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dcb91906115c7565b9050818110610dda5781610ddc565b805b9150858211610df2576000945050505050610e17565b610dfc8683611867565b915082821015610e0e57819450610e12565b8294505b505050505b949350505050565b60008111610e645760405162461bcd60e51b81526020600482015260126024820152710416d6f756e742063616e6e6f7420626520360741b6044820152606401610429565b600060048381548110610e7957610e796118db565b60009182526020808320868452600682526040808520338652909252922060059091029091019150610eaa84610717565b610eb384611011565b8054610ec0574360028201555b8054610ecd908490611723565b8155610edb6012600a6117a0565b60038301548254610eec9190611848565b610ef6919061173b565b6001820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a38154610711906001600160a01b03163330866112f0565b6000546001600160a01b03163314610fa35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610429565b6001600160a01b0381166110085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610429565b610c9d816112a0565b600060048281548110611026576110266118db565b60009182526020808320858452600682526040808520338652909252922080546005909202909201925061105957505050565b600181015460009061106d6012600a6117a0565b6003850154845461107e9190611848565b611088919061173b565b6110929190611867565b6001546002546040516370a0823160e01b81526001600160a01b0391821660048201529293506000929116906370a082319060240160206040518083038186803b1580156110df57600080fd5b505afa1580156110f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061111791906115c7565b905080821115611125578091505b81156111d55743600284015561113d6012600a6117a0565b6003850154845461114e9190611848565b611158919061173b565b8360010181905550818460040160008282546111749190611867565b9091555050604051828152859033907ff31910c3d752a6b51c4eb8e090fb7e85228ffafddb8fb2fb8818ea9719ed174c9060200160405180910390a36002546001546111ce916001600160a01b03918216911633856112f0565b5050505050565b6111e16012600a6117a0565b600385015484546111f29190611848565b6111fc919061173b565b83600101819055505050505050565b6040516001600160a01b03831660248201526044810182905261129b90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611328565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526107119085906323b872dd60e01b90608401611237565b600061137d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113fa9092919063ffffffff16565b80519091501561129b578080602001905181019061139b9190611591565b61129b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610429565b60606114098484600085611413565b90505b9392505050565b6060824710156114745760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610429565b843b6114c25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610429565b600080866001600160a01b031685876040516114de91906116d4565b60006040518083038185875af1925050503d806000811461151b576040519150601f19603f3d011682016040523d82523d6000602084013e611520565b606091505b509150915061153082828661153b565b979650505050505050565b6060831561154a57508161140c565b82511561155a5782518084602001fd5b8160405162461bcd60e51b815260040161042991906116f0565b60006020828403121561158657600080fd5b813561140c816118f1565b6000602082840312156115a357600080fd5b815161140c81611906565b6000602082840312156115c057600080fd5b5035919050565b6000602082840312156115d957600080fd5b5051919050565b600080604083850312156115f357600080fd5b823591506020830135611605816118f1565b809150509250929050565b60008060006060848603121561162557600080fd5b833592506020840135611637816118f1565b9150604084013561164781611906565b809150509250925092565b6000806040838503121561166557600080fd5b50508035926020909101359150565b60008060006060848603121561168957600080fd5b8335925060208401359150604084013561164781611906565b600080600080608085870312156116b857600080fd5b5050823594602084013594506040840135936060013592509050565b600082516116e681846020870161187e565b9190910192915050565b602081526000825180602084015261170f81604085016020870161187e565b601f01601f19169190910160400192915050565b60008219821115611736576117366118c5565b500190565b60008261175857634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561179857816000190482111561177e5761177e6118c5565b8085161561178b57918102915b93841c9390800290611762565b509250929050565b600061140c83836000826117b657506001610c85565b816117c357506000610c85565b81600181146117d957600281146117e3576117ff565b6001915050610c85565b60ff8411156117f4576117f46118c5565b50506001821b610c85565b5060208310610133831016604e8410600b8410161715611822575081810a610c85565b61182c838361175d565b8060001904821115611840576118406118c5565b029392505050565b6000816000190483118215151615611862576118626118c5565b500290565b600082821015611879576118796118c5565b500390565b60005b83811015611899578181015183820152602001611881565b838111156107115750506000910152565b60006000198214156118be576118be6118c5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0381168114610c9d57600080fd5b8015158114610c9d57600080fdfea2646970667358221220c9a58684ada412f0e575cd8dcd379c6f98b2e749054a698ff74cb8b32f36779964736f6c6343000806003300000000000000000000000065a8fba02f641a13bb7b01d5e1129b0521004f52000000000000000000000000253a9ab64e60c6ea1a44f42603f76df88dd7af8e0000000000000000000000000000000000000000000000000000000000cea2a5
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101775760003560e01c8063715018a6116100d857806398969e821161008c578063d587d36311610066578063d587d36314610342578063e2bbb15814610362578063f2fde38b1461037557600080fd5b806398969e8214610309578063ae169a501461031c578063cfcbe5c51461032f57600080fd5b80638da5cb5b116100bd5780638da5cb5b14610290578063902ca1ff146102a157806393f1a40b146102b457600080fd5b8063715018a6146102755780638bf640d41461027d57600080fd5b806351eb05a61161012f5780635312ea8e116101145780635312ea8e14610247578063630b5ba11461025a57806364482f791461026257600080fd5b806351eb05a614610209578063523df7631461021c57600080fd5b80631eaaa045116101605780631eaaa045146101d857806339b3e826146101ed578063441a3e70146101f657600080fd5b8063081e3eda1461017c5780631526fe2714610193575b600080fd5b6004545b6040519081526020015b60405180910390f35b6101a66101a13660046115ae565b610388565b604080516001600160a01b0390961686526020860194909452928401919091526060830152608082015260a00161018a565b6101eb6101e6366004611610565b6103d3565b005b61018060035481565b6101eb610204366004611652565b6105f8565b6101eb6102173660046115ae565b610717565b60015461022f906001600160a01b031681565b6040516001600160a01b03909116815260200161018a565b6101eb6102553660046115ae565b61084f565b6101eb6108ed565b6101eb610270366004611674565b610918565b6101eb6109e7565b60025461022f906001600160a01b031681565b6000546001600160a01b031661022f565b6101eb6102af366004611574565b610a4d565b6102ee6102c23660046115e0565b600660209081526000928352604080842090915290825290208054600182015460029092015490919083565b6040805193845260208401929092529082015260600161018a565b6101806103173660046115e0565b610b1f565b6101eb61032a3660046115ae565b610c8b565b61018061033d3660046116a2565b610ca0565b610180610350366004611574565b60056020526000908152604090205481565b6101eb610370366004611652565b610e1f565b6101eb610383366004611574565b610f49565b6004818154811061039857600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909185565b6000546001600160a01b031633146104325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038216600090815260056020526040902054156104985760405162461bcd60e51b815260206004820152601860248201527f546f6b656e20697320616c726561647920696e20706f6f6c00000000000000006044820152606401610429565b80156104a6576104a66108ed565b600060035443116104b9576003546104bb565b435b6004549091506104cc906001611723565b6001600160a01b03938416600081815260056020818152604080842095909555845160a0810186529384528301978852928201938452606082018181526080830182815260048054600181018255935292517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b9290940291820180546001600160a01b031916949097169390931790955594517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c85015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d840155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e8301555090517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f90910155565b60006004838154811061060d5761060d6118db565b60009182526020808320868452600682526040808520338652909252922060059091029091019150826106775760405162461bcd60e51b81526020600482015260126024820152710416d6f756e742063616e6e6f7420626520360741b6044820152606401610429565b61068084610717565b61068984611011565b8054610696908490611867565b81556106a46012600a6117a0565b600383015482546106b59190611848565b6106bf919061173b565b6001820155604051838152849033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a38154610711906001600160a01b0316338561120b565b50505050565b60006004828154811061072c5761072c6118db565b906000526020600020906005020190508060020154431161074b575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561078e57600080fd5b505afa1580156107a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c691906115c7565b9050806107d857504360029091015550565b60006107f283600201544385600101548660040154610ca0565b9050808360040160008282546108089190611723565b9091555082905061081b6012600a6117a0565b6108259083611848565b61082f919061173b565b836003015461083e9190611723565b600384015550504360029091015550565b600060048281548110610864576108646118db565b6000918252602080832085845260068252604080852033808752908452818620805487825560018201889055600282019790975591518681526005959095029092019550939286927fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595910160405180910390a38254610711906001600160a01b0316338361120b565b60045460005b818110156109145761090481610717565b61090d816118aa565b90506108f3565b5050565b6000546001600160a01b031633146109725760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610429565b8015610980576109806108ed565b8160048481548110610994576109946118db565b9060005260206000209060050201600101819055507f4634e97141dfe8a055fa77e4cc7d1fd34e4c7c6c4d78112e2510ba32b52a60fc826040516109da91815260200190565b60405180910390a1505050565b6000546001600160a01b03163314610a415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610429565b610a4b60006112a0565b565b6000546001600160a01b03163314610aa75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610429565b6001600160a01b038116610afd5760405162461bcd60e51b815260206004820152601760248201527f416464726573732073686f756c64206e6f7420626520300000000000000000006044820152606401610429565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b60008060048481548110610b3557610b356118db565b600091825260208083208784526006825260408085206001600160a01b03898116875293528085206005949094029091016003810154815492516370a0823160e01b815230600482015291965093949291909116906370a082319060240160206040518083038186803b158015610bab57600080fd5b505afa158015610bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be391906115c7565b9050836002015443118015610bf85750600081115b15610c48576000610c1785600201544387600101548860040154610ca0565b905081610c266012600a6117a0565b610c309083611848565b610c3a919061173b565b610c449084611723565b9250505b6001830154600090610c5c6012600a6117a0565b8554610c69908690611848565b610c73919061173b565b610c7d9190611867565b955050505050505b92915050565b610c9481610717565b610c9d81611011565b50565b600080610cad8686611867565b90506000610cbb8583611848565b600154600254604051636eb1769f60e11b81526001600160a01b03918216600482015230602482015292935060009291169063dd62ed3e9060440160206040518083038186803b158015610d0e57600080fd5b505afa158015610d22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4691906115c7565b6001546002546040516370a0823160e01b81526001600160a01b0391821660048201529293506000929116906370a082319060240160206040518083038186803b158015610d9357600080fd5b505afa158015610da7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dcb91906115c7565b9050818110610dda5781610ddc565b805b9150858211610df2576000945050505050610e17565b610dfc8683611867565b915082821015610e0e57819450610e12565b8294505b505050505b949350505050565b60008111610e645760405162461bcd60e51b81526020600482015260126024820152710416d6f756e742063616e6e6f7420626520360741b6044820152606401610429565b600060048381548110610e7957610e796118db565b60009182526020808320868452600682526040808520338652909252922060059091029091019150610eaa84610717565b610eb384611011565b8054610ec0574360028201555b8054610ecd908490611723565b8155610edb6012600a6117a0565b60038301548254610eec9190611848565b610ef6919061173b565b6001820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a38154610711906001600160a01b03163330866112f0565b6000546001600160a01b03163314610fa35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610429565b6001600160a01b0381166110085760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610429565b610c9d816112a0565b600060048281548110611026576110266118db565b60009182526020808320858452600682526040808520338652909252922080546005909202909201925061105957505050565b600181015460009061106d6012600a6117a0565b6003850154845461107e9190611848565b611088919061173b565b6110929190611867565b6001546002546040516370a0823160e01b81526001600160a01b0391821660048201529293506000929116906370a082319060240160206040518083038186803b1580156110df57600080fd5b505afa1580156110f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061111791906115c7565b905080821115611125578091505b81156111d55743600284015561113d6012600a6117a0565b6003850154845461114e9190611848565b611158919061173b565b8360010181905550818460040160008282546111749190611867565b9091555050604051828152859033907ff31910c3d752a6b51c4eb8e090fb7e85228ffafddb8fb2fb8818ea9719ed174c9060200160405180910390a36002546001546111ce916001600160a01b03918216911633856112f0565b5050505050565b6111e16012600a6117a0565b600385015484546111f29190611848565b6111fc919061173b565b83600101819055505050505050565b6040516001600160a01b03831660248201526044810182905261129b90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611328565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526107119085906323b872dd60e01b90608401611237565b600061137d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113fa9092919063ffffffff16565b80519091501561129b578080602001905181019061139b9190611591565b61129b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610429565b60606114098484600085611413565b90505b9392505050565b6060824710156114745760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610429565b843b6114c25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610429565b600080866001600160a01b031685876040516114de91906116d4565b60006040518083038185875af1925050503d806000811461151b576040519150601f19603f3d011682016040523d82523d6000602084013e611520565b606091505b509150915061153082828661153b565b979650505050505050565b6060831561154a57508161140c565b82511561155a5782518084602001fd5b8160405162461bcd60e51b815260040161042991906116f0565b60006020828403121561158657600080fd5b813561140c816118f1565b6000602082840312156115a357600080fd5b815161140c81611906565b6000602082840312156115c057600080fd5b5035919050565b6000602082840312156115d957600080fd5b5051919050565b600080604083850312156115f357600080fd5b823591506020830135611605816118f1565b809150509250929050565b60008060006060848603121561162557600080fd5b833592506020840135611637816118f1565b9150604084013561164781611906565b809150509250925092565b6000806040838503121561166557600080fd5b50508035926020909101359150565b60008060006060848603121561168957600080fd5b8335925060208401359150604084013561164781611906565b600080600080608085870312156116b857600080fd5b5050823594602084013594506040840135936060013592509050565b600082516116e681846020870161187e565b9190910192915050565b602081526000825180602084015261170f81604085016020870161187e565b601f01601f19169190910160400192915050565b60008219821115611736576117366118c5565b500190565b60008261175857634e487b7160e01b600052601260045260246000fd5b500490565b600181815b8085111561179857816000190482111561177e5761177e6118c5565b8085161561178b57918102915b93841c9390800290611762565b509250929050565b600061140c83836000826117b657506001610c85565b816117c357506000610c85565b81600181146117d957600281146117e3576117ff565b6001915050610c85565b60ff8411156117f4576117f46118c5565b50506001821b610c85565b5060208310610133831016604e8410600b8410161715611822575081810a610c85565b61182c838361175d565b8060001904821115611840576118406118c5565b029392505050565b6000816000190483118215151615611862576118626118c5565b500290565b600082821015611879576118796118c5565b500390565b60005b83811015611899578181015183820152602001611881565b838111156107115750506000910152565b60006000198214156118be576118be6118c5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0381168114610c9d57600080fd5b8015158114610c9d57600080fdfea2646970667358221220c9a58684ada412f0e575cd8dcd379c6f98b2e749054a698ff74cb8b32f36779964736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000065a8fba02f641a13bb7b01d5e1129b0521004f52000000000000000000000000253a9ab64e60c6ea1a44f42603f76df88dd7af8e0000000000000000000000000000000000000000000000000000000000cea2a5
-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0x65a8fbA02F641a13Bb7B01d5E1129b0521004f52
Arg [1] : _tokenLiquidityMiningWallet (address): 0x253A9ab64e60C6ea1A44F42603F76Df88DD7af8E
Arg [2] : _startBlock (uint256): 13542053
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000065a8fba02f641a13bb7b01d5e1129b0521004f52
Arg [1] : 000000000000000000000000253a9ab64e60c6ea1a44f42603f76df88dd7af8e
Arg [2] : 0000000000000000000000000000000000000000000000000000000000cea2a5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.