More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 31 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 3255696 | 56 mins ago | IN | 0 S | 0.00604625 | ||||
Harvest | 3243102 | 2 hrs ago | IN | 0 S | 0.00518634 | ||||
Harvest | 3232350 | 4 hrs ago | IN | 0 S | 0.00622818 | ||||
Harvest | 3222243 | 5 hrs ago | IN | 0 S | 0.00539358 | ||||
Harvest | 3212170 | 7 hrs ago | IN | 0 S | 0.00414026 | ||||
Harvest | 3203599 | 9 hrs ago | IN | 0 S | 0.00600421 | ||||
Harvest | 3197032 | 11 hrs ago | IN | 0 S | 0.00629285 | ||||
Harvest | 3189235 | 13 hrs ago | IN | 0 S | 0.00638106 | ||||
Harvest | 3171076 | 16 hrs ago | IN | 0 S | 0.00631953 | ||||
Harvest | 3159632 | 18 hrs ago | IN | 0 S | 0.00612638 | ||||
Harvest | 3148113 | 20 hrs ago | IN | 0 S | 0.00600606 | ||||
Harvest | 3137285 | 21 hrs ago | IN | 0 S | 0.00613283 | ||||
Harvest | 3125944 | 23 hrs ago | IN | 0 S | 0.00634422 | ||||
Harvest | 3114444 | 25 hrs ago | IN | 0 S | 0.00636043 | ||||
Harvest | 3105365 | 27 hrs ago | IN | 0 S | 0.00608567 | ||||
Harvest | 3098541 | 28 hrs ago | IN | 0 S | 0.00532496 | ||||
Harvest | 3092421 | 29 hrs ago | IN | 0 S | 0.00546843 | ||||
Harvest | 3084562 | 31 hrs ago | IN | 0 S | 0.00516287 | ||||
Harvest | 3078040 | 32 hrs ago | IN | 0 S | 0.006164 | ||||
Harvest | 3072699 | 33 hrs ago | IN | 0 S | 0.00511484 | ||||
Harvest | 3068204 | 34 hrs ago | IN | 0 S | 0.00523528 | ||||
Harvest | 3063051 | 36 hrs ago | IN | 0 S | 0.0042656 | ||||
Harvest | 3055017 | 37 hrs ago | IN | 0 S | 0.00519972 | ||||
Harvest | 3054997 | 37 hrs ago | IN | 0 S | 0.00655145 | ||||
Harvest | 2759791 | 3 days ago | IN | 0 S | 0.00081879 |
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; 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 ) 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]); } 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 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(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(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[]"}],"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":[],"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
60a08060405234620005575762002afc908138038092620000218284620006ea565b823961012081838101031262000557576200003c816200070e565b6200004a602083016200070e565b9262000059604084016200070e565b9362000068606085016200070e565b62000076608086016200070e565b906200008560a087016200070e565b926200009460c0880162000723565b95620000a360e089016200070e565b61010089015190966001600160401b0382116200055757808a01601f838c01011215620005575789820151906001600160401b0382116200030c576040519a620000f460208460051b018d620006ea565b828c5260208c0193828201602060608602838501010111620005575793602085830101945b602060608602828501010186106200066057505050505050331562000647576000543360018060a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a36001600160a81b0319163360ff60a01b19161760005560018055600019608052620186a0600655606460078190556103e8600855600955610384600a55602d600b55600480546001600160a01b03199081166001600160a01b0393841617909155600c8054821693831693909317909255600d8054831693821693909317909255600e8054821693831693909317909255600f805483169382169390931790925560138054909116929091169190911790556012805491151560ff1660ff19929092168217905562000611575b60005b8151811015620003225760208160051b8301015160148054680100000000000000008110156200030c57620002759160018201905562000731565b620002f657815181546001600160a01b039182166001600160a01b031990911617825560208301516001909201805460409094015160ff60a01b90151560a01b16929091166001600160a81b0319909316929092171790556000198114620002e0576001016200023a565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052600060045260246000fd5b634e487b7160e01b600052604160045260246000fd5b601454838115620005fb5760146000527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec54600380546001600160a01b0319166001600160a01b03929092169182179055916000198101908111620002e0576200038c9062000731565b5060010154600280546001600160a01b039283166001600160a01b03199182161790915560058054939092169216919091179055601554680100000000000000008110156200030c576001810180601555811015620005fb57601560009081527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4759190910180546001600160a01b0319169290921790915560048054600c5460805160405163095ea7b360e01b8082526001600160a01b039384169582019590955260248101919091529293602092849260449284929091165af180156200056557620005ba575b50600354600f546080516040518481526001600160a01b03928316600482015260248101919091529160209183916044918391600091165af18015620005655762000571575b50600554600d546080516040519384526001600160a01b039182166004850152602484015260209183911681600081604481015b03925af1801562000565576200051f575b6040516123aa90816200075282396080518181816105c201526117330152f35b6020813d6020116200055c575b816200053b60209383620006ea565b8101031262000557576200054f9062000723565b5080620004ff565b600080fd5b3d91506200052c565b6040513d6000823e3d90fd5b6020813d602011620005b1575b816200058d60209383620006ea565b810103126200055757620004ee91620005a860209262000723565b509150620004ba565b3d91506200057e565b6020813d602011620005f2575b81620005d660209383620006ea565b810103126200055757620005ea9062000723565b508162000474565b3d9150620005c7565b634e487b7160e01b600052603260045260246000fd5b60006007557f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af602060405160008152a162000237565b604051631e4fbdf760e01b815260006004820152602490fd5b606086858501031262000557576040516060810192906001600160401b03841181851017620006d557602060609283928296604052620006a08b6200070e565b8152620006af838c016200070e565b83820152620006c160408c0162000723565b604082015281520197019692505062000119565b60246000634e487b7160e01b81526041600452fd5b601f909101601f19168101906001600160401b038211908210176200030c57604052565b51906001600160a01b03821682036200055757565b519081151582036200055757565b601454811015620005fb57601460005260206000209060011b019060009056fe608060408181526004918236101561001657600080fd5b600092833560e01c918263025e30b014611f03575081630e8fbb5a14611e87578163111e4b6014611e5e5781631158808614611e41578163117da1ee14611db1578163171d218914611cb6578163257ae0de14611c8d5781632638c09e14611c6457816327ced53714611c3b5781632dc7d74c14611c135781632e1a7d4d146119b55781632f17e0301461198c5781633410fe6e1461196d57816334fbc9a11461194e5781633f4ba83a146116ae5781634641257d1461117457816354518b1a14611155578163573fef0a14610abc5781635c975abb14610a9757816361d027b314610a6e57816366666aa914610a455781636817031b1461097b578163715018a61461091e578163722713f7146109015781637ff8f1e9146108e45781638456cb59146107595781638912cb8b146107355781638cab0f991461070c5781638da5cb5b146106e4578163951d6d20146106c55781639bff5ddb146106a6578163d03153aa14610687578163d0e30db0146105e5578163d49d5181146105aa578163dfca092214610581578163e7a7250a1461055d578163f1a392da1461053e578163f2fde38b146104a5578163f301af421461044e578163fb617787146102ba578163fbe7515214610222575063fbfa77cf146101f357600080fd5b3461021e578160031936011261021e57601254905160089190911c6001600160a01b03168152602090f35b5080fd5b9050346102b65760203660031901126102b657356014548110156102b65760146060935260011b9060ff60018060a01b037fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ed81857fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec0154169401549083519485528116602085015260a01c16151590820152f35b8280fd5b919050346102b657826003193601126102b65760018060a01b03906102e78260125460081c16331461207d565b8382600c54166102f5612336565b813b156102b65782916024839286519485938492632e1a7d4d60e01b84528b8401525af180156104445761042c575b5050818354168151906370a0823160e01b82523085830152856020948584602481865afa9384156104225782946103e6575b50601254855163a9059cbb60e01b81526001600160a01b0360089290921c9092161696810196875260208701939093529194849286929183919082906040015b03925af19081156103dd57506103aa578280f35b81813d83116103d6575b6103be8183611f96565b8101031261021e576103cf9061225c565b5038808280f35b503d6103b4565b513d85823e3d90fd5b93509190508483813d811161041b575b6104008183611f96565b8101031261041657915191908690610396610356565b600080fd5b503d6103f6565b85513d84823e3d90fd5b61043590611f6c565b610440578338610324565b8380fd5b83513d84823e3d90fd5b9050346102b65760203660031901126102b657356015548110156102b65760156020935260018060a01b03907f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4750154169051908152f35b919050346102b65760203660031901126102b6576001600160a01b0382358181169391929084900361053a576104d9611f1f565b8315610524575050600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8480fd5b50503461021e578160031936011261021e576020906011549051908152f35b50503461021e578160031936011261021e5760209061057a612269565b9051908152f35b50503461021e578160031936011261021e5760105490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e57602090517f00000000000000000000000000000000000000000000000000000000000000008152f35b919050346102b657826003193601126102b6576012543360089190911c6001600160a01b031614801561067e575b1561062c5782610621611f4b565b610629611fb8565b80f35b906020608492519162461bcd60e51b8352820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b50303314610613565b50503461021e578160031936011261021e576020906016549051908152f35b50503461021e578160031936011261021e576020906007549051908152f35b50503461021e578160031936011261021e576020906009549051908152f35b50503461021e578160031936011261021e57905490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760055490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760209060ff6012541690519015158152f35b919050346102b657826003193601126102b657610774611f1f565b61077c611f4b565b825460ff60a01b1916600160a01b1783558051338152602091907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258908390a18254600c54825163095ea7b360e01b8082526001600160a01b0392831682880152602482018890529195928590829060449082908b908b165af180156108a6576108b0575b5085848660035416604488600f541687519485938492888452898401528160248401525af180156108a6579085939291610869575b5060449087876005541697600d5416978651988995869485528401528160248401525af19081156103dd57506103aa578280f35b909281813d831161089f575b61087f8183611f96565b8101031261089b57849261089460449261225c565b5090610835565b8680fd5b503d610875565b84513d89823e3d90fd5b8481813d83116108dd575b6108c58183611f96565b8101031261089b576108d69061225c565b5038610800565b503d6108bb565b50503461021e578160031936011261021e5760209061057a6122fc565b50503461021e578160031936011261021e5760209061057a6122e0565b8334610978578060031936011261097857610937611f1f565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b9050346102b65760203660031901126102b65780356001600160a01b0381169290919083830361053a576109ad611f1f565b823b15610a0257505060128054610100600160a81b03191660089290921b610100600160a81b03169190911790557fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f308280a280f35b906020606492519162461bcd60e51b8352820152601860248201527f5661756c74206d757374206265206120636f6e747261637400000000000000006044820152fd5b50503461021e578160031936011261021e57600c5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760135490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760ff6020925460a01c1690519015158152f35b9050346102b657826003193601126102b65760125460ff808216610ade578480f35b6001600160a01b039160081c8216330361111d57610afa611f4b565b81600c541690813b156110f4578585516331279d3d60e01b81526044810193308783015260249488868401526015548091526064830190601585527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47590855b818110611102575050508391838381809403925af180156110f8576110e0575b50508260035416928551936370a0823160e01b92838652308787015260209586818781865afa9081156110d6578a916110a9575b50610bec575b505050505050505042601155337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a2388080808480f35b858592895193848092888252308c8301525afa91821561109f578992611070575b5082600f541690813b1561106c579089929189805193636cc1ae1360e01b855260a48501908b860152600190818a8701528a60a09485604489015260145480935260c488019560148a527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec958b8b945b868610611027575050505050505050508391838381809430606483015242608483015203925af1801561101d57611009575b50508060025416868051848152308882015286818781865afa908115610fff578a91610fcc575b5091610d067f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b393600b54906120d5565b610d42610d2b610d1960085480946120e8565b92610d26600954856120d5565b6120e8565b92610d3684846120b2565b90876013541690612108565b825191825287820152a18060055416918651908152308682015284818581865afa908115610fc2578891610f95575b5080610d94575b50505050505050610d87611fb8565b3880808080808080610bb3565b81600d98959697985416908288541692600e541693823b1561089b57888780959394819560c4948e51998a978896635d123e3f60e01b88528701528b860152604485015260648401528160848401523060a48401525af19182610f81575b5050610f70578160033d11610f61575b6308c379a014610ef6575b3d15610ee0573d9067ffffffffffffffff8211610ecf57506052610ecb938693610eb793610ea7985190610e4a84601f19601f8401160183611f96565b81528091833d92013e5b845197827f4465706f73697420746f2049434849205661756c74206661696c6564207769748a9485015271034103637bb96b632bb32b6103230ba309d160751b878501528251928391868601910161220d565b8101036032810187520185611f96565b5162461bcd60e51b81529283928301612230565b0390fd5b634e487b7160e01b83526041855282fd5b5050610ea792610eb76052610ecb936060610e54565b610efe61219b565b80610f095750610e0d565b84610ecb87610eb7603e88610f5196845197827f4465706f73697420746f2049434849205661756c74206661696c65643a2000008a948501528251928391868601910161220d565b810103601e810187520185611f96565b508382803e815160e01c610e02565b509250505038808080808080610d78565b610f8a90611f6c565b6102b6578238610df2565b90508481813d8311610fbb575b610fac8183611f96565b81010312610416575138610d71565b503d610fa2565b87513d8a823e3d90fd5b809250878092503d8311610ff8575b610fe58183611f96565b8101031261041657518790610d06610cd6565b503d610fdb565b82513d8c823e3d90fd5b61101290611f6c565b61089b578638610caf565b88513d84823e3d90fd5b889a9b9c509184826060948a8c819e966002999b9d9a9c9e54168752015491821690850152871c16151590820152019701930190918f989796959394928f8b8f610c7d565b8980fd5b9091508581813d8311611098575b6110888183611f96565b8101031261041657519038610c0d565b503d61107e565b88513d8b823e3d90fd5b90508681813d83116110cf575b6110c08183611f96565b81010312610416575138610bad565b503d6110b6565b89513d8c823e3d90fd5b6110e990611f6c565b6110f4578538610b79565b8580fd5b87513d84823e3d90fd5b82548a1684528c965060209093019260019283019201610b59565b835162461bcd60e51b815260208185015260126024820152715661756c74206465706f736974206f6e6c7960701b6044820152606490fd5b50503461021e578160031936011261021e576020906006549051908152f35b9050346102b657826003193601126102b657333b158015611694575b156116595761119d611f4b565b600c546001600160a01b03908116803b1561053a578484516331279d3d60e01b81526044810192308683015260249387858401526015548091526064830190601585527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47590855b81811061163e575050508391838381809403925af1801561163457611620575b505081600354168451926370a0823160e01b91828552308686015260209485818681855afa90811561109f5789916115f3575b5061128a575b8742601155337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a280f35b848491885192838092878252308b8301525afa908115610fc25788916115c6575b5081600f5416803b156115c257908891885191636cc1ae1360e01b835260a483019089840152896001808986015260a0928360448701526014548091528a60c4870194601489527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec948a8a935b85851061158a5750505050505050508391838381809430606483015242608483015203925af1801561101d57611576575b50508060025416868051848152308882015286818781865afa908115610fff578a91611543575b50916113a07f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b393600b54906120d5565b6113da6113b3610d1960085480946120e8565b926113be84846120b2565b9084303303611531575b50508660025416876013541690612108565b825191825287820152a18060055416918651908152308682015284818581865afa908115610fc2578891611504575b508061142b575b5050505050505061141f611fb8565b3880808080808061125d565b81600d98959697985416908288541692600e541693823b1561089b57888780959394819560c4948e51998a978896635d123e3f60e01b88528701528b860152604485015260648401528160848401523060a48401525af191826114f0575b50506114df578160033d11610f61576308c379a014610ef6573d15610ee0573d9067ffffffffffffffff8211610ecf57506052610ecb938693610eb793610ea7985190610e4a84601f19601f8401160183611f96565b509250505038808080808080611410565b6114f990611f6c565b6102b6578238611489565b90508481813d831161152a575b61151b8183611f96565b81010312610416575138611409565b503d611511565b61153c913390612108565b38846113c8565b809250878092503d831161156f575b61155c8183611f96565b81010312610416575187906113a0611370565b503d611552565b61157f90611f6c565b61089b578638611349565b8754821689528688015491821690890152821c60ff161515908701528f985060609590950194600290940193908301908e8a8e611318565b8880fd5b90508481813d83116115ec575b6115dd8183611f96565b810103126104165751386112ab565b503d6115d3565b90508581813d8311611619575b61160a8183611f96565b81010312610416575138611257565b503d611600565b61162990611f6c565b61053a578438611224565b86513d84823e3d90fd5b8254891684528b965060209093019260019283019201611204565b6020606492519162461bcd60e51b8352820152601660248201527508585d5d1a0810dbdb9d1c9858dd0812185c9d995cdd60521b6044820152fd5b506012543360089190911c6001600160a01b031614611190565b919050346102b657826003193601126102b6576116c9611f1f565b825460ff8160a01c16156119405760ff60a01b191683558051338152602091907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa908390a18254600c54825163095ea7b360e01b8082526001600160a01b039283168288019081527f0000000000000000000000000000000000000000000000000000000000000000602082018190529394919392918791839187169082908c90829060400103925af180156119025761190c575b506117b88582856003541686600f54168b8b8a51968795869485938c8552840160209093929193604081019460018060a01b031681520152565b03925af1801561190257908692916118c5575b50600554600d54865194855285166001600160a01b0316888501908152602081019290925283919085169082908a9082906040015b03925af180156118bb57611887575b5060125460081c163314801561187e575b1561182e5783610621611f4b565b5162461bcd60e51b815291820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b606482015260849150fd5b50303314611820565b8381813d83116118b4575b61189c8183611f96565b810103126110f4576118ad9061225c565b503861180f565b503d611892565b83513d88823e3d90fd5b9182813d83116118fb575b6118da8183611f96565b810103126118f757611800926118f0879361225c565b50926117cb565b8780fd5b503d6118d0565b85513d8a823e3d90fd5b8581813d8311611939575b6119218183611f96565b810103126118f7576119329061225c565b503861177e565b503d611917565b5051638dfc202b60e01b8152fd5b50503461021e578160031936011261021e57602090600b549051908152f35b50503461021e578160031936011261021e576020906008549051908152f35b50503461021e578160031936011261021e57600e5490516001600160a01b039091168152602090f35b919050346102b65760209081600319360112610440578235600260015414611c0357600260015560018060a01b036119f58160125460081c16331461207d565b808554169183519285846024816370a0823160e01b94858252308c8301525afa938415611902578894611bd4575b508784838110611adc575b505050907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d95828493611a9f9511611ad4575b50611a7a611a71600754856120d5565b600654906120e8565b60ff895460a01c161580611ac7575b611ab4575b505460125460081c82169116612108565b611aa76122e0565b9051908152a16001805580f35b611ac0908392946120b2565b9290611a8e565b5060ff6012541615611a89565b925038611a61565b9091929450611af084600c541691866120b2565b90803b156102b6576024839288519485938492632e1a7d4d60e01b84528d8401525af1801561190257611bc1575b5084828754169160248651809481938252308b8301525afa9081156108a6578791611b6e575b50917f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d8738611a2e565b929190508483813d8311611bba575b611b878183611f96565b810103126104165791519091907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d611b44565b503d611b7d565b611bcd90979197611f6c565b9538611b1e565b9093508581813d8311611bfc575b611bec8183611f96565b810103126118f757519238611a23565b503d611be2565b8151633ee5aeb560e01b81528490fd5b9050346102b657826003193601126102b6575490516001600160a01b03909116815260209150f35b50503461021e578160031936011261021e5760025490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760035490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e57600f5490516001600160a01b039091168152602090f35b828434610978578060031936011261097857611cd0612269565b92819380611d05575b60208461057a611cec88600b54906120d5565b610d26611cfc60085480936120e8565b600954906120d5565b8391929450606460018060a01b039384600f54168560035416956002541685519687958694635e1e632560e01b8652850152602484015260448301525afa928315611da6578093611d60575b505061057a611cec6020611cd9565b9092508183813d8311611d9f575b611d788183611f96565b81010312610978575061057a611cec83611d976020809651920161225c565b509350611d51565b503d611d6e565b8251903d90823e3d90fd5b919050346102b65760203660031901126102b657813591611dd0611f1f565b6105dc8311611e0b5750816020917fe4a7fd2711237e77309a9a16ff636a748dbf956fd91f6e6da800d9302f441a799360165551908152a180f35b6020606492519162461bcd60e51b83528201526011602482015270496e76616c696420746f6c6572616e636560781b6044820152fd5b50503461021e578160031936011261021e5760209061057a612336565b50503461021e578160031936011261021e57600d5490516001600160a01b039091168152602090f35b9050346102b65760203660031901126102b657358015158091036102b6577f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af91602091611ed2611f1f565b60ff8019601254169116809117601255600014611ef5578360075551838152a180f35b600a60075551600a8152a180f35b84903461021e578160031936011261021e57602090600a548152f35b6000546001600160a01b03163303611f3357565b60405163118cdaa760e01b8152336004820152602490fd5b60ff60005460a01c16611f5a57565b60405163d93c066560e01b8152600490fd5b67ffffffffffffffff8111611f8057604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117611f8057604052565b602460018060a01b0360208160045416604051938480926370a0823160e01b82523060048301525afa91821561203e5760009261204a575b5081611ffa575050565b600c541690813b156104165760009160248392604051948593849263b6b55f2560e01b845260048401525af1801561203e576120335750565b61203c90611f6c565b565b6040513d6000823e3d90fd5b90916020823d8211612075575b8161206460209383611f96565b810103126109785750519038611ff0565b3d9150612057565b1561208457565b60405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b6044820152606490fd5b919082039182116120bf57565b634e487b7160e01b600052601160045260246000fd5b818102929181159184041417156120bf57565b81156120f2570490565b634e487b7160e01b600052601260045260246000fd5b60405163a9059cbb60e01b60208083019182526001600160a01b039490941660248301526044808301959095529381529092600091612148606482611f96565b519082855af11561203e576000513d61219257506001600160a01b0381163b155b6121705750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415612169565b600060443d106121f957604051600319913d83016004833e815167ffffffffffffffff918282113d6024840111176121fc57818401948551938411612204573d850101602084870101116121fc57506121f992910160200190611f96565b90565b949350505050565b50949350505050565b60005b8381106122205750506000910152565b8181015183820152602001612210565b60409160208252612250815180928160208601526020868601910161220d565b601f01601f1916010190565b5190811515820361041657565b600c5460035460405163211dc32d60e01b81526001600160a01b0391821660048201523060248201529160209183916044918391165afa90811561203e576000916122b2575090565b906020823d82116122d8575b816122cb60209383611f96565b8101031261097857505190565b3d91506122be565b6122e86122fc565b6122f0612336565b81018091116120bf5790565b6024602060018060a01b0360045416604051928380926370a0823160e01b82523060048301525afa90811561203e576000916122b2575090565b600c546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561203e576000916122b257509056fea26469706673582212204a5bb8726a57fbd1d8c45a49d9812f6e55a943d1896cb0acaeb87d65de935fa264736f6c63430008140033000000000000000000000000238c26ddea068190fe715b095463b82796f0058b000000000000000000000000610262807fafb649a8f63942e59c03a4d5b2fe7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000004c8c0d2ca19a97896aa9135449e6d6471a53fc5f0000000000000000000000000b2a31d95b1a4c8b1e772599ffcb8875fb4e2d33000000000000000000000000cc6169aa1e879d3a4227536671f85afdb2d23fad00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000c16da76872131bc6095f73b894b4757873dace100000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f19000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060408181526004918236101561001657600080fd5b600092833560e01c918263025e30b014611f03575081630e8fbb5a14611e87578163111e4b6014611e5e5781631158808614611e41578163117da1ee14611db1578163171d218914611cb6578163257ae0de14611c8d5781632638c09e14611c6457816327ced53714611c3b5781632dc7d74c14611c135781632e1a7d4d146119b55781632f17e0301461198c5781633410fe6e1461196d57816334fbc9a11461194e5781633f4ba83a146116ae5781634641257d1461117457816354518b1a14611155578163573fef0a14610abc5781635c975abb14610a9757816361d027b314610a6e57816366666aa914610a455781636817031b1461097b578163715018a61461091e578163722713f7146109015781637ff8f1e9146108e45781638456cb59146107595781638912cb8b146107355781638cab0f991461070c5781638da5cb5b146106e4578163951d6d20146106c55781639bff5ddb146106a6578163d03153aa14610687578163d0e30db0146105e5578163d49d5181146105aa578163dfca092214610581578163e7a7250a1461055d578163f1a392da1461053e578163f2fde38b146104a5578163f301af421461044e578163fb617787146102ba578163fbe7515214610222575063fbfa77cf146101f357600080fd5b3461021e578160031936011261021e57601254905160089190911c6001600160a01b03168152602090f35b5080fd5b9050346102b65760203660031901126102b657356014548110156102b65760146060935260011b9060ff60018060a01b037fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ed81857fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec0154169401549083519485528116602085015260a01c16151590820152f35b8280fd5b919050346102b657826003193601126102b65760018060a01b03906102e78260125460081c16331461207d565b8382600c54166102f5612336565b813b156102b65782916024839286519485938492632e1a7d4d60e01b84528b8401525af180156104445761042c575b5050818354168151906370a0823160e01b82523085830152856020948584602481865afa9384156104225782946103e6575b50601254855163a9059cbb60e01b81526001600160a01b0360089290921c9092161696810196875260208701939093529194849286929183919082906040015b03925af19081156103dd57506103aa578280f35b81813d83116103d6575b6103be8183611f96565b8101031261021e576103cf9061225c565b5038808280f35b503d6103b4565b513d85823e3d90fd5b93509190508483813d811161041b575b6104008183611f96565b8101031261041657915191908690610396610356565b600080fd5b503d6103f6565b85513d84823e3d90fd5b61043590611f6c565b610440578338610324565b8380fd5b83513d84823e3d90fd5b9050346102b65760203660031901126102b657356015548110156102b65760156020935260018060a01b03907f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4750154169051908152f35b919050346102b65760203660031901126102b6576001600160a01b0382358181169391929084900361053a576104d9611f1f565b8315610524575050600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8480fd5b50503461021e578160031936011261021e576020906011549051908152f35b50503461021e578160031936011261021e5760209061057a612269565b9051908152f35b50503461021e578160031936011261021e5760105490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e57602090517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8152f35b919050346102b657826003193601126102b6576012543360089190911c6001600160a01b031614801561067e575b1561062c5782610621611f4b565b610629611fb8565b80f35b906020608492519162461bcd60e51b8352820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b50303314610613565b50503461021e578160031936011261021e576020906016549051908152f35b50503461021e578160031936011261021e576020906007549051908152f35b50503461021e578160031936011261021e576020906009549051908152f35b50503461021e578160031936011261021e57905490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760055490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760209060ff6012541690519015158152f35b919050346102b657826003193601126102b657610774611f1f565b61077c611f4b565b825460ff60a01b1916600160a01b1783558051338152602091907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258908390a18254600c54825163095ea7b360e01b8082526001600160a01b0392831682880152602482018890529195928590829060449082908b908b165af180156108a6576108b0575b5085848660035416604488600f541687519485938492888452898401528160248401525af180156108a6579085939291610869575b5060449087876005541697600d5416978651988995869485528401528160248401525af19081156103dd57506103aa578280f35b909281813d831161089f575b61087f8183611f96565b8101031261089b57849261089460449261225c565b5090610835565b8680fd5b503d610875565b84513d89823e3d90fd5b8481813d83116108dd575b6108c58183611f96565b8101031261089b576108d69061225c565b5038610800565b503d6108bb565b50503461021e578160031936011261021e5760209061057a6122fc565b50503461021e578160031936011261021e5760209061057a6122e0565b8334610978578060031936011261097857610937611f1f565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b9050346102b65760203660031901126102b65780356001600160a01b0381169290919083830361053a576109ad611f1f565b823b15610a0257505060128054610100600160a81b03191660089290921b610100600160a81b03169190911790557fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f308280a280f35b906020606492519162461bcd60e51b8352820152601860248201527f5661756c74206d757374206265206120636f6e747261637400000000000000006044820152fd5b50503461021e578160031936011261021e57600c5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760135490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760ff6020925460a01c1690519015158152f35b9050346102b657826003193601126102b65760125460ff808216610ade578480f35b6001600160a01b039160081c8216330361111d57610afa611f4b565b81600c541690813b156110f4578585516331279d3d60e01b81526044810193308783015260249488868401526015548091526064830190601585527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47590855b818110611102575050508391838381809403925af180156110f8576110e0575b50508260035416928551936370a0823160e01b92838652308787015260209586818781865afa9081156110d6578a916110a9575b50610bec575b505050505050505042601155337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a2388080808480f35b858592895193848092888252308c8301525afa91821561109f578992611070575b5082600f541690813b1561106c579089929189805193636cc1ae1360e01b855260a48501908b860152600190818a8701528a60a09485604489015260145480935260c488019560148a527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec958b8b945b868610611027575050505050505050508391838381809430606483015242608483015203925af1801561101d57611009575b50508060025416868051848152308882015286818781865afa908115610fff578a91610fcc575b5091610d067f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b393600b54906120d5565b610d42610d2b610d1960085480946120e8565b92610d26600954856120d5565b6120e8565b92610d3684846120b2565b90876013541690612108565b825191825287820152a18060055416918651908152308682015284818581865afa908115610fc2578891610f95575b5080610d94575b50505050505050610d87611fb8565b3880808080808080610bb3565b81600d98959697985416908288541692600e541693823b1561089b57888780959394819560c4948e51998a978896635d123e3f60e01b88528701528b860152604485015260648401528160848401523060a48401525af19182610f81575b5050610f70578160033d11610f61575b6308c379a014610ef6575b3d15610ee0573d9067ffffffffffffffff8211610ecf57506052610ecb938693610eb793610ea7985190610e4a84601f19601f8401160183611f96565b81528091833d92013e5b845197827f4465706f73697420746f2049434849205661756c74206661696c6564207769748a9485015271034103637bb96b632bb32b6103230ba309d160751b878501528251928391868601910161220d565b8101036032810187520185611f96565b5162461bcd60e51b81529283928301612230565b0390fd5b634e487b7160e01b83526041855282fd5b5050610ea792610eb76052610ecb936060610e54565b610efe61219b565b80610f095750610e0d565b84610ecb87610eb7603e88610f5196845197827f4465706f73697420746f2049434849205661756c74206661696c65643a2000008a948501528251928391868601910161220d565b810103601e810187520185611f96565b508382803e815160e01c610e02565b509250505038808080808080610d78565b610f8a90611f6c565b6102b6578238610df2565b90508481813d8311610fbb575b610fac8183611f96565b81010312610416575138610d71565b503d610fa2565b87513d8a823e3d90fd5b809250878092503d8311610ff8575b610fe58183611f96565b8101031261041657518790610d06610cd6565b503d610fdb565b82513d8c823e3d90fd5b61101290611f6c565b61089b578638610caf565b88513d84823e3d90fd5b889a9b9c509184826060948a8c819e966002999b9d9a9c9e54168752015491821690850152871c16151590820152019701930190918f989796959394928f8b8f610c7d565b8980fd5b9091508581813d8311611098575b6110888183611f96565b8101031261041657519038610c0d565b503d61107e565b88513d8b823e3d90fd5b90508681813d83116110cf575b6110c08183611f96565b81010312610416575138610bad565b503d6110b6565b89513d8c823e3d90fd5b6110e990611f6c565b6110f4578538610b79565b8580fd5b87513d84823e3d90fd5b82548a1684528c965060209093019260019283019201610b59565b835162461bcd60e51b815260208185015260126024820152715661756c74206465706f736974206f6e6c7960701b6044820152606490fd5b50503461021e578160031936011261021e576020906006549051908152f35b9050346102b657826003193601126102b657333b158015611694575b156116595761119d611f4b565b600c546001600160a01b03908116803b1561053a578484516331279d3d60e01b81526044810192308683015260249387858401526015548091526064830190601585527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47590855b81811061163e575050508391838381809403925af1801561163457611620575b505081600354168451926370a0823160e01b91828552308686015260209485818681855afa90811561109f5789916115f3575b5061128a575b8742601155337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a280f35b848491885192838092878252308b8301525afa908115610fc25788916115c6575b5081600f5416803b156115c257908891885191636cc1ae1360e01b835260a483019089840152896001808986015260a0928360448701526014548091528a60c4870194601489527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec948a8a935b85851061158a5750505050505050508391838381809430606483015242608483015203925af1801561101d57611576575b50508060025416868051848152308882015286818781865afa908115610fff578a91611543575b50916113a07f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b393600b54906120d5565b6113da6113b3610d1960085480946120e8565b926113be84846120b2565b9084303303611531575b50508660025416876013541690612108565b825191825287820152a18060055416918651908152308682015284818581865afa908115610fc2578891611504575b508061142b575b5050505050505061141f611fb8565b3880808080808061125d565b81600d98959697985416908288541692600e541693823b1561089b57888780959394819560c4948e51998a978896635d123e3f60e01b88528701528b860152604485015260648401528160848401523060a48401525af191826114f0575b50506114df578160033d11610f61576308c379a014610ef6573d15610ee0573d9067ffffffffffffffff8211610ecf57506052610ecb938693610eb793610ea7985190610e4a84601f19601f8401160183611f96565b509250505038808080808080611410565b6114f990611f6c565b6102b6578238611489565b90508481813d831161152a575b61151b8183611f96565b81010312610416575138611409565b503d611511565b61153c913390612108565b38846113c8565b809250878092503d831161156f575b61155c8183611f96565b81010312610416575187906113a0611370565b503d611552565b61157f90611f6c565b61089b578638611349565b8754821689528688015491821690890152821c60ff161515908701528f985060609590950194600290940193908301908e8a8e611318565b8880fd5b90508481813d83116115ec575b6115dd8183611f96565b810103126104165751386112ab565b503d6115d3565b90508581813d8311611619575b61160a8183611f96565b81010312610416575138611257565b503d611600565b61162990611f6c565b61053a578438611224565b86513d84823e3d90fd5b8254891684528b965060209093019260019283019201611204565b6020606492519162461bcd60e51b8352820152601660248201527508585d5d1a0810dbdb9d1c9858dd0812185c9d995cdd60521b6044820152fd5b506012543360089190911c6001600160a01b031614611190565b919050346102b657826003193601126102b6576116c9611f1f565b825460ff8160a01c16156119405760ff60a01b191683558051338152602091907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa908390a18254600c54825163095ea7b360e01b8082526001600160a01b039283168288019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602082018190529394919392918791839187169082908c90829060400103925af180156119025761190c575b506117b88582856003541686600f54168b8b8a51968795869485938c8552840160209093929193604081019460018060a01b031681520152565b03925af1801561190257908692916118c5575b50600554600d54865194855285166001600160a01b0316888501908152602081019290925283919085169082908a9082906040015b03925af180156118bb57611887575b5060125460081c163314801561187e575b1561182e5783610621611f4b565b5162461bcd60e51b815291820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b606482015260849150fd5b50303314611820565b8381813d83116118b4575b61189c8183611f96565b810103126110f4576118ad9061225c565b503861180f565b503d611892565b83513d88823e3d90fd5b9182813d83116118fb575b6118da8183611f96565b810103126118f757611800926118f0879361225c565b50926117cb565b8780fd5b503d6118d0565b85513d8a823e3d90fd5b8581813d8311611939575b6119218183611f96565b810103126118f7576119329061225c565b503861177e565b503d611917565b5051638dfc202b60e01b8152fd5b50503461021e578160031936011261021e57602090600b549051908152f35b50503461021e578160031936011261021e576020906008549051908152f35b50503461021e578160031936011261021e57600e5490516001600160a01b039091168152602090f35b919050346102b65760209081600319360112610440578235600260015414611c0357600260015560018060a01b036119f58160125460081c16331461207d565b808554169183519285846024816370a0823160e01b94858252308c8301525afa938415611902578894611bd4575b508784838110611adc575b505050907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d95828493611a9f9511611ad4575b50611a7a611a71600754856120d5565b600654906120e8565b60ff895460a01c161580611ac7575b611ab4575b505460125460081c82169116612108565b611aa76122e0565b9051908152a16001805580f35b611ac0908392946120b2565b9290611a8e565b5060ff6012541615611a89565b925038611a61565b9091929450611af084600c541691866120b2565b90803b156102b6576024839288519485938492632e1a7d4d60e01b84528d8401525af1801561190257611bc1575b5084828754169160248651809481938252308b8301525afa9081156108a6578791611b6e575b50917f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d8738611a2e565b929190508483813d8311611bba575b611b878183611f96565b810103126104165791519091907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d611b44565b503d611b7d565b611bcd90979197611f6c565b9538611b1e565b9093508581813d8311611bfc575b611bec8183611f96565b810103126118f757519238611a23565b503d611be2565b8151633ee5aeb560e01b81528490fd5b9050346102b657826003193601126102b6575490516001600160a01b03909116815260209150f35b50503461021e578160031936011261021e5760025490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760035490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e57600f5490516001600160a01b039091168152602090f35b828434610978578060031936011261097857611cd0612269565b92819380611d05575b60208461057a611cec88600b54906120d5565b610d26611cfc60085480936120e8565b600954906120d5565b8391929450606460018060a01b039384600f54168560035416956002541685519687958694635e1e632560e01b8652850152602484015260448301525afa928315611da6578093611d60575b505061057a611cec6020611cd9565b9092508183813d8311611d9f575b611d788183611f96565b81010312610978575061057a611cec83611d976020809651920161225c565b509350611d51565b503d611d6e565b8251903d90823e3d90fd5b919050346102b65760203660031901126102b657813591611dd0611f1f565b6105dc8311611e0b5750816020917fe4a7fd2711237e77309a9a16ff636a748dbf956fd91f6e6da800d9302f441a799360165551908152a180f35b6020606492519162461bcd60e51b83528201526011602482015270496e76616c696420746f6c6572616e636560781b6044820152fd5b50503461021e578160031936011261021e5760209061057a612336565b50503461021e578160031936011261021e57600d5490516001600160a01b039091168152602090f35b9050346102b65760203660031901126102b657358015158091036102b6577f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af91602091611ed2611f1f565b60ff8019601254169116809117601255600014611ef5578360075551838152a180f35b600a60075551600a8152a180f35b84903461021e578160031936011261021e57602090600a548152f35b6000546001600160a01b03163303611f3357565b60405163118cdaa760e01b8152336004820152602490fd5b60ff60005460a01c16611f5a57565b60405163d93c066560e01b8152600490fd5b67ffffffffffffffff8111611f8057604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117611f8057604052565b602460018060a01b0360208160045416604051938480926370a0823160e01b82523060048301525afa91821561203e5760009261204a575b5081611ffa575050565b600c541690813b156104165760009160248392604051948593849263b6b55f2560e01b845260048401525af1801561203e576120335750565b61203c90611f6c565b565b6040513d6000823e3d90fd5b90916020823d8211612075575b8161206460209383611f96565b810103126109785750519038611ff0565b3d9150612057565b1561208457565b60405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b6044820152606490fd5b919082039182116120bf57565b634e487b7160e01b600052601160045260246000fd5b818102929181159184041417156120bf57565b81156120f2570490565b634e487b7160e01b600052601260045260246000fd5b60405163a9059cbb60e01b60208083019182526001600160a01b039490941660248301526044808301959095529381529092600091612148606482611f96565b519082855af11561203e576000513d61219257506001600160a01b0381163b155b6121705750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415612169565b600060443d106121f957604051600319913d83016004833e815167ffffffffffffffff918282113d6024840111176121fc57818401948551938411612204573d850101602084870101116121fc57506121f992910160200190611f96565b90565b949350505050565b50949350505050565b60005b8381106122205750506000910152565b8181015183820152602001612210565b60409160208252612250815180928160208601526020868601910161220d565b601f01601f1916010190565b5190811515820361041657565b600c5460035460405163211dc32d60e01b81526001600160a01b0391821660048201523060248201529160209183916044918391165afa90811561203e576000916122b2575090565b906020823d82116122d8575b816122cb60209383611f96565b8101031261097857505190565b3d91506122be565b6122e86122fc565b6122f0612336565b81018091116120bf5790565b6024602060018060a01b0360045416604051928380926370a0823160e01b82523060048301525afa90811561203e576000916122b2575090565b600c546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561203e576000916122b257509056fea26469706673582212204a5bb8726a57fbd1d8c45a49d9812f6e55a943d1896cb0acaeb87d65de935fa264736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000238c26ddea068190fe715b095463b82796f0058b000000000000000000000000610262807fafb649a8f63942e59c03a4d5b2fe7f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000004c8c0d2ca19a97896aa9135449e6d6471a53fc5f0000000000000000000000000b2a31d95b1a4c8b1e772599ffcb8875fb4e2d33000000000000000000000000cc6169aa1e879d3a4227536671f85afdb2d23fad00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000c16da76872131bc6095f73b894b4757873dace100000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f19000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _staking_token (address): 0x238C26DDEa068190Fe715b095463B82796F0058B
Arg [1] : _rewardPool (address): 0x610262807FAfB649A8F63942E59c03a4D5b2fE7f
Arg [2] : _deposit_token (address): 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38
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]
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 000000000000000000000000238c26ddea068190fe715b095463b82796f0058b
Arg [1] : 000000000000000000000000610262807fafb649a8f63942e59c03a4d5b2fe7f
Arg [2] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [3] : 0000000000000000000000004c8c0d2ca19a97896aa9135449e6d6471a53fc5f
Arg [4] : 0000000000000000000000000b2a31d95b1a4c8b1e772599ffcb8875fb4e2d33
Arg [5] : 000000000000000000000000cc6169aa1e879d3a4227536671f85afdb2d23fad
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [7] : 0000000000000000000000000c16da76872131bc6095f73b894b4757873dace1
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 000000000000000000000000ddf26b42c1d903de8962d3f79a74a501420d5f19
Arg [11] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [12] : 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.