More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 143 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 18857199 | 416 days ago | IN | 0 ETH | 0.00184528 | ||||
Withdraw | 18739852 | 433 days ago | IN | 0 ETH | 0.00345067 | ||||
Withdraw | 18713930 | 436 days ago | IN | 0 ETH | 0.00508559 | ||||
Withdraw | 18553636 | 459 days ago | IN | 0 ETH | 0.00133441 | ||||
Withdraw | 18528375 | 462 days ago | IN | 0 ETH | 0.00309793 | ||||
Withdraw | 18474797 | 470 days ago | IN | 0 ETH | 0.00108174 | ||||
Withdraw | 18414586 | 478 days ago | IN | 0 ETH | 0.00390266 | ||||
Withdraw | 18398713 | 480 days ago | IN | 0 ETH | 0.00046663 | ||||
Withdraw | 18398713 | 480 days ago | IN | 0 ETH | 0.00042491 | ||||
Withdraw | 18329088 | 490 days ago | IN | 0 ETH | 0.00056161 | ||||
Withdraw | 18315300 | 492 days ago | IN | 0 ETH | 0.00068947 | ||||
Withdraw | 18269851 | 498 days ago | IN | 0 ETH | 0.00057858 | ||||
Withdraw | 18269035 | 499 days ago | IN | 0 ETH | 0.00056996 | ||||
Withdraw | 18263414 | 499 days ago | IN | 0 ETH | 0.00134211 | ||||
Withdraw | 18263384 | 499 days ago | IN | 0 ETH | 0.00190212 | ||||
Withdraw | 18263322 | 499 days ago | IN | 0 ETH | 0.00175981 | ||||
Withdraw | 18263310 | 499 days ago | IN | 0 ETH | 0.00200369 | ||||
Withdraw | 18263132 | 499 days ago | IN | 0 ETH | 0.0014929 | ||||
Withdraw | 18263120 | 499 days ago | IN | 0 ETH | 0.00178959 | ||||
Withdraw | 18263113 | 499 days ago | IN | 0 ETH | 0.00152954 | ||||
Withdraw | 18263057 | 499 days ago | IN | 0 ETH | 0.00131547 | ||||
Withdraw | 18259529 | 500 days ago | IN | 0 ETH | 0.0006226 | ||||
Deposit | 18247408 | 502 days ago | IN | 0 ETH | 0.0008253 | ||||
Withdraw | 18224357 | 505 days ago | IN | 0 ETH | 0.00071922 | ||||
Deposit | 18218061 | 506 days ago | IN | 0 ETH | 0.00059649 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Disclosure
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol'; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; contract Disclosure { IERC20 public weth; IERC20 public lpToken; uint256 public endTime; uint256 public startTime; IERC20 public rewardToken; uint256 public totalRewards; uint256 public totalDeposited; uint256 public totalDisclosure; uint256 public lastUpdatedGlobal; IUniswapV2Router02 public router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); struct User { uint256 depositAmount; uint256 lastUpdated; uint256 disclosure; bool rewardWithdrawn; } mapping(address => User) public users; constructor(address _lpToken, address _rewardToken, uint256 _startTime, uint256 _endTime) { rewardToken = IERC20(_rewardToken); weth = IERC20(router.WETH()); lpToken = IERC20(_lpToken); startTime = _startTime; endTime = _endTime; } function deposit(uint256 amount) external { require(block.timestamp >= startTime && block.timestamp <= endTime, "Not in staking period"); require(lpToken.transferFrom(msg.sender, address(this), amount), "Transfer failed"); updateDisclosure(msg.sender); users[msg.sender].depositAmount += amount; totalDeposited += amount; } function withdraw(uint256 amount) external { require(amount <= users[msg.sender].depositAmount, "Insufficient staked amount"); updateDisclosure(msg.sender); users[msg.sender].depositAmount -= amount; totalDeposited -= amount; require(lpToken.transfer(msg.sender, amount), "Transfer failed"); } function updateDisclosure(address userAddress) internal { User storage user = users[userAddress]; uint256 updateTime = block.timestamp; if (endTime < updateTime) updateTime = endTime; if (user.lastUpdated > 0) user.disclosure += (updateTime - user.lastUpdated) * user.depositAmount; totalDisclosure += (updateTime - lastUpdatedGlobal) * totalDeposited; lastUpdatedGlobal = updateTime; user.lastUpdated = updateTime; } // THIS FUNCTION MAY OR MAY NOT BE USED. // IF THE TOKEN BALANCE OF THIS CONTRACT IS 0, // EXPECT AIRDROP THROUGH SEPARATE CONTRACT function withdrawReward() external { require(block.timestamp > endTime, "Reward withdrawal not allowed yet"); User storage user = users[msg.sender]; require(!user.rewardWithdrawn, "Already withdrawn"); if (totalRewards == 0) totalRewards = rewardToken.balanceOf(address(this)); updateDisclosure(msg.sender); uint256 rewardAmount = (totalRewards * user.disclosure) / totalDisclosure; user.rewardWithdrawn = true; require(rewardToken.transfer(msg.sender, rewardAmount), "Reward transfer failed"); } function currentTime() external view returns (uint256) { return block.timestamp; } function intel(address userAddress) external view returns (uint256 depositAmount, uint256 disclosure, uint256 total, uint256 allowance, uint256 balance, uint256 totalDeposits, uint256 tokensPerEth, uint256 lpPerEth) { User memory user = users[userAddress]; uint256 updateTime = block.timestamp; if (endTime < updateTime) updateTime = endTime; total = totalDisclosure + (updateTime - lastUpdatedGlobal) * totalDeposited; tokensPerEth = rewardTokenPerEth(); totalDeposits = totalDeposited; lpPerEth = lpTokenPerEth(); if (userAddress != address(0)) { depositAmount = user.depositAmount; disclosure = user.disclosure + (updateTime - user.lastUpdated) * user.depositAmount; allowance = lpToken.allowance(userAddress, address(this)); balance = lpToken.balanceOf(userAddress); } } function lpTokenPerEth() public view returns (uint256) { uint256 lpTokenBalance = rewardToken.balanceOf(address(lpToken)); uint256 lpEthBalance = weth.balanceOf(address(lpToken)); uint256 lpTotalSupply = lpToken.totalSupply(); uint256 tokensPerEth = rewardTokenPerEth(); if (tokensPerEth > 0) { uint256 tokenValue = 10**18 * lpTokenBalance / tokensPerEth; // Return with an extra 10**18 return 10**18 * 10**18 * lpTotalSupply / (tokenValue + (10**18 * lpEthBalance)); } else return 0; } function rewardTokenPerEth() public view returns (uint256) { address[] memory path = new address[](2); path[0] = address(weth); path[1] = address(rewardToken); uint256[] memory amountsOut = router.getAmountsOut(10**18, path); return amountsOut[1]; // This will give the amount of tokenOut you would get for _amountIn of tokenIn } }
pragma solidity >=0.6.2; import './IUniswapV2Router01.sol'; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.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; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ 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)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_lpToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"currentTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"intel","outputs":[{"internalType":"uint256","name":"depositAmount","type":"uint256"},{"internalType":"uint256","name":"disclosure","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"totalDeposits","type":"uint256"},{"internalType":"uint256","name":"tokensPerEth","type":"uint256"},{"internalType":"uint256","name":"lpPerEth","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdatedGlobal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpTokenPerEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardTokenPerEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDisclosure","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"users","outputs":[{"internalType":"uint256","name":"depositAmount","type":"uint256"},{"internalType":"uint256","name":"lastUpdated","type":"uint256"},{"internalType":"uint256","name":"disclosure","type":"uint256"},{"internalType":"bool","name":"rewardWithdrawn","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawReward","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052737a250d5630b4cf539739df2c5dacb4c659f2488d600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200006657600080fd5b50604051620021513803806200215183398181016040528101906200008c91906200029e565b82600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200013b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000161919062000310565b6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600381905550806002819055505050505062000342565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200022b82620001fe565b9050919050565b6200023d816200021e565b81146200024957600080fd5b50565b6000815190506200025d8162000232565b92915050565b6000819050919050565b620002788162000263565b81146200028457600080fd5b50565b60008151905062000298816200026d565b92915050565b60008060008060808587031215620002bb57620002ba620001f9565b5b6000620002cb878288016200024c565b9450506020620002de878288016200024c565b9350506040620002f18782880162000287565b9250506060620003048782880162000287565b91505092959194509250565b600060208284031215620003295762000328620001f9565b5b600062000339848285016200024c565b91505092915050565b611dff80620003526000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806378e97925116100a2578063c885bc5811610071578063c885bc58146102cb578063d18e81b3146102d5578063f7c618c1146102f3578063f887ea4014610311578063ff50abdc1461032f57610116565b806378e9792514610240578063a87430ba1461025e578063b6b55f2514610291578063c1753f99146102ad57610116565b80633fc8cef3116100e95780633fc8cef31461019157806354a8b41e146101af57806354e1848c146101cd5780635d8a68ca146102045780635fcbd2851461022257610116565b80630df08c281461011b5780630e15561a146101395780632e1a7d4d146101575780633197cbb614610173575b600080fd5b61012361034d565b60405161013091906112e2565b60405180910390f35b610141610353565b60405161014e91906112e2565b60405180910390f35b610171600480360381019061016c919061133d565b610359565b005b61017b61053b565b60405161018891906112e2565b60405180910390f35b610199610541565b6040516101a691906113e9565b60405180910390f35b6101b7610565565b6040516101c491906112e2565b60405180910390f35b6101e760048036038101906101e29190611442565b610812565b6040516101fb98979695949392919061146f565b60405180910390f35b61020c610ab4565b60405161021991906112e2565b60405180910390f35b61022a610aba565b60405161023791906113e9565b60405180910390f35b610248610ae0565b60405161025591906112e2565b60405180910390f35b61027860048036038101906102739190611442565b610ae6565b6040516102889493929190611508565b60405180910390f35b6102ab60048036038101906102a6919061133d565b610b23565b005b6102b5610cd5565b6040516102c291906112e2565b60405180910390f35b6102d3610ed6565b005b6102dd611188565b6040516102ea91906112e2565b60405180910390f35b6102fb611190565b60405161030891906113e9565b60405180910390f35b6103196111b6565b604051610326919061156e565b60405180910390f35b6103376111dc565b60405161034491906112e2565b60405180910390f35b60085481565b60055481565b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001548111156103de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d5906115e6565b60405180910390fd5b6103e7336111e2565b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282546104399190611635565b9250508190555080600660008282546104529190611635565b92505081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016104b6929190611678565b6020604051808303816000875af11580156104d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f991906116cd565b610538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052f90611746565b60405180910390fd5b50565b60025481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016105e59190611766565b602060405180830381865afa158015610602573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106269190611796565b905060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016106a69190611766565b602060405180830381865afa1580156106c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e79190611796565b90506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610758573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077c9190611796565b90506000610788610cd5565b905060008111156108065760008185670de0b6b3a76400006107aa91906117c3565b6107b49190611834565b905083670de0b6b3a76400006107ca91906117c3565b816107d59190611865565b836ec097ce7bc90715b34b9f10000000006107f091906117c3565b6107fa9190611834565b9550505050505061080f565b60009450505050505b90565b6000806000806000806000806000600a60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060800160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581525050905060004290508060025410156108ba5760025490505b600654600854826108cb9190611635565b6108d591906117c3565b6007546108e29190611865565b97506108ec610cd5565b935060065494506108fb610565565b9250600073ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff1614610aa75781600001519950816000015182602001518261094d9190611635565b61095791906117c3565b82604001516109669190611865565b9850600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e8c306040518363ffffffff1660e01b81526004016109c5929190611899565b602060405180830381865afa1580156109e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a069190611796565b9650600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082318c6040518263ffffffff1660e01b8152600401610a639190611766565b602060405180830381865afa158015610a80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa49190611796565b95505b5050919395975091939597565b60075481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b600a6020528060005260406000206000915090508060000154908060010154908060020154908060030160009054906101000a900460ff16905084565b6003544210158015610b3757506002544211155b610b76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6d9061190e565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401610bd59392919061192e565b6020604051808303816000875af1158015610bf4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1891906116cd565b610c57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4e90611746565b60405180910390fd5b610c60336111e2565b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000828254610cb29190611865565b925050819055508060066000828254610ccb9190611865565b9250508190555050565b600080600267ffffffffffffffff811115610cf357610cf2611965565b5b604051908082528060200260200182016040528015610d215781602001602082028036833780820191505090505b50905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600081518110610d5957610d58611994565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600181518110610dca57610dc9611994565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d06ca61f670de0b6b3a7640000846040518363ffffffff1660e01b8152600401610e6b929190611abc565b600060405180830381865afa158015610e88573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610eb19190611c16565b905080600181518110610ec757610ec6611994565b5b60200260200101519250505090565b6002544211610f1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1190611cd1565b60405180910390fd5b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060030160009054906101000a900460ff1615610faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa690611d3d565b60405180910390fd5b60006005540361105c57600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016110149190611766565b602060405180830381865afa158015611031573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110559190611796565b6005819055505b611065336111e2565b6000600754826002015460055461107c91906117c3565b6110869190611834565b905060018260030160006101000a81548160ff021916908315150217905550600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611102929190611678565b6020604051808303816000875af1158015611121573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114591906116cd565b611184576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117b90611da9565b60405180910390fd5b5050565b600042905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600042905080600254101561123a5760025490505b60008260010154111561128157816000015482600101548261125c9190611635565b61126691906117c3565b8260020160008282546112799190611865565b925050819055505b600654600854826112929190611635565b61129c91906117c3565b600760008282546112ad9190611865565b9250508190555080600881905550808260010181905550505050565b6000819050919050565b6112dc816112c9565b82525050565b60006020820190506112f760008301846112d3565b92915050565b6000604051905090565b600080fd5b600080fd5b61131a816112c9565b811461132557600080fd5b50565b60008135905061133781611311565b92915050565b60006020828403121561135357611352611307565b5b600061136184828501611328565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006113af6113aa6113a58461136a565b61138a565b61136a565b9050919050565b60006113c182611394565b9050919050565b60006113d3826113b6565b9050919050565b6113e3816113c8565b82525050565b60006020820190506113fe60008301846113da565b92915050565b600061140f8261136a565b9050919050565b61141f81611404565b811461142a57600080fd5b50565b60008135905061143c81611416565b92915050565b60006020828403121561145857611457611307565b5b60006114668482850161142d565b91505092915050565b600061010082019050611485600083018b6112d3565b611492602083018a6112d3565b61149f60408301896112d3565b6114ac60608301886112d3565b6114b960808301876112d3565b6114c660a08301866112d3565b6114d360c08301856112d3565b6114e060e08301846112d3565b9998505050505050505050565b60008115159050919050565b611502816114ed565b82525050565b600060808201905061151d60008301876112d3565b61152a60208301866112d3565b61153760408301856112d3565b61154460608301846114f9565b95945050505050565b6000611558826113b6565b9050919050565b6115688161154d565b82525050565b6000602082019050611583600083018461155f565b92915050565b600082825260208201905092915050565b7f496e73756666696369656e74207374616b656420616d6f756e74000000000000600082015250565b60006115d0601a83611589565b91506115db8261159a565b602082019050919050565b600060208201905081810360008301526115ff816115c3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611640826112c9565b915061164b836112c9565b925082820390508181111561166357611662611606565b5b92915050565b61167281611404565b82525050565b600060408201905061168d6000830185611669565b61169a60208301846112d3565b9392505050565b6116aa816114ed565b81146116b557600080fd5b50565b6000815190506116c7816116a1565b92915050565b6000602082840312156116e3576116e2611307565b5b60006116f1848285016116b8565b91505092915050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b6000611730600f83611589565b915061173b826116fa565b602082019050919050565b6000602082019050818103600083015261175f81611723565b9050919050565b600060208201905061177b6000830184611669565b92915050565b60008151905061179081611311565b92915050565b6000602082840312156117ac576117ab611307565b5b60006117ba84828501611781565b91505092915050565b60006117ce826112c9565b91506117d9836112c9565b92508282026117e7816112c9565b915082820484148315176117fe576117fd611606565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061183f826112c9565b915061184a836112c9565b92508261185a57611859611805565b5b828204905092915050565b6000611870826112c9565b915061187b836112c9565b925082820190508082111561189357611892611606565b5b92915050565b60006040820190506118ae6000830185611669565b6118bb6020830184611669565b9392505050565b7f4e6f7420696e207374616b696e6720706572696f640000000000000000000000600082015250565b60006118f8601583611589565b9150611903826118c2565b602082019050919050565b60006020820190508181036000830152611927816118eb565b9050919050565b60006060820190506119436000830186611669565b6119506020830185611669565b61195d60408301846112d3565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b60006119e86119e36119de846119c3565b61138a565b6112c9565b9050919050565b6119f8816119cd565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611a3381611404565b82525050565b6000611a458383611a2a565b60208301905092915050565b6000602082019050919050565b6000611a69826119fe565b611a738185611a09565b9350611a7e83611a1a565b8060005b83811015611aaf578151611a968882611a39565b9750611aa183611a51565b925050600181019050611a82565b5085935050505092915050565b6000604082019050611ad160008301856119ef565b8181036020830152611ae38184611a5e565b90509392505050565b600080fd5b6000601f19601f8301169050919050565b611b0b82611af1565b810181811067ffffffffffffffff82111715611b2a57611b29611965565b5b80604052505050565b6000611b3d6112fd565b9050611b498282611b02565b919050565b600067ffffffffffffffff821115611b6957611b68611965565b5b602082029050602081019050919050565b600080fd5b6000611b92611b8d84611b4e565b611b33565b90508083825260208201905060208402830185811115611bb557611bb4611b7a565b5b835b81811015611bde5780611bca8882611781565b845260208401935050602081019050611bb7565b5050509392505050565b600082601f830112611bfd57611bfc611aec565b5b8151611c0d848260208601611b7f565b91505092915050565b600060208284031215611c2c57611c2b611307565b5b600082015167ffffffffffffffff811115611c4a57611c4961130c565b5b611c5684828501611be8565b91505092915050565b7f526577617264207769746864726177616c206e6f7420616c6c6f77656420796560008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6000611cbb602183611589565b9150611cc682611c5f565b604082019050919050565b60006020820190508181036000830152611cea81611cae565b9050919050565b7f416c72656164792077697468647261776e000000000000000000000000000000600082015250565b6000611d27601183611589565b9150611d3282611cf1565b602082019050919050565b60006020820190508181036000830152611d5681611d1a565b9050919050565b7f526577617264207472616e73666572206661696c656400000000000000000000600082015250565b6000611d93601683611589565b9150611d9e82611d5d565b602082019050919050565b60006020820190508181036000830152611dc281611d86565b905091905056fea264697066735822122024c9cbd834474ea19c4e4081bee6345855e0e8b12bd23148671002686fc564d764736f6c634300081100330000000000000000000000008fe15be3aadd30f78752001e6e38b846f2d195c00000000000000000000000001bef0d587dde09d4cee9b13d4d38b5bec57a13970000000000000000000000000000000000000000000000000000000064f33fe000000000000000000000000000000000000000000000000000000000651acce0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c806378e97925116100a2578063c885bc5811610071578063c885bc58146102cb578063d18e81b3146102d5578063f7c618c1146102f3578063f887ea4014610311578063ff50abdc1461032f57610116565b806378e9792514610240578063a87430ba1461025e578063b6b55f2514610291578063c1753f99146102ad57610116565b80633fc8cef3116100e95780633fc8cef31461019157806354a8b41e146101af57806354e1848c146101cd5780635d8a68ca146102045780635fcbd2851461022257610116565b80630df08c281461011b5780630e15561a146101395780632e1a7d4d146101575780633197cbb614610173575b600080fd5b61012361034d565b60405161013091906112e2565b60405180910390f35b610141610353565b60405161014e91906112e2565b60405180910390f35b610171600480360381019061016c919061133d565b610359565b005b61017b61053b565b60405161018891906112e2565b60405180910390f35b610199610541565b6040516101a691906113e9565b60405180910390f35b6101b7610565565b6040516101c491906112e2565b60405180910390f35b6101e760048036038101906101e29190611442565b610812565b6040516101fb98979695949392919061146f565b60405180910390f35b61020c610ab4565b60405161021991906112e2565b60405180910390f35b61022a610aba565b60405161023791906113e9565b60405180910390f35b610248610ae0565b60405161025591906112e2565b60405180910390f35b61027860048036038101906102739190611442565b610ae6565b6040516102889493929190611508565b60405180910390f35b6102ab60048036038101906102a6919061133d565b610b23565b005b6102b5610cd5565b6040516102c291906112e2565b60405180910390f35b6102d3610ed6565b005b6102dd611188565b6040516102ea91906112e2565b60405180910390f35b6102fb611190565b60405161030891906113e9565b60405180910390f35b6103196111b6565b604051610326919061156e565b60405180910390f35b6103376111dc565b60405161034491906112e2565b60405180910390f35b60085481565b60055481565b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001548111156103de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d5906115e6565b60405180910390fd5b6103e7336111e2565b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282546104399190611635565b9250508190555080600660008282546104529190611635565b92505081905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b81526004016104b6929190611678565b6020604051808303816000875af11580156104d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f991906116cd565b610538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052f90611746565b60405180910390fd5b50565b60025481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016105e59190611766565b602060405180830381865afa158015610602573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106269190611796565b905060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b81526004016106a69190611766565b602060405180830381865afa1580156106c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e79190611796565b90506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610758573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077c9190611796565b90506000610788610cd5565b905060008111156108065760008185670de0b6b3a76400006107aa91906117c3565b6107b49190611834565b905083670de0b6b3a76400006107ca91906117c3565b816107d59190611865565b836ec097ce7bc90715b34b9f10000000006107f091906117c3565b6107fa9190611834565b9550505050505061080f565b60009450505050505b90565b6000806000806000806000806000600a60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060800160405290816000820154815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581525050905060004290508060025410156108ba5760025490505b600654600854826108cb9190611635565b6108d591906117c3565b6007546108e29190611865565b97506108ec610cd5565b935060065494506108fb610565565b9250600073ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff1614610aa75781600001519950816000015182602001518261094d9190611635565b61095791906117c3565b82604001516109669190611865565b9850600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e8c306040518363ffffffff1660e01b81526004016109c5929190611899565b602060405180830381865afa1580156109e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a069190611796565b9650600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082318c6040518263ffffffff1660e01b8152600401610a639190611766565b602060405180830381865afa158015610a80573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa49190611796565b95505b5050919395975091939597565b60075481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b600a6020528060005260406000206000915090508060000154908060010154908060020154908060030160009054906101000a900460ff16905084565b6003544210158015610b3757506002544211155b610b76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6d9061190e565b60405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401610bd59392919061192e565b6020604051808303816000875af1158015610bf4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1891906116cd565b610c57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4e90611746565b60405180910390fd5b610c60336111e2565b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000016000828254610cb29190611865565b925050819055508060066000828254610ccb9190611865565b9250508190555050565b600080600267ffffffffffffffff811115610cf357610cf2611965565b5b604051908082528060200260200182016040528015610d215781602001602082028036833780820191505090505b50905060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600081518110610d5957610d58611994565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600181518110610dca57610dc9611994565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d06ca61f670de0b6b3a7640000846040518363ffffffff1660e01b8152600401610e6b929190611abc565b600060405180830381865afa158015610e88573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610eb19190611c16565b905080600181518110610ec757610ec6611994565b5b60200260200101519250505090565b6002544211610f1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1190611cd1565b60405180910390fd5b6000600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060030160009054906101000a900460ff1615610faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa690611d3d565b60405180910390fd5b60006005540361105c57600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016110149190611766565b602060405180830381865afa158015611031573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110559190611796565b6005819055505b611065336111e2565b6000600754826002015460055461107c91906117c3565b6110869190611834565b905060018260030160006101000a81548160ff021916908315150217905550600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401611102929190611678565b6020604051808303816000875af1158015611121573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114591906116cd565b611184576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117b90611da9565b60405180910390fd5b5050565b600042905090565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600042905080600254101561123a5760025490505b60008260010154111561128157816000015482600101548261125c9190611635565b61126691906117c3565b8260020160008282546112799190611865565b925050819055505b600654600854826112929190611635565b61129c91906117c3565b600760008282546112ad9190611865565b9250508190555080600881905550808260010181905550505050565b6000819050919050565b6112dc816112c9565b82525050565b60006020820190506112f760008301846112d3565b92915050565b6000604051905090565b600080fd5b600080fd5b61131a816112c9565b811461132557600080fd5b50565b60008135905061133781611311565b92915050565b60006020828403121561135357611352611307565b5b600061136184828501611328565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006113af6113aa6113a58461136a565b61138a565b61136a565b9050919050565b60006113c182611394565b9050919050565b60006113d3826113b6565b9050919050565b6113e3816113c8565b82525050565b60006020820190506113fe60008301846113da565b92915050565b600061140f8261136a565b9050919050565b61141f81611404565b811461142a57600080fd5b50565b60008135905061143c81611416565b92915050565b60006020828403121561145857611457611307565b5b60006114668482850161142d565b91505092915050565b600061010082019050611485600083018b6112d3565b611492602083018a6112d3565b61149f60408301896112d3565b6114ac60608301886112d3565b6114b960808301876112d3565b6114c660a08301866112d3565b6114d360c08301856112d3565b6114e060e08301846112d3565b9998505050505050505050565b60008115159050919050565b611502816114ed565b82525050565b600060808201905061151d60008301876112d3565b61152a60208301866112d3565b61153760408301856112d3565b61154460608301846114f9565b95945050505050565b6000611558826113b6565b9050919050565b6115688161154d565b82525050565b6000602082019050611583600083018461155f565b92915050565b600082825260208201905092915050565b7f496e73756666696369656e74207374616b656420616d6f756e74000000000000600082015250565b60006115d0601a83611589565b91506115db8261159a565b602082019050919050565b600060208201905081810360008301526115ff816115c3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611640826112c9565b915061164b836112c9565b925082820390508181111561166357611662611606565b5b92915050565b61167281611404565b82525050565b600060408201905061168d6000830185611669565b61169a60208301846112d3565b9392505050565b6116aa816114ed565b81146116b557600080fd5b50565b6000815190506116c7816116a1565b92915050565b6000602082840312156116e3576116e2611307565b5b60006116f1848285016116b8565b91505092915050565b7f5472616e73666572206661696c65640000000000000000000000000000000000600082015250565b6000611730600f83611589565b915061173b826116fa565b602082019050919050565b6000602082019050818103600083015261175f81611723565b9050919050565b600060208201905061177b6000830184611669565b92915050565b60008151905061179081611311565b92915050565b6000602082840312156117ac576117ab611307565b5b60006117ba84828501611781565b91505092915050565b60006117ce826112c9565b91506117d9836112c9565b92508282026117e7816112c9565b915082820484148315176117fe576117fd611606565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061183f826112c9565b915061184a836112c9565b92508261185a57611859611805565b5b828204905092915050565b6000611870826112c9565b915061187b836112c9565b925082820190508082111561189357611892611606565b5b92915050565b60006040820190506118ae6000830185611669565b6118bb6020830184611669565b9392505050565b7f4e6f7420696e207374616b696e6720706572696f640000000000000000000000600082015250565b60006118f8601583611589565b9150611903826118c2565b602082019050919050565b60006020820190508181036000830152611927816118eb565b9050919050565b60006060820190506119436000830186611669565b6119506020830185611669565b61195d60408301846112d3565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b60006119e86119e36119de846119c3565b61138a565b6112c9565b9050919050565b6119f8816119cd565b82525050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611a3381611404565b82525050565b6000611a458383611a2a565b60208301905092915050565b6000602082019050919050565b6000611a69826119fe565b611a738185611a09565b9350611a7e83611a1a565b8060005b83811015611aaf578151611a968882611a39565b9750611aa183611a51565b925050600181019050611a82565b5085935050505092915050565b6000604082019050611ad160008301856119ef565b8181036020830152611ae38184611a5e565b90509392505050565b600080fd5b6000601f19601f8301169050919050565b611b0b82611af1565b810181811067ffffffffffffffff82111715611b2a57611b29611965565b5b80604052505050565b6000611b3d6112fd565b9050611b498282611b02565b919050565b600067ffffffffffffffff821115611b6957611b68611965565b5b602082029050602081019050919050565b600080fd5b6000611b92611b8d84611b4e565b611b33565b90508083825260208201905060208402830185811115611bb557611bb4611b7a565b5b835b81811015611bde5780611bca8882611781565b845260208401935050602081019050611bb7565b5050509392505050565b600082601f830112611bfd57611bfc611aec565b5b8151611c0d848260208601611b7f565b91505092915050565b600060208284031215611c2c57611c2b611307565b5b600082015167ffffffffffffffff811115611c4a57611c4961130c565b5b611c5684828501611be8565b91505092915050565b7f526577617264207769746864726177616c206e6f7420616c6c6f77656420796560008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6000611cbb602183611589565b9150611cc682611c5f565b604082019050919050565b60006020820190508181036000830152611cea81611cae565b9050919050565b7f416c72656164792077697468647261776e000000000000000000000000000000600082015250565b6000611d27601183611589565b9150611d3282611cf1565b602082019050919050565b60006020820190508181036000830152611d5681611d1a565b9050919050565b7f526577617264207472616e73666572206661696c656400000000000000000000600082015250565b6000611d93601683611589565b9150611d9e82611d5d565b602082019050919050565b60006020820190508181036000830152611dc281611d86565b905091905056fea264697066735822122024c9cbd834474ea19c4e4081bee6345855e0e8b12bd23148671002686fc564d764736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008fe15be3aadd30f78752001e6e38b846f2d195c00000000000000000000000001bef0d587dde09d4cee9b13d4d38b5bec57a13970000000000000000000000000000000000000000000000000000000064f33fe000000000000000000000000000000000000000000000000000000000651acce0
-----Decoded View---------------
Arg [0] : _lpToken (address): 0x8Fe15Be3aADd30F78752001E6E38b846F2d195C0
Arg [1] : _rewardToken (address): 0x1BEf0D587Dde09d4cee9b13d4d38b5bEc57A1397
Arg [2] : _startTime (uint256): 1693663200
Arg [3] : _endTime (uint256): 1696255200
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000008fe15be3aadd30f78752001e6e38b846f2d195c0
Arg [1] : 0000000000000000000000001bef0d587dde09d4cee9b13d4d38b5bec57a1397
Arg [2] : 0000000000000000000000000000000000000000000000000000000064f33fe0
Arg [3] : 00000000000000000000000000000000000000000000000000000000651acce0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 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.