More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
Blacksail_ICHI_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 "../interfacing/IEqualizer.sol"; interface IIchiDepositHelper { function forwardDepositToICHIVault( address _vault, address _deployer, address _token, uint256 _amount, uint256 _minAmountOut, address _to ) external; } contract Blacksail_ICHI_Strategy is Ownable, Pausable, ReentrancyGuard { using SafeERC20 for IERC20; uint256 public immutable MAX = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff; // Tokens address public native_token; address public reward_token; address public staking_token; address public deposit_token; // 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 ichi; address public vaultDeployer; address public unirouter; address public v3router; // Information uint256 public lastHarvest; bool public harvestOnDeposit; // Platform Addresses address public vault; address public treasury; // Routes IEqualizer.Route[] public rewardToNative; IEqualizer.Route[] public nativeToDeposit; 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); /** * * 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 _deposit_token, address _ichi, address _vaultDeployer, address _unirouter, bool _harvestOnDeposit, address _treasury, IEqualizer.Route[] memory _rewardToNative, IEqualizer.Route[] memory _nativeToDeposit ) Ownable(msg.sender) { staking_token = _staking_token; rewardPool = _rewardPool; ichi = _ichi; vaultDeployer = _vaultDeployer; unirouter = _unirouter; treasury = _treasury; harvestOnDeposit = _harvestOnDeposit; if (harvestOnDeposit) { setWithdrawalFee(0); } for (uint i; i < _rewardToNative.length; i++) { rewardToNative.push(_rewardToNative[i]); } for (uint i; i < _nativeToDeposit.length; i++) { nativeToDeposit.push(_nativeToDeposit[i]); } reward_token = rewardToNative[0].from; native_token = rewardToNative[rewardToNative.length - 1].to; deposit_token = _deposit_token; rewards.push(reward_token); _giveAllowances(); } /** @dev Sets the vault connected to this strategy */ function setVault(address _vault) external onlyOwner { require(isContract(_vault), "Vault must be a contract"); vault = _vault; 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 { _deposit(); } function _deposit() internal { 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, 1, 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 nativeBal = IERC20(native_token).balanceOf(address(this)); if (nativeBal != 0) { if (deposit_token != native_token) { IEqualizer(unirouter) .swapExactTokensForTokensSupportingFeeOnTransferTokens( nativeBal, 1, nativeToDeposit, address(this), block.timestamp ); } uint256 depositTokenBal = IERC20(deposit_token).balanceOf( address(this) ); if (depositTokenBal > 0) { try IIchiDepositHelper(ichi).forwardDepositToICHIVault( staking_token, vaultDeployer, deposit_token, depositTokenBal, 0, address(this) ) {} catch Error(string memory reason) { revert( string( abi.encodePacked( "Deposit to ICHI Vault failed: ", reason ) ) ); } catch (bytes memory lowLevelData) { revert( string( abi.encodePacked( "Deposit to ICHI Vault failed with low-level data: ", lowLevelData ) ) ); } } } } /** @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, 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)); // return _amount; } /** @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(native_token).approve(unirouter, type(uint256).max); IERC20(reward_token).approve(unirouter, MAX); IERC20(deposit_token).approve(ichi, MAX); } /** @dev Removes allowances to spenders */ function _removeAllowances() internal { IERC20(staking_token).approve(rewardPool, 0); IERC20(native_token).approve(unirouter, 0); IERC20(reward_token).approve(unirouter, 0); IERC20(deposit_token).approve(ichi, 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); function isPair(address lpToken) external view returns (bool); } 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":"_deposit_token","type":"address"},{"internalType":"address","name":"_ichi","type":"address"},{"internalType":"address","name":"_vaultDeployer","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":"_nativeToDeposit","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":"ichi","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastHarvest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nativeToDeposit","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":"address","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":"v3router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultDeployer","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
60a060409080825234620006195762002fbc80380380916200002282856200076b565b833981016101408282031262000619576200003d826200078f565b916200004c602082016200078f565b620000598583016200078f565b9162000068606082016200078f565b62000076608083016200078f565b6200008460a084016200078f565b916200009360c08501620007a4565b94620000a260e086016200078f565b6101008601516001600160401b0399919691908a8111620006195781620000cb918401620007b2565b996101208301519081116200061957620000e69201620007b2565b98331562000753576000543360018060a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a36001600160a81b0319163360ff60a01b19161760005560018055600019608052620186a0600655606460078190556103e8600855600955610384600a55602d600b55600480546001600160a01b03199081166001600160a01b0393841617909155600c8054821693831693909317909255600d8054831693821693909317909255600e8054821693831693909317909255600f805483169382169390931790925560138054909116929091169190911790556012805491151560ff1660ff1992909216821790556200071e575b60005b8251811015620002cb57620002068184620008a1565b5190601480549268010000000000000000841015620002b557600184018083558410156200029f5760009182526020918290208151600195861b90910180546001600160a01b039283166001600160a01b0319909116178155928201519290940180549189015160ff60a01b90151560a01b16929094166001600160a81b03199091161717909155620002999062000891565b620001f0565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b84828560005b81518110156200038057620002e78183620008a1565b5190601580549268010000000000000000841015620002b557600184018083558410156200029f5760009182526020918290208151600195861b90910180546001600160a01b039283166001600160a01b0319909116178155928201519290940180549188015160ff60a01b90151560a01b16929094166001600160a81b031990911617179091556200037a9062000891565b620002d1565b50506014549081156200029f5760146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec54600380546001600160a01b0319166001600160a01b039290921691821790559160001981019080821162000708578110156200029f57601460005260011b7fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ed0154600280546001600160a01b039283166001600160a01b0319918216179091556005805493909216921691909117905560165468010000000000000000811015620002b55760018101806016558110156200029f57601660009081527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242899190910180546001600160a01b0319169290921790915560048054600c54608051855163095ea7b360e01b8082526001600160a01b039384169582019590955260248101919091529293602092849260449284929091165af180156200067b57620006c7575b50600254600f5483518381526001600160a01b03918216600482015260001960248201529160209183916044918391600091165af180156200067b5762000686575b50600354600f5460805184518481526001600160a01b03928316600482015260248101919091529160209183916044918391600091165af180156200067b5762000632575b50600554600d5460805184519384526001600160a01b039182166004850152602484015260209183911681600081604481015b03925af180156200062757620005e1575b50516127059081620008b782396080518181816105dd01526118bc0152f35b6020813d6020116200061e575b81620005fd602093836200076b565b8101031262000619576200061190620007a4565b5081620005c2565b600080fd5b3d9150620005ee565b82513d6000823e3d90fd5b6020813d60201162000672575b816200064e602093836200076b565b810103126200061957620005b19162000669602092620007a4565b5091506200057e565b3d91506200063f565b83513d6000823e3d90fd5b6020813d602011620006be575b81620006a2602093836200076b565b810103126200061957620006b690620007a4565b508262000539565b3d915062000693565b6020813d602011620006ff575b81620006e3602093836200076b565b810103126200061957620006f790620007a4565b5082620004f7565b3d9150620006d4565b634e487b7160e01b600052601160045260246000fd5b60006007557f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af6020855160008152a1620001ed565b8a51631e4fbdf760e01b815260006004820152602490fd5b601f909101601f19168101906001600160401b03821190821017620002b557604052565b51906001600160a01b03821682036200061957565b519081151582036200061957565b81601f82011215620006195780516001600160401b0392909190838311620002b557604090815194602092620007ee848760051b01886200076b565b858752838701928460608098028701019581871162000619578501935b8685106200081e57505050505050505090565b8785830312620006195782519088820190828210868311176200087c578992889286526200084c886200078f565b81526200085b8389016200078f565b838201526200086c868901620007a4565b868201528152019401936200080b565b60246000634e487b7160e01b81526041600452fd5b6000198114620007085760010190565b80518210156200029f5760209160051b01019056fe608060408181526004918236101561001657600080fd5b600092833560e01c918263025e30b0146120f6575081630e8fbb5a1461207a578163111e4b60146120515781631158808614612034578163117da1ee14611fa4578163171d218914611ea9578163257ae0de14611e805781632638c09e14611e5757816327ced53714611e2e5781632dc7d74c14611e065781632e1a7d4d14611ba85781632f17e03014611b7f5781633410fe6e14611b6057816334fbc9a114611b415781633f4ba83a146118375781634641257d146112be57816354518b1a1461129f578163573fef0a14610bd95781635c975abb14610bb457816361d027b314610b8b57816366666aa914610b625781636817031b14610a98578163715018a614610a3e578163722713f714610a215781637aa84ebf146109805781637ff8f1e9146109635781638456cb59146107745781638912cb8b146107505781638cab0f99146107275781638da5cb5b146106ff578163951d6d20146106e05781639bff5ddb146106c1578163d03153aa146106a2578163d0e30db014610600578163d49d5181146105c5578163dfca09221461059c578163e7a7250a14610578578163f1a392da14610559578163f2fde38b146104c0578163f301af4214610469578163fb617787146102d1578163fbe751521461022d575063fbfa77cf146101fe57600080fd5b34610229578160031936011261022957601254905160089190911c6001600160a01b03168152602090f35b5080fd5b839150346102295760203660031901126102295735906014548210156102ce5750601460005260011b7fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec8101547fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ed9091015491516001600160a01b039182168152908216602082015260ff60a09290921c9190911615156040820152606090f35b80fd5b9190503461046557826003193601126104655760018060a01b03906102fe8260125460081c163314612270565b8382600c541661030c612691565b813b156104655782916024839286519485938492632e1a7d4d60e01b84528b8401525af1801561045b57610443575b5050818354168151906370a0823160e01b82523085830152856020948584602481865afa9384156104395782946103fd575b50601254855163a9059cbb60e01b81526001600160a01b0360089290921c9092161696810196875260208701939093529194849286929183919082906040015b03925af19081156103f457506103c1578280f35b81813d83116103ed575b6103d58183612189565b81010312610229576103e6906125b7565b5038808280f35b503d6103cb565b513d85823e3d90fd5b93509190508483813d8111610432575b6104178183612189565b8101031261042d579151919086906103ad61036d565b600080fd5b503d61040d565b85513d84823e3d90fd5b61044c9061215f565b61045757833861033b565b8380fd5b83513d84823e3d90fd5b8280fd5b90503461046557602036600319011261046557356016548110156104655760166020935260018060a01b03907fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242890154169051908152f35b91905034610465576020366003190112610465576001600160a01b03823581811693919290849003610555576104f4612112565b831561053f575050600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8480fd5b5050346102295781600319360112610229576020906011549051908152f35b5050346102295781600319360112610229576020906105956125c4565b9051908152f35b50503461022957816003193601126102295760105490516001600160a01b039091168152602090f35b505034610229578160031936011261022957602090517f00000000000000000000000000000000000000000000000000000000000000008152f35b919050346104655782600319360112610465576012543360089190911c6001600160a01b0316148015610699575b15610647578261063c61213e565b6106446121ab565b80f35b906020608492519162461bcd60e51b8352820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b5030331461062e565b5050346102295781600319360112610229576020906017549051908152f35b5050346102295781600319360112610229576020906007549051908152f35b5050346102295781600319360112610229576020906009549051908152f35b505034610229578160031936011261022957905490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760055490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760209060ff6012541690519015158152f35b9190503461046557826003193601126104655761078f612112565b61079761213e565b825460ff60a01b1916600160a01b1783558051338152602091907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258908390a18254600c54825163095ea7b360e01b8082526001600160a01b0392831682880152602482018890529195928590829060449082908b908b165af180156108f15761092f575b5085848660025416604488600f541687519485938492888452898401528160248401525af180156108f1576108fb575b5085848660035416604488600f541687519485938492888452898401528160248401525af180156108f15790859392916108b4575b5060449087876005541697600d5416978651988995869485528401528160248401525af19081156103f457506103c1578280f35b909281813d83116108ea575b6108ca8183612189565b810103126108e65784926108df6044926125b7565b5090610880565b8680fd5b503d6108c0565b84513d89823e3d90fd5b8481813d8311610928575b6109108183612189565b810103126108e657610921906125b7565b503861084b565b503d610906565b8481813d831161095c575b6109448183612189565b810103126108e657610955906125b7565b503861081b565b503d61093a565b505034610229578160031936011261022957602090610595612657565b839150346102295760203660031901126102295735906015548210156102ce5750601560005260011b7f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4758101547f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4769091015491516001600160a01b039182168152908216602082015260ff60a09290921c9190911615156040820152606090f35b50503461022957816003193601126102295760209061059561263b565b83346102ce57806003193601126102ce57610a57612112565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b9050346104655760203660031901126104655780356001600160a01b0381169290919083830361055557610aca612112565b823b15610b1f57505060128054610100600160a81b03191660089290921b610100600160a81b03169190911790557fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f308280a280f35b906020606492519162461bcd60e51b8352820152601860248201527f5661756c74206d757374206265206120636f6e747261637400000000000000006044820152fd5b505034610229578160031936011261022957600c5490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760135490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760ff6020925460a01c1690519015158152f35b90503461046557826003193601126104655760125460ff8116610bfa578380f35b6001600160a01b039060081c8116330361126757610c1661213e565b80600c5416803b15610555578484516331279d3d60e01b81526044810192308683015260249387858401526016548091526064830190601685527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b512428990855b81811061124c575050508391838381809403925af180156112425761122e575b50508160035416845192866370a0823160e01b92838652308787015260209586818781855afa9081156111c25783916111fd575b50610d06575b505050505050505042601155337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a23880808380f35b858591895192838092888252308c8301525afa9081156111275782916111cc575b5082600f541690813b156104655782610d5c899382938c51948580948193636cc1ae1360e01b998a845242913091850161238e565b03925af19081156111c25783916111ae575b50508783600254168151868152308a82015288818981855afa9081156111a457859161116d575b5090610dc67f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b39392600b54906122c8565b610e02610deb610dd960085480946122db565b92610de6600954856122c8565b6122db565b92610df684846122a5565b908960135416906122fb565b825191825289820152a1826002541690885191858352308984015287838881845afa928315611163578493611131575b5082610e58575b50505050505050505050610e4b6121ab565b3880808080808681610cce565b8460055416036110d3575b5050508060055416918651908152308682015284818581865afa9081156110c957889161109c575b5080610e9b575b80808992610e39565b81600d98959697985416908288541692600e541693823b156108e657888780959394819560c4948e51998a978896635d123e3f60e01b88528701528b860152604485015260648401528160848401523060a48401525af19182611088575b5050611077578160033d11611068575b6308c379a014610ffd575b3d15610fe7573d9067ffffffffffffffff8211610fd657506052610fd2938693610fbe93610fae985190610f5184601f19601f8401160183612189565b81528091833d92013e5b845197827f4465706f73697420746f2049434849205661756c74206661696c6564207769748a9485015271034103637bb96b632bb32b6103230ba309d160751b8785015282519283918686019101612568565b8101036032810187520185612189565b5162461bcd60e51b8152928392830161258b565b0390fd5b634e487b7160e01b83526041855282fd5b5050610fae92610fbe6052610fd2936060610f5b565b6110056124f6565b806110105750610f14565b84610fd287610fbe603e8861105896845197827f4465706f73697420746f2049434849205661756c74206661696c65643a2000008a9485015282519283918686019101612568565b810103601e810187520185612189565b508382803e815160e01c610f09565b509250505038808080808080610e92565b6110919061215f565b610465578238610ef9565b90508481813d83116110c2575b6110b38183612189565b8101031261042d575138610e8b565b503d6110a9565b87513d8a823e3d90fd5b83600f541691823b15610457576110fe92898580948d51968795869485938452429130918501612442565b03925af1801561112757611113575b80610e63565b61111c9061215f565b6108e657863861110d565b88513d84823e3d90fd5b935091508683813d811161115c575b61114a8183612189565b8101031261042d578992519138610e32565b503d611140565b8a513d86823e3d90fd5b94505090508683813d831161119d575b6111878183612189565b8101031261042d57915189928991610dc6610d95565b503d61117d565b83513d87823e3d90fd5b6111b79061215f565b610229578138610d6e565b89513d85823e3d90fd5b809250868092503d83116111f6575b6111e58183612189565b8101031261042d5787905138610d27565b503d6111db565b809350878092503d8311611227575b6112168183612189565b8101031261042d5788915138610cc8565b503d61120c565b6112379061215f565b610555578438610c94565b86513d84823e3d90fd5b8254891684528b965060209093019260019283019201610c74565b506020606492519162461bcd60e51b835282015260126024820152715661756c74206465706f736974206f6e6c7960701b6044820152fd5b5050346102295781600319360112610229576020906006549051908152f35b905034610465578260031936011261046557333b15801561181d575b156117e2576112e761213e565b600c546001600160a01b03908116803b15610555578484516331279d3d60e01b81526044810192308683015260249387858401526016548091526064830190601685527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b512428990855b8181106117c7575050508391838381809403925af18015611242576117b3575b50508160035416845192866370a0823160e01b92838652308787015260209586818781855afa9081156111c2578391611782575b506113d5575b5042601155337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a280f35b858591895192838092888252308c8301525afa908115611127578291611751575b5082600f541690813b15610465578261142b899382938c51948580948193636cc1ae1360e01b998a845242913091850161238e565b03925af19081156111c257839161173d575b50508783600254168151868152308a82015288818981855afa9081156111a4578591611706575b50906114957f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b39392600b54906122c8565b6114cf6114a8610dd960085480946122db565b926114b384846122a5565b90843033036116f4575b505088600254168960135416906122fb565b825191825289820152a1826002541690885191858352308984015287838881845afa9283156111635784936116c2575b5082611525575b505050505050505050506115186121ab565b38808080808086816113a8565b84600554160361166e575b5050508060055416918651908152308682015284818581865afa9081156110c9578891611641575b5080611568575b80808992611506565b81600d98959697985416908288541692600e541693823b156108e657888780959394819560c4948e51998a978896635d123e3f60e01b88528701528b860152604485015260648401528160848401523060a48401525af1918261162d575b505061161c578160033d11611068576308c379a014610ffd573d15610fe7573d9067ffffffffffffffff8211610fd657506052610fd2938693610fbe93610fae985190610f5184601f19601f8401160183612189565b50925050503880808080808061155f565b6116369061215f565b6104655782386115c6565b90508481813d8311611667575b6116588183612189565b8101031261042d575138611558565b503d61164e565b83600f541691823b156104575761169992898580948d51968795869485938452429130918501612442565b03925af18015611127576116ae575b80611530565b6116b79061215f565b6108e65786386116a8565b935091508683813d81116116ed575b6116db8183612189565b8101031261042d5789925191386114ff565b503d6116d1565b6116ff9133906122fb565b38846114bd565b94505090508683813d8311611736575b6117208183612189565b8101031261042d57915189928991611495611464565b503d611716565b6117469061215f565b61022957813861143d565b809250868092503d831161177b575b61176a8183612189565b8101031261042d57879051386113f6565b503d611760565b809350878092503d83116117ac575b61179b8183612189565b8101031261042d57889151386113a2565b503d611791565b6117bc9061215f565b61055557843861136e565b8254891684528b96506020909301926001928301920161134e565b6020606492519162461bcd60e51b8352820152601660248201527508585d5d1a0810dbdb9d1c9858dd0812185c9d995cdd60521b6044820152fd5b506012543360089190911c6001600160a01b0316146112da565b91905034610465578260031936011261046557611852612112565b825460ff8160a01c1615611b335760ff60a01b191683558051338152602091907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa908390a18254600c54825163095ea7b360e01b8082526001600160a01b039283168288019081527f0000000000000000000000000000000000000000000000000000000000000000602082018190529394919392918791839187169082908c90829060400103925af18015611ac157611aff575b5086858460025416604486600f5416885194859384928984528d84015260001960248401525af18015611ac157611acb575b506119738582856003541686600f54168b8b8a51968795869485938c8552840160209093929193604081019460018060a01b031681520152565b03925af18015611ac15790869291611a84575b50600554600d54865194855285166001600160a01b0316888501908152602081019290925283919085169082908a9082906040015b03925af18015611a7a57611a42575b5060125460081c1633148015611a39575b156119e9578361063c61213e565b5162461bcd60e51b815291820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b606482015260849150fd5b503033146119db565b8381813d8311611a73575b611a578183612189565b81010312611a6f57611a68906125b7565b50386119ca565b8580fd5b503d611a4d565b83513d88823e3d90fd5b9182813d8311611aba575b611a998183612189565b81010312611ab6576119bb92611aaf87936125b7565b5092611986565b8780fd5b503d611a8f565b85513d8a823e3d90fd5b8581813d8311611af8575b611ae08183612189565b81010312611ab657611af1906125b7565b5038611939565b503d611ad6565b8581813d8311611b2c575b611b148183612189565b81010312611ab657611b25906125b7565b5038611907565b503d611b0a565b5051638dfc202b60e01b8152fd5b505034610229578160031936011261022957602090600b549051908152f35b5050346102295781600319360112610229576020906008549051908152f35b505034610229578160031936011261022957600e5490516001600160a01b039091168152602090f35b919050346104655760209081600319360112610457578235600260015414611df657600260015560018060a01b03611be88160125460081c163314612270565b808554169183519285846024816370a0823160e01b94858252308c8301525afa938415611ac1578894611dc7575b508784838110611ccf575b505050907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d95828493611c929511611cc7575b50611c6d611c64600754856122c8565b600654906122db565b60ff895460a01c161580611cba575b611ca7575b505460125460081c821691166122fb565b611c9a61263b565b9051908152a16001805580f35b611cb3908392946122a5565b9290611c81565b5060ff6012541615611c7c565b925038611c54565b9091929450611ce384600c541691866122a5565b90803b15610465576024839288519485938492632e1a7d4d60e01b84528d8401525af18015611ac157611db4575b5084828754169160248651809481938252308b8301525afa9081156108f1578791611d61575b50917f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d8738611c21565b929190508483813d8311611dad575b611d7a8183612189565b8101031261042d5791519091907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d611d37565b503d611d70565b611dc09097919761215f565b9538611d11565b9093508581813d8311611def575b611ddf8183612189565b81010312611ab657519238611c16565b503d611dd5565b8151633ee5aeb560e01b81528490fd5b9050346104655782600319360112610465575490516001600160a01b03909116815260209150f35b50503461022957816003193601126102295760025490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760035490516001600160a01b039091168152602090f35b505034610229578160031936011261022957600f5490516001600160a01b039091168152602090f35b8284346102ce57806003193601126102ce57611ec36125c4565b92819380611ef8575b602084610595611edf88600b54906122c8565b610de6611eef60085480936122db565b600954906122c8565b8391929450606460018060a01b039384600f54168560035416956002541685519687958694635e1e632560e01b8652850152602484015260448301525afa928315611f99578093611f53575b5050610595611edf6020611ecc565b9092508183813d8311611f92575b611f6b8183612189565b810103126102ce5750610595611edf83611f8a602080965192016125b7565b509350611f44565b503d611f61565b8251903d90823e3d90fd5b9190503461046557602036600319011261046557813591611fc3612112565b6105dc8311611ffe5750816020917fe4a7fd2711237e77309a9a16ff636a748dbf956fd91f6e6da800d9302f441a799360175551908152a180f35b6020606492519162461bcd60e51b83528201526011602482015270496e76616c696420746f6c6572616e636560781b6044820152fd5b505034610229578160031936011261022957602090610595612691565b505034610229578160031936011261022957600d5490516001600160a01b039091168152602090f35b9050346104655760203660031901126104655735801515809103610465577f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af916020916120c5612112565b60ff80196012541691168091176012556000146120e8578360075551838152a180f35b600a60075551600a8152a180f35b849034610229578160031936011261022957602090600a548152f35b6000546001600160a01b0316330361212657565b60405163118cdaa760e01b8152336004820152602490fd5b60ff60005460a01c1661214d57565b60405163d93c066560e01b8152600490fd5b67ffffffffffffffff811161217357604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761217357604052565b602460018060a01b0360208160045416604051938480926370a0823160e01b82523060048301525afa9182156122315760009261223d575b50816121ed575050565b600c541690813b1561042d5760009160248392604051948593849263b6b55f2560e01b845260048401525af18015612231576122265750565b61222f9061215f565b565b6040513d6000823e3d90fd5b90916020823d8211612268575b8161225760209383612189565b810103126102ce57505190386121e3565b3d915061224a565b1561227757565b60405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b6044820152606490fd5b919082039182116122b257565b634e487b7160e01b600052601160045260246000fd5b818102929181159184041417156122b257565b81156122e5570490565b634e487b7160e01b600052601260045260246000fd5b60405163a9059cbb60e01b60208083019182526001600160a01b03949094166024830152604480830195909552938152909260009161233b606482612189565b519082855af115612231576000513d61238557506001600160a01b0381163b155b6123635750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b6001141561235c565b909392919360a09081830190835260016020918183860152604093808587015260145480925260c086019460146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec946000925b8484106124085750505050505050906080919460018060a01b031660608201520152565b86546001600160a01b03908116895286880154908116838a0152811c60ff16151583890152606090970196600290960195928501926123e4565b909392919360a09081830190835260016020918183860152604093808587015260155480925260c086019460156000527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475946000925b8484106124bc5750505050505050906080919460018060a01b031660608201520152565b86546001600160a01b03908116895286880154908116838a0152811c60ff1615158389015260609097019660029096019592850192612498565b600060443d1061255457604051600319913d83016004833e815167ffffffffffffffff918282113d6024840111176125575781840194855193841161255f573d85010160208487010111612557575061255492910160200190612189565b90565b949350505050565b50949350505050565b60005b83811061257b5750506000910152565b818101518382015260200161256b565b604091602082526125ab8151809281602086015260208686019101612568565b601f01601f1916010190565b5190811515820361042d57565b600c5460035460405163211dc32d60e01b81526001600160a01b0391821660048201523060248201529160209183916044918391165afa9081156122315760009161260d575090565b906020823d8211612633575b8161262660209383612189565b810103126102ce57505190565b3d9150612619565b612643612657565b61264b612691565b81018091116122b25790565b6024602060018060a01b0360045416604051928380926370a0823160e01b82523060048301525afa9081156122315760009161260d575090565b600c546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa9081156122315760009161260d57509056fea26469706673582212209a038a7136bb196697279b2300eda8f60a223c3e09b6065376ffd5a32e7525c964736f6c6343000814003300000000000000000000000085025e8941a00c3b174e60e27aa073c799e9b2a90000000000000000000000005b6096eb55a01cd260f0d4e7165dcbcfa10874ee00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388940000000000000000000000004c8c0d2ca19a97896aa9135449e6d6471a53fc5f0000000000000000000000000b2a31d95b1a4c8b1e772599ffcb8875fb4e2d33000000000000000000000000cc6169aa1e879d3a4227536671f85afdb2d23fad00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000c16da76872131bc6095f73b894b4757873dace1000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f19000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388940000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060408181526004918236101561001657600080fd5b600092833560e01c918263025e30b0146120f6575081630e8fbb5a1461207a578163111e4b60146120515781631158808614612034578163117da1ee14611fa4578163171d218914611ea9578163257ae0de14611e805781632638c09e14611e5757816327ced53714611e2e5781632dc7d74c14611e065781632e1a7d4d14611ba85781632f17e03014611b7f5781633410fe6e14611b6057816334fbc9a114611b415781633f4ba83a146118375781634641257d146112be57816354518b1a1461129f578163573fef0a14610bd95781635c975abb14610bb457816361d027b314610b8b57816366666aa914610b625781636817031b14610a98578163715018a614610a3e578163722713f714610a215781637aa84ebf146109805781637ff8f1e9146109635781638456cb59146107745781638912cb8b146107505781638cab0f99146107275781638da5cb5b146106ff578163951d6d20146106e05781639bff5ddb146106c1578163d03153aa146106a2578163d0e30db014610600578163d49d5181146105c5578163dfca09221461059c578163e7a7250a14610578578163f1a392da14610559578163f2fde38b146104c0578163f301af4214610469578163fb617787146102d1578163fbe751521461022d575063fbfa77cf146101fe57600080fd5b34610229578160031936011261022957601254905160089190911c6001600160a01b03168152602090f35b5080fd5b839150346102295760203660031901126102295735906014548210156102ce5750601460005260011b7fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec8101547fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ed9091015491516001600160a01b039182168152908216602082015260ff60a09290921c9190911615156040820152606090f35b80fd5b9190503461046557826003193601126104655760018060a01b03906102fe8260125460081c163314612270565b8382600c541661030c612691565b813b156104655782916024839286519485938492632e1a7d4d60e01b84528b8401525af1801561045b57610443575b5050818354168151906370a0823160e01b82523085830152856020948584602481865afa9384156104395782946103fd575b50601254855163a9059cbb60e01b81526001600160a01b0360089290921c9092161696810196875260208701939093529194849286929183919082906040015b03925af19081156103f457506103c1578280f35b81813d83116103ed575b6103d58183612189565b81010312610229576103e6906125b7565b5038808280f35b503d6103cb565b513d85823e3d90fd5b93509190508483813d8111610432575b6104178183612189565b8101031261042d579151919086906103ad61036d565b600080fd5b503d61040d565b85513d84823e3d90fd5b61044c9061215f565b61045757833861033b565b8380fd5b83513d84823e3d90fd5b8280fd5b90503461046557602036600319011261046557356016548110156104655760166020935260018060a01b03907fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242890154169051908152f35b91905034610465576020366003190112610465576001600160a01b03823581811693919290849003610555576104f4612112565b831561053f575050600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8480fd5b5050346102295781600319360112610229576020906011549051908152f35b5050346102295781600319360112610229576020906105956125c4565b9051908152f35b50503461022957816003193601126102295760105490516001600160a01b039091168152602090f35b505034610229578160031936011261022957602090517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8152f35b919050346104655782600319360112610465576012543360089190911c6001600160a01b0316148015610699575b15610647578261063c61213e565b6106446121ab565b80f35b906020608492519162461bcd60e51b8352820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b5030331461062e565b5050346102295781600319360112610229576020906017549051908152f35b5050346102295781600319360112610229576020906007549051908152f35b5050346102295781600319360112610229576020906009549051908152f35b505034610229578160031936011261022957905490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760055490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760209060ff6012541690519015158152f35b9190503461046557826003193601126104655761078f612112565b61079761213e565b825460ff60a01b1916600160a01b1783558051338152602091907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258908390a18254600c54825163095ea7b360e01b8082526001600160a01b0392831682880152602482018890529195928590829060449082908b908b165af180156108f15761092f575b5085848660025416604488600f541687519485938492888452898401528160248401525af180156108f1576108fb575b5085848660035416604488600f541687519485938492888452898401528160248401525af180156108f15790859392916108b4575b5060449087876005541697600d5416978651988995869485528401528160248401525af19081156103f457506103c1578280f35b909281813d83116108ea575b6108ca8183612189565b810103126108e65784926108df6044926125b7565b5090610880565b8680fd5b503d6108c0565b84513d89823e3d90fd5b8481813d8311610928575b6109108183612189565b810103126108e657610921906125b7565b503861084b565b503d610906565b8481813d831161095c575b6109448183612189565b810103126108e657610955906125b7565b503861081b565b503d61093a565b505034610229578160031936011261022957602090610595612657565b839150346102295760203660031901126102295735906015548210156102ce5750601560005260011b7f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4758101547f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4769091015491516001600160a01b039182168152908216602082015260ff60a09290921c9190911615156040820152606090f35b50503461022957816003193601126102295760209061059561263b565b83346102ce57806003193601126102ce57610a57612112565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b9050346104655760203660031901126104655780356001600160a01b0381169290919083830361055557610aca612112565b823b15610b1f57505060128054610100600160a81b03191660089290921b610100600160a81b03169190911790557fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f308280a280f35b906020606492519162461bcd60e51b8352820152601860248201527f5661756c74206d757374206265206120636f6e747261637400000000000000006044820152fd5b505034610229578160031936011261022957600c5490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760135490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760ff6020925460a01c1690519015158152f35b90503461046557826003193601126104655760125460ff8116610bfa578380f35b6001600160a01b039060081c8116330361126757610c1661213e565b80600c5416803b15610555578484516331279d3d60e01b81526044810192308683015260249387858401526016548091526064830190601685527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b512428990855b81811061124c575050508391838381809403925af180156112425761122e575b50508160035416845192866370a0823160e01b92838652308787015260209586818781855afa9081156111c25783916111fd575b50610d06575b505050505050505042601155337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a23880808380f35b858591895192838092888252308c8301525afa9081156111275782916111cc575b5082600f541690813b156104655782610d5c899382938c51948580948193636cc1ae1360e01b998a845242913091850161238e565b03925af19081156111c25783916111ae575b50508783600254168151868152308a82015288818981855afa9081156111a457859161116d575b5090610dc67f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b39392600b54906122c8565b610e02610deb610dd960085480946122db565b92610de6600954856122c8565b6122db565b92610df684846122a5565b908960135416906122fb565b825191825289820152a1826002541690885191858352308984015287838881845afa928315611163578493611131575b5082610e58575b50505050505050505050610e4b6121ab565b3880808080808681610cce565b8460055416036110d3575b5050508060055416918651908152308682015284818581865afa9081156110c957889161109c575b5080610e9b575b80808992610e39565b81600d98959697985416908288541692600e541693823b156108e657888780959394819560c4948e51998a978896635d123e3f60e01b88528701528b860152604485015260648401528160848401523060a48401525af19182611088575b5050611077578160033d11611068575b6308c379a014610ffd575b3d15610fe7573d9067ffffffffffffffff8211610fd657506052610fd2938693610fbe93610fae985190610f5184601f19601f8401160183612189565b81528091833d92013e5b845197827f4465706f73697420746f2049434849205661756c74206661696c6564207769748a9485015271034103637bb96b632bb32b6103230ba309d160751b8785015282519283918686019101612568565b8101036032810187520185612189565b5162461bcd60e51b8152928392830161258b565b0390fd5b634e487b7160e01b83526041855282fd5b5050610fae92610fbe6052610fd2936060610f5b565b6110056124f6565b806110105750610f14565b84610fd287610fbe603e8861105896845197827f4465706f73697420746f2049434849205661756c74206661696c65643a2000008a9485015282519283918686019101612568565b810103601e810187520185612189565b508382803e815160e01c610f09565b509250505038808080808080610e92565b6110919061215f565b610465578238610ef9565b90508481813d83116110c2575b6110b38183612189565b8101031261042d575138610e8b565b503d6110a9565b87513d8a823e3d90fd5b83600f541691823b15610457576110fe92898580948d51968795869485938452429130918501612442565b03925af1801561112757611113575b80610e63565b61111c9061215f565b6108e657863861110d565b88513d84823e3d90fd5b935091508683813d811161115c575b61114a8183612189565b8101031261042d578992519138610e32565b503d611140565b8a513d86823e3d90fd5b94505090508683813d831161119d575b6111878183612189565b8101031261042d57915189928991610dc6610d95565b503d61117d565b83513d87823e3d90fd5b6111b79061215f565b610229578138610d6e565b89513d85823e3d90fd5b809250868092503d83116111f6575b6111e58183612189565b8101031261042d5787905138610d27565b503d6111db565b809350878092503d8311611227575b6112168183612189565b8101031261042d5788915138610cc8565b503d61120c565b6112379061215f565b610555578438610c94565b86513d84823e3d90fd5b8254891684528b965060209093019260019283019201610c74565b506020606492519162461bcd60e51b835282015260126024820152715661756c74206465706f736974206f6e6c7960701b6044820152fd5b5050346102295781600319360112610229576020906006549051908152f35b905034610465578260031936011261046557333b15801561181d575b156117e2576112e761213e565b600c546001600160a01b03908116803b15610555578484516331279d3d60e01b81526044810192308683015260249387858401526016548091526064830190601685527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b512428990855b8181106117c7575050508391838381809403925af18015611242576117b3575b50508160035416845192866370a0823160e01b92838652308787015260209586818781855afa9081156111c2578391611782575b506113d5575b5042601155337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a280f35b858591895192838092888252308c8301525afa908115611127578291611751575b5082600f541690813b15610465578261142b899382938c51948580948193636cc1ae1360e01b998a845242913091850161238e565b03925af19081156111c257839161173d575b50508783600254168151868152308a82015288818981855afa9081156111a4578591611706575b50906114957f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b39392600b54906122c8565b6114cf6114a8610dd960085480946122db565b926114b384846122a5565b90843033036116f4575b505088600254168960135416906122fb565b825191825289820152a1826002541690885191858352308984015287838881845afa9283156111635784936116c2575b5082611525575b505050505050505050506115186121ab565b38808080808086816113a8565b84600554160361166e575b5050508060055416918651908152308682015284818581865afa9081156110c9578891611641575b5080611568575b80808992611506565b81600d98959697985416908288541692600e541693823b156108e657888780959394819560c4948e51998a978896635d123e3f60e01b88528701528b860152604485015260648401528160848401523060a48401525af1918261162d575b505061161c578160033d11611068576308c379a014610ffd573d15610fe7573d9067ffffffffffffffff8211610fd657506052610fd2938693610fbe93610fae985190610f5184601f19601f8401160183612189565b50925050503880808080808061155f565b6116369061215f565b6104655782386115c6565b90508481813d8311611667575b6116588183612189565b8101031261042d575138611558565b503d61164e565b83600f541691823b156104575761169992898580948d51968795869485938452429130918501612442565b03925af18015611127576116ae575b80611530565b6116b79061215f565b6108e65786386116a8565b935091508683813d81116116ed575b6116db8183612189565b8101031261042d5789925191386114ff565b503d6116d1565b6116ff9133906122fb565b38846114bd565b94505090508683813d8311611736575b6117208183612189565b8101031261042d57915189928991611495611464565b503d611716565b6117469061215f565b61022957813861143d565b809250868092503d831161177b575b61176a8183612189565b8101031261042d57879051386113f6565b503d611760565b809350878092503d83116117ac575b61179b8183612189565b8101031261042d57889151386113a2565b503d611791565b6117bc9061215f565b61055557843861136e565b8254891684528b96506020909301926001928301920161134e565b6020606492519162461bcd60e51b8352820152601660248201527508585d5d1a0810dbdb9d1c9858dd0812185c9d995cdd60521b6044820152fd5b506012543360089190911c6001600160a01b0316146112da565b91905034610465578260031936011261046557611852612112565b825460ff8160a01c1615611b335760ff60a01b191683558051338152602091907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa908390a18254600c54825163095ea7b360e01b8082526001600160a01b039283168288019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602082018190529394919392918791839187169082908c90829060400103925af18015611ac157611aff575b5086858460025416604486600f5416885194859384928984528d84015260001960248401525af18015611ac157611acb575b506119738582856003541686600f54168b8b8a51968795869485938c8552840160209093929193604081019460018060a01b031681520152565b03925af18015611ac15790869291611a84575b50600554600d54865194855285166001600160a01b0316888501908152602081019290925283919085169082908a9082906040015b03925af18015611a7a57611a42575b5060125460081c1633148015611a39575b156119e9578361063c61213e565b5162461bcd60e51b815291820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b606482015260849150fd5b503033146119db565b8381813d8311611a73575b611a578183612189565b81010312611a6f57611a68906125b7565b50386119ca565b8580fd5b503d611a4d565b83513d88823e3d90fd5b9182813d8311611aba575b611a998183612189565b81010312611ab6576119bb92611aaf87936125b7565b5092611986565b8780fd5b503d611a8f565b85513d8a823e3d90fd5b8581813d8311611af8575b611ae08183612189565b81010312611ab657611af1906125b7565b5038611939565b503d611ad6565b8581813d8311611b2c575b611b148183612189565b81010312611ab657611b25906125b7565b5038611907565b503d611b0a565b5051638dfc202b60e01b8152fd5b505034610229578160031936011261022957602090600b549051908152f35b5050346102295781600319360112610229576020906008549051908152f35b505034610229578160031936011261022957600e5490516001600160a01b039091168152602090f35b919050346104655760209081600319360112610457578235600260015414611df657600260015560018060a01b03611be88160125460081c163314612270565b808554169183519285846024816370a0823160e01b94858252308c8301525afa938415611ac1578894611dc7575b508784838110611ccf575b505050907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d95828493611c929511611cc7575b50611c6d611c64600754856122c8565b600654906122db565b60ff895460a01c161580611cba575b611ca7575b505460125460081c821691166122fb565b611c9a61263b565b9051908152a16001805580f35b611cb3908392946122a5565b9290611c81565b5060ff6012541615611c7c565b925038611c54565b9091929450611ce384600c541691866122a5565b90803b15610465576024839288519485938492632e1a7d4d60e01b84528d8401525af18015611ac157611db4575b5084828754169160248651809481938252308b8301525afa9081156108f1578791611d61575b50917f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d8738611c21565b929190508483813d8311611dad575b611d7a8183612189565b8101031261042d5791519091907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d611d37565b503d611d70565b611dc09097919761215f565b9538611d11565b9093508581813d8311611def575b611ddf8183612189565b81010312611ab657519238611c16565b503d611dd5565b8151633ee5aeb560e01b81528490fd5b9050346104655782600319360112610465575490516001600160a01b03909116815260209150f35b50503461022957816003193601126102295760025490516001600160a01b039091168152602090f35b50503461022957816003193601126102295760035490516001600160a01b039091168152602090f35b505034610229578160031936011261022957600f5490516001600160a01b039091168152602090f35b8284346102ce57806003193601126102ce57611ec36125c4565b92819380611ef8575b602084610595611edf88600b54906122c8565b610de6611eef60085480936122db565b600954906122c8565b8391929450606460018060a01b039384600f54168560035416956002541685519687958694635e1e632560e01b8652850152602484015260448301525afa928315611f99578093611f53575b5050610595611edf6020611ecc565b9092508183813d8311611f92575b611f6b8183612189565b810103126102ce5750610595611edf83611f8a602080965192016125b7565b509350611f44565b503d611f61565b8251903d90823e3d90fd5b9190503461046557602036600319011261046557813591611fc3612112565b6105dc8311611ffe5750816020917fe4a7fd2711237e77309a9a16ff636a748dbf956fd91f6e6da800d9302f441a799360175551908152a180f35b6020606492519162461bcd60e51b83528201526011602482015270496e76616c696420746f6c6572616e636560781b6044820152fd5b505034610229578160031936011261022957602090610595612691565b505034610229578160031936011261022957600d5490516001600160a01b039091168152602090f35b9050346104655760203660031901126104655735801515809103610465577f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af916020916120c5612112565b60ff80196012541691168091176012556000146120e8578360075551838152a180f35b600a60075551600a8152a180f35b849034610229578160031936011261022957602090600a548152f35b6000546001600160a01b0316330361212657565b60405163118cdaa760e01b8152336004820152602490fd5b60ff60005460a01c1661214d57565b60405163d93c066560e01b8152600490fd5b67ffffffffffffffff811161217357604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761217357604052565b602460018060a01b0360208160045416604051938480926370a0823160e01b82523060048301525afa9182156122315760009261223d575b50816121ed575050565b600c541690813b1561042d5760009160248392604051948593849263b6b55f2560e01b845260048401525af18015612231576122265750565b61222f9061215f565b565b6040513d6000823e3d90fd5b90916020823d8211612268575b8161225760209383612189565b810103126102ce57505190386121e3565b3d915061224a565b1561227757565b60405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b6044820152606490fd5b919082039182116122b257565b634e487b7160e01b600052601160045260246000fd5b818102929181159184041417156122b257565b81156122e5570490565b634e487b7160e01b600052601260045260246000fd5b60405163a9059cbb60e01b60208083019182526001600160a01b03949094166024830152604480830195909552938152909260009161233b606482612189565b519082855af115612231576000513d61238557506001600160a01b0381163b155b6123635750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b6001141561235c565b909392919360a09081830190835260016020918183860152604093808587015260145480925260c086019460146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec946000925b8484106124085750505050505050906080919460018060a01b031660608201520152565b86546001600160a01b03908116895286880154908116838a0152811c60ff16151583890152606090970196600290960195928501926123e4565b909392919360a09081830190835260016020918183860152604093808587015260155480925260c086019460156000527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475946000925b8484106124bc5750505050505050906080919460018060a01b031660608201520152565b86546001600160a01b03908116895286880154908116838a0152811c60ff1615158389015260609097019660029096019592850192612498565b600060443d1061255457604051600319913d83016004833e815167ffffffffffffffff918282113d6024840111176125575781840194855193841161255f573d85010160208487010111612557575061255492910160200190612189565b90565b949350505050565b50949350505050565b60005b83811061257b5750506000910152565b818101518382015260200161256b565b604091602082526125ab8151809281602086015260208686019101612568565b601f01601f1916010190565b5190811515820361042d57565b600c5460035460405163211dc32d60e01b81526001600160a01b0391821660048201523060248201529160209183916044918391165afa9081156122315760009161260d575090565b906020823d8211612633575b8161262660209383612189565b810103126102ce57505190565b3d9150612619565b612643612657565b61264b612691565b81018091116122b25790565b6024602060018060a01b0360045416604051928380926370a0823160e01b82523060048301525afa9081156122315760009161260d575090565b600c546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa9081156122315760009161260d57509056fea26469706673582212209a038a7136bb196697279b2300eda8f60a223c3e09b6065376ffd5a32e7525c964736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000085025e8941a00c3b174e60e27aa073c799e9b2a90000000000000000000000005b6096eb55a01cd260f0d4e7165dcbcfa10874ee00000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388940000000000000000000000004c8c0d2ca19a97896aa9135449e6d6471a53fc5f0000000000000000000000000b2a31d95b1a4c8b1e772599ffcb8875fb4e2d33000000000000000000000000cc6169aa1e879d3a4227536671f85afdb2d23fad00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000c16da76872131bc6095f73b894b4757873dace1000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f19000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3800000000000000000000000029219dd400f2bf60e5a23d13be72b486d40388940000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _staking_token (address): 0x85025E8941a00c3B174e60E27aA073c799e9b2a9
Arg [1] : _rewardPool (address): 0x5b6096eB55A01cd260F0d4e7165dCBCFA10874ee
Arg [2] : _deposit_token (address): 0x29219dd400f2Bf60E5a23d13Be72B486D4038894
Arg [3] : _ichi (address): 0x4c8c0D2Ca19a97896AA9135449e6d6471a53FC5f
Arg [4] : _vaultDeployer (address): 0x0b2a31D95B1a4c8b1e772599ffcB8875FB4e2d33
Arg [5] : _unirouter (address): 0xcC6169aA1E879d3a4227536671F85afdb2d23fAD
Arg [6] : _harvestOnDeposit (bool): True
Arg [7] : _treasury (address): 0x0c16Da76872131bC6095f73b894B4757873dAce1
Arg [8] : _rewardToNative (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [9] : _nativeToDeposit (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 00000000000000000000000085025e8941a00c3b174e60e27aa073c799e9b2a9
Arg [1] : 0000000000000000000000005b6096eb55a01cd260f0d4e7165dcbcfa10874ee
Arg [2] : 00000000000000000000000029219dd400f2bf60e5a23d13be72b486d4038894
Arg [3] : 0000000000000000000000004c8c0d2ca19a97896aa9135449e6d6471a53fc5f
Arg [4] : 0000000000000000000000000b2a31d95b1a4c8b1e772599ffcb8875fb4e2d33
Arg [5] : 000000000000000000000000cc6169aa1e879d3a4227536671f85afdb2d23fad
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 0000000000000000000000000c16da76872131bc6095f73b894b4757873dace1
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [9] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [11] : 000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f19
Arg [12] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [15] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [16] : 00000000000000000000000029219dd400f2bf60e5a23d13be72b486d4038894
Arg [17] : 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.