Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Name:
Blacksail_ICHI_Strategy_SwapX
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/ISwapX.sol"; import "../interfacing/ISwapXGauge.sol"; interface IIchiDepositHelper { function forwardDepositToICHIVault( address _vault, address _deployer, address _token, uint256 _amount, uint256 _minAmountOut, address _to ) external; function deposit(uint256, uint256, address) external returns (uint256); function allowToken0() external returns (bool); function token0() external returns (address); } contract Blacksail_ICHI_Strategy_SwapX is Ownable, Pausable, ReentrancyGuard { using SafeERC20 for IERC20; uint256 public immutable MAX = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff; // Tokens address public constant native_token = address(0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38); 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 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 _reward_token, address _deposit_token, address _ichi, address _vaultDeployer, address _unirouter, bool _harvestOnDeposit, address _treasury ) Ownable(msg.sender) { staking_token = _staking_token; rewardPool = _rewardPool; ichi = _ichi; vaultDeployer = _vaultDeployer; unirouter = _unirouter; treasury = _treasury; harvestOnDeposit = _harvestOnDeposit; if (harvestOnDeposit) { setWithdrawalFee(0); } reward_token = _reward_token; 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) { ISwapXGauge(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) { ISwapXGauge(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 { ISwapXGauge(rewardPool).getReward(); 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)); ISwapX.ExactInputSingleParams memory eisp; eisp.tokenIn = reward_token; eisp.tokenOut = native_token; eisp.recipient = address(this); eisp.amountIn = toNative; eisp.limitSqrtPrice = 0; ISwapX(unirouter).exactInputSingleSupportingFeeOnTransferTokens(eisp); uint256 nativeBal = IERC20(native_token).balanceOf(address(this)); uint256 platformFee = (nativeBal * PLATFORM_FEE) / DIVISOR; uint256 callFeeAmount = (platformFee * CALL_FEE) / DIVISOR; uint256 treasuryFee = platformFee - callFeeAmount; if (caller != address(this)) { IERC20(native_token).safeTransfer(caller, callFeeAmount); } IERC20(native_token).safeTransfer(treasury, treasuryFee); emit ChargeFees(callFeeAmount, platformFee); } /** * @dev Adds liquidity by converting native tokens to the deposit token and forwarding them to the ICHI Vault. * * - Checks for sufficient native token balance. * - Converts native tokens to the deposit token using the Uniswap V3 router if required. * - Approves the necessary allowances for the Uniswap V3 router. * - Forwards the converted deposit tokens to the ICHI Vault for staking. * * Requirements: * - The contract must have a positive balance of the native token. */ function addLiquidity() internal { uint256 nativeBal = IERC20(native_token).balanceOf(address(this)); if (nativeBal != 0) { if (deposit_token != native_token) { ISwapX.ExactInputSingleParams memory eisp; eisp.tokenIn = native_token; eisp.tokenOut = deposit_token; eisp.recipient = address(this); eisp.amountIn = nativeBal; eisp.limitSqrtPrice = 0; ISwapX(unirouter).exactInputSingleSupportingFeeOnTransferTokens(eisp); } uint256 depositTokenBal = IERC20(deposit_token).balanceOf( address(this) ); if (depositTokenBal > 0) { if (deposit_token == IIchiDepositHelper(ichi).token0()){ IIchiDepositHelper(ichi).deposit(depositTokenBal, 0, address(this)); } else { IIchiDepositHelper(ichi).deposit(0, depositTokenBal, address(this)); } } } } function algebraSwapCallback( int256 amount0Delta, int256 amount1Delta, bytes calldata data ) external { require(msg.sender == address(ichi), "Unauthorized callback"); if (amount0Delta > 0) { IERC20(deposit_token).safeTransfer(msg.sender, uint256(amount0Delta)); } else if (amount1Delta > 0) { IERC20(deposit_token).safeTransfer(msg.sender, uint256(amount1Delta)); } } /** @dev Determines the amount of reward in WFTM upon calling the harvest function */ function harvestCallReward() public view returns (uint256) { return uint256(0); } /** @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 ISwapXGauge(rewardPool).earned(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 ISwapXGauge(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"); ISwapXGauge(rewardPool).withdraw(balanceOfPool()); uint256 stakingBal = IERC20(staking_token).balanceOf(address(this)); IERC20(staking_token).transfer(vault, stakingBal); } /** @dev Pauses the strategy contract */ function pause() public onlyOwner { _pause(); _removeAllowances(); } /** @dev Unpauses the strategy contract */ function unpause() external onlyOwner { _unpause(); _giveAllowances(); deposit(); } /** @dev Gives allowances to spenders */ function _giveAllowances() internal { IERC20(staking_token).approve(rewardPool, MAX); IERC20(native_token).approve(unirouter, type(uint256).max); IERC20(reward_token).approve(unirouter, MAX); IERC20(deposit_token).approve(ichi, MAX); } /** @dev Removes allowances to spenders */ function _removeAllowances() internal { IERC20(staking_token).approve(rewardPool, 0); IERC20(native_token).approve(unirouter, 0); IERC20(reward_token).approve(unirouter, 0); IERC20(deposit_token).approve(ichi, 0); } /** * @dev Sets the withdrawal fee for the strategy. * * - Ensures that the fee does not exceed 100 (representing 1%). * - Updates the `WITHDRAW_FEE` variable with the new fee value. * * Requirements: * - `fee` must be less than or equal to 100. * * @param fee The new withdrawal fee (scaled by 100,000 for precision). */ function setWithdrawalFee(uint256 fee) internal { require(fee <= 100, "Fee too high"); WITHDRAW_FEE = fee; emit SetWithdrawalFee(fee); } /** * @dev Allows the contract owner to set the slippage tolerance for token swaps. * This value is used to calculate the minimum acceptable output amount in swaps, * helping to mitigate the risks of slippage and unfavorable price changes. * * Requirements: * - The caller must be the contract owner. * - The provided tolerance must be less than or equal to 1500 (representing a maximum of 15% slippage). * * Emits: * - A {SetSlippageTolerance} event indicating the updated slippage tolerance. * * @param _tolerance The new slippage tolerance value, scaled by 10,000 (e.g., 1500 = 15%). */ function setSlippageTolerance(uint256 _tolerance) external onlyOwner { require(_tolerance <= 1500, "Invalid tolerance"); // Max 15% slippageTolerance = _tolerance; emit SetSlippageTolerance(slippageTolerance); } function isContract(address account) internal view returns (bool) { return account.code.length > 0; } modifier onlyAuthorized() { require( msg.sender == vault || msg.sender == address(this), "Not authorized, only Vault or Strategy" ); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC165} from "./IERC165.sol"; /** * @title IERC1363 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363]. * * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction. */ interface IERC1363 is IERC20, IERC165 { /* * Note: the ERC-165 identifier for this interface is 0xb0202a11. * 0xb0202a11 === * bytes4(keccak256('transferAndCall(address,uint256)')) ^ * bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^ * bytes4(keccak256('approveAndCall(address,uint256)')) ^ * bytes4(keccak256('approveAndCall(address,uint256,bytes)')) */ /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @param data Additional data with no specified format, sent in call to `spender`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC1363} from "../../../interfaces/IERC1363.sol"; import {Address} from "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC-20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { /** * @dev An operation with an ERC-20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. * * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being * set here. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { safeTransfer(token, to, value); } else if (!token.transferAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferFromAndCallRelaxed( IERC1363 token, address from, address to, uint256 value, bytes memory data ) internal { if (to.code.length == 0) { safeTransferFrom(token, from, to, value); } else if (!token.transferFromAndCall(from, to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}. * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall} * once without retrying, and relies on the returned value to be true. * * Reverts if the returned value is other than `true`. */ function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { forceApprove(token, to, value); } else if (!token.approveAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements. */ function _callOptionalReturn(IERC20 token, bytes memory data) private { uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) // bubble errors if iszero(success) { let ptr := mload(0x40) returndatacopy(ptr, 0, returndatasize()) revert(ptr, returndatasize()) } returnSize := returndatasize() returnValue := mload(0) } if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { bool success; uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) returnSize := returndatasize() returnValue := mload(0) } return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol) pragma solidity ^0.8.20; import {Errors} from "./Errors.sol"; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert Errors.InsufficientBalance(address(this).balance, amount); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert Errors.FailedCall(); } } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {Errors.FailedCall} error. * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert Errors.InsufficientBalance(address(this).balance, value); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case * of an unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {Errors.FailedCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}. */ function _revert(bytes memory returndata) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly ("memory-safe") { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert Errors.FailedCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol) pragma solidity ^0.8.20; /** * @dev Collection of common custom errors used in multiple contracts * * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library. * It is recommended to avoid relying on the error API for critical functionality. * * _Available since v5.1._ */ library Errors { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error InsufficientBalance(uint256 balance, uint256 needed); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedCall(); /** * @dev The deployment failed. */ error FailedDeployment(); /** * @dev A necessary precompile is missing. */ error MissingPrecompile(address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at, * consider using {ReentrancyGuardTransient} instead. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.7.5; /// @title Router token swapping functionality /// @notice Functions for swapping tokens via Algebra /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license: /// https://github.com/Uniswap/v3-periphery interface ISwapX { struct ExactInputSingleParams { address tokenIn; address tokenOut; address recipient; uint256 amountIn; uint256 amountOutMinimum; uint160 limitSqrtPrice; } /// @notice Swaps `amountIn` of one token for as much as possible of another token /// @dev Setting `amountIn` to 0 will cause the contract to look up its own balance, /// and swap the entire amount, enabling contracts to send tokens before calling this function. /// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata /// @return amountOut The amount of the received token function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut); struct ExactInputParams { bytes path; address recipient; uint256 amountIn; uint256 amountOutMinimum; } /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path /// @dev Setting `amountIn` to 0 will cause the contract to look up its own balance, /// and swap the entire amount, enabling contracts to send tokens before calling this function. /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata /// @return amountOut The amount of the received token function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut); struct ExactOutputSingleParams { address tokenIn; address tokenOut; address recipient; uint256 amountOut; uint256 amountInMaximum; uint160 limitSqrtPrice; } /// @notice Swaps as little as possible of one token for `amountOut` of another token /// that may remain in the router after the swap. /// @param params The parameters necessary for the swap, encoded as `ExactOutputSingleParams` in calldata /// @return amountIn The amount of the input token function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn); struct ExactOutputParams { bytes path; address recipient; uint256 amountOut; uint256 amountInMaximum; } /// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed) /// that may remain in the router after the swap. /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactOutputParams` in calldata /// @return amountIn The amount of the input token function exactOutput(ExactOutputParams calldata params) external payable returns (uint256 amountIn); /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path /// @dev Unlike standard swaps, handles transferring from user before the actual swap. /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata /// @return amountOut The amount of the received token function exactInputSingleSupportingFeeOnTransferTokens( ExactInputSingleParams calldata params ) external payable returns (uint256 amountOut); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; interface ISwapXGauge { /* ----------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- VIEW -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ----------------------------------------------------------------------------- */ ///@notice total supply held function totalSupply() external view returns (uint256); ///@notice balance of a user function balanceOf(address account) external view returns (uint256); ///@notice last time reward function lastTimeRewardApplicable() external view returns (uint256); ///@notice reward for a sinle token function rewardPerToken() external view returns (uint256); ///@notice see earned rewards for user function earned(address account) external view returns (uint256); ///@notice get total reward for the duration function rewardForDuration() external view returns (uint256); function _periodFinish() external view returns (uint256); /* ----------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- USER INTERACTION -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ----------------------------------------------------------------------------- */ ///@notice deposit all TOKEN of msg.sender function depositAll() external; ///@notice deposit amount TOKEN function deposit(uint256 amount) external; ///@notice withdraw all token function withdrawAll() external; ///@notice withdraw a certain amount of TOKEN function withdraw(uint256 amount) external; function emergencyWithdraw() external; function emergencyWithdrawAmount(uint256 _amount) external; ///@notice withdraw all TOKEN and harvest rewardToken function withdrawAllAndHarvest() external; ///@notice User harvest function called from distribution (voter allows harvest on multiple gauges) function getReward(address _user) external; ///@notice User harvest function function getReward() external; /* ----------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- DISTRIBUTION -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ----------------------------------------------------------------------------- */ /// @dev Receive rewards from distribution function notifyRewardAmount( address token, uint reward ) external; function claimFees() external returns (uint claimed0, uint claimed1); }
{ "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":"_reward_token","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"}],"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":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"algebraSwapCallback","outputs":[],"stateMutability":"nonpayable","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":[],"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
60a060409080825234620003c3576101208162002925803803809162000026828562000525565b833981010312620003c3576200003c816200055f565b6200004a602083016200055f565b91620000588482016200055f565b9062000067606082016200055f565b9362000076608083016200055f565b6200008460a084016200055f565b6200009260c085016200055f565b91620000b0610100620000a860e0880162000574565b96016200055f565b9333156200050d576000543360018060a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a36001600160a81b0319163360ff60a01b19161760005560018055600019608052620186a0600555606460068190556103e8600755600855610384600955602d600a55600380546001600160a01b03199081166001600160a01b039a8b1617909155600b80548216928a1692909217909155600c8054821692891692909217909155600d8054821692881692909217909155600e805482169287169290921790915560128054821692909516919091179093556011805491151560ff1660ff199290921682179055620004d8575b60018060a01b03168082600254161760025560049260018060a01b03168284541617835560135468010000000000000000811015620004c3576001810180601355811015620004ae57601360009081527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09091909101805490931691909117909155600354600b54608051855163095ea7b360e01b8082526001600160a01b0393841682880190815260208181019490945290969591949293859316918391829060400103925af180156200041e576200046d575b50600e5483518381526001600160a01b0390911682820152600019602482015290602082604481600073039e2fb66102314ce7b64ce5ce3e5183bc94ad385af180156200041e5762000429575b600254600e5460805186518681526001600160a01b03928316858201908152602081810193909352909550909285921690829060009082906040015b03925af180156200041e57620003dc575b8054600c5460805186519586526001600160a01b0391821693860193845260208085019190915293508492839003604001918391600091165af18015620003d1576200038b575b50516123a2908162000583823960805181818161059c01526117090152f35b6020813d602011620003c8575b81620003a76020938362000525565b81010312620003c357620003bb9062000574565b50386200036c565b600080fd5b3d915062000398565b82513d6000823e3d90fd5b6020823d60201162000415575b81620003f86020938362000525565b81010312620003c3576200040e60209262000574565b5062000325565b3d9150620003e9565b84513d6000823e3d90fd5b6020823d60201162000464575b81620004456020938362000525565b81010312620003c3576200045d620003149262000574565b50620002d8565b3d915062000436565b6020813d602011620004a5575b81620004896020938362000525565b81010312620003c3576200049d9062000574565b50386200028b565b3d91506200047a565b603284634e487b7160e01b6000525260246000fd5b604184634e487b7160e01b6000525260246000fd5b60006006557f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af6020855160008152a1620001b7565b8951631e4fbdf760e01b815260006004820152602490fd5b601f909101601f19168101906001600160401b038211908210176200054957604052565b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620003c357565b51908115158203620003c35756fe608060408181526004918236101561001657600080fd5b600092833560e01c918263025e30b014611ecb575081630e8fbb5a14611e4f578163111e4b6014611e265781631158808614611e09578163117da1ee14611d79578163171d218914611d5e578163257ae0de14611d355781632638c09e14611d0c57816327ced53714611cdd5781632c8958f614611c015781632dc7d74c14611bd85781632e1a7d4d146119935781632f17e0301461196a5781633410fe6e1461194b57816334fbc9a11461192c5781633f4ba83a146116835781634641257d146110dd57816354518b1a146110be578163573fef0a14610abe5781635c975abb14610a9957816361d027b314610a7057816366666aa914610a475781636817031b1461097d578163715018a614610920578163722713f7146109035781637ff8f1e9146108df5781638456cb59146107325781638912cb8b1461070e5781638cab0f99146106e65781638da5cb5b146106be578163951d6d201461069f5781639bff5ddb14610680578163d03153aa14610661578163d0e30db0146105bf578163d49d518114610584578163dfca09221461055b578163e7a7250a146104c8578163f1a392da146104a9578163f2fde38b14610410578163f301af42146103b9578163fb61778714610222575063fbfa77cf146101f357600080fd5b3461021e578160031936011261021e57601154905160089190911c6001600160a01b03168152602090f35b5080fd5b919050346103b557826003193601126103b55760018060a01b039061024f8260115460081c16331461204a565b8382600b541661025d612316565b813b156103b55782916024839286519485938492632e1a7d4d60e01b84528b8401525af180156103ab57610393575b505081600354168151906370a0823160e01b82523085830152602094868684602481865afa938415610387579087949392918194610349575b50601154865163a9059cbb60e01b81526001600160a01b0360089290921c9098161691870191825260208201939093528592839182906040015b03925af19081156103405750610313578280f35b8161033292903d10610339575b61032a8183611f5e565b810190612354565b5038808280f35b503d610320565b513d85823e3d90fd5b9480929794508591503d8311610380575b6103648183611f5e565b8101031261037b576102ff948787945193966102c5565b600080fd5b503d61035a565b508451903d90823e3d90fd5b61039c90611f34565b6103a757833861028c565b8380fd5b83513d84823e3d90fd5b8280fd5b9050346103b55760203660031901126103b557356013548110156103b55760136020935260018060a01b03907f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900154169051908152f35b919050346103b55760203660031901126103b5576001600160a01b038235818116939192908490036104a557610444611ee7565b831561048f575050600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8480fd5b50503461021e578160031936011261021e576020906010549051908152f35b83833461021e578160031936011261021e57600b5481516246613160e11b81523094810194909452602090849060249082906001600160a01b03165afa918215610550579161051c575b6020925051908152f35b90506020823d8211610548575b8161053660209383611f5e565b8101031261037b576020915190610512565b3d9150610529565b9051903d90823e3d90fd5b50503461021e578160031936011261021e57600f5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e57602090517f00000000000000000000000000000000000000000000000000000000000000008152f35b919050346103b557826003193601126103b5576011543360089190911c6001600160a01b0316148015610658575b1561060657826105fb611f13565b610603611f80565b80f35b906020608492519162461bcd60e51b8352820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b503033146105ed565b50503461021e578160031936011261021e576020906014549051908152f35b50503461021e578160031936011261021e576020906006549051908152f35b50503461021e578160031936011261021e576020906008549051908152f35b50503461021e578160031936011261021e57905490516001600160a01b039091168152602090f35b9050346103b557826003193601126103b5575490516001600160a01b03909116815260209150f35b50503461021e578160031936011261021e5760209060ff6011541690519015158152f35b9050346103b557826003193601126103b55761074c611ee7565b610754611f13565b825460ff60a01b1916600160a01b1783558151338152602092907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258908490a1600354600b54825163095ea7b360e01b8082526001600160a01b0392831682870152602482018890529194928690829060449082908b908a165af1801561089b576108c2575b5083600e54168351908282528382015286602482015285816044818a73039e2fb66102314ce7b64ce5ce3e5183bc94ad385af1801561089b576108a5575b5085858560025416604487600e541687519485938492888452898401528160248401525af1801561089b579160449187949361087e575b50878684541696600c5416968651978895869485528401528160248401525af19081156103405750610313578280f35b61089490853d87116103395761032a8183611f5e565b503861084e565b84513d89823e3d90fd5b6108bb90863d88116103395761032a8183611f5e565b5038610817565b6108d890863d88116103395761032a8183611f5e565b50386107d9565b50503461021e578160031936011261021e576020906108fc6122aa565b9051908152f35b50503461021e578160031936011261021e576020906108fc61228e565b833461097a578060031936011261097a57610939611ee7565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b9050346103b55760203660031901126103b55780356001600160a01b038116929091908383036104a5576109af611ee7565b823b15610a0457505060118054610100600160a81b03191660089290921b610100600160a81b03169190911790557fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f308280a280f35b906020606492519162461bcd60e51b8352820152601860248201527f5661756c74206d757374206265206120636f6e747261637400000000000000006044820152fd5b50503461021e578160031936011261021e57600b5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760125490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760ff6020925460a01c1690519015158152f35b8391503461021e578160031936011261021e576011549060ff8216610ae1578280f35b6001600160a01b039160081c82163303611086578293610aff611f13565b82600b5416803b156104a55784809184845180948193631e8c5c8960e11b83525af1801561107c57908591611063575b50508260025416928151926370a0823160e01b90818552308186015260209560249587818881855afa908115611028578991611032575b50610ba4575b505050505050505042601055337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a28082808280f35b845190838252308383015287828881845afa918215611028578992610ff6575b50610bcd6121ff565b90815273039e2fb66102314ce7b64ce5ce3e5183bc94ad38918289830152308783015260608201528860a082015284600e54168887518092818d81610c1f63076c8e2d60e11b988983528b8301612242565b03925af18015610f8b57610fc8575b508551848152308482015288818981865afa908115610f8b578a91610f95575b5086610c7e7f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b392600a54906120a2565b610ca0610c8e60075480936120b5565b91610c9b600854846120a2565b6120b5565b90610cb8610cae838361207f565b8a601254166120d5565b82519182528b820152a1855191848352308484015288838981845afa928315610f8b578a93610f59575b5082610d08575b50505050505050505050610cfb611f80565b8082808080808080610b6c565b88918685541693828503610ed7575b5050505050828154168451928352308284015286838781845afa928315610ecd578893610e9b575b5082610d4d575b8080610ce9565b87908785600c5416848851809c8193630dfe168160e01b83525af18015610e91578899839997989991610e57575b50851603610df15760649293600c54168187519889968795638dbdbe6d60e01b87528601528401523060448401525af19081156103405750610dc8575b50505b8082808080808080610d46565b813d8311610dea575b610ddb8183611f5e565b8101031261037b578180610db8565b503d610dd1565b6064928194600c54169087519889968795638dbdbe6d60e01b87528601528401523060448401525af19081156103405750610e2e575b5050610dbb565b813d8311610e50575b610e418183611f5e565b8101031261037b578180610e27565b503d610e37565b8781939892503d8311610e8a575b610e6f8183611f5e565b8101031261021e575194848616860361021e57889585610d7b565b503d610e65565b86513d84823e3d90fd5b975091508587813d8111610ec6575b610eb48183611f5e565b8101031261037b578796519189610d3f565b503d610eaa565b85513d8a823e3d90fd5b610f1394610ee36121ff565b93845284840152308984015260608301528a60a083015286600e5416908b89518096819582948352898301612242565b03925af18015610ecd57610f2b575b86818080610d17565b86809298503d8311610f52575b610f428183611f5e565b8101031261037b57869588610f22565b503d610f38565b995091508789813d8111610f84575b610f728183611f5e565b8101031261037b57899851918b610ce2565b503d610f68565b87513d8c823e3d90fd5b809a50898092503d8311610fc1575b610fae8183611f5e565b8101031261037b57975189989086610c4e565b503d610fa4565b8880929a503d8311610fef575b610fdf8183611f5e565b8101031261037b5788978a610c2e565b503d610fd5565b985090508688813d8111611021575b61100f8183611f5e565b8101031261037b57889751908a610bc4565b503d611005565b86513d8b823e3d90fd5b809950888092503d831161105c575b61104b8183611f5e565b8101031261037b578897518a610b66565b503d611041565b61106c90611f34565b611077578386610b2f565b505050fd5b82513d87823e3d90fd5b606490602085519162461bcd60e51b835282015260126024820152715661756c74206465706f736974206f6e6c7960701b6044820152fd5b50503461021e578160031936011261021e576020906005549051908152f35b8391503461021e578160031936011261021e57333b158015611669575b1561162d5791819261110a611f13565b600b546001600160a01b0392908316803b156104a55784809184845180948193631e8c5c8960e11b83525af1801561107c57908591611619575b50508260025416928151926370a0823160e01b90818552308186015260209560249587818881855afa9081156110285789916115e8575b506111ae575b8742601055337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a280f35b845190838252308383015287828881845afa9182156110285789926115b6575b506111d76121ff565b90815273039e2fb66102314ce7b64ce5ce3e5183bc94ad38918289830152308783015260608201528860a082015284600e54168887518092818d8161122963076c8e2d60e11b988983528b8301612242565b03925af18015610f8b57611588575b508551848152308482015288818981865afa908115610f8b578a91611555575b50866112887f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b392600a54906120a2565b611298610c8e60075480936120b5565b906112b76112a6838361207f565b303303611546578a601254166120d5565b82519182528b820152a1855191848352308484015288838981845afa928315610f8b578a93611514575b5082611307575b505050505050505050506112fa611f80565b8082808080808080611181565b889186855416938285036114c2575b5050505050828154168451928352308284015286838781845afa928315610ecd578893611490575b508261134c575b80806112e8565b87908785600c5416848851809c8193630dfe168160e01b83525af18015610e91578899839997989991611456575b508516036113f05760649293600c54168187519889968795638dbdbe6d60e01b87528601528401523060448401525af190811561034057506113c7575b50505b8082808080808080611345565b813d83116113e9575b6113da8183611f5e565b8101031261037b5781806113b7565b503d6113d0565b6064928194600c54169087519889968795638dbdbe6d60e01b87528601528401523060448401525af1908115610340575061142d575b50506113ba565b813d831161144f575b6114408183611f5e565b8101031261037b578180611426565b503d611436565b8781939892503d8311611489575b61146e8183611f5e565b8101031261021e575194848616860361021e5788958561137a565b503d611464565b975091508587813d81116114bb575b6114a98183611f5e565b8101031261037b57879651918961133e565b503d61149f565b6114ce94610ee36121ff565b03925af18015610ecd576114e6575b86818080611316565b86809298503d831161150d575b6114fd8183611f5e565b8101031261037b578695886114dd565b503d6114f3565b995091508789813d811161153f575b61152d8183611f5e565b8101031261037b57899851918b6112e1565b503d611523565b61155084336120d5565b610cae565b809a50898092503d8311611581575b61156e8183611f5e565b8101031261037b57975189989086611258565b503d611564565b8880929a503d83116115af575b61159f8183611f5e565b8101031261037b5788978a611238565b503d611595565b985090508688813d81116115e1575b6115cf8183611f5e565b8101031261037b57889751908a6111ce565b503d6115c5565b809950888092503d8311611612575b6116018183611f5e565b8101031261037b578897518a61117b565b503d6115f7565b61162290611f34565b611077578386611144565b606490602084519162461bcd60e51b8352820152601660248201527508585d5d1a0810dbdb9d1c9858dd0812185c9d995cdd60521b6044820152fd5b506011543360089190911c6001600160a01b0316146110fa565b919050346103b557826003193601126103b55761169e611ee7565b825460ff8160a01c161561191e5760ff60a01b191683558051338152602091907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa908390a1600354600b54825163095ea7b360e01b8082526001600160a01b039283168288019081527f00000000000000000000000000000000000000000000000000000000000000006020820181905293949192918791839187169082908c90829060400103925af18015610ecd57611901575b50600e54845182815290841687820152600019602482015285816044818b73039e2fb66102314ce7b64ce5ce3e5183bc94ad385af18015610ecd576118e4575b506117cd8583856002541686600e54168b8b8a51968795869485938b8552840160209093929193604081019460018060a01b031681520152565b03925af18015610ecd5791611819939187936118c7575b5084885416908986600c54169188519687958694859384528d840160209093929193604081019460018060a01b031681520152565b03925af180156118bd576118a0575b5060115460081c1633148015611897575b1561184757836105fb611f13565b5162461bcd60e51b815291820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b606482015260849150fd5b50303314611839565b6118b690843d86116103395761032a8183611f5e565b5038611828565b83513d88823e3d90fd5b6118dd90843d86116103395761032a8183611f5e565b50386117e4565b6118fa90863d88116103395761032a8183611f5e565b5038611793565b61191790863d88116103395761032a8183611f5e565b5038611753565b5051638dfc202b60e01b8152fd5b50503461021e578160031936011261021e57602090600a549051908152f35b50503461021e578160031936011261021e576020906007549051908152f35b50503461021e578160031936011261021e57600d5490516001600160a01b039091168152602090f35b919050346103b557602090816003193601126103a757823592600260015414611bca57600260015560018060a01b03936119d58560115460081c16331461204a565b846003541683519285846024816370a0823160e01b9586825230868301525afa938415610ecd578894611b97575b508784848110611abc575b50505050907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d9482611a81938311611ab4575b50611a5a611a51600654846120a2565b600554906120b5565b60ff885460a01c161580611aa7575b611a96575b5060035460115460081c8216911661216f565b611a8961228e565b9051908152a16001805580f35b611aa0919261207f565b9038611a6e565b5060ff6011541615611a69565b915038611a41565b909192939450611ad188600b5416918661207f565b90803b156103b5576024839288519485938492632e1a7d4d60e01b8452888401525af18015610ecd57611b84575b508490602487600354169386519485938492835230908301525afa9081156118bd578691611b35575b509084611a818738611a0e565b9190508382813d8311611b7d575b611b4d8183611f5e565b8101031261037b5790517f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d611b28565b503d611b43565b96611b90869298611f34565b9690611aff565b9093508581813d8311611bc3575b611baf8183611f5e565b81010312611bbf57519238611a03565b8780fd5b503d611ba5565b9051633ee5aeb560e01b8152fd5b50503461021e578160031936011261021e5760035490516001600160a01b039091168152602090f35b9050346103b55760603660031901126103b55780359060243560443567ffffffffffffffff808211611cd95736602383011215611cd95781840135908111611cd957369101602401116104a557600c546001600160a01b03949085163303611c9f575084831315611c7a5750610603923391541661216f565b9150838213611c8a575b50505080f35b611c97923391541661216f565b388080611c84565b5162461bcd60e51b81526020818401526015602482015274556e617574686f72697a65642063616c6c6261636b60581b6044820152606490fd5b8680fd5b50503461021e578160031936011261021e576020905173039e2fb66102314ce7b64ce5ce3e5183bc94ad388152f35b50503461021e578160031936011261021e5760025490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e57600e5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5751908152602090f35b919050346103b55760203660031901126103b557813591611d98611ee7565b6105dc8311611dd35750816020917fe4a7fd2711237e77309a9a16ff636a748dbf956fd91f6e6da800d9302f441a799360145551908152a180f35b6020606492519162461bcd60e51b83528201526011602482015270496e76616c696420746f6c6572616e636560781b6044820152fd5b50503461021e578160031936011261021e576020906108fc612316565b50503461021e578160031936011261021e57600c5490516001600160a01b039091168152602090f35b9050346103b55760203660031901126103b557358015158091036103b5577f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af91602091611e9a611ee7565b60ff8019601154169116809117601155600014611ebd578360065551838152a180f35b600a60065551600a8152a180f35b84903461021e578160031936011261021e576020906009548152f35b6000546001600160a01b03163303611efb57565b60405163118cdaa760e01b8152336004820152602490fd5b60ff60005460a01c16611f2257565b60405163d93c066560e01b8152600490fd5b67ffffffffffffffff8111611f4857604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117611f4857604052565b6003546040516370a0823160e01b8152306004820152906001600160a01b03906020908390602490829085165afa91821561200b57600092612017575b5081611fc7575050565b600b541690813b1561037b5760009160248392604051948593849263b6b55f2560e01b845260048401525af1801561200b576120005750565b61200990611f34565b565b6040513d6000823e3d90fd5b90916020823d8211612042575b8161203160209383611f5e565b8101031261097a5750519038611fbd565b3d9150612024565b1561205157565b60405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b6044820152606490fd5b9190820391821161208c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561208c57565b81156120bf570490565b634e487b7160e01b600052601260045260246000fd5b60405163a9059cbb60e01b60208281019182526001600160a01b039093166024830152604482019390935260009061211a81606481015b03601f198101835282611f5e565b5173039e2fb66102314ce7b64ce5ce3e5183bc94ad389382855af11561200b576000513d6121665750803b155b61214e5750565b60249060405190635274afe760e01b82526004820152fd5b60011415612147565b60405163a9059cbb60e01b60208281019182526001600160a01b039094166024830152604482019490945290926000916121ac816064810161210c565b519082855af11561200b576000513d6121f657506001600160a01b0381163b155b6121d45750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b600114156121cd565b6040519060c0820182811067ffffffffffffffff821117611f48576040528160a06000918281528260208201528260408201528260608201528260808201520152565b91909160a060c082019381600180821b03918281511685528260208201511660208601528260408201511660408601526060810151606086015260808101516080860152015116910152565b6122966122aa565b61229e612316565b810180911161208c5790565b6003546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561200b576000916122e8575090565b906020823d821161230e575b8161230160209383611f5e565b8101031261097a57505190565b3d91506122f4565b600b546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561200b576000916122e8575090565b9081602091031261037b5751801515810361037b579056fea26469706673582212207a9580197013929e108e6cf4e7d85a1966513e6f3a31de0d5e367045c323a37e64736f6c63430008140033000000000000000000000000fd10ac67449c16f368a4bb49f544e0a865a77614000000000000000000000000c693c6fc1d2b44dfb5c5aa05ca2b02a91db97528000000000000000000000000a04bc7140c26fc9bb1f36b1a604c7a5a88fb0e70000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38000000000000000000000000fd10ac67449c16f368a4bb49f544e0a865a776140000000000000000000000000b2a31d95b1a4c8b1e772599ffcb8875fb4e2d33000000000000000000000000a047e2abf8263fca7c368f43e2f960a06fd9949f00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000c16da76872131bc6095f73b894b4757873dace1
Deployed Bytecode
0x608060408181526004918236101561001657600080fd5b600092833560e01c918263025e30b014611ecb575081630e8fbb5a14611e4f578163111e4b6014611e265781631158808614611e09578163117da1ee14611d79578163171d218914611d5e578163257ae0de14611d355781632638c09e14611d0c57816327ced53714611cdd5781632c8958f614611c015781632dc7d74c14611bd85781632e1a7d4d146119935781632f17e0301461196a5781633410fe6e1461194b57816334fbc9a11461192c5781633f4ba83a146116835781634641257d146110dd57816354518b1a146110be578163573fef0a14610abe5781635c975abb14610a9957816361d027b314610a7057816366666aa914610a475781636817031b1461097d578163715018a614610920578163722713f7146109035781637ff8f1e9146108df5781638456cb59146107325781638912cb8b1461070e5781638cab0f99146106e65781638da5cb5b146106be578163951d6d201461069f5781639bff5ddb14610680578163d03153aa14610661578163d0e30db0146105bf578163d49d518114610584578163dfca09221461055b578163e7a7250a146104c8578163f1a392da146104a9578163f2fde38b14610410578163f301af42146103b9578163fb61778714610222575063fbfa77cf146101f357600080fd5b3461021e578160031936011261021e57601154905160089190911c6001600160a01b03168152602090f35b5080fd5b919050346103b557826003193601126103b55760018060a01b039061024f8260115460081c16331461204a565b8382600b541661025d612316565b813b156103b55782916024839286519485938492632e1a7d4d60e01b84528b8401525af180156103ab57610393575b505081600354168151906370a0823160e01b82523085830152602094868684602481865afa938415610387579087949392918194610349575b50601154865163a9059cbb60e01b81526001600160a01b0360089290921c9098161691870191825260208201939093528592839182906040015b03925af19081156103405750610313578280f35b8161033292903d10610339575b61032a8183611f5e565b810190612354565b5038808280f35b503d610320565b513d85823e3d90fd5b9480929794508591503d8311610380575b6103648183611f5e565b8101031261037b576102ff948787945193966102c5565b600080fd5b503d61035a565b508451903d90823e3d90fd5b61039c90611f34565b6103a757833861028c565b8380fd5b83513d84823e3d90fd5b8280fd5b9050346103b55760203660031901126103b557356013548110156103b55760136020935260018060a01b03907f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900154169051908152f35b919050346103b55760203660031901126103b5576001600160a01b038235818116939192908490036104a557610444611ee7565b831561048f575050600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8480fd5b50503461021e578160031936011261021e576020906010549051908152f35b83833461021e578160031936011261021e57600b5481516246613160e11b81523094810194909452602090849060249082906001600160a01b03165afa918215610550579161051c575b6020925051908152f35b90506020823d8211610548575b8161053660209383611f5e565b8101031261037b576020915190610512565b3d9150610529565b9051903d90823e3d90fd5b50503461021e578160031936011261021e57600f5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e57602090517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8152f35b919050346103b557826003193601126103b5576011543360089190911c6001600160a01b0316148015610658575b1561060657826105fb611f13565b610603611f80565b80f35b906020608492519162461bcd60e51b8352820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b503033146105ed565b50503461021e578160031936011261021e576020906014549051908152f35b50503461021e578160031936011261021e576020906006549051908152f35b50503461021e578160031936011261021e576020906008549051908152f35b50503461021e578160031936011261021e57905490516001600160a01b039091168152602090f35b9050346103b557826003193601126103b5575490516001600160a01b03909116815260209150f35b50503461021e578160031936011261021e5760209060ff6011541690519015158152f35b9050346103b557826003193601126103b55761074c611ee7565b610754611f13565b825460ff60a01b1916600160a01b1783558151338152602092907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258908490a1600354600b54825163095ea7b360e01b8082526001600160a01b0392831682870152602482018890529194928690829060449082908b908a165af1801561089b576108c2575b5083600e54168351908282528382015286602482015285816044818a73039e2fb66102314ce7b64ce5ce3e5183bc94ad385af1801561089b576108a5575b5085858560025416604487600e541687519485938492888452898401528160248401525af1801561089b579160449187949361087e575b50878684541696600c5416968651978895869485528401528160248401525af19081156103405750610313578280f35b61089490853d87116103395761032a8183611f5e565b503861084e565b84513d89823e3d90fd5b6108bb90863d88116103395761032a8183611f5e565b5038610817565b6108d890863d88116103395761032a8183611f5e565b50386107d9565b50503461021e578160031936011261021e576020906108fc6122aa565b9051908152f35b50503461021e578160031936011261021e576020906108fc61228e565b833461097a578060031936011261097a57610939611ee7565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b9050346103b55760203660031901126103b55780356001600160a01b038116929091908383036104a5576109af611ee7565b823b15610a0457505060118054610100600160a81b03191660089290921b610100600160a81b03169190911790557fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f308280a280f35b906020606492519162461bcd60e51b8352820152601860248201527f5661756c74206d757374206265206120636f6e747261637400000000000000006044820152fd5b50503461021e578160031936011261021e57600b5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760125490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760ff6020925460a01c1690519015158152f35b8391503461021e578160031936011261021e576011549060ff8216610ae1578280f35b6001600160a01b039160081c82163303611086578293610aff611f13565b82600b5416803b156104a55784809184845180948193631e8c5c8960e11b83525af1801561107c57908591611063575b50508260025416928151926370a0823160e01b90818552308186015260209560249587818881855afa908115611028578991611032575b50610ba4575b505050505050505042601055337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a28082808280f35b845190838252308383015287828881845afa918215611028578992610ff6575b50610bcd6121ff565b90815273039e2fb66102314ce7b64ce5ce3e5183bc94ad38918289830152308783015260608201528860a082015284600e54168887518092818d81610c1f63076c8e2d60e11b988983528b8301612242565b03925af18015610f8b57610fc8575b508551848152308482015288818981865afa908115610f8b578a91610f95575b5086610c7e7f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b392600a54906120a2565b610ca0610c8e60075480936120b5565b91610c9b600854846120a2565b6120b5565b90610cb8610cae838361207f565b8a601254166120d5565b82519182528b820152a1855191848352308484015288838981845afa928315610f8b578a93610f59575b5082610d08575b50505050505050505050610cfb611f80565b8082808080808080610b6c565b88918685541693828503610ed7575b5050505050828154168451928352308284015286838781845afa928315610ecd578893610e9b575b5082610d4d575b8080610ce9565b87908785600c5416848851809c8193630dfe168160e01b83525af18015610e91578899839997989991610e57575b50851603610df15760649293600c54168187519889968795638dbdbe6d60e01b87528601528401523060448401525af19081156103405750610dc8575b50505b8082808080808080610d46565b813d8311610dea575b610ddb8183611f5e565b8101031261037b578180610db8565b503d610dd1565b6064928194600c54169087519889968795638dbdbe6d60e01b87528601528401523060448401525af19081156103405750610e2e575b5050610dbb565b813d8311610e50575b610e418183611f5e565b8101031261037b578180610e27565b503d610e37565b8781939892503d8311610e8a575b610e6f8183611f5e565b8101031261021e575194848616860361021e57889585610d7b565b503d610e65565b86513d84823e3d90fd5b975091508587813d8111610ec6575b610eb48183611f5e565b8101031261037b578796519189610d3f565b503d610eaa565b85513d8a823e3d90fd5b610f1394610ee36121ff565b93845284840152308984015260608301528a60a083015286600e5416908b89518096819582948352898301612242565b03925af18015610ecd57610f2b575b86818080610d17565b86809298503d8311610f52575b610f428183611f5e565b8101031261037b57869588610f22565b503d610f38565b995091508789813d8111610f84575b610f728183611f5e565b8101031261037b57899851918b610ce2565b503d610f68565b87513d8c823e3d90fd5b809a50898092503d8311610fc1575b610fae8183611f5e565b8101031261037b57975189989086610c4e565b503d610fa4565b8880929a503d8311610fef575b610fdf8183611f5e565b8101031261037b5788978a610c2e565b503d610fd5565b985090508688813d8111611021575b61100f8183611f5e565b8101031261037b57889751908a610bc4565b503d611005565b86513d8b823e3d90fd5b809950888092503d831161105c575b61104b8183611f5e565b8101031261037b578897518a610b66565b503d611041565b61106c90611f34565b611077578386610b2f565b505050fd5b82513d87823e3d90fd5b606490602085519162461bcd60e51b835282015260126024820152715661756c74206465706f736974206f6e6c7960701b6044820152fd5b50503461021e578160031936011261021e576020906005549051908152f35b8391503461021e578160031936011261021e57333b158015611669575b1561162d5791819261110a611f13565b600b546001600160a01b0392908316803b156104a55784809184845180948193631e8c5c8960e11b83525af1801561107c57908591611619575b50508260025416928151926370a0823160e01b90818552308186015260209560249587818881855afa9081156110285789916115e8575b506111ae575b8742601055337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a280f35b845190838252308383015287828881845afa9182156110285789926115b6575b506111d76121ff565b90815273039e2fb66102314ce7b64ce5ce3e5183bc94ad38918289830152308783015260608201528860a082015284600e54168887518092818d8161122963076c8e2d60e11b988983528b8301612242565b03925af18015610f8b57611588575b508551848152308482015288818981865afa908115610f8b578a91611555575b50866112887f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b392600a54906120a2565b611298610c8e60075480936120b5565b906112b76112a6838361207f565b303303611546578a601254166120d5565b82519182528b820152a1855191848352308484015288838981845afa928315610f8b578a93611514575b5082611307575b505050505050505050506112fa611f80565b8082808080808080611181565b889186855416938285036114c2575b5050505050828154168451928352308284015286838781845afa928315610ecd578893611490575b508261134c575b80806112e8565b87908785600c5416848851809c8193630dfe168160e01b83525af18015610e91578899839997989991611456575b508516036113f05760649293600c54168187519889968795638dbdbe6d60e01b87528601528401523060448401525af190811561034057506113c7575b50505b8082808080808080611345565b813d83116113e9575b6113da8183611f5e565b8101031261037b5781806113b7565b503d6113d0565b6064928194600c54169087519889968795638dbdbe6d60e01b87528601528401523060448401525af1908115610340575061142d575b50506113ba565b813d831161144f575b6114408183611f5e565b8101031261037b578180611426565b503d611436565b8781939892503d8311611489575b61146e8183611f5e565b8101031261021e575194848616860361021e5788958561137a565b503d611464565b975091508587813d81116114bb575b6114a98183611f5e565b8101031261037b57879651918961133e565b503d61149f565b6114ce94610ee36121ff565b03925af18015610ecd576114e6575b86818080611316565b86809298503d831161150d575b6114fd8183611f5e565b8101031261037b578695886114dd565b503d6114f3565b995091508789813d811161153f575b61152d8183611f5e565b8101031261037b57899851918b6112e1565b503d611523565b61155084336120d5565b610cae565b809a50898092503d8311611581575b61156e8183611f5e565b8101031261037b57975189989086611258565b503d611564565b8880929a503d83116115af575b61159f8183611f5e565b8101031261037b5788978a611238565b503d611595565b985090508688813d81116115e1575b6115cf8183611f5e565b8101031261037b57889751908a6111ce565b503d6115c5565b809950888092503d8311611612575b6116018183611f5e565b8101031261037b578897518a61117b565b503d6115f7565b61162290611f34565b611077578386611144565b606490602084519162461bcd60e51b8352820152601660248201527508585d5d1a0810dbdb9d1c9858dd0812185c9d995cdd60521b6044820152fd5b506011543360089190911c6001600160a01b0316146110fa565b919050346103b557826003193601126103b55761169e611ee7565b825460ff8160a01c161561191e5760ff60a01b191683558051338152602091907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa908390a1600354600b54825163095ea7b360e01b8082526001600160a01b039283168288019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6020820181905293949192918791839187169082908c90829060400103925af18015610ecd57611901575b50600e54845182815290841687820152600019602482015285816044818b73039e2fb66102314ce7b64ce5ce3e5183bc94ad385af18015610ecd576118e4575b506117cd8583856002541686600e54168b8b8a51968795869485938b8552840160209093929193604081019460018060a01b031681520152565b03925af18015610ecd5791611819939187936118c7575b5084885416908986600c54169188519687958694859384528d840160209093929193604081019460018060a01b031681520152565b03925af180156118bd576118a0575b5060115460081c1633148015611897575b1561184757836105fb611f13565b5162461bcd60e51b815291820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b606482015260849150fd5b50303314611839565b6118b690843d86116103395761032a8183611f5e565b5038611828565b83513d88823e3d90fd5b6118dd90843d86116103395761032a8183611f5e565b50386117e4565b6118fa90863d88116103395761032a8183611f5e565b5038611793565b61191790863d88116103395761032a8183611f5e565b5038611753565b5051638dfc202b60e01b8152fd5b50503461021e578160031936011261021e57602090600a549051908152f35b50503461021e578160031936011261021e576020906007549051908152f35b50503461021e578160031936011261021e57600d5490516001600160a01b039091168152602090f35b919050346103b557602090816003193601126103a757823592600260015414611bca57600260015560018060a01b03936119d58560115460081c16331461204a565b846003541683519285846024816370a0823160e01b9586825230868301525afa938415610ecd578894611b97575b508784848110611abc575b50505050907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d9482611a81938311611ab4575b50611a5a611a51600654846120a2565b600554906120b5565b60ff885460a01c161580611aa7575b611a96575b5060035460115460081c8216911661216f565b611a8961228e565b9051908152a16001805580f35b611aa0919261207f565b9038611a6e565b5060ff6011541615611a69565b915038611a41565b909192939450611ad188600b5416918661207f565b90803b156103b5576024839288519485938492632e1a7d4d60e01b8452888401525af18015610ecd57611b84575b508490602487600354169386519485938492835230908301525afa9081156118bd578691611b35575b509084611a818738611a0e565b9190508382813d8311611b7d575b611b4d8183611f5e565b8101031261037b5790517f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d611b28565b503d611b43565b96611b90869298611f34565b9690611aff565b9093508581813d8311611bc3575b611baf8183611f5e565b81010312611bbf57519238611a03565b8780fd5b503d611ba5565b9051633ee5aeb560e01b8152fd5b50503461021e578160031936011261021e5760035490516001600160a01b039091168152602090f35b9050346103b55760603660031901126103b55780359060243560443567ffffffffffffffff808211611cd95736602383011215611cd95781840135908111611cd957369101602401116104a557600c546001600160a01b03949085163303611c9f575084831315611c7a5750610603923391541661216f565b9150838213611c8a575b50505080f35b611c97923391541661216f565b388080611c84565b5162461bcd60e51b81526020818401526015602482015274556e617574686f72697a65642063616c6c6261636b60581b6044820152606490fd5b8680fd5b50503461021e578160031936011261021e576020905173039e2fb66102314ce7b64ce5ce3e5183bc94ad388152f35b50503461021e578160031936011261021e5760025490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e57600e5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5751908152602090f35b919050346103b55760203660031901126103b557813591611d98611ee7565b6105dc8311611dd35750816020917fe4a7fd2711237e77309a9a16ff636a748dbf956fd91f6e6da800d9302f441a799360145551908152a180f35b6020606492519162461bcd60e51b83528201526011602482015270496e76616c696420746f6c6572616e636560781b6044820152fd5b50503461021e578160031936011261021e576020906108fc612316565b50503461021e578160031936011261021e57600c5490516001600160a01b039091168152602090f35b9050346103b55760203660031901126103b557358015158091036103b5577f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af91602091611e9a611ee7565b60ff8019601154169116809117601155600014611ebd578360065551838152a180f35b600a60065551600a8152a180f35b84903461021e578160031936011261021e576020906009548152f35b6000546001600160a01b03163303611efb57565b60405163118cdaa760e01b8152336004820152602490fd5b60ff60005460a01c16611f2257565b60405163d93c066560e01b8152600490fd5b67ffffffffffffffff8111611f4857604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff821117611f4857604052565b6003546040516370a0823160e01b8152306004820152906001600160a01b03906020908390602490829085165afa91821561200b57600092612017575b5081611fc7575050565b600b541690813b1561037b5760009160248392604051948593849263b6b55f2560e01b845260048401525af1801561200b576120005750565b61200990611f34565b565b6040513d6000823e3d90fd5b90916020823d8211612042575b8161203160209383611f5e565b8101031261097a5750519038611fbd565b3d9150612024565b1561205157565b60405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b6044820152606490fd5b9190820391821161208c57565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561208c57565b81156120bf570490565b634e487b7160e01b600052601260045260246000fd5b60405163a9059cbb60e01b60208281019182526001600160a01b039093166024830152604482019390935260009061211a81606481015b03601f198101835282611f5e565b5173039e2fb66102314ce7b64ce5ce3e5183bc94ad389382855af11561200b576000513d6121665750803b155b61214e5750565b60249060405190635274afe760e01b82526004820152fd5b60011415612147565b60405163a9059cbb60e01b60208281019182526001600160a01b039094166024830152604482019490945290926000916121ac816064810161210c565b519082855af11561200b576000513d6121f657506001600160a01b0381163b155b6121d45750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b600114156121cd565b6040519060c0820182811067ffffffffffffffff821117611f48576040528160a06000918281528260208201528260408201528260608201528260808201520152565b91909160a060c082019381600180821b03918281511685528260208201511660208601528260408201511660408601526060810151606086015260808101516080860152015116910152565b6122966122aa565b61229e612316565b810180911161208c5790565b6003546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561200b576000916122e8575090565b906020823d821161230e575b8161230160209383611f5e565b8101031261097a57505190565b3d91506122f4565b600b546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561200b576000916122e8575090565b9081602091031261037b5751801515810361037b579056fea26469706673582212207a9580197013929e108e6cf4e7d85a1966513e6f3a31de0d5e367045c323a37e64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fd10ac67449c16f368a4bb49f544e0a865a77614000000000000000000000000c693c6fc1d2b44dfb5c5aa05ca2b02a91db97528000000000000000000000000a04bc7140c26fc9bb1f36b1a604c7a5a88fb0e70000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38000000000000000000000000fd10ac67449c16f368a4bb49f544e0a865a776140000000000000000000000000b2a31d95b1a4c8b1e772599ffcb8875fb4e2d33000000000000000000000000a047e2abf8263fca7c368f43e2f960a06fd9949f00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000c16da76872131bc6095f73b894b4757873dace1
-----Decoded View---------------
Arg [0] : _staking_token (address): 0xfD10ac67449C16F368a4BB49f544E0A865A77614
Arg [1] : _rewardPool (address): 0xC693c6fc1d2b44DfB5C5aa05Ca2b02A91DB97528
Arg [2] : _reward_token (address): 0xA04BC7140c26fc9BB1F36B1A604C7A5a88fb0E70
Arg [3] : _deposit_token (address): 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38
Arg [4] : _ichi (address): 0xfD10ac67449C16F368a4BB49f544E0A865A77614
Arg [5] : _vaultDeployer (address): 0x0b2a31D95B1a4c8b1e772599ffcB8875FB4e2d33
Arg [6] : _unirouter (address): 0xA047e2AbF8263FcA7c368F43e2f960A06FD9949f
Arg [7] : _harvestOnDeposit (bool): True
Arg [8] : _treasury (address): 0x0c16Da76872131bC6095f73b894B4757873dAce1
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 000000000000000000000000fd10ac67449c16f368a4bb49f544e0a865a77614
Arg [1] : 000000000000000000000000c693c6fc1d2b44dfb5c5aa05ca2b02a91db97528
Arg [2] : 000000000000000000000000a04bc7140c26fc9bb1f36b1a604c7a5a88fb0e70
Arg [3] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [4] : 000000000000000000000000fd10ac67449c16f368a4bb49f544e0a865a77614
Arg [5] : 0000000000000000000000000b2a31d95b1a4c8b1e772599ffcb8875fb4e2d33
Arg [6] : 000000000000000000000000a047e2abf8263fca7c368f43e2f960a06fd9949f
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 0000000000000000000000000c16da76872131bc6095f73b894b4757873dace1
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.