Overview
S Balance
0 S
S Value
-More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Vault | 1805450 | 9 days ago | IN | 0 S | 0.00022641 |
Loading...
Loading
Contract Name:
Blacksail_Equal_Strategy
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/Pausable.sol'; import './Equalizer_Interface.sol'; contract Blacksail_Equal_Strategy is Ownable, Pausable, ReentrancyGuard { using SafeERC20 for IERC20; uint256 public immutable MAX = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff; // Tokens IERC20 public immutable native_token = IERC20(0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38); address public reward_token; address public staking_token; address public deposit_token; address public lp0; address public lp1; // Fee structure uint256 public WITHDRAWAL_MAX = 100000; uint256 public WITHDRAW_FEE = 100; uint256 public DIVISOR = 1000; uint256 public CALL_FEE = 100; uint256 public FEE_BATCH = 900; uint256 public PLATFORM_FEE = 45; // Third Party Addresses address public rewardPool; address public unirouter; // Information uint256 public lastHarvest; bool public harvestOnDeposit; // Platform Addresses address public vault; address public treasury; // Routes IEqualizer.Route[] public rewardToNative; IEqualizer.Route[] public nativeToLp0; IEqualizer.Route[] public nativeToLp1; address[] public rewards; uint256 public slippageTolerance; event Deposit(uint256 amount); event Withdraw(uint256 amount); event Harvest(address indexed harvester); event ChargeFees(uint256 callFee, uint256 protocolFee); event SetVault(address indexed newVault); event SetWithdrawalFee(uint256 newFee); event SetSlippageTolerance(uint256 newTolerance); /** * @dev Constructor to initialize the strategy contract. * @param _staking_token The token to be staked in the third-party farm. * @param _rewardPool The address of the reward pool where staking and rewards occur. * @param _unirouter The address of the Uniswap V2/V3 router for token swaps. * @param _harvestOnDeposit Boolean to enable or disable reward harvesting during deposits. * @param _rewardToNative The path for swapping rewards to the native token, using IEqualizer routes. * * This constructor: * - Sets up the core token and contract addresses for staking, rewards, and routing. * - Enables or disables harvest-on-deposit, with a default withdrawal fee of 0 if enabled. * - Defines the reward-to-native token conversion path for liquidity and fee operations. * - Grants initial token allowances to external contracts. */ constructor ( address _staking_token, address _rewardPool, address _rewardToken, address _unirouter, bool _harvestOnDeposit, address _treasury, IEqualizer.Route[] memory _rewardToNative, IEqualizer.Route[] memory _nativeToLp0, IEqualizer.Route[] memory _nativeToLp1 ) Ownable(msg.sender) { staking_token = _staking_token; rewardPool = _rewardPool; reward_token = _rewardToken; rewardToNative = _rewardToNative; nativeToLp0 = _nativeToLp0; nativeToLp1 = _nativeToLp1; lp0 = nativeToLp0[0].to; lp1 = nativeToLp1[0].to; unirouter = _unirouter; treasury = _treasury; harvestOnDeposit = _harvestOnDeposit; rewards.push(reward_token); if (harvestOnDeposit) { setWithdrawalFee(0); } } /** @dev Sets the vault connected to this strategy */ function setVault(address _vault) external onlyOwner { require(isContract(_vault), "Vault must be a contract"); require(vault == address(0), "Vault already set"); vault = _vault; _giveAllowances(); emit SetVault(_vault); } /** @dev Function to synchronize balances before new user deposit. Can be overridden in the strategy. */ function beforeDeposit() external virtual { if (harvestOnDeposit) { require(msg.sender == vault, "Vault deposit only"); _harvest(address(this)); } } /** @dev Deposits funds into third party farm */ function deposit() public onlyAuthorized whenNotPaused { uint256 staking_balance = IERC20(staking_token).balanceOf(address(this)); if (staking_balance > 0) { IEqualizerPool(rewardPool).deposit(staking_balance); } } /** * @dev Withdraws a specified amount of staking tokens to the vault. * Handles balance retrieval from the reward pool if needed and deducts withdrawal fees if applicable. * * @param _amount The amount of staking tokens to withdraw. * * Requirements: * - Can only be called by the vault. * - If not the owner and contract is not paused, a withdrawal fee is deducted unless `harvestOnDeposit` is enabled. * * Emits a {Withdraw} event with the updated strategy balance. */ function withdraw(uint256 _amount) external nonReentrant { require(msg.sender == vault, "!vault"); uint256 stakingBal = IERC20(staking_token).balanceOf(address(this)); if (stakingBal < _amount) { IEqualizerPool(rewardPool).withdraw(_amount - stakingBal); stakingBal = IERC20(staking_token).balanceOf(address(this)); } if (stakingBal > _amount) { stakingBal = _amount; } uint256 wFee = (stakingBal * WITHDRAW_FEE) / WITHDRAWAL_MAX; if (!paused() && !harvestOnDeposit) { stakingBal = stakingBal - wFee; } IERC20(staking_token).safeTransfer(vault, stakingBal); emit Withdraw(balanceOf()); } /** * @dev Triggers the harvest process to compound earnings. * Internally calls `_harvest` to collect rewards, charge fees, add liquidity, and reinvest. */ function harvest() external { require(!isContract(msg.sender) || msg.sender == vault, "!auth Contract Harvest"); _harvest(msg.sender); } /** @dev Compounds the strategy's earnings and charges fees */ function _harvest(address caller) internal whenNotPaused { IEqualizerPool(rewardPool).getReward(address(this), rewards); uint256 rewardAmt = IERC20(reward_token).balanceOf(address(this)); if (rewardAmt > 0){ chargeFees(caller); addLiquidity(); deposit(); } lastHarvest = block.timestamp; emit Harvest(msg.sender); } /** @dev This function converts all funds to WFTM, charges fees, and sends fees to respective accounts */ function chargeFees(address caller) internal { uint256 toNative = IERC20(reward_token).balanceOf(address(this)); IEqualizer(unirouter).swapExactTokensForTokensSupportingFeeOnTransferTokens(toNative, 0, rewardToNative, address(this), block.timestamp); uint256 nativeBal = IERC20(native_token).balanceOf(address(this)); uint256 platformFee = (nativeBal * PLATFORM_FEE) / DIVISOR; uint256 callFeeAmount = (platformFee * CALL_FEE) / DIVISOR; uint256 treasuryFee = platformFee - callFeeAmount; if (caller != address(this)) { IERC20(native_token).safeTransfer(caller, callFeeAmount); } IERC20(native_token).safeTransfer(treasury, treasuryFee); emit ChargeFees(callFeeAmount, platformFee); } /** * @dev Adds liquidity by converting native tokens to the deposit token and forwarding them to the ICHI Vault. * * - Checks for sufficient native token balance. * - Converts native tokens to the deposit token using the Uniswap V3 router if required. * - Approves the necessary allowances for the Uniswap V3 router. * - Forwards the converted deposit tokens to the ICHI Vault for staking. * * Requirements: * - The contract must have a positive balance of the native token. */ function addLiquidity() internal { uint256 half = IERC20(native_token).balanceOf(address(this)) / 2; if (address(native_token) != lp0) { IEqualizer(unirouter).swapExactTokensForTokensSupportingFeeOnTransferTokens( half, 0, nativeToLp0, address(this), block.timestamp ); } if (address(native_token) != lp1) { IEqualizer(unirouter).swapExactTokensForTokensSupportingFeeOnTransferTokens( half, 0, nativeToLp1, address(this), block.timestamp ); } uint256 balLp0 = IERC20(lp0).balanceOf(address(this)); uint256 balLp1 = IERC20(lp1).balanceOf(address(this)); IEqualizer(unirouter).addLiquidity( lp0, lp1, false, balLp0, balLp1, 1, 1, address(this), block.timestamp ); } /** @dev Determines the amount of reward in WFTM upon calling the harvest function */ function harvestCallReward() public view returns (uint256) { uint256 rewardBal = rewardsAvailable(); uint256 nativeOut; if (rewardBal > 0) { (nativeOut, ) = IEqualizer(unirouter).getAmountOut(rewardBal, reward_token, address(native_token)); } return (((nativeOut * PLATFORM_FEE) / DIVISOR) * CALL_FEE) / DIVISOR; } /** @dev Sets harvest on deposit to @param _harvestOnDeposit */ function setHarvestOnDeposit(bool _harvestOnDeposit) external onlyOwner { harvestOnDeposit = _harvestOnDeposit; if (harvestOnDeposit) { setWithdrawalFee(0); } else { setWithdrawalFee(10); } } /** @dev Returns the amount of rewards that are pending */ function rewardsAvailable() public view returns (uint256) { return IEqualizerPool(rewardPool).earned(reward_token, address(this)); } /** @dev calculate the total underlaying staking tokens held by the strat */ function balanceOf() public view returns (uint256) { return balanceOfStakingToken() + balanceOfPool(); } /** @dev it calculates how many staking tokens this contract holds */ function balanceOfStakingToken() public view returns (uint256) { return IERC20(staking_token).balanceOf(address(this)); } /** @dev it calculates how many staking tokens the strategy has working in the farm */ function balanceOfPool() public view returns (uint256) { return IEqualizerPool(rewardPool).balanceOf(address(this)); } /** @dev called as part of strat migration. Sends all the available funds back to the vault */ function retireStrat() external { require(msg.sender == vault, "!vault"); IEqualizerPool(rewardPool).withdraw(balanceOfPool()); uint256 stakingBal = IERC20(staking_token).balanceOf(address(this)); IERC20(staking_token).transfer(vault, stakingBal); } /** @dev Pauses the strategy contract */ function pause() public onlyOwner { _pause(); _removeAllowances(); } /** @dev Unpauses the strategy contract */ function unpause() external onlyOwner { _unpause(); _giveAllowances(); deposit(); } /** @dev Gives allowances to spenders */ function _giveAllowances() internal { IERC20(staking_token).approve(rewardPool, MAX); IERC20(reward_token).approve(unirouter, MAX); native_token.approve(unirouter, MAX); IERC20(lp0).approve(unirouter, MAX); IERC20(lp1).approve(unirouter, MAX); } /** @dev Removes allowances to spenders */ function _removeAllowances() internal { IERC20(staking_token).approve(rewardPool, 0); IERC20(reward_token).approve(unirouter, 0); native_token.approve(unirouter, 0); IERC20(lp0).approve(unirouter, 0); IERC20(lp1).approve(unirouter, 0); } /** * @dev Sets the withdrawal fee for the strategy. * * - Ensures that the fee does not exceed 100 (representing 1%). * - Updates the `WITHDRAW_FEE` variable with the new fee value. * * Requirements: * - `fee` must be less than or equal to 100. * * @param fee The new withdrawal fee (scaled by 100,000 for precision). */ function setWithdrawalFee(uint256 fee) internal { require(fee <= 100, "Fee too high"); WITHDRAW_FEE = fee; emit SetWithdrawalFee(fee); } /** * @dev Allows the contract owner to set the slippage tolerance for token swaps. * This value is used to calculate the minimum acceptable output amount in swaps, * helping to mitigate the risks of slippage and unfavorable price changes. * * Requirements: * - The caller must be the contract owner. * - The provided tolerance must be less than or equal to 1500 (representing a maximum of 15% slippage). * * Emits: * - A {SetSlippageTolerance} event indicating the updated slippage tolerance. * * @param _tolerance The new slippage tolerance value, scaled by 10,000 (e.g., 1500 = 15%). */ function setSlippageTolerance(uint256 _tolerance) external onlyOwner { require(_tolerance <= 1500, "Invalid tolerance"); // Max 15% slippageTolerance = _tolerance; emit SetSlippageTolerance(slippageTolerance); } function isContract(address account) internal view returns (bool) { return account.code.length > 0; } modifier onlyAuthorized() { require(msg.sender == vault || msg.sender == address(this), "Not authorized, only Vault or Strategy"); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC165} from "./IERC165.sol"; /** * @title IERC1363 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363]. * * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction. */ interface IERC1363 is IERC20, IERC165 { /* * Note: the ERC-165 identifier for this interface is 0xb0202a11. * 0xb0202a11 === * bytes4(keccak256('transferAndCall(address,uint256)')) ^ * bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^ * bytes4(keccak256('approveAndCall(address,uint256)')) ^ * bytes4(keccak256('approveAndCall(address,uint256,bytes)')) */ /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @param data Additional data with no specified format, sent in call to `spender`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ 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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC1363} from "../../../interfaces/IERC1363.sol"; import {Address} from "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC-20 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 { /** * @dev An operation with an ERC-20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, 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. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @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. * * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being * set here. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { safeTransfer(token, to, value); } else if (!token.transferAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferFromAndCallRelaxed( IERC1363 token, address from, address to, uint256 value, bytes memory data ) internal { if (to.code.length == 0) { safeTransferFrom(token, from, to, value); } else if (!token.transferFromAndCall(from, to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}. * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall} * once without retrying, and relies on the returned value to be true. * * Reverts if the returned value is other than `true`. */ function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { forceApprove(token, to, value); } else if (!token.approveAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @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 {_callOptionalReturnBool} that reverts if call fails to meet the requirements. */ function _callOptionalReturn(IERC20 token, bytes memory data) private { uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) // bubble errors if iszero(success) { let ptr := mload(0x40) returndatacopy(ptr, 0, returndatasize()) revert(ptr, returndatasize()) } returnSize := returndatasize() returnValue := mload(0) } if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) { revert SafeERC20FailedOperation(address(token)); } } /** * @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 silently catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { bool success; uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) returnSize := returndatasize() returnValue := mload(0) } return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol) pragma solidity ^0.8.20; import {Errors} from "./Errors.sol"; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert Errors.InsufficientBalance(address(this).balance, amount); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert Errors.FailedCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {Errors.FailedCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert Errors.InsufficientBalance(address(this).balance, value); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case * of an unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {Errors.FailedCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}. */ function _revert(bytes memory returndata) 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 assembly ("memory-safe") { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert Errors.FailedCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol) pragma solidity ^0.8.20; /** * @dev Collection of common custom errors used in multiple contracts * * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library. * It is recommended to avoid relying on the error API for critical functionality. * * _Available since v5.1._ */ library Errors { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error InsufficientBalance(uint256 balance, uint256 needed); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedCall(); /** * @dev The deployment failed. */ error FailedDeployment(); /** * @dev A necessary precompile is missing. */ error MissingPrecompile(address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at, * consider using {ReentrancyGuardTransient} instead. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; interface IEqualizer { // Routes struct Routes { address from; address to; bool stable; } struct Route { address from; address to; bool stable; } function addLiquidity( address tokenA, address tokenB, bool stable, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, bool stable, 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, bool stable, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, bool stable, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokensSimple( uint amountIn, uint amountOutMin, address tokenFrom, address tokenTo, bool stable, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, Routes[] memory route, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, Route[] calldata routes, address to, uint deadline ) external; function getAmountOut( uint amountIn, address tokenIn, address tokenOut ) external view returns (uint amount, bool stable); function getAmountsOut(uint amountIn, Route[] memory routes) external view returns (uint[] memory amounts); function quoteAddLiquidity( address tokenA, address tokenB, bool stable, uint amountADesired, uint amountBDesired ) external view returns (uint amountA, uint amountB, uint liquidity); function quoteAddLiquidity( address tokenA, address tokenB, bool stable, address _factory, uint amountADesired, uint amountBDesired ) external view returns (uint amountA, uint amountB, uint liquidity); function defaultFactory() external view returns (address); } interface IEqualizerPool { function deposit(uint256 amount) external; function withdraw(uint256 amount) external; function getReward(address user, address[] memory rewards) external; function earned(address token, address user) external view returns (uint256); function balanceOf(address account) external view returns (uint256); function stake() external view returns (address); }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "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":"_staking_token","type":"address"},{"internalType":"address","name":"_rewardPool","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_unirouter","type":"address"},{"internalType":"bool","name":"_harvestOnDeposit","type":"bool"},{"internalType":"address","name":"_treasury","type":"address"},{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"stable","type":"bool"}],"internalType":"struct IEqualizer.Route[]","name":"_rewardToNative","type":"tuple[]"},{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"stable","type":"bool"}],"internalType":"struct IEqualizer.Route[]","name":"_nativeToLp0","type":"tuple[]"},{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"stable","type":"bool"}],"internalType":"struct IEqualizer.Route[]","name":"_nativeToLp1","type":"tuple[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"callFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"protocolFee","type":"uint256"}],"name":"ChargeFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"harvester","type":"address"}],"name":"Harvest","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newTolerance","type":"uint256"}],"name":"SetSlippageTolerance","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newVault","type":"address"}],"name":"SetVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"SetWithdrawalFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"CALL_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_BATCH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PLATFORM_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAWAL_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WITHDRAW_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfStakingToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beforeDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit_token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvestCallReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestOnDeposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastHarvest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lp0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lp1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nativeToLp0","outputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"stable","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nativeToLp1","outputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"stable","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"native_token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"retireStrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardToNative","outputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"stable","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reward_token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_harvestOnDeposit","type":"bool"}],"name":"setHarvestOnDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tolerance","type":"uint256"}],"name":"setSlippageTolerance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"slippageTolerance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"staking_token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unirouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c060405234620006cf5762003320803803806200001d81620006d4565b928339810161012082820312620006cf576200003982620006fa565b906200004860208401620006fa565b916200005760408501620006fa565b936200006660608201620006fa565b9262000075608083016200070f565b956200008460a08401620006fa565b60c084015190966001600160401b03949091858111620006cf5784620000ac9183016200071d565b9360e0820151868111620006cf5781620000c89184016200071d565b95610100830151908111620006cf57620000e392016200071d565b943315620006b6576000543360018060a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a36001600160a81b0319163360ff60a01b1916176000556001805560001960805273039e2fb66102314ce7b64ce5ce3e5183bc94ad3860a052620186a0600755606460088190556103e8600955600a55610384600b55602d600c55600380546001600160a01b03199081166001600160a01b0393841617909155600d805482169383169390931790925560028054909216921691909117905580519068010000000000000000821162000459576012548260125580831062000662575b50602001601260005260206000206000915b838310620005fb5750505050805190680100000000000000008211620004595760135482601355808310620005a7575b50602001601360005260206000206000915b838310620005405750505050805190680100000000000000008211620004595760145482601455808310620004d6575b50602001601460005260206000206000915b8383106200046f575050505060135415620004435760136000527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09154600580546001600160a01b0319166001600160a01b039290921691909117905560145415620004435760146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ed54600680546001600160a01b03199081166001600160a01b0393841617909155600e8054821693831693909317909255601180549092169281169290921790556010805492151560ff1660ff1993909316929092179091556002546015549116906801000000000000000081101562000459576001810180601555811015620004435760156000527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4750180546001600160a01b031916909117905560105460ff166200040d575b604051612b279081620007f982396080518181816106560152612878015260a0518181816109a801528181610fa5015281816116c50152818161204501528181612140015261292e0152f35b60006008557f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af602060405160008152a1620003c1565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8051805183546001600160a01b039182166001600160a01b03199091161784556020808301516001808701805460409096015160ff60a01b90151560a01b16929094166001600160a81b03199095169490941717909155930192600290920191016200026f565b6001600160ff1b0381811682036200052a57831683036200052a57601460005260206000209060011b8101908360011b015b8181106200051757506200025d565b6000808255600182015560020162000508565b634e487b7160e01b600052601160045260246000fd5b8051805183546001600160a01b039182166001600160a01b03199091161784556020808301516001808701805460409096015160ff60a01b90151560a01b16929094166001600160a81b03199095169490941717909155930192600290920191016200022d565b6001600160ff1b0381811682036200052a57831683036200052a57601360005260206000209060011b8101908360011b015b818110620005e857506200021b565b60008082556001820155600201620005d9565b8051805183546001600160a01b039182166001600160a01b03199091161784556020808301516001808701805460409096015160ff60a01b90151560a01b16929094166001600160a81b0319909516949094171790915593019260029092019101620001eb565b6001600160ff1b0381811682036200052a57831683036200052a57601260005260206000209060011b8101908360011b015b818110620006a35750620001d9565b6000808255600182015560020162000694565b604051631e4fbdf760e01b815260006004820152602490fd5b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200045957604052565b51906001600160a01b0382168203620006cf57565b51908115158203620006cf57565b81601f82011215620006cf5780516001600160401b0392909190838311620004595760209062000752828560051b01620006d4565b948286868152019183606080970286010194818611620006cf578401925b85841062000782575050505050505090565b8684830312620006cf576040908151908882019180831086841117620007e3578388938b9552620007b388620006fa565b8252620007c2848901620006fa565b84830152620007d38189016200070f565b9082015281520193019262000770565b60246000634e487b7160e01b81526041600452fdfe608060408181526004918236101561001657600080fd5b600092833560e01c918263025e30b01461233757508163097463241461230e5781630e8fbb5a146122925781631158808614612275578163117da1ee146121e5578163171d2189146120c6578163257ae0de1461209d5781632638c09e1461207457816327ced537146120305781632dc7d74c146120075781632e1a7d4d14611db25781633410fe6e14611d9357816334fbc9a114611d745781633f4ba83a14611c075781634641257d1461154357816354518b1a14611524578163573fef0a14610e0d578163583bd47714610d6c5781635c975abb14610d4757816361d027b314610d1e57816366666aa914610cf55781636817031b14610bde578163715018a614610b84578163722713f714610b675781637b83fc1d14610b3e5781637ff8f1e914610b215781638456cb59146108b15781638912cb8b1461088d5781638cab0f99146108655781638da5cb5b1461083d578163951d6d201461081e5781639bff5ddb146107ff578163d03153aa146107e0578163d0e30db014610679578163d49d51811461063e578163e7a7250a1461061a578163ed8501db14610579578163f1a392da1461055a578163f2fde38b146104c1578163f301af421461046a578163fb617787146102d1578163fbe751521461022d575063fbfa77cf146101fe57600080fd5b34610229578160031936011261022957601054905160089190911c6001600160a01b03168152602090f35b5080fd5b839150346102295760203660031901126102295735906012548210156102ce5750601260005260011b7fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34448101547fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34459091015491516001600160a01b039182168152908216602082015260ff60a09290921c9190911615156040820152606090f35b80fd5b9190503461046657826003193601126104665760018060a01b03906102fe8260105460081c1633146123ec565b8382600d541661030c612813565b813b156104665782916024839286519485938492632e1a7d4d60e01b84528b8401525af1801561045c57610444575b505081600354168151906370a0823160e01b82523085830152856020948584602481865afa93841561043a5782946103fe575b50601054855163a9059cbb60e01b81526001600160a01b0360089290921c9092161696810196875260208701939093529194849286929183919082906040015b03925af19081156103f557506103c2578280f35b81813d83116103ee575b6103d681836123a9565b81010312610229576103e790612735565b5038808280f35b503d6103cc565b513d85823e3d90fd5b93509190508483813d8111610433575b61041881836123a9565b8101031261042e579151919086906103ae61036e565b600080fd5b503d61040e565b85513d84823e3d90fd5b61044d9061237f565b61045857833861033b565b8380fd5b83513d84823e3d90fd5b8280fd5b90503461046657602036600319011261046657356015548110156104665760156020935260018060a01b03907f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4750154169051908152f35b91905034610466576020366003190112610466576001600160a01b03823581811693919290849003610556576104f5612353565b8315610540575050600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8480fd5b505034610229578160031936011261022957602090600f549051908152f35b839150346102295760203660031901126102295735906014548210156102ce5750601460005260011b7fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec8101547fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ed9091015491516001600160a01b039182168152908216602082015260ff60a09290921c9190911615156040820152606090f35b505034610229578160031936011261022957602090610637612742565b9051908152f35b505034610229578160031936011261022957602090517f00000000000000000000000000000000000000000000000000000000000000008152f35b8391503461022957816003193601126102295760018060a01b038060105460081c16331480156107d7575b15610785579260249183946106b76123cb565b602081600354168451958680926370a0823160e01b825230878301525afa93841561077b578594610745575b50836106ed578480f35b600d541692833b156105565760248592838551968794859363b6b55f2560e01b85528401525af190811561073c5750610728575b8080808480f35b6107319061237f565b6102ce578082610721565b513d84823e3d90fd5b945092506020843d8211610773575b81610761602093836123a9565b8101031261042e5784935192866106e3565b3d9150610754565b83513d87823e3d90fd5b835162461bcd60e51b8152602081840152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152608490fd5b503033146106a4565b5050346102295781600319360112610229576020906016549051908152f35b5050346102295781600319360112610229576020906008549051908152f35b505034610229578160031936011261022957602090600a549051908152f35b505034610229578160031936011261022957905490516001600160a01b039091168152602090f35b9050346104665782600319360112610466575490516001600160a01b03909116815260209150f35b50503461022957816003193601126102295760209060ff6010541690519015158152f35b919050346104665782600319360112610466576108cc612353565b6108d46123cb565b825460ff60a01b1916600160a01b1783558051338152602091907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258908390a1600354600d54825163095ea7b360e01b8082526001600160a01b0392831682880152602482018890529195928590829060449082908b908b165af18015610a7b57610aed575b5085848660025416604488600e541687519485938492888452898401528160248401525af18015610a7b57610ab9575b5084600e54168351908282528382015286602482015284816044818a8a7f0000000000000000000000000000000000000000000000000000000000000000165af18015610a7b57610a85575b5085848660055416604488600e541687519485938492888452898401528160248401525af18015610a7b579085939291610a3e575b5060449087876006541697600e5416978651988995869485528401528160248401525af19081156103f557506103c2578280f35b909281813d8311610a74575b610a5481836123a9565b81010312610a70578492610a69604492612735565b5090610a0a565b8680fd5b503d610a4a565b84513d89823e3d90fd5b8481813d8311610ab2575b610a9a81836123a9565b81010312610a7057610aab90612735565b50386109d5565b503d610a90565b8481813d8311610ae6575b610ace81836123a9565b81010312610a7057610adf90612735565b5038610989565b503d610ac4565b8481813d8311610b1a575b610b0281836123a9565b81010312610a7057610b1390612735565b5038610959565b503d610af8565b5050346102295781600319360112610229576020906106376127d5565b50503461022957816003193601126102295760055490516001600160a01b039091168152602090f35b5050346102295781600319360112610229576020906106376127b9565b83346102ce57806003193601126102ce57610b9d612353565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b9050346104665760203660031901126104665780356001600160a01b0381811693909290848303610cf157610c11612353565b823b15610cae57601054938460081c16610c77575050610100600160a81b031990911660089190911b610100600160a81b031617601055610c50612851565b7fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f308280a280f35b906020606492519162461bcd60e51b8352820152601160248201527015985d5b1d08185b1c9958591e481cd95d607a1b6044820152fd5b906020606492519162461bcd60e51b8352820152601860248201527f5661756c74206d757374206265206120636f6e747261637400000000000000006044820152fd5b8580fd5b505034610229578160031936011261022957600d5490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760115490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760ff6020925460a01c1690519015158152f35b839150346102295760203660031901126102295735906013548210156102ce5750601360005260011b7f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0908101547f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0919091015491516001600160a01b039182168152908216602082015260ff60a09290921c9190911615156040820152606090f35b839150346102295781600319360112610229576010549260ff8416610e30578280f35b6001600160a01b039360081c841633036114ec57610e4c6123cb565b83600d541691823b156104585781516331279d3d60e01b815284816044810195308583015260249686888401526015548091526064830190601585527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47590855b8181106114ce575050508383809203925af1801561077b579085916114ba575b50508460025416948251906370a0823160e01b96878352308484015260209283818881855afa90811561132757889161148d575b50610f3e575b505050505050905042600f55337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a28082808280f35b8286918651928380928c825230898301525afa908115611226578791611460575b5081600e5416803b1561145c578786518092818381610f8f636cc1ae1360e01b988983528c429130918501612516565b03925af1801561132757908891611448575b50507f0000000000000000000000000000000000000000000000000000000000000000908282169186518a8152308782015285818a81875afa9081156112ee579088918b91611415575b509161101b7f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b393600c5490612444565b61105761104061102e6009548094612457565b9261103b600a5485612444565b612457565b9261104b8484612421565b90896011541690612477565b825191825287820152a18551898152308682015284818981865afa90811561140b5789916113de575b5060011c9183600554168103611386575b836006541603611331575b50508060055416845190888252308583015283828881845afa9182156113275788926112f8575b50826006541686518a8152308782015285818a81855afa9081156112ee5789939288928c9283916112b4575b50906101249392916060969789600e5416928d51998a988997635a47ddc360e01b895288015286015283604486015260648501526084840152600160a4840152600160c48401523060e4840152426101048401525af1801561122657611289575b508060105460081c1633148015611280575b156112305785966111716123cb565b8282600354169187875180948193825230898301525afa9283156112265787936111f3575b5050816111a4575b80610f06565b600d541693843b15610cf1578592838551968794859363b6b55f2560e01b85528401525af190811561073c57506111df575b8080808061119e565b6111e89061237f565b6102ce5780826111d6565b819750809293503d831161121f575b61120c81836123a9565b8101031261042e57859451908780611196565b503d611202565b85513d89823e3d90fd5b5083602691608494519362461bcd60e51b85528401528201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b50303314611162565b606090813d81116112ad575b61129f81836123a9565b81010312610cf15787611150565b503d611295565b9550509150508583813d83116112e7575b6112cf81836123a9565b8101031261042e579151889287918b919060606110ef565b503d6112c5565b88513d8c823e3d90fd5b9091508381813d8311611320575b61131081836123a9565b8101031261042e575190896110c3565b503d611306565b86513d8a823e3d90fd5b82600e541690813b156113825791889161135c938389518096819582948352429030908d8501612680565b03925af18015611226579087911561109c576113779061237f565b610cf157858861109c565b8880fd5b83600e5416803b156113da5789885180928582528183816113ad8d42908c309185016125cb565b03925af180156112ee57908a916113c6575b5050611091565b6113cf9061237f565b61138257888b6113bf565b8980fd5b90508481813d8311611404575b6113f581836123a9565b8101031261042e57518a611080565b503d6113eb565b87513d8b823e3d90fd5b809250878092503d8311611441575b61142e81836123a9565b8101031261042e5751879061101b610feb565b503d611424565b6114519061237f565b610a70578689610fa1565b8780fd5b90508281813d8311611486575b61147781836123a9565b8101031261042e575188610f5f565b503d61146d565b90508381813d83116114b3575b6114a481836123a9565b8101031261042e575189610f00565b503d61149a565b6114c39061237f565b610458578386610ecc565b82548d1684528b965087955060209093019260019283019201610eac565b906020606492519162461bcd60e51b835282015260126024820152715661756c74206465706f736974206f6e6c7960701b6044820152fd5b5050346102295781600319360112610229576020906007549051908152f35b83915034610229578160031936011261022957333b158015611bed575b15611bb15761156d6123cb565b600d546001600160a01b039390841691823b156104585781516331279d3d60e01b815284816044810195308583015260249686888401526015548091526064830190601585527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47590855b818110611b93575050508383809203925af1801561077b57908591611b7f575b50508460025416948251906370a0823160e01b96878352308484015260209283818881855afa908115611327578891611b52575b5061165e575b8642600f55337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a280f35b8286918651928380928c825230898301525afa908115611226578791611b25575b5081600e5416803b1561145c5787865180928183816116af636cc1ae1360e01b988983528c429130918501612516565b03925af1801561132757908891611b11575b50507f0000000000000000000000000000000000000000000000000000000000000000908282169086518a8152308782015285818a81865afa9081156112ee5788908b92611adf575b506117397f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b392600c5490612444565b6117566117496009548093612457565b9161103b600a5484612444565b9061177a6117648383612421565b303314988915611acf575b8a6011541690612477565b825191825288820152a186518a8152308782015285818a81865afa9081156112ee578a91611aa2575b5060011c9184600554168103611a47575b8460065416036119f6575b50508160055416855190898252308683015284828981845afa91821561140b5789926119c7575b508360065416918751908b8252308883015286828b81875afa9182156119bd57898b94938a938e938492611981575b509061012494939291606097988b600e54169351998a988997635a47ddc360e01b895288015286015283604486015260648501526084840152600160a4840152600160c48401523060e4840152426101048401525af1801561132757611956575b508160105460081c16331490811561194e575b50156112305785966118996123cb565b8282600354169187875180948193825230898301525afa92831561122657879361191b575b5050816118cc575b80611631565b600d541693843b15610cf1578592838551968794859363b6b55f2560e01b85528401525af190811561073c5750611907575b808080806118c6565b6119109061237f565b6102ce5780826118fe565b819750809293503d8311611947575b61193481836123a9565b8101031261042e578594519087806118be565b503d61192a565b905088611889565b606090813d811161197a575b61196c81836123a9565b81010312610a705788611876565b503d611962565b945095505050508681813d83116119b6575b61199d81836123a9565b8101031261042e5751899288918c918b91906060611815565b503d611993565b89513d8d823e3d90fd5b9091508481813d83116119ef575b6119df81836123a9565b8101031261042e5751908a6117e6565b503d6119d5565b83600e541690813b156113da57918991611a2193838a5180968195829483528c429130918501612680565b03925af1801561132757908891156117bf57611a3c9061237f565b610a705786896117bf565b84600e5416803b15611a9e578a611a7181928a8c519485809481938a835242908c309185016125cb565b03925af180156119bd57908b91611a8a575b50506117b4565b611a939061237f565b6113da57898c611a83565b8a80fd5b90508581813d8311611ac8575b611ab981836123a9565b8101031261042e57518b6117a3565b503d611aaf565b611ada853383612477565b61176f565b809250878092503d8311611b0a575b611af881836123a9565b8101031261042e57518761173961170a565b503d611aee565b611b1a9061237f565b610a705786896116c1565b90508281813d8311611b4b575b611b3c81836123a9565b8101031261042e57518861167f565b503d611b32565b90508381813d8311611b78575b611b6981836123a9565b8101031261042e57518961162b565b503d611b5f565b611b889061237f565b6104585783866115f7565b82548d1684528b9650879550602090930192600192830192016115d7565b606490602084519162461bcd60e51b8352820152601660248201527508585d5d1a0810dbdb9d1c9858dd0812185c9d995cdd60521b6044820152fd5b506010543360089190911c6001600160a01b031614611560565b838334610229578160031936011261022957611c21612353565b815460ff8160a01c1615611d645760ff60a01b191682558051338152602091907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa908390a1611c6e612851565b60018060a01b03938460105460081c1633148015611d5b575b15611d0b578394611c966123cb565b60248482600354168551928380926370a0823160e01b825230888301525afa948515611d01578695611cce575b5050836106ed578480f35b819650809295503d8311611cfa575b611ce781836123a9565b8101031261042e57849351928680611cc3565b503d611cdd565b84513d88823e3d90fd5b82608492519162461bcd60e51b8352820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b50303314611c87565b8151638dfc202b60e01b81528490fd5b505034610229578160031936011261022957602090600c549051908152f35b5050346102295781600319360112610229576020906009549051908152f35b91905034610466576020908160031936011261045857823592600260015414611ff957600260015560018060a01b0393611df48560105460081c1633146123ec565b846003541683519285846024816370a0823160e01b9586825230868301525afa938415611fc0578894611fca575b508784848110611edb575b50505050907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d9482611ea0938311611ed3575b50611e79611e7060085484612444565b60075490612457565b60ff885460a01c161580611ec6575b611eb5575b5060035460105460081c82169116612477565b611ea86127b9565b9051908152a16001805580f35b611ebf9192612421565b9038611e8d565b5060ff6010541615611e88565b915038611e60565b909192939450611ef088600d54169186612421565b90803b15610466576024839288519485938492632e1a7d4d60e01b8452888401525af18015611fc057611fad575b508490602487600354169386519485938492835230908301525afa908115611fa3578691611f54575b509084611ea08738611e2d565b9190508382813d8311611f9c575b611f6c81836123a9565b8101031261042e5790517f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d611f47565b503d611f62565b83513d88823e3d90fd5b96611fb986929861237f565b9690611f1e565b85513d8a823e3d90fd5b9093508581813d8311611ff2575b611fe281836123a9565b8101031261145c57519238611e22565b503d611fd8565b9051633ee5aeb560e01b8152fd5b50503461022957816003193601126102295760035490516001600160a01b039091168152602090f35b505034610229578160031936011261022957517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50503461022957816003193601126102295760025490516001600160a01b039091168152602090f35b505034610229578160031936011261022957600e5490516001600160a01b039091168152602090f35b8284346102ce57806003193601126102ce576120e0612742565b92819380612115575b6020846106376120fc88600c5490612444565b61103b61210c6009548093612457565b600a5490612444565b600e546002548551635e1e632560e01b8152938401929092526001600160a01b0391821660248401527f0000000000000000000000000000000000000000000000000000000000000000821660448401529294509091839183916064918391165afa9283156121da578093612194575b50506106376120fc60206120e9565b9092508183813d83116121d3575b6121ac81836123a9565b810103126102ce57506106376120fc836121cb60208096519201612735565b509350612185565b503d6121a2565b8251903d90823e3d90fd5b9190503461046657602036600319011261046657813591612204612353565b6105dc831161223f5750816020917fe4a7fd2711237e77309a9a16ff636a748dbf956fd91f6e6da800d9302f441a799360165551908152a180f35b6020606492519162461bcd60e51b83528201526011602482015270496e76616c696420746f6c6572616e636560781b6044820152fd5b505034610229578160031936011261022957602090610637612813565b9050346104665760203660031901126104665735801515809103610466577f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af916020916122dd612353565b60ff8019601054169116809117601055600014612300578360085551838152a180f35b600a60085551600a8152a180f35b50503461022957816003193601126102295760065490516001600160a01b039091168152602090f35b849034610229578160031936011261022957602090600b548152f35b6000546001600160a01b0316330361236757565b60405163118cdaa760e01b8152336004820152602490fd5b67ffffffffffffffff811161239357604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761239357604052565b60ff60005460a01c166123da57565b60405163d93c066560e01b8152600490fd5b156123f357565b60405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b6044820152606490fd5b9190820391821161242e57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561242e57565b8115612461570490565b634e487b7160e01b600052601260045260246000fd5b60405163a9059cbb60e01b60208083019182526001600160a01b0394909416602483015260448083019590955293815290926000916124b76064826123a9565b519082855af11561250a576000513d61250157506001600160a01b0381163b155b6124df5750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b600114156124d8565b6040513d6000823e3d90fd5b909392919360a090818301908352602090600082850152604092808486015260125480925260c085019360126000527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444936000925b84841061258e57505050505050906080919460018060a01b031660608201520152565b85546001600160a01b0390811688526001808801549182168985015290821c60ff161515888501526060909701966002909601959093019261256b565b909392919360a090818301908352602090600082850152604092808486015260135480925260c085019360136000527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a090936000925b84841061264357505050505050906080919460018060a01b031660608201520152565b85546001600160a01b0390811688526001808801549182168985015290821c60ff1615158885015260609097019660029096019590930192612620565b909392919360a090818301908352602090600082850152604092808486015260145480925260c085019360146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec936000925b8484106126f857505050505050906080919460018060a01b031660608201520152565b85546001600160a01b0390811688526001808801549182168985015290821c60ff16151588850152606090970196600290960195909301926126d5565b5190811515820361042e57565b600d5460025460405163211dc32d60e01b81526001600160a01b0391821660048201523060248201529160209183916044918391165afa90811561250a5760009161278b575090565b906020823d82116127b1575b816127a4602093836123a9565b810103126102ce57505190565b3d9150612797565b6127c16127d5565b6127c9612813565b810180911161242e5790565b6003546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561250a5760009161278b575090565b600d546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561250a5760009161278b575090565b600354600d546040805163095ea7b360e01b8082526001600160a01b0393841660048301527f0000000000000000000000000000000000000000000000000000000000000000602483018190529594841693602093929091908481806044810103816000809a5af18015611d0157612abd575b50600254600e5484518381529084166001600160a01b0316600482015260248101899052908590829085168189816044810103925af18015611d0157612a89575b50600e5483518281529083166001600160a01b03166004820152602481018890528481604481897f000000000000000000000000000000000000000000000000000000000000000088165af18015611d0157612a55575b50600554600e5484518381529084166001600160a01b0316600482015260248101899052908590829085168189816044810103925af18015611d0157612a15575b50600654600e54845192835283166001600160a01b03166004830152602482019790975294958391869116818681604481015b03925af190811561073c57506129e557505050565b82813d8311612a0e575b6129f981836123a9565b810103126102ce5750612a0b90612735565b50565b503d6129ef565b8481813d8311612a4e575b612a2a81836123a9565b81010312610cf157916129d0969791612a438694612735565b50919796509161299d565b503d612a20565b8481813d8311612a82575b612a6a81836123a9565b81010312610cf157612a7b90612735565b503861295c565b503d612a60565b8481813d8311612ab6575b612a9e81836123a9565b81010312610cf157612aaf90612735565b5038612905565b503d612a94565b8481813d8311612aea575b612ad281836123a9565b81010312610cf157612ae390612735565b50386128c4565b503d612ac856fea2646970667358221220b621b927c0f00868fb7d5efdfb559c9d606c8a235770582802e7db996fa532b764736f6c63430008140033000000000000000000000000bcbc5777537c0d0462fb82ba48eeb6cb361e853f000000000000000000000000f8f2462a8fa08df933c0d6bbaf34108fd7af526e000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f19000000000000000000000000cc6169aa1e879d3a4227536671f85afdb2d23fad00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000c16da76872131bc6095f73b894b4757873dace1000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f19000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000029219dd400f2bf60e5a23d13be72b486d403889400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000050c42deacd8fc9773493ed674b675be577f2634b0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060408181526004918236101561001657600080fd5b600092833560e01c918263025e30b01461233757508163097463241461230e5781630e8fbb5a146122925781631158808614612275578163117da1ee146121e5578163171d2189146120c6578163257ae0de1461209d5781632638c09e1461207457816327ced537146120305781632dc7d74c146120075781632e1a7d4d14611db25781633410fe6e14611d9357816334fbc9a114611d745781633f4ba83a14611c075781634641257d1461154357816354518b1a14611524578163573fef0a14610e0d578163583bd47714610d6c5781635c975abb14610d4757816361d027b314610d1e57816366666aa914610cf55781636817031b14610bde578163715018a614610b84578163722713f714610b675781637b83fc1d14610b3e5781637ff8f1e914610b215781638456cb59146108b15781638912cb8b1461088d5781638cab0f99146108655781638da5cb5b1461083d578163951d6d201461081e5781639bff5ddb146107ff578163d03153aa146107e0578163d0e30db014610679578163d49d51811461063e578163e7a7250a1461061a578163ed8501db14610579578163f1a392da1461055a578163f2fde38b146104c1578163f301af421461046a578163fb617787146102d1578163fbe751521461022d575063fbfa77cf146101fe57600080fd5b34610229578160031936011261022957601054905160089190911c6001600160a01b03168152602090f35b5080fd5b839150346102295760203660031901126102295735906012548210156102ce5750601260005260011b7fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34448101547fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34459091015491516001600160a01b039182168152908216602082015260ff60a09290921c9190911615156040820152606090f35b80fd5b9190503461046657826003193601126104665760018060a01b03906102fe8260105460081c1633146123ec565b8382600d541661030c612813565b813b156104665782916024839286519485938492632e1a7d4d60e01b84528b8401525af1801561045c57610444575b505081600354168151906370a0823160e01b82523085830152856020948584602481865afa93841561043a5782946103fe575b50601054855163a9059cbb60e01b81526001600160a01b0360089290921c9092161696810196875260208701939093529194849286929183919082906040015b03925af19081156103f557506103c2578280f35b81813d83116103ee575b6103d681836123a9565b81010312610229576103e790612735565b5038808280f35b503d6103cc565b513d85823e3d90fd5b93509190508483813d8111610433575b61041881836123a9565b8101031261042e579151919086906103ae61036e565b600080fd5b503d61040e565b85513d84823e3d90fd5b61044d9061237f565b61045857833861033b565b8380fd5b83513d84823e3d90fd5b8280fd5b90503461046657602036600319011261046657356015548110156104665760156020935260018060a01b03907f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4750154169051908152f35b91905034610466576020366003190112610466576001600160a01b03823581811693919290849003610556576104f5612353565b8315610540575050600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8480fd5b505034610229578160031936011261022957602090600f549051908152f35b839150346102295760203660031901126102295735906014548210156102ce5750601460005260011b7fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec8101547fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ed9091015491516001600160a01b039182168152908216602082015260ff60a09290921c9190911615156040820152606090f35b505034610229578160031936011261022957602090610637612742565b9051908152f35b505034610229578160031936011261022957602090517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8152f35b8391503461022957816003193601126102295760018060a01b038060105460081c16331480156107d7575b15610785579260249183946106b76123cb565b602081600354168451958680926370a0823160e01b825230878301525afa93841561077b578594610745575b50836106ed578480f35b600d541692833b156105565760248592838551968794859363b6b55f2560e01b85528401525af190811561073c5750610728575b8080808480f35b6107319061237f565b6102ce578082610721565b513d84823e3d90fd5b945092506020843d8211610773575b81610761602093836123a9565b8101031261042e5784935192866106e3565b3d9150610754565b83513d87823e3d90fd5b835162461bcd60e51b8152602081840152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152608490fd5b503033146106a4565b5050346102295781600319360112610229576020906016549051908152f35b5050346102295781600319360112610229576020906008549051908152f35b505034610229578160031936011261022957602090600a549051908152f35b505034610229578160031936011261022957905490516001600160a01b039091168152602090f35b9050346104665782600319360112610466575490516001600160a01b03909116815260209150f35b50503461022957816003193601126102295760209060ff6010541690519015158152f35b919050346104665782600319360112610466576108cc612353565b6108d46123cb565b825460ff60a01b1916600160a01b1783558051338152602091907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258908390a1600354600d54825163095ea7b360e01b8082526001600160a01b0392831682880152602482018890529195928590829060449082908b908b165af18015610a7b57610aed575b5085848660025416604488600e541687519485938492888452898401528160248401525af18015610a7b57610ab9575b5084600e54168351908282528382015286602482015284816044818a8a7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38165af18015610a7b57610a85575b5085848660055416604488600e541687519485938492888452898401528160248401525af18015610a7b579085939291610a3e575b5060449087876006541697600e5416978651988995869485528401528160248401525af19081156103f557506103c2578280f35b909281813d8311610a74575b610a5481836123a9565b81010312610a70578492610a69604492612735565b5090610a0a565b8680fd5b503d610a4a565b84513d89823e3d90fd5b8481813d8311610ab2575b610a9a81836123a9565b81010312610a7057610aab90612735565b50386109d5565b503d610a90565b8481813d8311610ae6575b610ace81836123a9565b81010312610a7057610adf90612735565b5038610989565b503d610ac4565b8481813d8311610b1a575b610b0281836123a9565b81010312610a7057610b1390612735565b5038610959565b503d610af8565b5050346102295781600319360112610229576020906106376127d5565b50503461022957816003193601126102295760055490516001600160a01b039091168152602090f35b5050346102295781600319360112610229576020906106376127b9565b83346102ce57806003193601126102ce57610b9d612353565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b9050346104665760203660031901126104665780356001600160a01b0381811693909290848303610cf157610c11612353565b823b15610cae57601054938460081c16610c77575050610100600160a81b031990911660089190911b610100600160a81b031617601055610c50612851565b7fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f308280a280f35b906020606492519162461bcd60e51b8352820152601160248201527015985d5b1d08185b1c9958591e481cd95d607a1b6044820152fd5b906020606492519162461bcd60e51b8352820152601860248201527f5661756c74206d757374206265206120636f6e747261637400000000000000006044820152fd5b8580fd5b505034610229578160031936011261022957600d5490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760115490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760ff6020925460a01c1690519015158152f35b839150346102295760203660031901126102295735906013548210156102ce5750601360005260011b7f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0908101547f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0919091015491516001600160a01b039182168152908216602082015260ff60a09290921c9190911615156040820152606090f35b839150346102295781600319360112610229576010549260ff8416610e30578280f35b6001600160a01b039360081c841633036114ec57610e4c6123cb565b83600d541691823b156104585781516331279d3d60e01b815284816044810195308583015260249686888401526015548091526064830190601585527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47590855b8181106114ce575050508383809203925af1801561077b579085916114ba575b50508460025416948251906370a0823160e01b96878352308484015260209283818881855afa90811561132757889161148d575b50610f3e575b505050505050905042600f55337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a28082808280f35b8286918651928380928c825230898301525afa908115611226578791611460575b5081600e5416803b1561145c578786518092818381610f8f636cc1ae1360e01b988983528c429130918501612516565b03925af1801561132757908891611448575b50507f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38908282169186518a8152308782015285818a81875afa9081156112ee579088918b91611415575b509161101b7f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b393600c5490612444565b61105761104061102e6009548094612457565b9261103b600a5485612444565b612457565b9261104b8484612421565b90896011541690612477565b825191825287820152a18551898152308682015284818981865afa90811561140b5789916113de575b5060011c9183600554168103611386575b836006541603611331575b50508060055416845190888252308583015283828881845afa9182156113275788926112f8575b50826006541686518a8152308782015285818a81855afa9081156112ee5789939288928c9283916112b4575b50906101249392916060969789600e5416928d51998a988997635a47ddc360e01b895288015286015283604486015260648501526084840152600160a4840152600160c48401523060e4840152426101048401525af1801561122657611289575b508060105460081c1633148015611280575b156112305785966111716123cb565b8282600354169187875180948193825230898301525afa9283156112265787936111f3575b5050816111a4575b80610f06565b600d541693843b15610cf1578592838551968794859363b6b55f2560e01b85528401525af190811561073c57506111df575b8080808061119e565b6111e89061237f565b6102ce5780826111d6565b819750809293503d831161121f575b61120c81836123a9565b8101031261042e57859451908780611196565b503d611202565b85513d89823e3d90fd5b5083602691608494519362461bcd60e51b85528401528201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b50303314611162565b606090813d81116112ad575b61129f81836123a9565b81010312610cf15787611150565b503d611295565b9550509150508583813d83116112e7575b6112cf81836123a9565b8101031261042e579151889287918b919060606110ef565b503d6112c5565b88513d8c823e3d90fd5b9091508381813d8311611320575b61131081836123a9565b8101031261042e575190896110c3565b503d611306565b86513d8a823e3d90fd5b82600e541690813b156113825791889161135c938389518096819582948352429030908d8501612680565b03925af18015611226579087911561109c576113779061237f565b610cf157858861109c565b8880fd5b83600e5416803b156113da5789885180928582528183816113ad8d42908c309185016125cb565b03925af180156112ee57908a916113c6575b5050611091565b6113cf9061237f565b61138257888b6113bf565b8980fd5b90508481813d8311611404575b6113f581836123a9565b8101031261042e57518a611080565b503d6113eb565b87513d8b823e3d90fd5b809250878092503d8311611441575b61142e81836123a9565b8101031261042e5751879061101b610feb565b503d611424565b6114519061237f565b610a70578689610fa1565b8780fd5b90508281813d8311611486575b61147781836123a9565b8101031261042e575188610f5f565b503d61146d565b90508381813d83116114b3575b6114a481836123a9565b8101031261042e575189610f00565b503d61149a565b6114c39061237f565b610458578386610ecc565b82548d1684528b965087955060209093019260019283019201610eac565b906020606492519162461bcd60e51b835282015260126024820152715661756c74206465706f736974206f6e6c7960701b6044820152fd5b5050346102295781600319360112610229576020906007549051908152f35b83915034610229578160031936011261022957333b158015611bed575b15611bb15761156d6123cb565b600d546001600160a01b039390841691823b156104585781516331279d3d60e01b815284816044810195308583015260249686888401526015548091526064830190601585527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47590855b818110611b93575050508383809203925af1801561077b57908591611b7f575b50508460025416948251906370a0823160e01b96878352308484015260209283818881855afa908115611327578891611b52575b5061165e575b8642600f55337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a280f35b8286918651928380928c825230898301525afa908115611226578791611b25575b5081600e5416803b1561145c5787865180928183816116af636cc1ae1360e01b988983528c429130918501612516565b03925af1801561132757908891611b11575b50507f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38908282169086518a8152308782015285818a81865afa9081156112ee5788908b92611adf575b506117397f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b392600c5490612444565b6117566117496009548093612457565b9161103b600a5484612444565b9061177a6117648383612421565b303314988915611acf575b8a6011541690612477565b825191825288820152a186518a8152308782015285818a81865afa9081156112ee578a91611aa2575b5060011c9184600554168103611a47575b8460065416036119f6575b50508160055416855190898252308683015284828981845afa91821561140b5789926119c7575b508360065416918751908b8252308883015286828b81875afa9182156119bd57898b94938a938e938492611981575b509061012494939291606097988b600e54169351998a988997635a47ddc360e01b895288015286015283604486015260648501526084840152600160a4840152600160c48401523060e4840152426101048401525af1801561132757611956575b508160105460081c16331490811561194e575b50156112305785966118996123cb565b8282600354169187875180948193825230898301525afa92831561122657879361191b575b5050816118cc575b80611631565b600d541693843b15610cf1578592838551968794859363b6b55f2560e01b85528401525af190811561073c5750611907575b808080806118c6565b6119109061237f565b6102ce5780826118fe565b819750809293503d8311611947575b61193481836123a9565b8101031261042e578594519087806118be565b503d61192a565b905088611889565b606090813d811161197a575b61196c81836123a9565b81010312610a705788611876565b503d611962565b945095505050508681813d83116119b6575b61199d81836123a9565b8101031261042e5751899288918c918b91906060611815565b503d611993565b89513d8d823e3d90fd5b9091508481813d83116119ef575b6119df81836123a9565b8101031261042e5751908a6117e6565b503d6119d5565b83600e541690813b156113da57918991611a2193838a5180968195829483528c429130918501612680565b03925af1801561132757908891156117bf57611a3c9061237f565b610a705786896117bf565b84600e5416803b15611a9e578a611a7181928a8c519485809481938a835242908c309185016125cb565b03925af180156119bd57908b91611a8a575b50506117b4565b611a939061237f565b6113da57898c611a83565b8a80fd5b90508581813d8311611ac8575b611ab981836123a9565b8101031261042e57518b6117a3565b503d611aaf565b611ada853383612477565b61176f565b809250878092503d8311611b0a575b611af881836123a9565b8101031261042e57518761173961170a565b503d611aee565b611b1a9061237f565b610a705786896116c1565b90508281813d8311611b4b575b611b3c81836123a9565b8101031261042e57518861167f565b503d611b32565b90508381813d8311611b78575b611b6981836123a9565b8101031261042e57518961162b565b503d611b5f565b611b889061237f565b6104585783866115f7565b82548d1684528b9650879550602090930192600192830192016115d7565b606490602084519162461bcd60e51b8352820152601660248201527508585d5d1a0810dbdb9d1c9858dd0812185c9d995cdd60521b6044820152fd5b506010543360089190911c6001600160a01b031614611560565b838334610229578160031936011261022957611c21612353565b815460ff8160a01c1615611d645760ff60a01b191682558051338152602091907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa908390a1611c6e612851565b60018060a01b03938460105460081c1633148015611d5b575b15611d0b578394611c966123cb565b60248482600354168551928380926370a0823160e01b825230888301525afa948515611d01578695611cce575b5050836106ed578480f35b819650809295503d8311611cfa575b611ce781836123a9565b8101031261042e57849351928680611cc3565b503d611cdd565b84513d88823e3d90fd5b82608492519162461bcd60e51b8352820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b50303314611c87565b8151638dfc202b60e01b81528490fd5b505034610229578160031936011261022957602090600c549051908152f35b5050346102295781600319360112610229576020906009549051908152f35b91905034610466576020908160031936011261045857823592600260015414611ff957600260015560018060a01b0393611df48560105460081c1633146123ec565b846003541683519285846024816370a0823160e01b9586825230868301525afa938415611fc0578894611fca575b508784848110611edb575b50505050907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d9482611ea0938311611ed3575b50611e79611e7060085484612444565b60075490612457565b60ff885460a01c161580611ec6575b611eb5575b5060035460105460081c82169116612477565b611ea86127b9565b9051908152a16001805580f35b611ebf9192612421565b9038611e8d565b5060ff6010541615611e88565b915038611e60565b909192939450611ef088600d54169186612421565b90803b15610466576024839288519485938492632e1a7d4d60e01b8452888401525af18015611fc057611fad575b508490602487600354169386519485938492835230908301525afa908115611fa3578691611f54575b509084611ea08738611e2d565b9190508382813d8311611f9c575b611f6c81836123a9565b8101031261042e5790517f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d611f47565b503d611f62565b83513d88823e3d90fd5b96611fb986929861237f565b9690611f1e565b85513d8a823e3d90fd5b9093508581813d8311611ff2575b611fe281836123a9565b8101031261145c57519238611e22565b503d611fd8565b9051633ee5aeb560e01b8152fd5b50503461022957816003193601126102295760035490516001600160a01b039091168152602090f35b505034610229578160031936011261022957517f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b03168152602090f35b50503461022957816003193601126102295760025490516001600160a01b039091168152602090f35b505034610229578160031936011261022957600e5490516001600160a01b039091168152602090f35b8284346102ce57806003193601126102ce576120e0612742565b92819380612115575b6020846106376120fc88600c5490612444565b61103b61210c6009548093612457565b600a5490612444565b600e546002548551635e1e632560e01b8152938401929092526001600160a01b0391821660248401527f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38821660448401529294509091839183916064918391165afa9283156121da578093612194575b50506106376120fc60206120e9565b9092508183813d83116121d3575b6121ac81836123a9565b810103126102ce57506106376120fc836121cb60208096519201612735565b509350612185565b503d6121a2565b8251903d90823e3d90fd5b9190503461046657602036600319011261046657813591612204612353565b6105dc831161223f5750816020917fe4a7fd2711237e77309a9a16ff636a748dbf956fd91f6e6da800d9302f441a799360165551908152a180f35b6020606492519162461bcd60e51b83528201526011602482015270496e76616c696420746f6c6572616e636560781b6044820152fd5b505034610229578160031936011261022957602090610637612813565b9050346104665760203660031901126104665735801515809103610466577f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af916020916122dd612353565b60ff8019601054169116809117601055600014612300578360085551838152a180f35b600a60085551600a8152a180f35b50503461022957816003193601126102295760065490516001600160a01b039091168152602090f35b849034610229578160031936011261022957602090600b548152f35b6000546001600160a01b0316330361236757565b60405163118cdaa760e01b8152336004820152602490fd5b67ffffffffffffffff811161239357604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761239357604052565b60ff60005460a01c166123da57565b60405163d93c066560e01b8152600490fd5b156123f357565b60405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b6044820152606490fd5b9190820391821161242e57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561242e57565b8115612461570490565b634e487b7160e01b600052601260045260246000fd5b60405163a9059cbb60e01b60208083019182526001600160a01b0394909416602483015260448083019590955293815290926000916124b76064826123a9565b519082855af11561250a576000513d61250157506001600160a01b0381163b155b6124df5750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b600114156124d8565b6040513d6000823e3d90fd5b909392919360a090818301908352602090600082850152604092808486015260125480925260c085019360126000527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444936000925b84841061258e57505050505050906080919460018060a01b031660608201520152565b85546001600160a01b0390811688526001808801549182168985015290821c60ff161515888501526060909701966002909601959093019261256b565b909392919360a090818301908352602090600082850152604092808486015260135480925260c085019360136000527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a090936000925b84841061264357505050505050906080919460018060a01b031660608201520152565b85546001600160a01b0390811688526001808801549182168985015290821c60ff1615158885015260609097019660029096019590930192612620565b909392919360a090818301908352602090600082850152604092808486015260145480925260c085019360146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec936000925b8484106126f857505050505050906080919460018060a01b031660608201520152565b85546001600160a01b0390811688526001808801549182168985015290821c60ff16151588850152606090970196600290960195909301926126d5565b5190811515820361042e57565b600d5460025460405163211dc32d60e01b81526001600160a01b0391821660048201523060248201529160209183916044918391165afa90811561250a5760009161278b575090565b906020823d82116127b1575b816127a4602093836123a9565b810103126102ce57505190565b3d9150612797565b6127c16127d5565b6127c9612813565b810180911161242e5790565b6003546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561250a5760009161278b575090565b600d546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561250a5760009161278b575090565b600354600d546040805163095ea7b360e01b8082526001600160a01b0393841660048301527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602483018190529594841693602093929091908481806044810103816000809a5af18015611d0157612abd575b50600254600e5484518381529084166001600160a01b0316600482015260248101899052908590829085168189816044810103925af18015611d0157612a89575b50600e5483518281529083166001600160a01b03166004820152602481018890528481604481897f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3888165af18015611d0157612a55575b50600554600e5484518381529084166001600160a01b0316600482015260248101899052908590829085168189816044810103925af18015611d0157612a15575b50600654600e54845192835283166001600160a01b03166004830152602482019790975294958391869116818681604481015b03925af190811561073c57506129e557505050565b82813d8311612a0e575b6129f981836123a9565b810103126102ce5750612a0b90612735565b50565b503d6129ef565b8481813d8311612a4e575b612a2a81836123a9565b81010312610cf157916129d0969791612a438694612735565b50919796509161299d565b503d612a20565b8481813d8311612a82575b612a6a81836123a9565b81010312610cf157612a7b90612735565b503861295c565b503d612a60565b8481813d8311612ab6575b612a9e81836123a9565b81010312610cf157612aaf90612735565b5038612905565b503d612a94565b8481813d8311612aea575b612ad281836123a9565b81010312610cf157612ae390612735565b50386128c4565b503d612ac856fea2646970667358221220b621b927c0f00868fb7d5efdfb559c9d606c8a235770582802e7db996fa532b764736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000bcbc5777537c0d0462fb82ba48eeb6cb361e853f000000000000000000000000f8f2462a8fa08df933c0d6bbaf34108fd7af526e000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f19000000000000000000000000cc6169aa1e879d3a4227536671f85afdb2d23fad00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000c16da76872131bc6095f73b894b4757873dace1000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f19000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000029219dd400f2bf60e5a23d13be72b486d403889400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000050c42deacd8fc9773493ed674b675be577f2634b0000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _staking_token (address): 0xbCbC5777537c0D0462fb82BA48Eeb6cb361E853f
Arg [1] : _rewardPool (address): 0xf8F2462A8Fa08Df933C0d6bbaf34108Fd7af526E
Arg [2] : _rewardToken (address): 0xddF26B42C1d903De8962d3F79a74a501420d5F19
Arg [3] : _unirouter (address): 0xcC6169aA1E879d3a4227536671F85afdb2d23fAD
Arg [4] : _harvestOnDeposit (bool): True
Arg [5] : _treasury (address): 0x0c16Da76872131bC6095f73b894B4757873dAce1
Arg [6] : _rewardToNative (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [7] : _nativeToLp0 (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [8] : _nativeToLp1 (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
21 Constructor Arguments found :
Arg [0] : 000000000000000000000000bcbc5777537c0d0462fb82ba48eeb6cb361e853f
Arg [1] : 000000000000000000000000f8f2462a8fa08df933c0d6bbaf34108fd7af526e
Arg [2] : 000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f19
Arg [3] : 000000000000000000000000cc6169aa1e879d3a4227536671f85afdb2d23fad
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 0000000000000000000000000c16da76872131bc6095f73b894b4757873dace1
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [7] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f19
Arg [11] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [14] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [15] : 00000000000000000000000029219dd400f2bf60e5a23d13be72b486d4038894
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [18] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [19] : 00000000000000000000000050c42deacd8fc9773493ed674b675be577f2634b
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.