More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 277 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 5137732 | 37 mins ago | IN | 0 S | 0.03889754 | ||||
Harvest | 5137727 | 37 mins ago | IN | 0 S | 0.04592654 | ||||
Harvest | 5124879 | 2 hrs ago | IN | 0 S | 0.03889424 | ||||
Harvest | 5113553 | 4 hrs ago | IN | 0 S | 0.03889424 | ||||
Harvest | 5102651 | 6 hrs ago | IN | 0 S | 0.0418914 | ||||
Harvest | 5102645 | 6 hrs ago | IN | 0 S | 0.03875894 | ||||
Harvest | 5092132 | 8 hrs ago | IN | 0 S | 0.0385308 | ||||
Harvest | 5082739 | 10 hrs ago | IN | 0 S | 0.03889754 | ||||
Harvest | 5073341 | 12 hrs ago | IN | 0 S | 0.0386628 | ||||
Harvest | 5062670 | 14 hrs ago | IN | 0 S | 0.03847921 | ||||
Harvest | 5048791 | 16 hrs ago | IN | 0 S | 0.03847921 | ||||
Harvest | 5036566 | 18 hrs ago | IN | 0 S | 0.03889094 | ||||
Harvest | 5024720 | 20 hrs ago | IN | 0 S | 0.03889094 | ||||
Harvest | 5012094 | 22 hrs ago | IN | 0 S | 0.03843972 | ||||
Harvest | 4993626 | 25 hrs ago | IN | 0 S | 0.03889754 | ||||
Harvest | 4979074 | 27 hrs ago | IN | 0 S | 0.0386727 | ||||
Harvest | 4964888 | 29 hrs ago | IN | 0 S | 0.03889754 | ||||
Harvest | 4950023 | 31 hrs ago | IN | 0 S | 0.03889754 | ||||
Harvest | 4936616 | 33 hrs ago | IN | 0 S | 0.03889754 | ||||
Harvest | 4936613 | 33 hrs ago | IN | 0 S | 0.04592654 | ||||
Harvest | 4923719 | 35 hrs ago | IN | 0 S | 0.03789599 | ||||
Harvest | 4911915 | 37 hrs ago | IN | 0 S | 0.03889754 | ||||
Harvest | 4900098 | 39 hrs ago | IN | 0 S | 0.03889754 | ||||
Harvest | 4887119 | 41 hrs ago | IN | 0 S | 0.0386694 | ||||
Harvest | 4875572 | 43 hrs ago | IN | 0 S | 0.03821818 |
Loading...
Loading
Contract Name:
Blacksail_Beets_Strategy
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/utils/Pausable.sol'; import './BlackSail_Interface.sol'; import './Beets_Interface.sol'; import './Beets_Gauge_Interface.sol'; contract Blacksail_Beets_Strategy is Ownable, Pausable, ReentrancyGuard { using SafeERC20 for IERC20; uint256 public immutable MAX = 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff; // Tokens address public immutable native_token = address(0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38); address public reward_token; address public staking_token; IAsset[] public poolTokens; // 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 beets; address public beetsGauge; // Information uint256 public lastHarvest; uint256 public lastReward; uint256 public lastInterval; bool public harvestOnDeposit; // Platform Addresses address public vault; address public treasury; // Routes IBeetsVault.BatchSwapStep[] batchSwap; IBeetsVault.BatchSwapStep[] batchSwapToDeposit; IBeetsVault.FundManagement funds; IBeetsVault.JoinPoolRequest join; bytes32 public poolId; uint256 public slippageTolerance; IAsset[] public rewardToNative; IAsset[] public nativeToStaking; event Deposit(uint256 amount); event Withdraw(uint256 amount); event Harvest(address indexed harvester); event ChargeFees(uint256 callFee, uint256 protocolFee); event SetVault(address indexed newVault); event SetWithdrawalFee(uint256 newFee); event SetSlippageTolerance(uint256 newTolerance); /** * @dev Constructor to initialize the strategy contract. * @param _staking_token The token to be staked in the third-party farm. * @param _harvestOnDeposit Boolean to enable or disable reward harvesting during deposits. * @param _rewardToNative The path for swapping rewards to the native token, using ISolidlyRouter routes. * * This constructor: * - Sets up the core token and contract addresses for staking, rewards, and routing. * - Enables or disables harvest-on-deposit, with a default withdrawal fee of 0 if enabled. * - Defines the reward-to-native token conversion path for liquidity and fee operations. * - Grants initial token allowances to external contracts. */ constructor ( address _staking_token, address _reward_token, address _beets, address _beetsGauge, bytes32 _poolId, IBeetsVault.BatchSwapStep[] memory _batchRewardToNative, IBeetsVault.BatchSwapStep[] memory _batchNativeToStaking, IAsset[] memory _poolTokens, IAsset[] memory _rewardToNative, IAsset[] memory _nativeToStaking, bool _harvestOnDeposit, address _treasury ) Ownable(msg.sender) { staking_token = _staking_token; reward_token = _reward_token; beetsGauge = _beetsGauge; poolId = _poolId; treasury = _treasury; beets = _beets; poolTokens = _poolTokens; harvestOnDeposit = _harvestOnDeposit; funds.sender = address(this); funds.fromInternalBalance = false; funds.recipient = payable(address(this)); funds.toInternalBalance = false; rewardToNative = _rewardToNative; nativeToStaking = _nativeToStaking; batchSwap = _batchRewardToNative; batchSwapToDeposit = _batchNativeToStaking; join.assets = _poolTokens; join.fromInternalBalance = false; if (harvestOnDeposit) { setWithdrawalFee(0); } _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) { IBeetsVault(beetsGauge).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) { IBeetsVault(beetsGauge).withdraw(_amount - stakingBal); stakingBal = IERC20(staking_token).balanceOf(address(this)); } if (stakingBal > _amount) { stakingBal = _amount; } if (!paused() && !harvestOnDeposit) { uint256 wFee = (stakingBal * WITHDRAW_FEE) / WITHDRAWAL_MAX; 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 { IBeetsVault(beetsGauge).claim_rewards(address(this)); uint256 rewardAmt = IERC20(reward_token).balanceOf(address(this)); if (rewardAmt > 0){ chargeFees(caller); addLiquidity(IAsset(nativeToStaking[nativeToStaking.length - 1])); _deposit(); } lastInterval = block.timestamp - lastHarvest; lastHarvest = block.timestamp; emit Harvest(msg.sender); } /** @dev This function converts all funds to wSonic, charges fees, and sends fees to respective accounts */ function chargeFees(address caller) internal { uint256 toNative = IERC20(reward_token).balanceOf(address(this)); if (toNative > 0) { int256[] memory amounts = new int256[](3); // Initialize with size 3 amounts[0] = int256(toNative); amounts[1] = 0; amounts[2] = 0; batchSwap[0].amount = toNative; IBeetsVault(beets).batchSwap(IBeetsVault.SwapKind.GIVEN_IN, batchSwap, rewardToNative, funds, amounts, block.timestamp); uint256 nativeBal = IERC20(native_token).balanceOf(address(this)); uint256 platformFee = (nativeBal * PLATFORM_FEE) / DIVISOR; uint256 callFeeAmount = (platformFee * CALL_FEE) / DIVISOR; uint256 treasuryFee = platformFee - callFeeAmount; lastReward = 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(IAsset _tokenIn) internal { uint256 toDeposit = IERC20(native_token).balanceOf(address(this)); if (toDeposit > 0) { int256[] memory batchAmounts = new int256[](nativeToStaking.length); for (uint256 i = 0; i < nativeToStaking.length; i++) { if (i == 0) { batchAmounts[i] = int256(toDeposit); } batchAmounts[i] = 0; } IBeetsVault.SingleSwap memory ss; ss.assetIn = nativeToStaking[0]; ss.assetOut = nativeToStaking[1]; ss.kind = IBeetsVault.SwapKind.GIVEN_IN; ss.poolId = bytes32(0x374641076b68371e69d03c417dac3e5f236c32fa000000000000000000000006); ss.userData = "0x"; ss.amount = toDeposit; batchSwapToDeposit[0].amount = toDeposit; IBeetsVault(beets).swap(ss, funds, 1, block.timestamp); ///////////////////////////////////////////////////////////////////// uint256 _amountIn = IERC20(address(nativeToStaking[nativeToStaking.length - 1])).balanceOf(address(this)); if (_amountIn > 0) { uint256[] memory amounts = new uint256[](poolTokens.length); for (uint256 i = 0; i < amounts.length; i++) { amounts[i] = poolTokens[i] == _tokenIn ? _amountIn : 0; } bytes memory userData = abi.encode(1, amounts, 0); join.assets = poolTokens; join.maxAmountsIn = amounts; join.userData = userData; IBeetsVault(beets).joinPool(poolId, address(this), address(this), join); } } } /** @dev Determines the amount of reward in WFTM upon calling the harvest function */ function harvestCallReward() public view returns (uint256) { return(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 IBeetsGauge(beetsGauge).claimable_reward(address(this), reward_token); } /** @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 IBeetsGauge(beetsGauge).balanceOf(address(this)); } /** @dev called as part of strat migration. Sends all the available funds back to the vault */ function retireStrat() external { require(msg.sender == vault, "!vault"); IBeetsVault(beets).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(native_token).approve(beets, MAX); IERC20(reward_token).approve(beets, MAX); IERC20(address(nativeToStaking[nativeToStaking.length - 1])).approve(beets, MAX); IERC20(staking_token).approve(beetsGauge, MAX); } /** @dev Removes allowances to spenders */ function _removeAllowances() internal { IERC20(native_token).approve(beets, 0); IERC20(reward_token).approve(beets, 0); IERC20(address(nativeToStaking[nativeToStaking.length - 1])).approve(beets, 0); IERC20(staking_token).approve(beetsGauge, 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); } function setTreasury(address _treasury) external onlyOwner { treasury = _treasury; } /** * @dev Allows the contract owner to set the slippage tolerance for token swaps. * This value is used to calculate the minimum acceptable output amount in swaps, * helping to mitigate the risks of slippage and unfavorable price changes. * * Requirements: * - The caller must be the contract owner. * - The provided tolerance must be less than or equal to 1500 (representing a maximum of 15% slippage). * * Emits: * - A {SetSlippageTolerance} event indicating the updated slippage tolerance. * * @param _tolerance The new slippage tolerance value, scaled by 10,000 (e.g., 1500 = 15%). */ function setSlippageTolerance(uint256 _tolerance) external onlyOwner { require(_tolerance <= 1500, "Invalid tolerance"); // Max 15% slippageTolerance = _tolerance; emit SetSlippageTolerance(slippageTolerance); } function isContract(address account) internal view returns (bool) { return account.code.length > 0; } modifier onlyAuthorized() { require(msg.sender == vault || msg.sender == address(this), "Not authorized, only Vault or Strategy"); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC165} from "./IERC165.sol"; /** * @title IERC1363 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363]. * * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction. */ interface IERC1363 is IERC20, IERC165 { /* * Note: the ERC-165 identifier for this interface is 0xb0202a11. * 0xb0202a11 === * bytes4(keccak256('transferAndCall(address,uint256)')) ^ * bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^ * bytes4(keccak256('approveAndCall(address,uint256)')) ^ * bytes4(keccak256('approveAndCall(address,uint256,bytes)')) */ /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @param data Additional data with no specified format, sent in call to `spender`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC1363} from "../../../interfaces/IERC1363.sol"; import {Address} from "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC-20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { /** * @dev An operation with an ERC-20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. * * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being * set here. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { safeTransfer(token, to, value); } else if (!token.transferAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferFromAndCallRelaxed( IERC1363 token, address from, address to, uint256 value, bytes memory data ) internal { if (to.code.length == 0) { safeTransferFrom(token, from, to, value); } else if (!token.transferFromAndCall(from, to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}. * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall} * once without retrying, and relies on the returned value to be true. * * Reverts if the returned value is other than `true`. */ function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { forceApprove(token, to, value); } else if (!token.approveAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements. */ function _callOptionalReturn(IERC20 token, bytes memory data) private { uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) // bubble errors if iszero(success) { let ptr := mload(0x40) returndatacopy(ptr, 0, returndatasize()) revert(ptr, returndatasize()) } returnSize := returndatasize() returnValue := mload(0) } if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { bool success; uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) returnSize := returndatasize() returnValue := mload(0) } return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol) pragma solidity ^0.8.20; import {Errors} from "./Errors.sol"; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert Errors.InsufficientBalance(address(this).balance, amount); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert Errors.FailedCall(); } } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {Errors.FailedCall} error. * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert Errors.InsufficientBalance(address(this).balance, value); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case * of an unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {Errors.FailedCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}. */ function _revert(bytes memory returndata) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly ("memory-safe") { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert Errors.FailedCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol) pragma solidity ^0.8.20; /** * @dev Collection of common custom errors used in multiple contracts * * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library. * It is recommended to avoid relying on the error API for critical functionality. * * _Available since v5.1._ */ library Errors { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error InsufficientBalance(uint256 balance, uint256 needed); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedCall(); /** * @dev The deployment failed. */ error FailedDeployment(); /** * @dev A necessary precompile is missing. */ error MissingPrecompile(address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { bool private _paused; /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at, * consider using {ReentrancyGuardTransient} instead. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IBeetsGauge { function claimable_reward(address addr, address rewardToken) external view returns (uint256); function balanceOf(address addr) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; interface IBeetsVault { enum SwapKind { GIVEN_IN, GIVEN_OUT } struct SwapRequest { SwapKind kind; IERC20 tokenIn; IERC20 tokenOut; uint256 amount; // Misc data bytes32 poolId; uint256 lastChangeBlock; address from; address to; bytes userData; } struct SingleSwap { bytes32 poolId; SwapKind kind; IAsset assetIn; IAsset assetOut; uint256 amount; bytes userData; } struct FundManagement { address sender; bool fromInternalBalance; address payable recipient; bool toInternalBalance; } struct JoinPoolRequest { IAsset[] assets; uint256[] maxAmountsIn; bytes userData; bool fromInternalBalance; } struct BatchSwapStep { bytes32 poolId; uint256 assetInIndex; uint256 assetOutIndex; uint256 amount; bytes userData; } function joinPool( bytes32 poolId, address sender, address recipient, JoinPoolRequest memory request ) external payable; function queryBatchSwap( SwapKind kind, BatchSwapStep[] memory swaps, IAsset[] memory assets, FundManagement memory funds ) external view returns (int256[] memory); function batchSwap( SwapKind kind, BatchSwapStep[] memory swaps, IAsset[] memory assets, FundManagement memory funds, int256[] memory limits, uint256 deadline ) external payable returns (int256[] memory assetDeltas); function swap( SingleSwap memory singleSwap, FundManagement memory funds, uint256 limit, uint256 deadline ) external payable returns (uint256 amountCalculated); function deposit(uint256 amount) external; function withdraw(uint256 amount) external; function claim_rewards(address _addr) external; } interface IAsset { // solhint-disable-previous-line no-empty-blocks }
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; interface ISailFactory { function treasury() external view returns (address); function paused() external view returns (bool); } interface ISailCurve { function mustStaySAIL(address account) external view returns (uint256); } interface IxSAIL { function balanceOf(address account) external view returns (uint256); //function notifyRewardAmount(address _rewardsToken, uint256 reward) external; } interface ISailWhalePrevention { function timelockRemaining() external view returns (bool active, uint256 timeleft); } interface ISailStrategy { function vault() external view returns (address); function staking_token() external view returns (address); function beforeDeposit() external; function deposit() external; function withdraw(uint256) external; function balanceOf() external view returns (uint256); function lastHarvest() external view returns (uint256); function harvest() external; function retireStrat() external; function panic() external; function pause() external; function unpause() external; function paused() external view returns (bool); } interface ISailVault { function want() external view returns (IERC20); function strategy() external view returns (ISailStrategy); function balance() external view returns (uint); function available() external view returns (uint256); function getPricePerFullShare() external view returns (uint256); function getAccountInfo(address _account) external view returns (uint256, uint256, string memory); } struct UpgradedStrategy { address implementation; uint proposedTime; } interface IUniswapRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } interface IUniswapPair { function token0() external view returns (address); function token1() external view returns (address); } interface IRewardPool { function deposit(uint256 amount) external; function withdraw(uint256 amount) external; function getReward(address user, address[] memory rewards) external; function earned(address token, address user) external view returns (uint256); function balanceOf(address account) external view returns (uint256); function stake() external view returns (address); } interface ISolidlyRouter { // Routes struct Routes { address from; address to; bool stable; } struct Route { address from; address to; bool stable; address factory; } function addLiquidity( address tokenA, address tokenB, bool stable, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, bool stable, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, bool stable, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, bool stable, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokensSimple( uint amountIn, uint amountOutMin, address tokenFrom, address tokenTo, bool stable, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, Routes[] memory route, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, Route[] memory route, address to, uint deadline ) external returns (uint[] memory amounts); function getAmountOut( uint amountIn, address tokenIn, address tokenOut ) external view returns (uint amount, bool stable); function getAmountsOut(uint amountIn, Routes[] memory routes) external view returns (uint[] memory amounts); function getAmountsOut(uint amountIn, Route[] memory routes) external view returns (uint[] memory amounts); function quoteAddLiquidity( address tokenA, address tokenB, bool stable, uint amountADesired, uint amountBDesired ) external view returns (uint amountA, uint amountB, uint liquidity); function quoteAddLiquidity( address tokenA, address tokenB, bool stable, address _factory, uint amountADesired, uint amountBDesired ) external view returns (uint amountA, uint amountB, uint liquidity); function defaultFactory() external view returns (address); } interface IEqualizerPool { function deposit(uint256 amount) external; function withdraw(uint256 amount) external; function getReward(address user, address[] memory rewards) external; function earned(address token, address user) external view returns (uint256); function balanceOf(address account) external view returns (uint256); function stake() external view returns (address); }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_staking_token","type":"address"},{"internalType":"address","name":"_reward_token","type":"address"},{"internalType":"address","name":"_beets","type":"address"},{"internalType":"address","name":"_beetsGauge","type":"address"},{"internalType":"bytes32","name":"_poolId","type":"bytes32"},{"components":[{"internalType":"bytes32","name":"poolId","type":"bytes32"},{"internalType":"uint256","name":"assetInIndex","type":"uint256"},{"internalType":"uint256","name":"assetOutIndex","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"}],"internalType":"struct IBeetsVault.BatchSwapStep[]","name":"_batchRewardToNative","type":"tuple[]"},{"components":[{"internalType":"bytes32","name":"poolId","type":"bytes32"},{"internalType":"uint256","name":"assetInIndex","type":"uint256"},{"internalType":"uint256","name":"assetOutIndex","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"userData","type":"bytes"}],"internalType":"struct IBeetsVault.BatchSwapStep[]","name":"_batchNativeToStaking","type":"tuple[]"},{"internalType":"contract IAsset[]","name":"_poolTokens","type":"address[]"},{"internalType":"contract IAsset[]","name":"_rewardToNative","type":"address[]"},{"internalType":"contract IAsset[]","name":"_nativeToStaking","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":[],"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":"beets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beetsGauge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beforeDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvestCallReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestOnDeposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastHarvest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nativeToStaking","outputs":[{"internalType":"contract IAsset","name":"","type":"address"}],"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":"poolId","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolTokens","outputs":[{"internalType":"contract IAsset","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"retireStrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardToNative","outputs":[{"internalType":"contract IAsset","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reward_token","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":"_treasury","type":"address"}],"name":"setTreasury","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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c080604052346200066e5762004523803803809162000020828562000d67565b83398101610180828203126200066e576200003b8262000d8b565b906200004a6020840162000d8b565b91620000596040850162000d8b565b91620000686060860162000d8b565b9360808601519360a087015160018060401b0381116200066e57836200009091890162000db8565b60c08801519094906001600160401b0381116200066e5784620000b5918a0162000db8565b60e08901519096906001600160401b0381116200066e5785620000da918b0162000f1d565b6101008a01519098906001600160401b0381116200066e578662000100918c0162000f1d565b6101208b01519095906001600160401b0381116200066e576101606200013d610140620001358f9b62000145958d0162000f1d565b9a0162000f94565b9c0162000d8b565b93331562000d4e576000543360018060a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a36001600160a81b0319163360ff60a01b1916176000556001805560001960805273039e2fb66102314ce7b64ce5ce3e5183bc94ad3860a052620186a0600555606460068190556103e8600755600855610384600955602d600a55600380546001600160a01b03199081166001600160a01b039384161790915560028054821693831693909317909255600c8054831693821693909317909255601a9290925560118054831693821693909317909255600b8054909116929091169190911790558451956001600160401b038711620008095768010000000000000000871162000809576004548760045580881062000d10575b506020860196876004600052602060002060005b83811062000cf25750506010805460ff191660ff941515949094169390931790925550506014805460ff60a01b1930166001600160a81b031991821681179092556015805490911690911790558051906001600160401b03821162000809576801000000000000000082116200080957602090601c5483601c5580841062000cd1575b5001601c600052602060002060005b83811062000cb35750508251929150506001600160401b03821162000809576801000000000000000082116200080957602090601d5483601d5580841062000c92575b5001601d600052602060002060005b83811062000c74575050505080519068010000000000000000821162000809576012548260125580831062000ba9575b5060126000908152600080516020620044e383398151915292916020015b82821062000a4f575050505080519068010000000000000000821162000809576013548260135580831062000984575b50601360009081526000805160206200450383398151915292916020015b8282106200081f578451866001600160401b0382116200080957680100000000000000008211620008095760165482601655808310620007cb575b5090601660005260206000209160005b828110620007ad5760ff196019541660195560ff6010541662000777575b60a051600b5460805160405163095ea7b360e01b81526001600160a01b03928316600482015260248101919091529160209183916044918391600091165af180156200067c5762000736575b50600254600b5460805160405163095ea7b360e01b81526001600160a01b03928316600482015260248101919091529160209183916044918391600091165af180156200067c57620006f5575b50601d546000198101818111620006df57811115620006c957601d60009081527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134e9190910154600b5460805160405163095ea7b360e01b81526001600160a01b039283166004820152602481019190915292602092849260449284929091165af180156200067c5762000688575b50600354600c5460805160405163095ea7b360e01b81526001600160a01b03928316600482015260248101919091529160209183916044918391600091165af180156200067c5762000636575b6040516134ea908162000ff98239608051818181610607015261238a015260a05181818161084701528181610ca9015281816114c4015281816118e601528181612013015281816123ba01526129000152f35b6020813d60201162000673575b81620006526020938362000d67565b810103126200066e57620006669062000f94565b5080620005e3565b600080fd5b3d915062000643565b6040513d6000823e3d90fd5b6020813d602011620006c0575b81620006a46020938362000d67565b810103126200066e57620006b89062000f94565b508062000596565b3d915062000695565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6020813d6020116200072d575b81620007116020938362000d67565b810103126200066e57620007259062000f94565b508062000508565b3d915062000702565b6020813d6020116200076e575b81620007526020938362000d67565b810103126200066e57620007669062000f94565b5080620004bb565b3d915062000743565b60006006557f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af602060405160008152a16200046f565b81516001600160a01b03168185015560209091019060010162000451565b601660005262000802907fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b512428990810190840162000fa2565b8262000441565b634e487b7160e01b600052604160045260246000fd5b805180518555602081015160018601556040810151600286015560608101516003860155608001518051906001600160401b038211620008095762000868600487015462000fbb565b90601f9182811162000942575b506020918311600114620008c7579282600593602093600196600092620008bb575b5050600019600383901b1c191690851b1760048801555b0194019101909262000406565b01519050388062000897565b906004870160005260206000209160005b601f198516811062000929575083602093600196938793600597601f198116106200090f575b505050811b016004880155620008ae565b015160001960f88460031b161c19169055388080620008fe565b91926020600181928685015181550194019201620008d8565b62000973906004890160005260206000208480870160051c820192602088106200097a575b0160051c019062000fa2565b3862000875565b9250819262000967565b6005818102048103620006df576005838102048303620006df576013600052600080516020620045038339815191526005840281015b8260050282018110620009cf575050620003e8565b8060006005925560006001820155600060028201556000600382015560048101620009fb815462000fbb565b908162000a0c575b505001620009ba565b600091601f80821160011462000a28575050555b388062000a03565b9162000a47849293828452602084209401871c84016001850162000fa2565b555562000a20565b805180518555602081015160018601556040810151600286015560608101516003860155608001518051906001600160401b038211620008095762000a98600487015462000fbb565b90601f9182811162000b72575b50602091831160011462000af757928260059360209360019660009262000aeb575b5050600019600383901b1c191690851b1760048801555b01940191019092620003b8565b01519050388062000ac7565b906004870160005260206000209160005b601f198516811062000b59575083602093600196938793600597601f1981161062000b3f575b505050811b01600488015562000ade565b015160001960f88460031b161c1916905538808062000b2e565b9192602060018192868501518155019401920162000b08565b62000ba2906004890160005260206000208480870160051c820192602088106200097a570160051c019062000fa2565b3862000aa5565b6005818102048103620006df576005838102048303620006df576012600052600080516020620044e38339815191526005840281015b826005028201811062000bf45750506200039a565b806000600592556000600182015560006002820155600060038201556004810162000c20815462000fbb565b908162000c31575b50500162000bdf565b600091601f80821160011462000c4d575050555b388062000c28565b9162000c6c849293828452602084209401871c84016001850162000fa2565b555562000c45565b82516001600160a01b0316818301556020909201916001016200036a565b62000cac90601d6000528484600020918201910162000fa2565b386200035b565b82516001600160a01b03168183015560209092019160010162000318565b62000ceb90601c6000528484600020918201910162000fa2565b3862000309565b82516001600160a01b03168183015560209092019160010162000286565b600460005262000d47907f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b90810190890162000fa2565b3862000272565b604051631e4fbdf760e01b815260006004820152602490fd5b601f909101601f19168101906001600160401b038211908210176200080957604052565b51906001600160a01b03821682036200066e57565b6001600160401b038111620008095760051b60200190565b90601f908082840112156200066e5782519262000dd58462000da0565b9360409162000de78351968762000d67565b818652602094858088019360051b830101948086116200066e57868301935b86851062000e1957505050505050505090565b84516001600160401b03908181116200066e5785019060a0601f1991818385880301126200066e578951938285018581108382111762000f08578b528c81015185528a8101518d860152606092838201518c8701526080938483015190870152810151908282116200066e570186603f820112156200066e578c81015191821162000f085762000eb28d8c51958a850116018562000d67565b818452868b83830101116200066e57949290918c94926000965b81881062000eef5750858097506000918401015282015281520194019362000e06565b8088018d015184890188015295909601958d9562000ecc565b60246000634e487b7160e01b81526041600452fd5b81601f820112156200066e5780519162000f378362000da0565b9262000f47604051948562000d67565b808452602092838086019260051b8201019283116200066e578301905b82821062000f73575050505090565b81516001600160a01b03811681036200066e57815290830190830162000f64565b519081151582036200066e57565b81811062000fae575050565b6000815560010162000fa2565b90600182811c9216801562000fed575b602083101462000fd757565b634e487b7160e01b600052602260045260246000fd5b91607f169162000fcb56fe608080604052600436101561001357600080fd5b600090813560e01c908163025e30b014612aed5750806302984de314612ac25780630e8fbb5a14612a205780631158808614612a05578063117da1ee14612974578063171d2189146129585780632638c09e1461292f57806327ced537146128ea5780632dc7d74c146128c15780632e1a7d4d1461265a5780633410fe6e1461263c57806334fbc9a11461261e5780633e0dc34e146126005780633f4ba83a1461230957806345349762146122eb5780634641257d146117c55780634d8225fc1461179c57806354518b1a1461177e578063573fef0a14610b465780635c975abb14610b2157806361d027b314610af85780636817031b14610a31578063715018a6146109d7578063722713f7146109bc5780637ff8f1e9146109995780638456cb59146107b65780638519359d1461078d5780638912cb8b1461076a5780638da5cb5b14610743578063951d6d20146107255780639bff5ddb14610707578063c9b17149146106e9578063d03153aa146106cb578063d0e30db01461062a578063d49d5181146105ef578063dced1a5a146105ab578063e7a7250a1461050c578063f0f44260146104c2578063f1a392da146104a4578063f2fde38b14610412578063fb61778714610289578063fbe75152146102295763fbfa77cf146101fa57600080fd5b3461022657806003193601126102265760105460405160089190911c6001600160a01b03168152602090f35b80fd5b503461022657602036600319011261022657600435601c5481101561028557601c6000527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a21101546040516001600160a01b039091168152602090f35b5080fd5b503461022657806003193601126102265760018060a01b036102b38160105460081c163314612daf565b8181600b54166102c16133fe565b813b1561040e578291602483926040519485938492632e1a7d4d60e01b845260048401525af18015610403576103ef575b505080600354166040516370a0823160e01b81523060048201526020928382602481865afa9081156103e457849286926103ac575b5060105460405163a9059cbb60e01b81526001600160a01b0360089290921c9092161660048201526024810191909152918290818681604481015b03925af180156103a157610374578280f35b8161039392903d1061039a575b61038b8183612cc3565b81019061343c565b5038808280f35b503d610381565b6040513d85823e3d90fd5b8381949293503d83116103dd575b6103c48183612cc3565b810103126103d85790518391610362610327565b600080fd5b503d6103ba565b6040513d87823e3d90fd5b6103f890612c45565b6102855781386102f2565b6040513d84823e3d90fd5b8280fd5b5034610226576020366003190112610226576004356001600160a01b038181169182900361040e57610442612bf8565b811561048b57600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b604051631e4fbdf760e01b815260048101849052602490fd5b50346102265780600319360112610226576020600d54604051908152f35b5034610226576020366003190112610226576004356001600160a01b03811690819003610285576104f1612bf8565b6bffffffffffffffffffffffff60a01b601154161760115580f35b5034610226578060031936011261022657600c54600254604051630cff5bdd60e21b81523060048201526001600160a01b039182166024820152929160209184916044918391165afa90811561059f579061056d575b602090604051908152f35b506020813d8211610597575b8161058660209383612cc3565b810103126103d85760209051610562565b3d9150610579565b604051903d90823e3d90fd5b503461022657602036600319011261022657600435906004548210156102265760206105d683612bc1565b905460405160039290921b1c6001600160a01b03168152f35b503461022657806003193601126102265760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b50346102265780600319360112610226576010543360089190911c6001600160a01b03161480156106c2575b1561066e57610663612c24565b61066b612ce5565b80f35b60405162461bcd60e51b815260206004820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152608490fd5b50303314610656565b50346102265780600319360112610226576020601b54604051908152f35b50346102265780600319360112610226576020600e54604051908152f35b50346102265780600319360112610226576020600654604051908152f35b50346102265780600319360112610226576020600854604051908152f35b5034610226578060031936011261022657546040516001600160a01b039091168152602090f35b5034610226578060031936011261022657602060ff601054166040519015158152f35b5034610226578060031936011261022657600b546040516001600160a01b039091168152602090f35b50346102265780600319360112610226576107cf612bf8565b6107d7612c24565b805460ff60a01b1916600160a01b1781556040513381526020907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258908290a1600b5460405163095ea7b360e01b8082526001600160a01b03928316600483015260248201859052908381604481887f000000000000000000000000000000000000000000000000000000000000000088165af180156103e45761097c575b5083838360025416604485600b5416604051948593849288845260048401528160248401525af180156103e45761095f575b50601d54600019810190811161094b57906108c28492612b09565b92905492604485600b541688876040519788958694898652600486015283602486015260031b1c165af19182156103e457849261092e575b506044836003541693600c541691866040519586948593845260048401528160248401525af180156103a157610374578280f35b61094490833d851161039a5761038b8183612cc3565b50386108fa565b634e487b7160e01b85526011600452602485fd5b61097590843d861161039a5761038b8183612cc3565b50386108a7565b61099290843d861161039a5761038b8183612cc3565b5038610875565b503461022657806003193601126102265760206109b4613392565b604051908152f35b503461022657806003193601126102265760206109b4613376565b50346102265780600319360112610226576109f0612bf8565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5034610226576020366003190112610226576004356001600160a01b0381169081810361040e57610a60612bf8565b803b15610ab35760108054610100600160a81b03191660089290921b610100600160a81b03169190911790557fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f308280a280f35b60405162461bcd60e51b815260206004820152601860248201527f5661756c74206d757374206265206120636f6e747261637400000000000000006044820152606490fd5b50346102265780600319360112610226576011546040516001600160a01b039091168152602090f35b503461022657806003193601126102265760ff6020915460a01c166040519015158152f35b503461022657806003193601126102265760105460ff8116610b66575080f35b60081c6001600160a01b0316330361174457610b80612c24565b600c5481906001600160a01b0316803b1561174157818091602460405180948193634274debf60e11b83523060048401525af180156104035761172d575b50506002546040516370a0823160e01b81523060048201526001600160a01b0390911690602081602481855afa9081156103a15783916116fb575b50610c3b575b50610c0c600d5442612de4565b600f5542600d55337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a280f35b6020602491604051928380926370a0823160e01b82523060048301525afa9081156104035782916116c9575b508061138c575b50601d54600019810181811161137857610c8790612b09565b90546040516370a0823160e01b815230600482015291929091906020826024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa9182156103e4578592611344575b5081610cfa575b50505050610cf4612ce5565b38610bff565b610d0381612ee5565b855b8281106113185750505060a09060405190610d1f82612c6f565b858252856020830152856040830152856060830152856080830152606083830152610d48612b56565b9054600180861b039160031b1c166040830152610d63612b8a565b600180861b0391549060031b1c1660608301528560208301527f374641076b68371e69d03c417dac3e5f236c32fa0000000000000000000000068252604051610dab81612c8b565b6002815261060f60f31b6020820152838301528060808301526003610dce612f8c565b500155600180831b03600b541690856040519384926352bbbe2960e01b845260e06004850152805160e4850152610e0e6020820151610104860190612fc0565b60408101516000196001841b019081166101248601526060820151166101448501526080810151610164850152015160c061018484015280516101a4840181905290825b8281106112fc575050816101c484836020979583839684010152610e7860248301613211565b600160a48301524260c4830152601f01601f191681010301925af180156112b2576112d1575b50601d5460001981019081116112bd576020610ebb602492612b09565b90546040516370a0823160e01b81523060048201529384929091839160031b1c6001600160a01b03165afa9081156112b2578491611280575b5080610f01575b80610ce8565b90919260045493610f1185612ecd565b94610f1f6040519687612cc3565b808652610f2e601f1991612ecd565b01366020870137815b8551811015610f8a5780610f4d610f7f92612bc1565b9054600391821b1c6001600160a01b039081169185901b88901c1603610f8457845b610f798289612f44565b52613247565b610f37565b83610f6f565b50509150506040519160808301600160208501526060604085015281518091528360a081016020840192855b818110611267575050610fd8925084606083015203601f198101855284612cc3565b610fe061329a565b805167ffffffffffffffff9182821161125357600160401b821161125357602090611011836017548160175561326d565b0160178452835b82811061123157505050825190811161121d57611036601854612fe3565b601f81116111d6575b50602092601f82116001146111685792829382939261115d575b50508160011b916000199060031b1c1916176018555b60018060a01b03600b541690601a54823b15610285576040519063172b958560e31b8252600482015230602482015230604482015260806064820152608060848201526110bf61010482016131ab565b608319808383030160a484015260206017549283815201916017855260008051602061349583398151915290855b818110611147575050508394838581611111868296838599030160c484015261301d565b60ff60195416151560e483015203925af1801561040357611133575b80610efb565b61113c90612c45565b61022657803861112d565b82548552602090940193600192830192016110ed565b015190503880611059565b60188352601f1982169360008051602061347583398151915291845b8681106111be57508360019596106111a5575b505050811b0160185561106f565b015160001960f88460031b161c19169055388080611197565b91926020600181928685015181550194019201611184565b61120d9060188452600080516020613475833981519152601f840160051c81019160208510611213575b601f0160051c0190613256565b3861103f565b9091508190611200565b634e487b7160e01b82526041600452602482fd5b6001906020835193019281600080516020613495833981519152015501611018565b634e487b7160e01b84526041600452602484fd5b8451835260209485019488945090920191600101610fb6565b90506020813d6020116112aa575b8161129b60209383612cc3565b810103126103d8575138610ef4565b3d915061128e565b6040513d86823e3d90fd5b634e487b7160e01b84526011600452602484fd5b602090813d83116112f5575b6112e78183612cc3565b810103126103d85738610e9e565b503d6112dd565b60208183018101516101c489840101528795508a945001610e52565b8061132e9115611333575b87610f798285612f44565b610d05565b8461133e8285612f44565b52611323565b9091506020813d602011611370575b8161136060209383612cc3565b810103126103d857519038610ce1565b3d9150611353565b634e487b7160e01b83526011600452602483fd5b6040519061139982612ca7565b600382526060366020840137806113af83612f17565b52826113ba83612f24565b52826113c583612f34565b5260036113d0612f58565b5001558160018060a01b03600b54169160405192839163945bcec960e01b8352610124830160006004850152610120602485015260125480915261014484016101448260051b86010191601287527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34449187905b828210611666575050505083810360031901604485015261146390613145565b61146f60648501613211565b6003198482030160e485015260208083519283815201920190855b81811061164a57505050838380924261010483015203925af18015610403576115bb575b506040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690602081602481855afa9081156103a157839161157b575b5060008051602061345583398151915291611524604092600a5490612e07565b61156a6115496115376007548094612e1a565b9261154460085485612e07565b612e1a565b926115548484612de4565b9084600e5560018060a01b036011541690612e3a565b82519182526020820152a138610c6e565b90506020813d6020116115b3575b8161159660209383612cc3565b810103126103d85751600080516020613455833981519152611504565b3d9150611589565b3d8083833e6115ca8183612cc3565b81019060208183031261040e5780519067ffffffffffffffff8211611646570181601f8201121561040e5780519060208061160484612ecd565b6116116040519182612cc3565b848152019260051b82010192831161164657602001905b8282106116365750506114ae565b8151815260209182019101611628565b8380fd5b825184528896508795506020938401939092019160010161148a565b929597509260019194965060056116b6602092610143198c8203018652885481528489015484820152600289015460408201526003890154606082015260a09081608082015201600489016130af565b9601920192019287959389979593611443565b90506020813d6020116116f3575b816116e460209383612cc3565b810103126103d8575138610c67565b3d91506116d7565b90506020813d602011611725575b8161171660209383612cc3565b810103126103d8575138610bf9565b3d9150611709565b61173690612c45565b610226578038610bbe565b50fd5b60405162461bcd60e51b81526020600482015260126024820152715661756c74206465706f736974206f6e6c7960701b6044820152606490fd5b50346102265780600319360112610226576020600554604051908152f35b5034610226578060031936011261022657600c546040516001600160a01b039091168152602090f35b5034610226578060031936011261022657333b1580156122d1575b15612293576117ed612c24565b600c5481906001600160a01b0316803b1561174157818091602460405180948193634274debf60e11b83523060048401525af180156104035761227f575b50506002546040516370a0823160e01b81523060048201526001600160a01b0390911690602081602481855afa9081156103a157839161224d575b506118785750610c0c600d5442612de4565b6020602491604051928380926370a0823160e01b82523060048301525afa90811561040357829161221b575b5080611edb575b50601d546000198101818111611378576118c490612b09565b90546040516370a0823160e01b815230600482015291929091906020826024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa9182156103e4578592611ea7575b50816119305750505050610cf4612ce5565b61193981612ee5565b855b828110611e8d5750505060a0906040519061195582612c6f565b85825285602083015285604083015285606083015285608083015260608383015261197e612b56565b9054600180861b039160031b1c166040830152611999612b8a565b600180861b0391549060031b1c1660608301528560208301527f374641076b68371e69d03c417dac3e5f236c32fa00000000000000000000000682526040516119e181612c8b565b6002815261060f60f31b6020820152838301528060808301526003611a04612f8c565b500155600180831b03600b541690856040519384926352bbbe2960e01b845260e06004850152805160e4850152611a446020820151610104860190612fc0565b60408101516000196001841b019081166101248601526060820151166101448501526080810151610164850152015160c061018484015280516101a4840181905290825b828110611e71575050816101c484836020979583839684010152611aae60248301613211565b600160a48301524260c4830152601f01601f191681010301925af180156112b257611e46575b50601d5460001981019081116112bd576020611af1602492612b09565b90546040516370a0823160e01b81523060048201529384929091839160031b1c6001600160a01b03165afa9081156112b2578491611e14575b5080611b365780610ce8565b90919260045493611b4685612ecd565b94611b546040519687612cc3565b808652611b63601f1991612ecd565b01366020870137815b8551811015611b875780610f4d611b8292612bc1565b611b6c565b50509150506040519160808301600160208501526060604085015281518091528360a081016020840192855b818110611dfb575050611bd5925084606083015203601f198101855284612cc3565b611bdd61329a565b805167ffffffffffffffff9182821161125357600160401b821161125357602090611c0e836017548160175561326d565b0160178452835b828110611dd957505050825190811161121d57611c33601854612fe3565b601f8111611d9d575b50602092601f8211600114611d2f57928293829392611d24575b50508160011b916000199060031b1c1916176018555b60018060a01b03600b541690601a54823b15610285576040519063172b958560e31b825260048201523060248201523060448201526080606482015260806084820152611cbc61010482016131ab565b608319808383030160a484015260206017549283815201916017855260008051602061349583398151915290855b818110611d0e575050508394838581611111868296838599030160c484015261301d565b8254855260209094019360019283019201611cea565b015190503880611c56565b60188352601f1982169360008051602061347583398151915291845b868110611d855750836001959610611d6c575b505050811b01601855611c6c565b015160001960f88460031b161c19169055388080611d5e565b91926020600181928685015181550194019201611d4b565b611dd39060188452600080516020613475833981519152601f840160051c8101916020851061121357601f0160051c0190613256565b38611c3c565b6001906020835193019281600080516020613495833981519152015501611c15565b8451835260209485019488945090920191600101611bb3565b90506020813d602011611e3e575b81611e2f60209383612cc3565b810103126103d8575138611b2a565b3d9150611e22565b602090813d8311611e6a575b611e5c8183612cc3565b810103126103d85738611ad4565b503d611e52565b60208183018101516101c489840101528795508a945001611a88565b80611ea291156113335787610f798285612f44565b61193b565b9091506020813d602011611ed3575b81611ec360209383612cc3565b810103126103d85751903861191e565b3d9150611eb6565b60405190611ee882612ca7565b60038252606036602084013780611efe83612f17565b5282611f0983612f24565b5282611f1483612f34565b526003611f1f612f58565b5001558160018060a01b03600b54169160405192839163945bcec960e01b8352610124830160006004850152610120602485015260125480915261014484016101448260051b86010191601287527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34449187905b8282106121b85750505050838103600319016044850152611fb290613145565b611fbe60648501613211565b6003198482030160e485015260208083519283815201920190855b81811061219c57505050838380924261010483015203925af1801561040357612111575b506040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690602081602481855afa9081156103a15783916120d1575b5060008051602061345583398151915291612073604092600a5490612e07565b6120b06120866115376007548094612e1a565b926120918484612de4565b9084600e553033036120c1575b6011546001600160a01b031690612e3a565b82519182526020820152a1386118ab565b6120cc853383612e3a565b61209e565b90506020813d602011612109575b816120ec60209383612cc3565b810103126103d85751600080516020613455833981519152612053565b3d91506120df565b3d8083833e6121208183612cc3565b81019060208183031261040e5780519067ffffffffffffffff8211611646570181601f8201121561040e5780519060208061215a84612ecd565b6121676040519182612cc3565b848152019260051b82010192831161164657602001905b82821061218c575050611ffd565b815181526020918201910161217e565b8251845288965087955060209384019390920191600101611fd9565b92959750926001919496506005612208602092610143198c8203018652885481528489015484820152600289015460408201526003890154606082015260a09081608082015201600489016130af565b9601920192019287959389979593611f92565b90506020813d602011612245575b8161223660209383612cc3565b810103126103d85751386118a4565b3d9150612229565b90506020813d602011612277575b8161226860209383612cc3565b810103126103d8575138611866565b3d915061225b565b61228890612c45565b61022657803861182b565b60405162461bcd60e51b815260206004820152601660248201527508585d5d1a0810dbdb9d1c9858dd0812185c9d995cdd60521b6044820152606490fd5b506010543360089190911c6001600160a01b0316146117e0565b50346102265780600319360112610226576020600f54604051908152f35b5034610226578060031936011261022657612322612bf8565b805460ff8160a01c16156125ee5760ff60a01b191681556040513381526020907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa908290a1600b5460405163095ea7b360e01b8082526001600160a01b0392831660048301527f00000000000000000000000000000000000000000000000000000000000000006024830181905290918481604481897f000000000000000000000000000000000000000000000000000000000000000089165af18015612595576125d1575b50600254600b546040518481529085166001600160a01b0316600482015260248101839052908590829086168189816044810103925af18015612595576125b4575b50601d5460001981019081116125a05790848161244a61247e9594612b09565b9054898880600b541692604051809a819782968c84526004840160209093929193604081019460018060a01b031681520152565b039460031b1c165af1918215612595576124d1938693612578575b50600354600c5460405192835286166001600160a01b0316600483015260248201929092529283918516908290889082906044820190565b03925af180156112b25761255b575b5060105460081c1633148015612552575b156124ff5750610663612c24565b6084906040519062461bcd60e51b82526004820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b503033146124f1565b61257190833d851161039a5761038b8183612cc3565b50386124e0565b61258e90843d861161039a5761038b8183612cc3565b5038612499565b6040513d88823e3d90fd5b634e487b7160e01b86526011600452602486fd5b6125ca90853d871161039a5761038b8183612cc3565b503861242a565b6125e790853d871161039a5761038b8183612cc3565b50386123e8565b604051638dfc202b60e01b8152600490fd5b50346102265780600319360112610226576020601a54604051908152f35b50346102265780600319360112610226576020600a54604051908152f35b50346102265780600319360112610226576020600754604051908152f35b50346102265760208060031936011261028557600435906002600154146128af57600260015560018060a01b039161269a8360105460081c163314612daf565b8260035416906040519183836024816370a0823160e01b948582523060048301525afa92831561259557869361287c575b508583838110612783575b505050907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d938261272f93831161277b575b5060ff865460a01c16158061276e575b612745575b60035460105460081c82169116612e3a565b612737613376565b604051908152a16001805580f35b906127689061276261275960065483612e07565b60055490612e1a565b90612de4565b9061271d565b5060ff6010541615612718565b915038612708565b909192935061279786600c54169185612de4565b90803b1561040e57602483926040519485938492632e1a7d4d60e01b845260048401525af1801561259557612869575b508284600354169160246040518094819382523060048301525afa9081156103e457859161281a575b50907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d85386126d6565b9190508282813d8311612862575b6128328183612cc3565b810103126103d85790517f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d6127f0565b503d612828565b61287590959195612c45565b93386127c7565b9092508381813d83116128a8575b6128948183612cc3565b810103126128a4575191386126cb565b8580fd5b503d61288a565b604051633ee5aeb560e01b8152600490fd5b50346102265780600319360112610226576003546040516001600160a01b039091168152602090f35b50346102265780600319360112610226576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b50346102265780600319360112610226576002546040516001600160a01b039091168152602090f35b5034610226578060031936011261022657602090604051908152f35b503461022657602036600319011261022657600435612991612bf8565b6105dc81116129cc576020817fe4a7fd2711237e77309a9a16ff636a748dbf956fd91f6e6da800d9302f441a7992601b55604051908152a180f35b60405162461bcd60e51b8152602060048201526011602482015270496e76616c696420746f6c6572616e636560781b6044820152606490fd5b503461022657806003193601126102265760206109b46133fe565b50346102265760203660031901126102265760043580151580910361028557612a47612bf8565b60ff8019601054169116809117601055600014612a8f57806006557f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af6020604051838152a180f35b600a6006557f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af6020604051600a8152a180f35b50346102265760203660031901126102265760043590601d548210156102265760206105d683612b09565b9050346102855781600319360112610285576020906009548152f35b601d54811015612b4057601d6000527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f0190600090565b634e487b7160e01b600052603260045260246000fd5b601d5415612b4057601d6000527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f90600090565b601d5460011015612b4057601d6000527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146135090600090565b600454811015612b405760046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0190600090565b6000546001600160a01b03163303612c0c57565b60405163118cdaa760e01b8152336004820152602490fd5b60ff60005460a01c16612c3357565b60405163d93c066560e01b8152600490fd5b67ffffffffffffffff8111612c5957604052565b634e487b7160e01b600052604160045260246000fd5b60c0810190811067ffffffffffffffff821117612c5957604052565b6040810190811067ffffffffffffffff821117612c5957604052565b6080810190811067ffffffffffffffff821117612c5957604052565b90601f8019910116810190811067ffffffffffffffff821117612c5957604052565b6003546040516370a0823160e01b8152306004820152906001600160a01b03906020908390602490829085165afa918215612d7057600092612d7c575b5081612d2c575050565b600c541690813b156103d85760009160248392604051948593849263b6b55f2560e01b845260048401525af18015612d7057612d655750565b612d6e90612c45565b565b6040513d6000823e3d90fd5b90916020823d8211612da7575b81612d9660209383612cc3565b810103126102265750519038612d22565b3d9150612d89565b15612db657565b60405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b6044820152606490fd5b91908203918211612df157565b634e487b7160e01b600052601160045260246000fd5b81810292918115918404141715612df157565b8115612e24570490565b634e487b7160e01b600052601260045260246000fd5b60405163a9059cbb60e01b60208083019182526001600160a01b039490941660248301526044808301959095529381529092600091612e7a606482612cc3565b519082855af115612d70576000513d612ec457506001600160a01b0381163b155b612ea25750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415612e9b565b67ffffffffffffffff8111612c595760051b60200190565b90612eef82612ecd565b612efc6040519182612cc3565b8281528092612f0d601f1991612ecd565b0190602036910137565b805115612b405760200190565b805160011015612b405760400190565b805160021015612b405760600190565b8051821015612b405760209160051b010190565b60125415612b405760126000527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344490600090565b60135415612b405760136000527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09090600090565b906002821015612fcd5752565b634e487b7160e01b600052602160045260246000fd5b90600182811c92168015613013575b6020831014612ffd57565b634e487b7160e01b600052602260045260246000fd5b91607f1691612ff2565b6018546000929161302d82612fe3565b80825291600190818116908115613092575060011461304b57505050565b919293506018600052600080516020613475833981519152916000925b84841061307a57505060209250010190565b80546020858501810191909152909301928101613068565b915050602093945060ff929192191683830152151560051b010190565b90600092918054916130c083612fe3565b91828252600193848116908160001461312257506001146130e2575b50505050565b90919394506000526020928360002092846000945b83861061310e5750505050010190388080806130dc565b8054858701830152940193859082016130f7565b9294505050602093945060ff191683830152151560051b010190388080806130dc565b601c5490818152602080910191601c6000527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a211916000905b82821061318b575050505090565b83546001600160a01b03168552938401936001938401939091019061317d565b6016549081815260208091019160166000527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b5124289916000905b8282106131f1575050505090565b83546001600160a01b0316855293840193600193840193909101906131e3565b606060ff6014548160018060a01b0391828116865260a01c1615156020850152601554908116604085015260a01c161515910152565b6000198114612df15760010190565b818110613261575050565b60008155600101613256565b808210613278575050565b612d6e9160176000526000805160206134958339815191529182019101613256565b60045467ffffffffffffffff8111612c5957600160401b8111612c595760165481601655808210613340575b50601660009081527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b80545b8383106132ff5750505050565b600191820180546001600160a01b039092167fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242898501559290910191906132f2565b61337090827fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242899182019101613256565b386132c6565b61337e613392565b6133866133fe565b8101809111612df15790565b6003546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa908115612d70576000916133d0575090565b906020823d82116133f6575b816133e960209383612cc3565b8101031261022657505190565b3d91506133dc565b600c546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa908115612d70576000916133d0575090565b908160209103126103d8575180151581036103d8579056fe5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b3b13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2ec624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15a26469706673582212205e88e28343c361d58fb8989b0f5c37b450ef112c575604d83170dc4df078147b64736f6c63430008140033bb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344466de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09000000000000000000000000025ca5451cd5a50ab1d324b5e64f32c07996618910000000000000000000000002d0e0814e62d80056181f5cd932274405966e4f0000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8000000000000000000000000a472438718fe7785107fcbe584d39183a6420d3625ca5451cd5a50ab1d324b5e64f32c079966189100020000000000000000001800000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000360000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000004c0000000000000000000000000000000000000000000000000000000000000054000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000c16da76872131bc6095f73b894b4757873dace100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010010ac2f9dae6539e77e372adb14b1bf8fbd16b3e800020000000000000000000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000374641076b68371e69d03c417dac3e5f236c32fa00000000000000000000000600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020374641076b68371e69d03c417dac3e5f236c32fa00000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d3dce716f3ef535c5ff8d041c1a41c3bd89b97ae000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe395500000000000000000000000000000000000000000000000000000000000000030000000000000000000000002d0e0814e62d80056181f5cd932274405966e4f0000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe3955000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe3955
Deployed Bytecode
0x608080604052600436101561001357600080fd5b600090813560e01c908163025e30b014612aed5750806302984de314612ac25780630e8fbb5a14612a205780631158808614612a05578063117da1ee14612974578063171d2189146129585780632638c09e1461292f57806327ced537146128ea5780632dc7d74c146128c15780632e1a7d4d1461265a5780633410fe6e1461263c57806334fbc9a11461261e5780633e0dc34e146126005780633f4ba83a1461230957806345349762146122eb5780634641257d146117c55780634d8225fc1461179c57806354518b1a1461177e578063573fef0a14610b465780635c975abb14610b2157806361d027b314610af85780636817031b14610a31578063715018a6146109d7578063722713f7146109bc5780637ff8f1e9146109995780638456cb59146107b65780638519359d1461078d5780638912cb8b1461076a5780638da5cb5b14610743578063951d6d20146107255780639bff5ddb14610707578063c9b17149146106e9578063d03153aa146106cb578063d0e30db01461062a578063d49d5181146105ef578063dced1a5a146105ab578063e7a7250a1461050c578063f0f44260146104c2578063f1a392da146104a4578063f2fde38b14610412578063fb61778714610289578063fbe75152146102295763fbfa77cf146101fa57600080fd5b3461022657806003193601126102265760105460405160089190911c6001600160a01b03168152602090f35b80fd5b503461022657602036600319011261022657600435601c5481101561028557601c6000527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a21101546040516001600160a01b039091168152602090f35b5080fd5b503461022657806003193601126102265760018060a01b036102b38160105460081c163314612daf565b8181600b54166102c16133fe565b813b1561040e578291602483926040519485938492632e1a7d4d60e01b845260048401525af18015610403576103ef575b505080600354166040516370a0823160e01b81523060048201526020928382602481865afa9081156103e457849286926103ac575b5060105460405163a9059cbb60e01b81526001600160a01b0360089290921c9092161660048201526024810191909152918290818681604481015b03925af180156103a157610374578280f35b8161039392903d1061039a575b61038b8183612cc3565b81019061343c565b5038808280f35b503d610381565b6040513d85823e3d90fd5b8381949293503d83116103dd575b6103c48183612cc3565b810103126103d85790518391610362610327565b600080fd5b503d6103ba565b6040513d87823e3d90fd5b6103f890612c45565b6102855781386102f2565b6040513d84823e3d90fd5b8280fd5b5034610226576020366003190112610226576004356001600160a01b038181169182900361040e57610442612bf8565b811561048b57600054826bffffffffffffffffffffffff60a01b821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b604051631e4fbdf760e01b815260048101849052602490fd5b50346102265780600319360112610226576020600d54604051908152f35b5034610226576020366003190112610226576004356001600160a01b03811690819003610285576104f1612bf8565b6bffffffffffffffffffffffff60a01b601154161760115580f35b5034610226578060031936011261022657600c54600254604051630cff5bdd60e21b81523060048201526001600160a01b039182166024820152929160209184916044918391165afa90811561059f579061056d575b602090604051908152f35b506020813d8211610597575b8161058660209383612cc3565b810103126103d85760209051610562565b3d9150610579565b604051903d90823e3d90fd5b503461022657602036600319011261022657600435906004548210156102265760206105d683612bc1565b905460405160039290921b1c6001600160a01b03168152f35b503461022657806003193601126102265760206040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8152f35b50346102265780600319360112610226576010543360089190911c6001600160a01b03161480156106c2575b1561066e57610663612c24565b61066b612ce5565b80f35b60405162461bcd60e51b815260206004820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152608490fd5b50303314610656565b50346102265780600319360112610226576020601b54604051908152f35b50346102265780600319360112610226576020600e54604051908152f35b50346102265780600319360112610226576020600654604051908152f35b50346102265780600319360112610226576020600854604051908152f35b5034610226578060031936011261022657546040516001600160a01b039091168152602090f35b5034610226578060031936011261022657602060ff601054166040519015158152f35b5034610226578060031936011261022657600b546040516001600160a01b039091168152602090f35b50346102265780600319360112610226576107cf612bf8565b6107d7612c24565b805460ff60a01b1916600160a01b1781556040513381526020907f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258908290a1600b5460405163095ea7b360e01b8082526001600160a01b03928316600483015260248201859052908381604481887f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3888165af180156103e45761097c575b5083838360025416604485600b5416604051948593849288845260048401528160248401525af180156103e45761095f575b50601d54600019810190811161094b57906108c28492612b09565b92905492604485600b541688876040519788958694898652600486015283602486015260031b1c165af19182156103e457849261092e575b506044836003541693600c541691866040519586948593845260048401528160248401525af180156103a157610374578280f35b61094490833d851161039a5761038b8183612cc3565b50386108fa565b634e487b7160e01b85526011600452602485fd5b61097590843d861161039a5761038b8183612cc3565b50386108a7565b61099290843d861161039a5761038b8183612cc3565b5038610875565b503461022657806003193601126102265760206109b4613392565b604051908152f35b503461022657806003193601126102265760206109b4613376565b50346102265780600319360112610226576109f0612bf8565b600080546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5034610226576020366003190112610226576004356001600160a01b0381169081810361040e57610a60612bf8565b803b15610ab35760108054610100600160a81b03191660089290921b610100600160a81b03169190911790557fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f308280a280f35b60405162461bcd60e51b815260206004820152601860248201527f5661756c74206d757374206265206120636f6e747261637400000000000000006044820152606490fd5b50346102265780600319360112610226576011546040516001600160a01b039091168152602090f35b503461022657806003193601126102265760ff6020915460a01c166040519015158152f35b503461022657806003193601126102265760105460ff8116610b66575080f35b60081c6001600160a01b0316330361174457610b80612c24565b600c5481906001600160a01b0316803b1561174157818091602460405180948193634274debf60e11b83523060048401525af180156104035761172d575b50506002546040516370a0823160e01b81523060048201526001600160a01b0390911690602081602481855afa9081156103a15783916116fb575b50610c3b575b50610c0c600d5442612de4565b600f5542600d55337f188a622567eeca997c3d494fd65f76ca910b90a50a0c44d5e37b2ea5539e027b8280a280f35b6020602491604051928380926370a0823160e01b82523060048301525afa9081156104035782916116c9575b508061138c575b50601d54600019810181811161137857610c8790612b09565b90546040516370a0823160e01b815230600482015291929091906020826024817f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b03165afa9182156103e4578592611344575b5081610cfa575b50505050610cf4612ce5565b38610bff565b610d0381612ee5565b855b8281106113185750505060a09060405190610d1f82612c6f565b858252856020830152856040830152856060830152856080830152606083830152610d48612b56565b9054600180861b039160031b1c166040830152610d63612b8a565b600180861b0391549060031b1c1660608301528560208301527f374641076b68371e69d03c417dac3e5f236c32fa0000000000000000000000068252604051610dab81612c8b565b6002815261060f60f31b6020820152838301528060808301526003610dce612f8c565b500155600180831b03600b541690856040519384926352bbbe2960e01b845260e06004850152805160e4850152610e0e6020820151610104860190612fc0565b60408101516000196001841b019081166101248601526060820151166101448501526080810151610164850152015160c061018484015280516101a4840181905290825b8281106112fc575050816101c484836020979583839684010152610e7860248301613211565b600160a48301524260c4830152601f01601f191681010301925af180156112b2576112d1575b50601d5460001981019081116112bd576020610ebb602492612b09565b90546040516370a0823160e01b81523060048201529384929091839160031b1c6001600160a01b03165afa9081156112b2578491611280575b5080610f01575b80610ce8565b90919260045493610f1185612ecd565b94610f1f6040519687612cc3565b808652610f2e601f1991612ecd565b01366020870137815b8551811015610f8a5780610f4d610f7f92612bc1565b9054600391821b1c6001600160a01b039081169185901b88901c1603610f8457845b610f798289612f44565b52613247565b610f37565b83610f6f565b50509150506040519160808301600160208501526060604085015281518091528360a081016020840192855b818110611267575050610fd8925084606083015203601f198101855284612cc3565b610fe061329a565b805167ffffffffffffffff9182821161125357600160401b821161125357602090611011836017548160175561326d565b0160178452835b82811061123157505050825190811161121d57611036601854612fe3565b601f81116111d6575b50602092601f82116001146111685792829382939261115d575b50508160011b916000199060031b1c1916176018555b60018060a01b03600b541690601a54823b15610285576040519063172b958560e31b8252600482015230602482015230604482015260806064820152608060848201526110bf61010482016131ab565b608319808383030160a484015260206017549283815201916017855260008051602061349583398151915290855b818110611147575050508394838581611111868296838599030160c484015261301d565b60ff60195416151560e483015203925af1801561040357611133575b80610efb565b61113c90612c45565b61022657803861112d565b82548552602090940193600192830192016110ed565b015190503880611059565b60188352601f1982169360008051602061347583398151915291845b8681106111be57508360019596106111a5575b505050811b0160185561106f565b015160001960f88460031b161c19169055388080611197565b91926020600181928685015181550194019201611184565b61120d9060188452600080516020613475833981519152601f840160051c81019160208510611213575b601f0160051c0190613256565b3861103f565b9091508190611200565b634e487b7160e01b82526041600452602482fd5b6001906020835193019281600080516020613495833981519152015501611018565b634e487b7160e01b84526041600452602484fd5b8451835260209485019488945090920191600101610fb6565b90506020813d6020116112aa575b8161129b60209383612cc3565b810103126103d8575138610ef4565b3d915061128e565b6040513d86823e3d90fd5b634e487b7160e01b84526011600452602484fd5b602090813d83116112f5575b6112e78183612cc3565b810103126103d85738610e9e565b503d6112dd565b60208183018101516101c489840101528795508a945001610e52565b8061132e9115611333575b87610f798285612f44565b610d05565b8461133e8285612f44565b52611323565b9091506020813d602011611370575b8161136060209383612cc3565b810103126103d857519038610ce1565b3d9150611353565b634e487b7160e01b83526011600452602483fd5b6040519061139982612ca7565b600382526060366020840137806113af83612f17565b52826113ba83612f24565b52826113c583612f34565b5260036113d0612f58565b5001558160018060a01b03600b54169160405192839163945bcec960e01b8352610124830160006004850152610120602485015260125480915261014484016101448260051b86010191601287527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34449187905b828210611666575050505083810360031901604485015261146390613145565b61146f60648501613211565b6003198482030160e485015260208083519283815201920190855b81811061164a57505050838380924261010483015203925af18015610403576115bb575b506040516370a0823160e01b81523060048201527f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b031690602081602481855afa9081156103a157839161157b575b5060008051602061345583398151915291611524604092600a5490612e07565b61156a6115496115376007548094612e1a565b9261154460085485612e07565b612e1a565b926115548484612de4565b9084600e5560018060a01b036011541690612e3a565b82519182526020820152a138610c6e565b90506020813d6020116115b3575b8161159660209383612cc3565b810103126103d85751600080516020613455833981519152611504565b3d9150611589565b3d8083833e6115ca8183612cc3565b81019060208183031261040e5780519067ffffffffffffffff8211611646570181601f8201121561040e5780519060208061160484612ecd565b6116116040519182612cc3565b848152019260051b82010192831161164657602001905b8282106116365750506114ae565b8151815260209182019101611628565b8380fd5b825184528896508795506020938401939092019160010161148a565b929597509260019194965060056116b6602092610143198c8203018652885481528489015484820152600289015460408201526003890154606082015260a09081608082015201600489016130af565b9601920192019287959389979593611443565b90506020813d6020116116f3575b816116e460209383612cc3565b810103126103d8575138610c67565b3d91506116d7565b90506020813d602011611725575b8161171660209383612cc3565b810103126103d8575138610bf9565b3d9150611709565b61173690612c45565b610226578038610bbe565b50fd5b60405162461bcd60e51b81526020600482015260126024820152715661756c74206465706f736974206f6e6c7960701b6044820152606490fd5b50346102265780600319360112610226576020600554604051908152f35b5034610226578060031936011261022657600c546040516001600160a01b039091168152602090f35b5034610226578060031936011261022657333b1580156122d1575b15612293576117ed612c24565b600c5481906001600160a01b0316803b1561174157818091602460405180948193634274debf60e11b83523060048401525af180156104035761227f575b50506002546040516370a0823160e01b81523060048201526001600160a01b0390911690602081602481855afa9081156103a157839161224d575b506118785750610c0c600d5442612de4565b6020602491604051928380926370a0823160e01b82523060048301525afa90811561040357829161221b575b5080611edb575b50601d546000198101818111611378576118c490612b09565b90546040516370a0823160e01b815230600482015291929091906020826024817f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b03165afa9182156103e4578592611ea7575b50816119305750505050610cf4612ce5565b61193981612ee5565b855b828110611e8d5750505060a0906040519061195582612c6f565b85825285602083015285604083015285606083015285608083015260608383015261197e612b56565b9054600180861b039160031b1c166040830152611999612b8a565b600180861b0391549060031b1c1660608301528560208301527f374641076b68371e69d03c417dac3e5f236c32fa00000000000000000000000682526040516119e181612c8b565b6002815261060f60f31b6020820152838301528060808301526003611a04612f8c565b500155600180831b03600b541690856040519384926352bbbe2960e01b845260e06004850152805160e4850152611a446020820151610104860190612fc0565b60408101516000196001841b019081166101248601526060820151166101448501526080810151610164850152015160c061018484015280516101a4840181905290825b828110611e71575050816101c484836020979583839684010152611aae60248301613211565b600160a48301524260c4830152601f01601f191681010301925af180156112b257611e46575b50601d5460001981019081116112bd576020611af1602492612b09565b90546040516370a0823160e01b81523060048201529384929091839160031b1c6001600160a01b03165afa9081156112b2578491611e14575b5080611b365780610ce8565b90919260045493611b4685612ecd565b94611b546040519687612cc3565b808652611b63601f1991612ecd565b01366020870137815b8551811015611b875780610f4d611b8292612bc1565b611b6c565b50509150506040519160808301600160208501526060604085015281518091528360a081016020840192855b818110611dfb575050611bd5925084606083015203601f198101855284612cc3565b611bdd61329a565b805167ffffffffffffffff9182821161125357600160401b821161125357602090611c0e836017548160175561326d565b0160178452835b828110611dd957505050825190811161121d57611c33601854612fe3565b601f8111611d9d575b50602092601f8211600114611d2f57928293829392611d24575b50508160011b916000199060031b1c1916176018555b60018060a01b03600b541690601a54823b15610285576040519063172b958560e31b825260048201523060248201523060448201526080606482015260806084820152611cbc61010482016131ab565b608319808383030160a484015260206017549283815201916017855260008051602061349583398151915290855b818110611d0e575050508394838581611111868296838599030160c484015261301d565b8254855260209094019360019283019201611cea565b015190503880611c56565b60188352601f1982169360008051602061347583398151915291845b868110611d855750836001959610611d6c575b505050811b01601855611c6c565b015160001960f88460031b161c19169055388080611d5e565b91926020600181928685015181550194019201611d4b565b611dd39060188452600080516020613475833981519152601f840160051c8101916020851061121357601f0160051c0190613256565b38611c3c565b6001906020835193019281600080516020613495833981519152015501611c15565b8451835260209485019488945090920191600101611bb3565b90506020813d602011611e3e575b81611e2f60209383612cc3565b810103126103d8575138611b2a565b3d9150611e22565b602090813d8311611e6a575b611e5c8183612cc3565b810103126103d85738611ad4565b503d611e52565b60208183018101516101c489840101528795508a945001611a88565b80611ea291156113335787610f798285612f44565b61193b565b9091506020813d602011611ed3575b81611ec360209383612cc3565b810103126103d85751903861191e565b3d9150611eb6565b60405190611ee882612ca7565b60038252606036602084013780611efe83612f17565b5282611f0983612f24565b5282611f1483612f34565b526003611f1f612f58565b5001558160018060a01b03600b54169160405192839163945bcec960e01b8352610124830160006004850152610120602485015260125480915261014484016101448260051b86010191601287527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34449187905b8282106121b85750505050838103600319016044850152611fb290613145565b611fbe60648501613211565b6003198482030160e485015260208083519283815201920190855b81811061219c57505050838380924261010483015203925af1801561040357612111575b506040516370a0823160e01b81523060048201527f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b031690602081602481855afa9081156103a15783916120d1575b5060008051602061345583398151915291612073604092600a5490612e07565b6120b06120866115376007548094612e1a565b926120918484612de4565b9084600e553033036120c1575b6011546001600160a01b031690612e3a565b82519182526020820152a1386118ab565b6120cc853383612e3a565b61209e565b90506020813d602011612109575b816120ec60209383612cc3565b810103126103d85751600080516020613455833981519152612053565b3d91506120df565b3d8083833e6121208183612cc3565b81019060208183031261040e5780519067ffffffffffffffff8211611646570181601f8201121561040e5780519060208061215a84612ecd565b6121676040519182612cc3565b848152019260051b82010192831161164657602001905b82821061218c575050611ffd565b815181526020918201910161217e565b8251845288965087955060209384019390920191600101611fd9565b92959750926001919496506005612208602092610143198c8203018652885481528489015484820152600289015460408201526003890154606082015260a09081608082015201600489016130af565b9601920192019287959389979593611f92565b90506020813d602011612245575b8161223660209383612cc3565b810103126103d85751386118a4565b3d9150612229565b90506020813d602011612277575b8161226860209383612cc3565b810103126103d8575138611866565b3d915061225b565b61228890612c45565b61022657803861182b565b60405162461bcd60e51b815260206004820152601660248201527508585d5d1a0810dbdb9d1c9858dd0812185c9d995cdd60521b6044820152606490fd5b506010543360089190911c6001600160a01b0316146117e0565b50346102265780600319360112610226576020600f54604051908152f35b5034610226578060031936011261022657612322612bf8565b805460ff8160a01c16156125ee5760ff60a01b191681556040513381526020907f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa908290a1600b5460405163095ea7b360e01b8082526001600160a01b0392831660048301527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6024830181905290918481604481897f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad3889165af18015612595576125d1575b50600254600b546040518481529085166001600160a01b0316600482015260248101839052908590829086168189816044810103925af18015612595576125b4575b50601d5460001981019081116125a05790848161244a61247e9594612b09565b9054898880600b541692604051809a819782968c84526004840160209093929193604081019460018060a01b031681520152565b039460031b1c165af1918215612595576124d1938693612578575b50600354600c5460405192835286166001600160a01b0316600483015260248201929092529283918516908290889082906044820190565b03925af180156112b25761255b575b5060105460081c1633148015612552575b156124ff5750610663612c24565b6084906040519062461bcd60e51b82526004820152602660248201527f4e6f7420617574686f72697a65642c206f6e6c79205661756c74206f7220537460448201526572617465677960d01b6064820152fd5b503033146124f1565b61257190833d851161039a5761038b8183612cc3565b50386124e0565b61258e90843d861161039a5761038b8183612cc3565b5038612499565b6040513d88823e3d90fd5b634e487b7160e01b86526011600452602486fd5b6125ca90853d871161039a5761038b8183612cc3565b503861242a565b6125e790853d871161039a5761038b8183612cc3565b50386123e8565b604051638dfc202b60e01b8152600490fd5b50346102265780600319360112610226576020601a54604051908152f35b50346102265780600319360112610226576020600a54604051908152f35b50346102265780600319360112610226576020600754604051908152f35b50346102265760208060031936011261028557600435906002600154146128af57600260015560018060a01b039161269a8360105460081c163314612daf565b8260035416906040519183836024816370a0823160e01b948582523060048301525afa92831561259557869361287c575b508583838110612783575b505050907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d938261272f93831161277b575b5060ff865460a01c16158061276e575b612745575b60035460105460081c82169116612e3a565b612737613376565b604051908152a16001805580f35b906127689061276261275960065483612e07565b60055490612e1a565b90612de4565b9061271d565b5060ff6010541615612718565b915038612708565b909192935061279786600c54169185612de4565b90803b1561040e57602483926040519485938492632e1a7d4d60e01b845260048401525af1801561259557612869575b508284600354169160246040518094819382523060048301525afa9081156103e457859161281a575b50907f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d85386126d6565b9190508282813d8311612862575b6128328183612cc3565b810103126103d85790517f5b6b431d4476a211bb7d41c20d1aab9ae2321deee0d20be3d9fc9b1093fa6e3d6127f0565b503d612828565b61287590959195612c45565b93386127c7565b9092508381813d83116128a8575b6128948183612cc3565b810103126128a4575191386126cb565b8580fd5b503d61288a565b604051633ee5aeb560e01b8152600490fd5b50346102265780600319360112610226576003546040516001600160a01b039091168152602090f35b50346102265780600319360112610226576040517f000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad386001600160a01b03168152602090f35b50346102265780600319360112610226576002546040516001600160a01b039091168152602090f35b5034610226578060031936011261022657602090604051908152f35b503461022657602036600319011261022657600435612991612bf8565b6105dc81116129cc576020817fe4a7fd2711237e77309a9a16ff636a748dbf956fd91f6e6da800d9302f441a7992601b55604051908152a180f35b60405162461bcd60e51b8152602060048201526011602482015270496e76616c696420746f6c6572616e636560781b6044820152606490fd5b503461022657806003193601126102265760206109b46133fe565b50346102265760203660031901126102265760043580151580910361028557612a47612bf8565b60ff8019601054169116809117601055600014612a8f57806006557f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af6020604051838152a180f35b600a6006557f3aa4413905e8f015896ec5880bdde24088ccb19b578f9fcf6800354d5320d4af6020604051600a8152a180f35b50346102265760203660031901126102265760043590601d548210156102265760206105d683612b09565b9050346102855781600319360112610285576020906009548152f35b601d54811015612b4057601d6000527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f0190600090565b634e487b7160e01b600052603260045260246000fd5b601d5415612b4057601d6000527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146134f90600090565b601d5460011015612b4057601d6000527f6d4407e7be21f808e6509aa9fa9143369579dd7d760fe20a2c09680fc146135090600090565b600454811015612b405760046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0190600090565b6000546001600160a01b03163303612c0c57565b60405163118cdaa760e01b8152336004820152602490fd5b60ff60005460a01c16612c3357565b60405163d93c066560e01b8152600490fd5b67ffffffffffffffff8111612c5957604052565b634e487b7160e01b600052604160045260246000fd5b60c0810190811067ffffffffffffffff821117612c5957604052565b6040810190811067ffffffffffffffff821117612c5957604052565b6080810190811067ffffffffffffffff821117612c5957604052565b90601f8019910116810190811067ffffffffffffffff821117612c5957604052565b6003546040516370a0823160e01b8152306004820152906001600160a01b03906020908390602490829085165afa918215612d7057600092612d7c575b5081612d2c575050565b600c541690813b156103d85760009160248392604051948593849263b6b55f2560e01b845260048401525af18015612d7057612d655750565b612d6e90612c45565b565b6040513d6000823e3d90fd5b90916020823d8211612da7575b81612d9660209383612cc3565b810103126102265750519038612d22565b3d9150612d89565b15612db657565b60405162461bcd60e51b8152602060048201526006602482015265085d985d5b1d60d21b6044820152606490fd5b91908203918211612df157565b634e487b7160e01b600052601160045260246000fd5b81810292918115918404141715612df157565b8115612e24570490565b634e487b7160e01b600052601260045260246000fd5b60405163a9059cbb60e01b60208083019182526001600160a01b039490941660248301526044808301959095529381529092600091612e7a606482612cc3565b519082855af115612d70576000513d612ec457506001600160a01b0381163b155b612ea25750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b60011415612e9b565b67ffffffffffffffff8111612c595760051b60200190565b90612eef82612ecd565b612efc6040519182612cc3565b8281528092612f0d601f1991612ecd565b0190602036910137565b805115612b405760200190565b805160011015612b405760400190565b805160021015612b405760600190565b8051821015612b405760209160051b010190565b60125415612b405760126000527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344490600090565b60135415612b405760136000527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09090600090565b906002821015612fcd5752565b634e487b7160e01b600052602160045260246000fd5b90600182811c92168015613013575b6020831014612ffd57565b634e487b7160e01b600052602260045260246000fd5b91607f1691612ff2565b6018546000929161302d82612fe3565b80825291600190818116908115613092575060011461304b57505050565b919293506018600052600080516020613475833981519152916000925b84841061307a57505060209250010190565b80546020858501810191909152909301928101613068565b915050602093945060ff929192191683830152151560051b010190565b90600092918054916130c083612fe3565b91828252600193848116908160001461312257506001146130e2575b50505050565b90919394506000526020928360002092846000945b83861061310e5750505050010190388080806130dc565b8054858701830152940193859082016130f7565b9294505050602093945060ff191683830152151560051b010190388080806130dc565b601c5490818152602080910191601c6000527f0e4562a10381dec21b205ed72637e6b1b523bdd0e4d4d50af5cd23dd4500a211916000905b82821061318b575050505090565b83546001600160a01b03168552938401936001938401939091019061317d565b6016549081815260208091019160166000527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b5124289916000905b8282106131f1575050505090565b83546001600160a01b0316855293840193600193840193909101906131e3565b606060ff6014548160018060a01b0391828116865260a01c1615156020850152601554908116604085015260a01c161515910152565b6000198114612df15760010190565b818110613261575050565b60008155600101613256565b808210613278575050565b612d6e9160176000526000805160206134958339815191529182019101613256565b60045467ffffffffffffffff8111612c5957600160401b8111612c595760165481601655808210613340575b50601660009081527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b80545b8383106132ff5750505050565b600191820180546001600160a01b039092167fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242898501559290910191906132f2565b61337090827fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242899182019101613256565b386132c6565b61337e613392565b6133866133fe565b8101809111612df15790565b6003546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa908115612d70576000916133d0575090565b906020823d82116133f6575b816133e960209383612cc3565b8101031261022657505190565b3d91506133dc565b600c546040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa908115612d70576000916133d0575090565b908160209103126103d8575180151581036103d8579056fe5c48b059bc2759d631bf4951f184f5641ca6db26a8ad956276910a01562d59b3b13d2d76d1f4b7be834882e410b3e3a8afaf69f83600ae24db354391d2378d2ec624b66cc0138b8fabc209247f72d758e1cf3343756d543badbf24212bed8c15a26469706673582212205e88e28343c361d58fb8989b0f5c37b450ef112c575604d83170dc4df078147b64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000025ca5451cd5a50ab1d324b5e64f32c07996618910000000000000000000000002d0e0814e62d80056181f5cd932274405966e4f0000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8000000000000000000000000a472438718fe7785107fcbe584d39183a6420d3625ca5451cd5a50ab1d324b5e64f32c079966189100020000000000000000001800000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000360000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000004c0000000000000000000000000000000000000000000000000000000000000054000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000c16da76872131bc6095f73b894b4757873dace100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010010ac2f9dae6539e77e372adb14b1bf8fbd16b3e800020000000000000000000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000374641076b68371e69d03c417dac3e5f236c32fa00000000000000000000000600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020374641076b68371e69d03c417dac3e5f236c32fa00000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d3dce716f3ef535c5ff8d041c1a41c3bd89b97ae000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe395500000000000000000000000000000000000000000000000000000000000000030000000000000000000000002d0e0814e62d80056181f5cd932274405966e4f0000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe3955000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad380000000000000000000000000000000000000000000000000000000000000002000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe3955
-----Decoded View---------------
Arg [0] : _staking_token (address): 0x25ca5451CD5a50AB1d324B5E64F32C0799661891
Arg [1] : _reward_token (address): 0x2D0E0814E62D80056181F5cd932274405966e4f0
Arg [2] : _beets (address): 0xBA12222222228d8Ba445958a75a0704d566BF2C8
Arg [3] : _beetsGauge (address): 0xa472438718Fe7785107fCbE584d39183a6420D36
Arg [4] : _poolId (bytes32): 0x25ca5451cd5a50ab1d324b5e64f32c0799661891000200000000000000000018
Arg [5] : _batchRewardToNative (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput],System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [6] : _batchNativeToStaking (tuple[]): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [7] : _poolTokens (address[]): 0xd3DCe716f3eF535C5Ff8d041c1A41C3bd89b97aE,0xE5DA20F15420aD15DE0fa650600aFc998bbE3955
Arg [8] : _rewardToNative (address[]): 0x2D0E0814E62D80056181F5cd932274405966e4f0,0xE5DA20F15420aD15DE0fa650600aFc998bbE3955,0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38
Arg [9] : _nativeToStaking (address[]): 0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38,0xE5DA20F15420aD15DE0fa650600aFc998bbE3955
Arg [10] : _harvestOnDeposit (bool): True
Arg [11] : _treasury (address): 0x0c16Da76872131bC6095f73b894B4757873dAce1
-----Encoded View---------------
45 Constructor Arguments found :
Arg [0] : 00000000000000000000000025ca5451cd5a50ab1d324b5e64f32c0799661891
Arg [1] : 0000000000000000000000002d0e0814e62d80056181f5cd932274405966e4f0
Arg [2] : 000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8
Arg [3] : 000000000000000000000000a472438718fe7785107fcbe584d39183a6420d36
Arg [4] : 25ca5451cd5a50ab1d324b5e64f32c0799661891000200000000000000000018
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000360
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000460
Arg [8] : 00000000000000000000000000000000000000000000000000000000000004c0
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000540
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [11] : 0000000000000000000000000c16da76872131bc6095f73b894b4757873dace1
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [15] : 10ac2f9dae6539e77e372adb14b1bf8fbd16b3e8000200000000000000000005
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [19] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [21] : 374641076b68371e69d03c417dac3e5f236c32fa000000000000000000000006
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [25] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [29] : 374641076b68371e69d03c417dac3e5f236c32fa000000000000000000000006
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [31] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [33] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [34] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [35] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [36] : 000000000000000000000000d3dce716f3ef535c5ff8d041c1a41c3bd89b97ae
Arg [37] : 000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe3955
Arg [38] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [39] : 0000000000000000000000002d0e0814e62d80056181f5cd932274405966e4f0
Arg [40] : 000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe3955
Arg [41] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [42] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [43] : 000000000000000000000000039e2fb66102314ce7b64ce5ce3e5183bc94ad38
Arg [44] : 000000000000000000000000e5da20f15420ad15de0fa650600afc998bbe3955
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.