More 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) { address common = address(0x3bcE5CB273F0F148010BbEa2470e7b5df84C7812); ISwapX.ExactInputSingleParams memory eisp; eisp.tokenIn = native_token; eisp.tokenOut = common; eisp.recipient = address(this); eisp.amountIn = nativeBal; eisp.limitSqrtPrice = 0; ISwapX(unirouter).exactInputSingleSupportingFeeOnTransferTokens(eisp); uint256 allowance = IERC20(common).allowance(address(this), unirouter); if (allowance < IERC20(common).balanceOf(address(this))) { IERC20(common).approve(unirouter, type(uint256).max); } eisp.tokenIn = common; eisp.tokenOut = deposit_token; eisp.amountIn = IERC20(common).balanceOf(address(this)); 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
60a060409080825234620003c3576101208162002d87803803809162000026828562000525565b833981010312620003c3576200003c816200055f565b6200004a602083016200055f565b91620000588482016200055f565b9062000067606082016200055f565b9362000076608083016200055f565b6200008460a084016200055f565b6200009260c085016200055f565b91620000b0610100620000a860e0880162000574565b96016200055f565b9333156200050d576000543360018060a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a36001600160a81b0319163360ff60a01b19161760005560018055600019608052620186a0600555606460068190556103e8600755600855610384600955602d600a55600380546001600160a01b03199081166001600160a01b039a8b1617909155600b80548216928a1692909217909155600c8054821692891692909217909155600d8054821692881692909217909155600e805482169287169290921790915560128054821692909516919091179093556011805491151560ff1660ff199290921682179055620004d8575b60018060a01b03168082600254161760025560049260018060a01b03168284541617835560135468010000000000000000811015620004c3576001810180601355811015620004ae57601360009081527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09091909101805490931691909117909155600354600b54608051855163095ea7b360e01b8082526001600160a01b0393841682880190815260208181019490945290969591949293859316918391829060400103925af180156200041e576200046d575b50600e5483518381526001600160a01b0390911682820152600019602482015290602082604481600073039e2fb66102314ce7b64ce5ce3e5183bc94ad385af180156200041e5762000429575b600254600e5460805186518681526001600160a01b03928316858201908152602081810193909352909550909285921690829060009082906040015b03925af180156200041e57620003dc575b8054600c5460805186519586526001600160a01b0391821693860193845260208085019190915293508492839003604001918391600091165af18015620003d1576200038b575b5051612804908162000583823960805181818161059c0152611b6b0152f35b6020813d602011620003c8575b81620003a76020938362000525565b81010312620003c357620003bb9062000574565b50386200036c565b600080fd5b3d915062000398565b82513d6000823e3d90fd5b6020823d60201162000415575b81620003f86020938362000525565b81010312620003c3576200040e60209262000574565b5062000325565b3d9150620003e9565b84513d6000823e3d90fd5b6020823d60201162000464575b81620004456020938362000525565b81010312620003c3576200045d620003149262000574565b50620002d8565b3d915062000436565b6020813d602011620004a5575b81620004896020938362000525565b81010312620003c3576200049d9062000574565b50386200028b565b3d91506200047a565b603284634e487b7160e01b6000525260246000fd5b604184634e487b7160e01b6000525260246000fd5b60006006557f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af6020855160008152a1620001b7565b8951631e4fbdf760e01b815260006004820152602490fd5b601f909101601f19168101906001600160401b038211908210176200054957604052565b634e487b7160e01b600052604160045260246000fd5b51906001600160a01b0382168203620003c357565b51908115158203620003c35756fe608060408181526004918236101561001657600080fd5b600092833560e01c918263025e30b01461232d575081630e8fbb5a146122b1578163111e4b6014612288578163115880861461226b578163117da1ee146121db578163171d2189146121c0578163257ae0de146121975781632638c09e1461216e57816327ced5371461213f5781632c8958f6146120635781632dc7d74c1461203a5781632e1a7d4d14611df55781632f17e03014611dcc5781633410fe6e14611dad57816334fbc9a114611d8e5781633f4ba83a14611ae55781634641257d1461130c57816354518b1a146112ed578163573fef0a14610abe5781635c975abb14610a9957816361d027b314610a7057816366666aa914610a475781636817031b1461097d578163715018a614610920578163722713f7146109035781637ff8f1e9146108df5781638456cb59146107325781638912cb8b1461070e5781638cab0f99146106e65781638da5cb5b146106be578163951d6d201461069f5781639bff5ddb14610680578163d03153aa14610661578163d0e30db0146105bf578163d49d518114610584578163dfca09221461055b578163e7a7250a146104c8578163f1a392da146104a9578163f2fde38b14610410578163f301af42146103b9578163fb61778714610222575063fbfa77cf146101f357600080fd5b3461021e578160031936011261021e57601154905160089190911c6001600160a01b03168152602090f35b5080fd5b919050346103b557826003193601126103b55760018060a01b039061024f8260115460081c1633146124ac565b8382600b541661025d612790565b813b156103b55782916024839286519485938492632e1a7d4d60e01b84528b8401525af180156103ab57610393575b505081600354168151906370a0823160e01b82523085830152602094868684602481865afa938415610387579087949392918194610349575b50601154865163a9059cbb60e01b81526001600160a01b0360089290921c9098161691870191825260208201939093528592839182906040015b03925af19081156103405750610313578280f35b8161033292903d10610339575b61032a81836123c0565b8101906126f0565b5038808280f35b503d610320565b513d85823e3d90fd5b9480929794508591503d8311610380575b61036481836123c0565b8101031261037b576102ff948787945193966102c5565b600080fd5b503d61035a565b508451903d90823e3d90fd5b61039c90612396565b6103a757833861028c565b8380fd5b83513d84823e3d90fd5b8280fd5b9050346103b55760203660031901126103b557356013548110156103b55760136020935260018060a01b03907f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900154169051908152f35b919050346103b55760203660031901126103b5576001600160a01b038235818116939192908490036104a557610444612349565b831561048f575050600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8480fd5b50503461021e578160031936011261021e576020906010549051908152f35b83833461021e578160031936011261021e57600b5481516246613160e11b81523094810194909452602090849060249082906001600160a01b03165afa918215610550579161051c575b6020925051908152f35b90506020823d8211610548575b81610536602093836123c0565b8101031261037b576020915190610512565b3d9150610529565b9051903d90823e3d90fd5b50503461021e578160031936011261021e57600f5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e57602090517f00000000000000000000000000000000000000000000000000000000000000008152f35b919050346103b557826003193601126103b5576011543360089190911c6001600160a01b0316148015610658575b1561060657826105fb612375565b6106036123e2565b80f35b906020608492519162461bcd60e51b8352820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b503033146105ed565b50503461021e578160031936011261021e576020906014549051908152f35b50503461021e578160031936011261021e576020906006549051908152f35b50503461021e578160031936011261021e576020906008549051908152f35b50503461021e578160031936011261021e57905490516001600160a01b039091168152602090f35b9050346103b557826003193601126103b5575490516001600160a01b03909116815260209150f35b50503461021e578160031936011261021e5760209060ff6011541690519015158152f35b9050346103b557826003193601126103b55761074c612349565b610754612375565b825460ff60a01b1916600160a01b1783558151338152602092907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258908490a1600354600b54825163095ea7b360e01b8082526001600160a01b0392831682870152602482018890529194928690829060449082908b908a165af1801561089b576108c2575b5083600e54168351908282528382015286602482015285816044818a73039e2fb66102314ce7b64ce5ce3e5183bc94ad385af1801561089b576108a5575b5085858560025416604487600e541687519485938492888452898401528160248401525af1801561089b579160449187949361087e575b50878684541696600c5416968651978895869485528401528160248401525af19081156103405750610313578280f35b61089490853d87116103395761032a81836123c0565b503861084e565b84513d89823e3d90fd5b6108bb90863d88116103395761032a81836123c0565b5038610817565b6108d890863d88116103395761032a81836123c0565b50386107d9565b50503461021e578160031936011261021e576020906108fc612724565b9051908152f35b50503461021e578160031936011261021e576020906108fc612708565b833461097a578060031936011261097a57610939612349565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b9050346103b55760203660031901126103b55780356001600160a01b038116929091908383036104a5576109af612349565b823b15610a0457505060118054610100600160a81b03191660089290921b610100600160a81b03169190911790557fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f308280a280f35b906020606492519162461bcd60e51b8352820152601860248201527f5661756c74206d757374206265206120636f6e747261637400000000000000006044820152fd5b50503461021e578160031936011261021e57600b5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760125490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760ff6020925460a01c1690519015158152f35b8391503461021e578160031936011261021e576011549060ff8216610ae1578280f35b6001600160a01b039160081c821633036112b5578293610aff612375565b82600b5416803b156104a55784809184845180948193631e8c5c8960e11b83525af180156112ab57908591611292575b50508260025416928151926370a0823160e01b90818552308186015260209560249587818881855afa908115611257578991611261575b50610ba4575b505050505050505042601055337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a28082808280f35b845190838252308383015287828881845afa918215611257578992611225575b50610bcd612661565b90815273039e2fb66102314ce7b64ce5ce3e5183bc94ad38918289830152308783015260608201528860a082015284600e54168887518092818d81610c1f63076c8e2d60e11b988983528b83016126a4565b03925af180156111ba576111f7575b508551848152308482015288818981865afa9081156111ba578a916111c4575b5086610c7e7f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b392600a5490612504565b610ca0610c8e6007548093612517565b91610c9b60085484612504565b612517565b90610cb8610cae83836124e1565b8a60125416612537565b82519182528b820152a18551848152308482015288818981865afa9081156111ba578a91611189575b5080610d07575b50505050505050505050610cfa6123e2565b8082808080808080610b6c565b828685541603610ed0575b505050828154168451928352308284015286838781845afa928315610ec6578893610e94575b5082610d46575b8080610ce8565b87908785600c5416848851809c8193630dfe168160e01b83525af18015610e8a578899839997989991610e50575b50851603610dea5760649293600c54168187519889968795638dbdbe6d60e01b87528601528401523060448401525af19081156103405750610dc1575b50505b8082808080808080610d3f565b813d8311610de3575b610dd481836123c0565b8101031261037b578180610db1565b503d610dca565b6064928194600c54169087519889968795638dbdbe6d60e01b87528601528401523060448401525af19081156103405750610e27575b5050610db4565b813d8311610e49575b610e3a81836123c0565b8101031261037b578180610e20565b503d610e30565b8781939892503d8311610e83575b610e6881836123c0565b8101031261021e575194848616860361021e57889585610d74565b503d610e5e565b86513d84823e3d90fd5b975091508587813d8111610ebf575b610ead81836123c0565b8101031261037b578796519189610d38565b503d610ea3565b85513d8a823e3d90fd5b610ed8612661565b92835289898401610f288b868b89733bce5cb273f0f148010bbea2470e7b5df84c7812968787523083850152606084019889528060a08501528d600e541692518096819582948d845283016126a4565b03925af180156110cb5761115b575b5087600e54168951636eb1769f60e11b81523088820152818c8201528c81604481875afa90811561114f578e9161111d575b508a518981523089820152908d828e81885afa918215611111578f926110d5575b508c9594928f91928f95931061106b575b50508187528988541690528951938480928a8252308a8301525afa918215611061578b9261102b575b5091610fe793918a935286600e5416908b895180968195829483528983016126a4565b03925af18015610ec657610ffd575b8080610d12565b86809298503d8311611024575b61101481836123c0565b8101031261037b57869588610ff6565b503d61100a565b929a509290508882813d811161105a575b61104681836123c0565b8101031261037b5790518a99919289610fc4565b503d61103c565b88513d8d823e3d90fd5b6044908d979294969795939551948593849263095ea7b360e01b84528d84015260001990830152875af180156110cb57918b9493918d936110ae575b8e90610f9b565b6110c490843d86116103395761032a81836123c0565b508f6110a7565b8a513d8f823e3d90fd5b9e509290508c8e81969593963d831161110a575b6110f381836123c0565b8101031261037b579c518e9d93949193928c610f8a565b503d6110e9565b8f8d51903d90823e3d90fd5b809e508d8092503d8311611148575b61113681836123c0565b8101031261037b578a8e9d5190610f69565b503d61112c565b8e8c51903d90823e3d90fd5b8b80929d503d8311611182575b61117281836123c0565b8101031261037b578b9a8d610f37565b503d611168565b809a50898092503d83116111b3575b6111a281836123c0565b8101031261037b578998518b610ce1565b503d611198565b87513d8c823e3d90fd5b809a50898092503d83116111f0575b6111dd81836123c0565b8101031261037b57975189989086610c4e565b503d6111d3565b8880929a503d831161121e575b61120e81836123c0565b8101031261037b5788978a610c2e565b503d611204565b985090508688813d8111611250575b61123e81836123c0565b8101031261037b57889751908a610bc4565b503d611234565b86513d8b823e3d90fd5b809950888092503d831161128b575b61127a81836123c0565b8101031261037b578897518a610b66565b503d611270565b61129b90612396565b6112a6578386610b2f565b505050fd5b82513d87823e3d90fd5b606490602085519162461bcd60e51b835282015260126024820152715661756c74206465706f736974206f6e6c7960701b6044820152fd5b50503461021e578160031936011261021e576020906005549051908152f35b8391503461021e578160031936011261021e57333b158015611acb575b15611a8f57918192611339612375565b600b546001600160a01b0392908316803b156104a55784809184845180948193631e8c5c8960e11b83525af180156112ab57908591611a7b575b50508260025416928151926370a0823160e01b90818552308186015260209560249587818881855afa908115611257578991611a4a575b506113dd575b8742601055337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a280f35b845190838252308383015287828881845afa918215611257578992611a18575b50611406612661565b90815273039e2fb66102314ce7b64ce5ce3e5183bc94ad38918289830152308783015260608201528860a082015284600e54168887518092818d8161145863076c8e2d60e11b988983528b83016126a4565b03925af180156111ba576119ea575b508551848152308482015288818981865afa9081156111ba578a916119b7575b50866114b77f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b392600a5490612504565b6114c7610c8e6007548093612517565b906114e66114d583836124e1565b3033036119a8578a60125416612537565b82519182528b820152a18551848152308482015288818981865afa9081156111ba578a91611977575b5080611535575b505050505050505050506115286123e2565b80828080808080806113b0565b8286855416036116ea575b505050828154168451928352308284015286838781845afa928315610ec65788936116b8575b5082611574575b8080611516565b87908785600c5416848851809c8193630dfe168160e01b83525af18015610e8a57889983999798999161167e575b508516036116185760649293600c54168187519889968795638dbdbe6d60e01b87528601528401523060448401525af190811561034057506115ef575b50505b808280808080808061156d565b813d8311611611575b61160281836123c0565b8101031261037b5781806115df565b503d6115f8565b6064928194600c54169087519889968795638dbdbe6d60e01b87528601528401523060448401525af19081156103405750611655575b50506115e2565b813d8311611677575b61166881836123c0565b8101031261037b57818061164e565b503d61165e565b8781939892503d83116116b1575b61169681836123c0565b8101031261021e575194848616860361021e578895856115a2565b503d61168c565b975091508587813d81116116e3575b6116d181836123c0565b8101031261037b578796519189611566565b503d6116c7565b6116f2612661565b928352898984016117428b868b89733bce5cb273f0f148010bbea2470e7b5df84c7812968787523083850152606084019889528060a08501528d600e541692518096819582948d845283016126a4565b03925af180156110cb57611949575b5087600e54168951636eb1769f60e11b81523088820152818c8201528c81604481875afa90811561114f578e91611917575b508a518981523089820152908d828e81885afa918215611111578f926118db575b508c9594928f91928f95931061187b575b50508187528988541690528951938480928a8252308a8301525afa918215611061578b92611845575b509161180193918a935286600e5416908b895180968195829483528983016126a4565b03925af18015610ec657611817575b8080611540565b86809298503d831161183e575b61182e81836123c0565b8101031261037b57869588611810565b503d611824565b929a509290508882813d8111611874575b61186081836123c0565b8101031261037b5790518a999192896117de565b503d611856565b6044908d979294969795939551948593849263095ea7b360e01b84528d84015260001990830152875af180156110cb57918b9493918d936118be575b8e906117b5565b6118d490843d86116103395761032a81836123c0565b508f6118b7565b9e509290508c8e81969593963d8311611910575b6118f981836123c0565b8101031261037b579c518e9d93949193928c6117a4565b503d6118ef565b809e508d8092503d8311611942575b61193081836123c0565b8101031261037b578a8e9d5190611783565b503d611926565b8b80929d503d8311611970575b61196081836123c0565b8101031261037b578b9a8d611751565b503d611956565b809a50898092503d83116119a1575b61199081836123c0565b8101031261037b578998518b61150f565b503d611986565b6119b28433612537565b610cae565b809a50898092503d83116119e3575b6119d081836123c0565b8101031261037b57975189989086611487565b503d6119c6565b8880929a503d8311611a11575b611a0181836123c0565b8101031261037b5788978a611467565b503d6119f7565b985090508688813d8111611a43575b611a3181836123c0565b8101031261037b57889751908a6113fd565b503d611a27565b809950888092503d8311611a74575b611a6381836123c0565b8101031261037b578897518a6113aa565b503d611a59565b611a8490612396565b6112a6578386611373565b606490602084519162461bcd60e51b8352820152601660248201527508585d5d1a0810dbdb9d1c9858dd0812185c9d995cdd60521b6044820152fd5b506011543360089190911c6001600160a01b031614611329565b919050346103b557826003193601126103b557611b00612349565b825460ff8160a01c1615611d805760ff60a01b191683558051338152602091907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa908390a1600354600b54825163095ea7b360e01b8082526001600160a01b039283168288019081527f00000000000000000000000000000000000000000000000000000000000000006020820181905293949192918791839187169082908c90829060400103925af18015610ec657611d63575b50600e54845182815290841687820152600019602482015285816044818b73039e2fb66102314ce7b64ce5ce3e5183bc94ad385af18015610ec657611d46575b50611c2f8583856002541686600e54168b8b8a51968795869485938b8552840160209093929193604081019460018060a01b031681520152565b03925af18015610ec65791611c7b93918793611d29575b5084885416908986600c54169188519687958694859384528d840160209093929193604081019460018060a01b031681520152565b03925af18015611d1f57611d02575b5060115460081c1633148015611cf9575b15611ca957836105fb612375565b5162461bcd60e51b815291820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b606482015260849150fd5b50303314611c9b565b611d1890843d86116103395761032a81836123c0565b5038611c8a565b83513d88823e3d90fd5b611d3f90843d86116103395761032a81836123c0565b5038611c46565b611d5c90863d88116103395761032a81836123c0565b5038611bf5565b611d7990863d88116103395761032a81836123c0565b5038611bb5565b5051638dfc202b60e01b8152fd5b50503461021e578160031936011261021e57602090600a549051908152f35b50503461021e578160031936011261021e576020906007549051908152f35b50503461021e578160031936011261021e57600d5490516001600160a01b039091168152602090f35b919050346103b557602090816003193601126103a75782359260026001541461202c57600260015560018060a01b0393611e378560115460081c1633146124ac565b846003541683519285846024816370a0823160e01b9586825230868301525afa938415610ec6578894611ff9575b508784848110611f1e575b50505050907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d9482611ee3938311611f16575b50611ebc611eb360065484612504565b60055490612517565b60ff885460a01c161580611f09575b611ef8575b5060035460115460081c821691166125d1565b611eeb612708565b9051908152a16001805580f35b611f0291926124e1565b9038611ed0565b5060ff6011541615611ecb565b915038611ea3565b909192939450611f3388600b541691866124e1565b90803b156103b5576024839288519485938492632e1a7d4d60e01b8452888401525af18015610ec657611fe6575b508490602487600354169386519485938492835230908301525afa908115611d1f578691611f97575b509084611ee38738611e70565b9190508382813d8311611fdf575b611faf81836123c0565b8101031261037b5790517f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d611f8a565b503d611fa5565b96611ff2869298612396565b9690611f61565b9093508581813d8311612025575b61201181836123c0565b8101031261202157519238611e65565b8780fd5b503d612007565b9051633ee5aeb560e01b8152fd5b50503461021e578160031936011261021e5760035490516001600160a01b039091168152602090f35b9050346103b55760603660031901126103b55780359060243560443567ffffffffffffffff80821161213b573660238301121561213b578184013590811161213b57369101602401116104a557600c546001600160a01b039490851633036121015750848313156120dc575061060392339154166125d1565b91508382136120ec575b50505080f35b6120f992339154166125d1565b3880806120e6565b5162461bcd60e51b81526020818401526015602482015274556e617574686f72697a65642063616c6c6261636b60581b6044820152606490fd5b8680fd5b50503461021e578160031936011261021e576020905173039e2fb66102314ce7b64ce5ce3e5183bc94ad388152f35b50503461021e578160031936011261021e5760025490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e57600e5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5751908152602090f35b919050346103b55760203660031901126103b5578135916121fa612349565b6105dc83116122355750816020917fe4a7fd2711237e77309a9a16ff636a748dbf956fd91f6e6da800d9302f441a799360145551908152a180f35b6020606492519162461bcd60e51b83528201526011602482015270496e76616c696420746f6c6572616e636560781b6044820152fd5b50503461021e578160031936011261021e576020906108fc612790565b50503461021e578160031936011261021e57600c5490516001600160a01b039091168152602090f35b9050346103b55760203660031901126103b557358015158091036103b5577f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af916020916122fc612349565b60ff801960115416911680911760115560001461231f578360065551838152a180f35b600a60065551600a8152a180f35b84903461021e578160031936011261021e576020906009548152f35b6000546001600160a01b0316330361235d57565b60405163118cdaa760e01b8152336004820152602490fd5b60ff60005460a01c1661238457565b60405163d93c066560e01b8152600490fd5b67ffffffffffffffff81116123aa57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176123aa57604052565b6003546040516370a0823160e01b8152306004820152906001600160a01b03906020908390602490829085165afa91821561246d57600092612479575b5081612429575050565b600b541690813b1561037b5760009160248392604051948593849263b6b55f2560e01b845260048401525af1801561246d576124625750565b61246b90612396565b565b6040513d6000823e3d90fd5b90916020823d82116124a4575b81612493602093836123c0565b8101031261097a575051903861241f565b3d9150612486565b156124b357565b60405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b6044820152606490fd5b919082039182116124ee57565b634e487b7160e01b600052601160045260246000fd5b818102929181159184041417156124ee57565b8115612521570490565b634e487b7160e01b600052601260045260246000fd5b60405163a9059cbb60e01b60208281019182526001600160a01b039093166024830152604482019390935260009061257c81606481015b03601f1981018352826123c0565b5173039e2fb66102314ce7b64ce5ce3e5183bc94ad389382855af11561246d576000513d6125c85750803b155b6125b05750565b60249060405190635274afe760e01b82526004820152fd5b600114156125a9565b60405163a9059cbb60e01b60208281019182526001600160a01b0390941660248301526044820194909452909260009161260e816064810161256e565b519082855af11561246d576000513d61265857506001600160a01b0381163b155b6126365750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b6001141561262f565b6040519060c0820182811067ffffffffffffffff8211176123aa576040528160a06000918281528260208201528260408201528260608201528260808201520152565b91909160a060c082019381600180821b03918281511685528260208201511660208601528260408201511660408601526060810151606086015260808101516080860152015116910152565b9081602091031261037b5751801515810361037b5790565b612710612724565b612718612790565b81018091116124ee5790565b6003546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561246d57600091612762575090565b906020823d8211612788575b8161277b602093836123c0565b8101031261097a57505190565b3d915061276e565b600b546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561246d5760009161276257509056fea2646970667358221220026dfb01227b707b7bfb10fb2416ead096f3181e54dcbb6f85d3e596a6bb9ded64736f6c6343000814003300000000000000000000000020737388dbc9f7e56f4cc69d41da62c96b355db0000000000000000000000000bbb10f33dcdd50bd4317459a4b051fc319b29585000000000000000000000000a04bc7140c26fc9bb1f36b1a604c7a5a88fb0e70000000000000000000000000284d81e48fbc782aa9186a03a226690aea5cbe0e00000000000000000000000020737388dbc9f7e56f4cc69d41da62c96b355db00000000000000000000000000b2a31d95b1a4c8b1e772599ffcb8875fb4e2d33000000000000000000000000a047e2abf8263fca7c368f43e2f960a06fd9949f00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000c16da76872131bc6095f73b894b4757873dace1
Deployed Bytecode
0x608060408181526004918236101561001657600080fd5b600092833560e01c918263025e30b01461232d575081630e8fbb5a146122b1578163111e4b6014612288578163115880861461226b578163117da1ee146121db578163171d2189146121c0578163257ae0de146121975781632638c09e1461216e57816327ced5371461213f5781632c8958f6146120635781632dc7d74c1461203a5781632e1a7d4d14611df55781632f17e03014611dcc5781633410fe6e14611dad57816334fbc9a114611d8e5781633f4ba83a14611ae55781634641257d1461130c57816354518b1a146112ed578163573fef0a14610abe5781635c975abb14610a9957816361d027b314610a7057816366666aa914610a475781636817031b1461097d578163715018a614610920578163722713f7146109035781637ff8f1e9146108df5781638456cb59146107325781638912cb8b1461070e5781638cab0f99146106e65781638da5cb5b146106be578163951d6d201461069f5781639bff5ddb14610680578163d03153aa14610661578163d0e30db0146105bf578163d49d518114610584578163dfca09221461055b578163e7a7250a146104c8578163f1a392da146104a9578163f2fde38b14610410578163f301af42146103b9578163fb61778714610222575063fbfa77cf146101f357600080fd5b3461021e578160031936011261021e57601154905160089190911c6001600160a01b03168152602090f35b5080fd5b919050346103b557826003193601126103b55760018060a01b039061024f8260115460081c1633146124ac565b8382600b541661025d612790565b813b156103b55782916024839286519485938492632e1a7d4d60e01b84528b8401525af180156103ab57610393575b505081600354168151906370a0823160e01b82523085830152602094868684602481865afa938415610387579087949392918194610349575b50601154865163a9059cbb60e01b81526001600160a01b0360089290921c9098161691870191825260208201939093528592839182906040015b03925af19081156103405750610313578280f35b8161033292903d10610339575b61032a81836123c0565b8101906126f0565b5038808280f35b503d610320565b513d85823e3d90fd5b9480929794508591503d8311610380575b61036481836123c0565b8101031261037b576102ff948787945193966102c5565b600080fd5b503d61035a565b508451903d90823e3d90fd5b61039c90612396565b6103a757833861028c565b8380fd5b83513d84823e3d90fd5b8280fd5b9050346103b55760203660031901126103b557356013548110156103b55760136020935260018060a01b03907f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900154169051908152f35b919050346103b55760203660031901126103b5576001600160a01b038235818116939192908490036104a557610444612349565b831561048f575050600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8480fd5b50503461021e578160031936011261021e576020906010549051908152f35b83833461021e578160031936011261021e57600b5481516246613160e11b81523094810194909452602090849060249082906001600160a01b03165afa918215610550579161051c575b6020925051908152f35b90506020823d8211610548575b81610536602093836123c0565b8101031261037b576020915190610512565b3d9150610529565b9051903d90823e3d90fd5b50503461021e578160031936011261021e57600f5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e57602090517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8152f35b919050346103b557826003193601126103b5576011543360089190911c6001600160a01b0316148015610658575b1561060657826105fb612375565b6106036123e2565b80f35b906020608492519162461bcd60e51b8352820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b503033146105ed565b50503461021e578160031936011261021e576020906014549051908152f35b50503461021e578160031936011261021e576020906006549051908152f35b50503461021e578160031936011261021e576020906008549051908152f35b50503461021e578160031936011261021e57905490516001600160a01b039091168152602090f35b9050346103b557826003193601126103b5575490516001600160a01b03909116815260209150f35b50503461021e578160031936011261021e5760209060ff6011541690519015158152f35b9050346103b557826003193601126103b55761074c612349565b610754612375565b825460ff60a01b1916600160a01b1783558151338152602092907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258908490a1600354600b54825163095ea7b360e01b8082526001600160a01b0392831682870152602482018890529194928690829060449082908b908a165af1801561089b576108c2575b5083600e54168351908282528382015286602482015285816044818a73039e2fb66102314ce7b64ce5ce3e5183bc94ad385af1801561089b576108a5575b5085858560025416604487600e541687519485938492888452898401528160248401525af1801561089b579160449187949361087e575b50878684541696600c5416968651978895869485528401528160248401525af19081156103405750610313578280f35b61089490853d87116103395761032a81836123c0565b503861084e565b84513d89823e3d90fd5b6108bb90863d88116103395761032a81836123c0565b5038610817565b6108d890863d88116103395761032a81836123c0565b50386107d9565b50503461021e578160031936011261021e576020906108fc612724565b9051908152f35b50503461021e578160031936011261021e576020906108fc612708565b833461097a578060031936011261097a57610939612349565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b9050346103b55760203660031901126103b55780356001600160a01b038116929091908383036104a5576109af612349565b823b15610a0457505060118054610100600160a81b03191660089290921b610100600160a81b03169190911790557fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f308280a280f35b906020606492519162461bcd60e51b8352820152601860248201527f5661756c74206d757374206265206120636f6e747261637400000000000000006044820152fd5b50503461021e578160031936011261021e57600b5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760125490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5760ff6020925460a01c1690519015158152f35b8391503461021e578160031936011261021e576011549060ff8216610ae1578280f35b6001600160a01b039160081c821633036112b5578293610aff612375565b82600b5416803b156104a55784809184845180948193631e8c5c8960e11b83525af180156112ab57908591611292575b50508260025416928151926370a0823160e01b90818552308186015260209560249587818881855afa908115611257578991611261575b50610ba4575b505050505050505042601055337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a28082808280f35b845190838252308383015287828881845afa918215611257578992611225575b50610bcd612661565b90815273039e2fb66102314ce7b64ce5ce3e5183bc94ad38918289830152308783015260608201528860a082015284600e54168887518092818d81610c1f63076c8e2d60e11b988983528b83016126a4565b03925af180156111ba576111f7575b508551848152308482015288818981865afa9081156111ba578a916111c4575b5086610c7e7f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b392600a5490612504565b610ca0610c8e6007548093612517565b91610c9b60085484612504565b612517565b90610cb8610cae83836124e1565b8a60125416612537565b82519182528b820152a18551848152308482015288818981865afa9081156111ba578a91611189575b5080610d07575b50505050505050505050610cfa6123e2565b8082808080808080610b6c565b828685541603610ed0575b505050828154168451928352308284015286838781845afa928315610ec6578893610e94575b5082610d46575b8080610ce8565b87908785600c5416848851809c8193630dfe168160e01b83525af18015610e8a578899839997989991610e50575b50851603610dea5760649293600c54168187519889968795638dbdbe6d60e01b87528601528401523060448401525af19081156103405750610dc1575b50505b8082808080808080610d3f565b813d8311610de3575b610dd481836123c0565b8101031261037b578180610db1565b503d610dca565b6064928194600c54169087519889968795638dbdbe6d60e01b87528601528401523060448401525af19081156103405750610e27575b5050610db4565b813d8311610e49575b610e3a81836123c0565b8101031261037b578180610e20565b503d610e30565b8781939892503d8311610e83575b610e6881836123c0565b8101031261021e575194848616860361021e57889585610d74565b503d610e5e565b86513d84823e3d90fd5b975091508587813d8111610ebf575b610ead81836123c0565b8101031261037b578796519189610d38565b503d610ea3565b85513d8a823e3d90fd5b610ed8612661565b92835289898401610f288b868b89733bce5cb273f0f148010bbea2470e7b5df84c7812968787523083850152606084019889528060a08501528d600e541692518096819582948d845283016126a4565b03925af180156110cb5761115b575b5087600e54168951636eb1769f60e11b81523088820152818c8201528c81604481875afa90811561114f578e9161111d575b508a518981523089820152908d828e81885afa918215611111578f926110d5575b508c9594928f91928f95931061106b575b50508187528988541690528951938480928a8252308a8301525afa918215611061578b9261102b575b5091610fe793918a935286600e5416908b895180968195829483528983016126a4565b03925af18015610ec657610ffd575b8080610d12565b86809298503d8311611024575b61101481836123c0565b8101031261037b57869588610ff6565b503d61100a565b929a509290508882813d811161105a575b61104681836123c0565b8101031261037b5790518a99919289610fc4565b503d61103c565b88513d8d823e3d90fd5b6044908d979294969795939551948593849263095ea7b360e01b84528d84015260001990830152875af180156110cb57918b9493918d936110ae575b8e90610f9b565b6110c490843d86116103395761032a81836123c0565b508f6110a7565b8a513d8f823e3d90fd5b9e509290508c8e81969593963d831161110a575b6110f381836123c0565b8101031261037b579c518e9d93949193928c610f8a565b503d6110e9565b8f8d51903d90823e3d90fd5b809e508d8092503d8311611148575b61113681836123c0565b8101031261037b578a8e9d5190610f69565b503d61112c565b8e8c51903d90823e3d90fd5b8b80929d503d8311611182575b61117281836123c0565b8101031261037b578b9a8d610f37565b503d611168565b809a50898092503d83116111b3575b6111a281836123c0565b8101031261037b578998518b610ce1565b503d611198565b87513d8c823e3d90fd5b809a50898092503d83116111f0575b6111dd81836123c0565b8101031261037b57975189989086610c4e565b503d6111d3565b8880929a503d831161121e575b61120e81836123c0565b8101031261037b5788978a610c2e565b503d611204565b985090508688813d8111611250575b61123e81836123c0565b8101031261037b57889751908a610bc4565b503d611234565b86513d8b823e3d90fd5b809950888092503d831161128b575b61127a81836123c0565b8101031261037b578897518a610b66565b503d611270565b61129b90612396565b6112a6578386610b2f565b505050fd5b82513d87823e3d90fd5b606490602085519162461bcd60e51b835282015260126024820152715661756c74206465706f736974206f6e6c7960701b6044820152fd5b50503461021e578160031936011261021e576020906005549051908152f35b8391503461021e578160031936011261021e57333b158015611acb575b15611a8f57918192611339612375565b600b546001600160a01b0392908316803b156104a55784809184845180948193631e8c5c8960e11b83525af180156112ab57908591611a7b575b50508260025416928151926370a0823160e01b90818552308186015260209560249587818881855afa908115611257578991611a4a575b506113dd575b8742601055337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a280f35b845190838252308383015287828881845afa918215611257578992611a18575b50611406612661565b90815273039e2fb66102314ce7b64ce5ce3e5183bc94ad38918289830152308783015260608201528860a082015284600e54168887518092818d8161145863076c8e2d60e11b988983528b83016126a4565b03925af180156111ba576119ea575b508551848152308482015288818981865afa9081156111ba578a916119b7575b50866114b77f5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b392600a5490612504565b6114c7610c8e6007548093612517565b906114e66114d583836124e1565b3033036119a8578a60125416612537565b82519182528b820152a18551848152308482015288818981865afa9081156111ba578a91611977575b5080611535575b505050505050505050506115286123e2565b80828080808080806113b0565b8286855416036116ea575b505050828154168451928352308284015286838781845afa928315610ec65788936116b8575b5082611574575b8080611516565b87908785600c5416848851809c8193630dfe168160e01b83525af18015610e8a57889983999798999161167e575b508516036116185760649293600c54168187519889968795638dbdbe6d60e01b87528601528401523060448401525af190811561034057506115ef575b50505b808280808080808061156d565b813d8311611611575b61160281836123c0565b8101031261037b5781806115df565b503d6115f8565b6064928194600c54169087519889968795638dbdbe6d60e01b87528601528401523060448401525af19081156103405750611655575b50506115e2565b813d8311611677575b61166881836123c0565b8101031261037b57818061164e565b503d61165e565b8781939892503d83116116b1575b61169681836123c0565b8101031261021e575194848616860361021e578895856115a2565b503d61168c565b975091508587813d81116116e3575b6116d181836123c0565b8101031261037b578796519189611566565b503d6116c7565b6116f2612661565b928352898984016117428b868b89733bce5cb273f0f148010bbea2470e7b5df84c7812968787523083850152606084019889528060a08501528d600e541692518096819582948d845283016126a4565b03925af180156110cb57611949575b5087600e54168951636eb1769f60e11b81523088820152818c8201528c81604481875afa90811561114f578e91611917575b508a518981523089820152908d828e81885afa918215611111578f926118db575b508c9594928f91928f95931061187b575b50508187528988541690528951938480928a8252308a8301525afa918215611061578b92611845575b509161180193918a935286600e5416908b895180968195829483528983016126a4565b03925af18015610ec657611817575b8080611540565b86809298503d831161183e575b61182e81836123c0565b8101031261037b57869588611810565b503d611824565b929a509290508882813d8111611874575b61186081836123c0565b8101031261037b5790518a999192896117de565b503d611856565b6044908d979294969795939551948593849263095ea7b360e01b84528d84015260001990830152875af180156110cb57918b9493918d936118be575b8e906117b5565b6118d490843d86116103395761032a81836123c0565b508f6118b7565b9e509290508c8e81969593963d8311611910575b6118f981836123c0565b8101031261037b579c518e9d93949193928c6117a4565b503d6118ef565b809e508d8092503d8311611942575b61193081836123c0565b8101031261037b578a8e9d5190611783565b503d611926565b8b80929d503d8311611970575b61196081836123c0565b8101031261037b578b9a8d611751565b503d611956565b809a50898092503d83116119a1575b61199081836123c0565b8101031261037b578998518b61150f565b503d611986565b6119b28433612537565b610cae565b809a50898092503d83116119e3575b6119d081836123c0565b8101031261037b57975189989086611487565b503d6119c6565b8880929a503d8311611a11575b611a0181836123c0565b8101031261037b5788978a611467565b503d6119f7565b985090508688813d8111611a43575b611a3181836123c0565b8101031261037b57889751908a6113fd565b503d611a27565b809950888092503d8311611a74575b611a6381836123c0565b8101031261037b578897518a6113aa565b503d611a59565b611a8490612396565b6112a6578386611373565b606490602084519162461bcd60e51b8352820152601660248201527508585d5d1a0810dbdb9d1c9858dd0812185c9d995cdd60521b6044820152fd5b506011543360089190911c6001600160a01b031614611329565b919050346103b557826003193601126103b557611b00612349565b825460ff8160a01c1615611d805760ff60a01b191683558051338152602091907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa908390a1600354600b54825163095ea7b360e01b8082526001600160a01b039283168288019081527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6020820181905293949192918791839187169082908c90829060400103925af18015610ec657611d63575b50600e54845182815290841687820152600019602482015285816044818b73039e2fb66102314ce7b64ce5ce3e5183bc94ad385af18015610ec657611d46575b50611c2f8583856002541686600e54168b8b8a51968795869485938b8552840160209093929193604081019460018060a01b031681520152565b03925af18015610ec65791611c7b93918793611d29575b5084885416908986600c54169188519687958694859384528d840160209093929193604081019460018060a01b031681520152565b03925af18015611d1f57611d02575b5060115460081c1633148015611cf9575b15611ca957836105fb612375565b5162461bcd60e51b815291820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b606482015260849150fd5b50303314611c9b565b611d1890843d86116103395761032a81836123c0565b5038611c8a565b83513d88823e3d90fd5b611d3f90843d86116103395761032a81836123c0565b5038611c46565b611d5c90863d88116103395761032a81836123c0565b5038611bf5565b611d7990863d88116103395761032a81836123c0565b5038611bb5565b5051638dfc202b60e01b8152fd5b50503461021e578160031936011261021e57602090600a549051908152f35b50503461021e578160031936011261021e576020906007549051908152f35b50503461021e578160031936011261021e57600d5490516001600160a01b039091168152602090f35b919050346103b557602090816003193601126103a75782359260026001541461202c57600260015560018060a01b0393611e378560115460081c1633146124ac565b846003541683519285846024816370a0823160e01b9586825230868301525afa938415610ec6578894611ff9575b508784848110611f1e575b50505050907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d9482611ee3938311611f16575b50611ebc611eb360065484612504565b60055490612517565b60ff885460a01c161580611f09575b611ef8575b5060035460115460081c821691166125d1565b611eeb612708565b9051908152a16001805580f35b611f0291926124e1565b9038611ed0565b5060ff6011541615611ecb565b915038611ea3565b909192939450611f3388600b541691866124e1565b90803b156103b5576024839288519485938492632e1a7d4d60e01b8452888401525af18015610ec657611fe6575b508490602487600354169386519485938492835230908301525afa908115611d1f578691611f97575b509084611ee38738611e70565b9190508382813d8311611fdf575b611faf81836123c0565b8101031261037b5790517f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d611f8a565b503d611fa5565b96611ff2869298612396565b9690611f61565b9093508581813d8311612025575b61201181836123c0565b8101031261202157519238611e65565b8780fd5b503d612007565b9051633ee5aeb560e01b8152fd5b50503461021e578160031936011261021e5760035490516001600160a01b039091168152602090f35b9050346103b55760603660031901126103b55780359060243560443567ffffffffffffffff80821161213b573660238301121561213b578184013590811161213b57369101602401116104a557600c546001600160a01b039490851633036121015750848313156120dc575061060392339154166125d1565b91508382136120ec575b50505080f35b6120f992339154166125d1565b3880806120e6565b5162461bcd60e51b81526020818401526015602482015274556e617574686f72697a65642063616c6c6261636b60581b6044820152606490fd5b8680fd5b50503461021e578160031936011261021e576020905173039e2fb66102314ce7b64ce5ce3e5183bc94ad388152f35b50503461021e578160031936011261021e5760025490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e57600e5490516001600160a01b039091168152602090f35b50503461021e578160031936011261021e5751908152602090f35b919050346103b55760203660031901126103b5578135916121fa612349565b6105dc83116122355750816020917fe4a7fd2711237e77309a9a16ff636a748dbf956fd91f6e6da800d9302f441a799360145551908152a180f35b6020606492519162461bcd60e51b83528201526011602482015270496e76616c696420746f6c6572616e636560781b6044820152fd5b50503461021e578160031936011261021e576020906108fc612790565b50503461021e578160031936011261021e57600c5490516001600160a01b039091168152602090f35b9050346103b55760203660031901126103b557358015158091036103b5577f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af916020916122fc612349565b60ff801960115416911680911760115560001461231f578360065551838152a180f35b600a60065551600a8152a180f35b84903461021e578160031936011261021e576020906009548152f35b6000546001600160a01b0316330361235d57565b60405163118cdaa760e01b8152336004820152602490fd5b60ff60005460a01c1661238457565b60405163d93c066560e01b8152600490fd5b67ffffffffffffffff81116123aa57604052565b634e487b7160e01b600052604160045260246000fd5b90601f8019910116810190811067ffffffffffffffff8211176123aa57604052565b6003546040516370a0823160e01b8152306004820152906001600160a01b03906020908390602490829085165afa91821561246d57600092612479575b5081612429575050565b600b541690813b1561037b5760009160248392604051948593849263b6b55f2560e01b845260048401525af1801561246d576124625750565b61246b90612396565b565b6040513d6000823e3d90fd5b90916020823d82116124a4575b81612493602093836123c0565b8101031261097a575051903861241f565b3d9150612486565b156124b357565b60405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b6044820152606490fd5b919082039182116124ee57565b634e487b7160e01b600052601160045260246000fd5b818102929181159184041417156124ee57565b8115612521570490565b634e487b7160e01b600052601260045260246000fd5b60405163a9059cbb60e01b60208281019182526001600160a01b039093166024830152604482019390935260009061257c81606481015b03601f1981018352826123c0565b5173039e2fb66102314ce7b64ce5ce3e5183bc94ad389382855af11561246d576000513d6125c85750803b155b6125b05750565b60249060405190635274afe760e01b82526004820152fd5b600114156125a9565b60405163a9059cbb60e01b60208281019182526001600160a01b0390941660248301526044820194909452909260009161260e816064810161256e565b519082855af11561246d576000513d61265857506001600160a01b0381163b155b6126365750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b6001141561262f565b6040519060c0820182811067ffffffffffffffff8211176123aa576040528160a06000918281528260208201528260408201528260608201528260808201520152565b91909160a060c082019381600180821b03918281511685528260208201511660208601528260408201511660408601526060810151606086015260808101516080860152015116910152565b9081602091031261037b5751801515810361037b5790565b612710612724565b612718612790565b81018091116124ee5790565b6003546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561246d57600091612762575090565b906020823d8211612788575b8161277b602093836123c0565b8101031261097a57505190565b3d915061276e565b600b546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa90811561246d5760009161276257509056fea2646970667358221220026dfb01227b707b7bfb10fb2416ead096f3181e54dcbb6f85d3e596a6bb9ded64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000020737388dbc9f7e56f4cc69d41da62c96b355db0000000000000000000000000bbb10f33dcdd50bd4317459a4b051fc319b29585000000000000000000000000a04bc7140c26fc9bb1f36b1a604c7a5a88fb0e70000000000000000000000000284d81e48fbc782aa9186a03a226690aea5cbe0e00000000000000000000000020737388dbc9f7e56f4cc69d41da62c96b355db00000000000000000000000000b2a31d95b1a4c8b1e772599ffcb8875fb4e2d33000000000000000000000000a047e2abf8263fca7c368f43e2f960a06fd9949f00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000c16da76872131bc6095f73b894b4757873dace1
-----Decoded View---------------
Arg [0] : _staking_token (address): 0x20737388dbc9F7E56f4Cc69D41DA62C96B355DB0
Arg [1] : _rewardPool (address): 0xBBb10f33DCDd50BD4317459A4B051FC319B29585
Arg [2] : _reward_token (address): 0xA04BC7140c26fc9BB1F36B1A604C7A5a88fb0E70
Arg [3] : _deposit_token (address): 0x284D81e48fBc782Aa9186a03a226690aEA5cBe0E
Arg [4] : _ichi (address): 0x20737388dbc9F7E56f4Cc69D41DA62C96B355DB0
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] : 00000000000000000000000020737388dbc9f7e56f4cc69d41da62c96b355db0
Arg [1] : 000000000000000000000000bbb10f33dcdd50bd4317459a4b051fc319b29585
Arg [2] : 000000000000000000000000a04bc7140c26fc9bb1f36b1a604c7a5a88fb0e70
Arg [3] : 000000000000000000000000284d81e48fbc782aa9186a03a226690aea5cbe0e
Arg [4] : 00000000000000000000000020737388dbc9f7e56f4cc69d41da62c96b355db0
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.