Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
AuraBalStrategy
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import { Ownable } from "@openzeppelin/contracts-0.8/access/Ownable.sol"; import { SafeERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/utils/SafeERC20.sol"; import { IERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/IERC20.sol"; import { IGenericVault } from "../interfaces/IGenericVault.sol"; import { IRewardHandler } from "../interfaces/balancer/IRewardHandler.sol"; import { IVirtualRewards } from "../interfaces/IVirtualRewards.sol"; import { AuraBalStrategyBase } from "./StrategyBase.sol"; /** * @title AuraBalStrategy * @author llama.airforce -> AuraFinance * @notice Changes: * - remove option to lock auraBAL instead of swapping it * - remove paltform fee */ contract AuraBalStrategy is Ownable, AuraBalStrategyBase { using SafeERC20 for IERC20; address public immutable vault; address[] public rewardTokens; mapping(address => address) public rewardHandlers; uint256 public constant FEE_DENOMINATOR = 10000; constructor( address _vault, // AuraBalStrategyBase address _balVault, address _auraBalStaking, address _balToken, address _wethToken, address _auraToken, address _auraBalToken, address _bbusdToken, bytes32 _auraBalBalETHBptPoolId, bytes32 _balETHPoolId ) AuraBalStrategyBase( _balVault, _auraBalStaking, _balToken, _wethToken, _auraToken, _auraBalToken, _bbusdToken, _auraBalBalETHBptPoolId, _balETHPoolId ) { vault = _vault; } /// @notice Set approvals for the contracts used when swapping & staking function setApprovals() external { IERC20(AURABAL_TOKEN).safeApprove(address(auraBalStaking), 0); IERC20(AURABAL_TOKEN).safeApprove(address(auraBalStaking), type(uint256).max); IERC20(BAL_TOKEN).safeApprove(address(balVault), 0); IERC20(BAL_TOKEN).safeApprove(address(balVault), type(uint256).max); IERC20(WETH_TOKEN).safeApprove(address(balVault), 0); IERC20(WETH_TOKEN).safeApprove(address(balVault), type(uint256).max); IERC20(BAL_ETH_POOL_TOKEN).safeApprove(address(balVault), 0); IERC20(BAL_ETH_POOL_TOKEN).safeApprove(address(balVault), type(uint256).max); } /// @notice update the token to handler mapping function _updateRewardToken(address _token, address _handler) internal { rewardHandlers[_token] = _handler; } /// @notice Add a reward token and its handler /// @dev For tokens that should not be swapped (i.e. BAL rewards) /// use address as zero handler /// @param _token the reward token to add /// @param _handler address of the contract that will sell for BAL or ETH function addRewardToken(address _token, address _handler) external onlyOwner { rewardTokens.push(_token); _updateRewardToken(_token, _handler); } /// @notice Update the handler of a reward token /// @dev Used to update a handler or retire a token (set handler to address 0) /// @param _token the reward token to add /// @param _handler address of the contract that will sell for BAL or ETH function updateRewardToken(address _token, address _handler) external onlyOwner { _updateRewardToken(_token, _handler); } /// @notice returns the number of reward tokens /// @return the number of reward tokens function totalRewardTokens() external view returns (uint256) { return rewardTokens.length; } /// @notice Query the amount currently staked /// @return total - the total amount of tokens staked function totalUnderlying() public view returns (uint256 total) { return auraBalStaking.balanceOf(address(this)); } /// @notice Deposits underlying tokens in the staking contract function stake(uint256 _amount) public onlyVault { auraBalStaking.stake(_amount); } /// @notice Withdraw a certain amount from the staking contract /// @param _amount - the amount to withdraw /// @dev Can only be called by the vault function withdraw(uint256 _amount) external onlyVault { auraBalStaking.withdraw(_amount, false); IERC20(AURABAL_TOKEN).safeTransfer(vault, _amount); } /// @notice Claim rewards and swaps them to FXS for restaking /// @dev Can be called by the vault only /// @param _minAmountOut - min amount of LP tokens to receive w/o revert /// @return harvested - the amount harvested function harvest(uint256 _minAmountOut) public onlyVault returns (uint256 harvested) { // claim rewards auraBalStaking.getReward(); // process extra rewards uint256 extraRewardCount = IGenericVault(vault).extraRewardsLength(); for (uint256 i; i < extraRewardCount; ++i) { address rewards = IGenericVault(vault).extraRewards(i); address token = IVirtualRewards(rewards).rewardToken(); uint256 balance = IERC20(token).balanceOf(address(this)); if (balance > 0) { IERC20(token).safeTransfer(rewards, balance); IVirtualRewards(rewards).queueNewRewards(balance); } } // process rewards address[] memory _rewardTokens = rewardTokens; for (uint256 i; i < _rewardTokens.length; ++i) { address _tokenHandler = rewardHandlers[_rewardTokens[i]]; if (_tokenHandler == address(0)) { continue; } uint256 _tokenBalance = IERC20(_rewardTokens[i]).balanceOf(address(this)); if (_tokenBalance > 0) { IERC20(_rewardTokens[i]).safeTransfer(_tokenHandler, _tokenBalance); IRewardHandler(_tokenHandler).sell(); } } uint256 _wethBalance = IERC20(WETH_TOKEN).balanceOf(address(this)); uint256 _balBalance = IERC20(BAL_TOKEN).balanceOf(address(this)); if (_wethBalance + _balBalance == 0) { return 0; } // Deposit to BLP _depositToBalEthPool(_balBalance, _wethBalance, 0); // Swap the LP tokens for aura BAL uint256 _bptBalance = IERC20(BAL_ETH_POOL_TOKEN).balanceOf(address(this)); _swapBptToAuraBal(_bptBalance, _minAmountOut); uint256 _auraBalBalance = IERC20(AURABAL_TOKEN).balanceOf(address(this)); if (_auraBalBalance > 0) { stake(_auraBalBalance); return _auraBalBalance; } return 0; } modifier onlyVault() { require(vault == msg.sender, "Vault calls only"); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../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. * * By default, the owner account will be the one that deploys the contract. 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; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing 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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _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 v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 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 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @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). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) 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 `amount` 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 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; interface IGenericVault { function withdraw(address _to, uint256 _shares) external returns (uint256 withdrawn); function withdrawAll(address _to) external returns (uint256 withdrawn); function depositAll(address _to) external returns (uint256 _shares); function deposit(address _to, uint256 _amount) external returns (uint256 _shares); function harvest() external; function balanceOfUnderlying(address user) external view returns (uint256 amount); function totalUnderlying() external view returns (uint256 total); function totalSupply() external view returns (uint256 total); function underlying() external view returns (address); function strategy() external view returns (address); function platform() external view returns (address); function setPlatform(address _platform) external; function setPlatformFee(uint256 _fee) external; function setCallIncentive(uint256 _incentive) external; function setWithdrawalPenalty(uint256 _penalty) external; function setApprovals() external; function callIncentive() external view returns (uint256); function withdrawalPenalty() external view returns (uint256); function platformFee() external view returns (uint256); function balanceOf(address owner) external view returns (uint256); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 value) external returns (bool); function transfer(address to, uint256 value) external returns (bool); function transferFrom( address from, address to, uint256 value ) external returns (bool); function extraRewardsLength() external view returns (uint256); function extraRewards(uint256) external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; interface IRewardHandler { function sell() external; function setPendingOwner(address _po) external; function applyPendingOwner() external; function rescueToken(address _token, address _to) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; interface IVirtualRewardFactory { function createVirtualReward( address, address, address ) external returns (address); } interface IVirtualRewards { function queueNewRewards(uint256) external; function rewardToken() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import { IBasicRewards } from "../interfaces/IBasicRewards.sol"; import { IAsset, IBalancerVault } from "../interfaces/balancer/IBalancerCore.sol"; /** * @title AuraBalStrategyBase * @author llama.airforce -> AuraFinance * @notice Changes: * - remove BAL Depositor address */ contract AuraBalStrategyBase { address public immutable BBUSD_TOKEN; address public immutable AURA_TOKEN; address public immutable AURABAL_TOKEN; address public immutable WETH_TOKEN; address public immutable BAL_TOKEN; address public immutable BAL_ETH_POOL_TOKEN; bytes32 private immutable AURABAL_BAL_ETH_BPT_POOL_ID; bytes32 private immutable BAL_ETH_POOL_ID; IBasicRewards public immutable auraBalStaking; IBalancerVault public immutable balVault; constructor( address _balVault, address _auraBalStaking, // tokens address _balToken, address _wethToken, address _auraToken, address _auraBalToken, address _bbusdToken, // pools bytes32 _auraBalBalETHBptPoolId, bytes32 _balETHPoolId ) { ( address balEthPoolToken, /* */ ) = IBalancerVault(_balVault).getPool(_balETHPoolId); require(balEthPoolToken != address(0), "!balEthPoolToken"); balVault = IBalancerVault(_balVault); auraBalStaking = IBasicRewards(_auraBalStaking); BAL_TOKEN = _balToken; WETH_TOKEN = _wethToken; AURA_TOKEN = _auraToken; AURABAL_TOKEN = _auraBalToken; BBUSD_TOKEN = _bbusdToken; BAL_ETH_POOL_TOKEN = balEthPoolToken; AURABAL_BAL_ETH_BPT_POOL_ID = _auraBalBalETHBptPoolId; BAL_ETH_POOL_ID = _balETHPoolId; } /// @notice Deposit BAL and WETH to the BAL-ETH pool /// @param _wethAmount - amount of wETH to deposit /// @param _balAmount - amount of BAL to deposit /// @param _minAmountOut - min amount of BPT expected function _depositToBalEthPool( uint256 _balAmount, uint256 _wethAmount, uint256 _minAmountOut ) internal { IAsset[] memory _assets = new IAsset[](2); _assets[0] = IAsset(BAL_TOKEN); _assets[1] = IAsset(WETH_TOKEN); uint256[] memory _amountsIn = new uint256[](2); _amountsIn[0] = _balAmount; _amountsIn[1] = _wethAmount; balVault.joinPool( BAL_ETH_POOL_ID, address(this), address(this), IBalancerVault.JoinPoolRequest( _assets, _amountsIn, abi.encode(IBalancerVault.JoinKind.EXACT_TOKENS_IN_FOR_BPT_OUT, _amountsIn, _minAmountOut), false ) ); } function _swapBptToAuraBal(uint256 _amount, uint256 _minAmountOut) internal returns (uint256) { IBalancerVault.SingleSwap memory _auraSwapParams = IBalancerVault.SingleSwap({ poolId: AURABAL_BAL_ETH_BPT_POOL_ID, kind: IBalancerVault.SwapKind.GIVEN_IN, assetIn: IAsset(BAL_ETH_POOL_TOKEN), assetOut: IAsset(AURABAL_TOKEN), amount: _amount, userData: new bytes(0) }); return balVault.swap(_auraSwapParams, _createSwapFunds(), _minAmountOut, block.timestamp + 1); } /// @notice Returns a FundManagement struct used for BAL swaps function _createSwapFunds() internal view returns (IBalancerVault.FundManagement memory) { return IBalancerVault.FundManagement({ sender: address(this), fromInternalBalance: false, recipient: payable(address(this)), toInternalBalance: false }); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @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://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @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, it is bubbled up by this * function (like regular Solidity function calls). * * 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. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @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`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // 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 { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; interface IBasicRewards { function stakeFor(address, uint256) external returns (bool); function balanceOf(address) external view returns (uint256); function totalSupply() external view returns (uint256); function earned(address) external view returns (uint256); function withdrawAll(bool) external returns (bool); function withdraw(uint256, bool) external returns (bool); function withdraw(address, uint256) external; function withdrawAndUnwrap(uint256 amount, bool claim) external returns (bool); function getReward() external returns (bool); function stake(uint256) external returns (bool); function stake(address, uint256) external; function extraRewards(uint256) external view returns (address); function exit() external returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import { IERC20 } from "@openzeppelin/contracts-0.8/token/ERC20/IERC20.sol"; interface IPriceOracle { struct OracleAverageQuery { Variable variable; uint256 secs; uint256 ago; } enum Variable { PAIR_PRICE, BPT_PRICE, INVARIANT } function getTimeWeightedAverage(OracleAverageQuery[] memory queries) external view returns (uint256[] memory results); } interface IBalancerVault { enum PoolSpecialization { GENERAL, MINIMAL_SWAP_INFO, TWO_TOKEN } enum JoinKind { INIT, EXACT_TOKENS_IN_FOR_BPT_OUT, TOKEN_IN_FOR_EXACT_BPT_OUT, ALL_TOKENS_IN_FOR_EXACT_BPT_OUT } enum SwapKind { GIVEN_IN, GIVEN_OUT } struct BatchSwapStep { bytes32 poolId; uint256 assetInIndex; uint256 assetOutIndex; uint256 amount; bytes userData; } function batchSwap( SwapKind kind, BatchSwapStep[] memory swaps, IAsset[] memory assets, FundManagement memory funds, int256[] memory limits, uint256 deadline ) external payable returns (int256[] memory); 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; } function getPool(bytes32 poolId) external view returns (address, PoolSpecialization); function getPoolTokens(bytes32 poolId) external view returns ( address[] memory tokens, uint256[] memory balances, uint256 lastChangeBlock ); function joinPool( bytes32 poolId, address sender, address recipient, JoinPoolRequest memory request ) external payable; function swap( SingleSwap memory singleSwap, FundManagement memory funds, uint256 limit, uint256 deadline ) external returns (uint256 amountCalculated); function exitPool( bytes32 poolId, address sender, address payable recipient, ExitPoolRequest memory request ) external; function getInternalBalance(address user, address[] memory tokens) external view returns (uint256[] memory); function queryBatchSwap( SwapKind kind, BatchSwapStep[] memory swaps, IAsset[] memory assets, FundManagement memory funds ) external returns (int256[] memory assetDeltas); struct ExitPoolRequest { IAsset[] assets; uint256[] minAmountsOut; bytes userData; bool toInternalBalance; } enum ExitKind { EXACT_BPT_IN_FOR_ONE_TOKEN_OUT, EXACT_BPT_IN_FOR_TOKENS_OUT, BPT_IN_FOR_EXACT_TOKENS_OUT, MANAGEMENT_FEE_TOKENS_OUT // for ManagedPool } } interface IAsset { // solhint-disable-previous-line no-empty-blocks } interface IBalancerPool { function getPoolId() external view returns (bytes32); function getNormalizedWeights() external view returns (uint256[] memory); function getSwapEnabled() external view returns (bool); function getOwner() external view returns (address); function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); } interface ILBPFactory { function create( string memory name, string memory symbol, IERC20[] memory tokens, uint256[] memory weights, uint256 swapFeePercentage, address owner, bool swapEnabledOnStart ) external returns (address); } interface ILBP { function setSwapEnabled(bool swapEnabled) external; function updateWeightsGradually( uint256 startTime, uint256 endTime, uint256[] memory endWeights ) external; function getGradualWeightUpdateParams() external view returns ( uint256 startTime, uint256 endTime, uint256[] memory endWeights ); } interface IStablePoolFactory { function create( string memory name, string memory symbol, IERC20[] memory tokens, uint256 amplificationParameter, uint256 swapFeePercentage, address owner ) external returns (address); } interface IWeightedPool2TokensFactory { function create( string memory name, string memory symbol, IERC20[] memory tokens, uint256[] memory weights, uint256 swapFeePercentage, bool oracleEnabled, address owner ) external returns (address); } interface IRateProvider { function getRate() external view returns (uint256); } interface IWeightedPoolFactory { /** * @dev Deploys a new `WeightedPool`. */ function create( string memory name, string memory symbol, IERC20[] memory tokens, uint256[] memory normalizedWeights, IRateProvider[] memory rateProviders, uint256 swapFeePercentage, address owner ) external returns (address); }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 800 }, "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":"_vault","type":"address"},{"internalType":"address","name":"_balVault","type":"address"},{"internalType":"address","name":"_auraBalStaking","type":"address"},{"internalType":"address","name":"_balToken","type":"address"},{"internalType":"address","name":"_wethToken","type":"address"},{"internalType":"address","name":"_auraToken","type":"address"},{"internalType":"address","name":"_auraBalToken","type":"address"},{"internalType":"address","name":"_bbusdToken","type":"address"},{"internalType":"bytes32","name":"_auraBalBalETHBptPoolId","type":"bytes32"},{"internalType":"bytes32","name":"_balETHPoolId","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"AURABAL_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AURA_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BAL_ETH_POOL_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BAL_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BBUSD_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_handler","type":"address"}],"name":"addRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auraBalStaking","outputs":[{"internalType":"contract IBasicRewards","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balVault","outputs":[{"internalType":"contract IBalancerVault","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minAmountOut","type":"uint256"}],"name":"harvest","outputs":[{"internalType":"uint256","name":"harvested","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardHandlers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setApprovals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalRewardTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUnderlying","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_handler","type":"address"}],"name":"updateRewardToken","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
6101e06040523480156200001257600080fd5b5060405162002526380380620025268339810160408190526200003591620001d2565b888888888888888888620000493362000165565b60405163f6c0092760e01b8152600481018290526000906001600160a01b038b169063f6c00927906024016040805180830381865afa15801562000091573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000b791906200028f565b5090506001600160a01b038116620001085760405162461bcd60e51b815260206004820152601060248201526f10b130b622ba342837b7b62a37b5b2b760811b604482015260640160405180910390fd5b6001600160a01b03998a166101a052978916610180529588166101005293871660e05291861660a052851660c0528416608052918316610120526101409190915261016052999099166101c05250620002ce975050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b0381168114620001cd57600080fd5b919050565b6000806000806000806000806000806101408b8d031215620001f357600080fd5b620001fe8b620001b5565b99506200020e60208c01620001b5565b98506200021e60408c01620001b5565b97506200022e60608c01620001b5565b96506200023e60808c01620001b5565b95506200024e60a08c01620001b5565b94506200025e60c08c01620001b5565b93506200026e60e08c01620001b5565b92506101008b015191506101208b015190509295989b9194979a5092959850565b60008060408385031215620002a357600080fd5b620002ae83620001b5565b9150602083015160038110620002c357600080fd5b809150509250929050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516120ce62000458600039600081816103e0015281816104da015281816106050152818161096b01528181610af301528181610be50152610c8b01526000818161029201528181610797015281816107ec0152818161084201528181610897015281816108ed015281816109420152818161177f015261195401526000818161026301528181610560015281816106ec01528181610741015281816109ea01528181610a770152610b5e015260006117ae0152600061187f015260008181610197015281816108cb015281816109200152818161119e01526118c201526000818161020201528181610775015281816107ca015281816110f3015261167c01526000818161023c01528181610820015281816108750152818161105d01526116d00152600081816102fb015281816105e3015281816106ca0152818161071f0152818161123601526118ea0152600061034e015260006102cc01526120ce6000f3fe608060405234801561001057600080fd5b506004361061018d5760003560e01c80638757b15b116100e3578063d73792a91161008c578063ede202a811610066578063ede202a81461039f578063f2fde38b146103c8578063fbfa77cf146103db57600080fd5b8063d73792a914610370578063ddc6326214610379578063ded2379b1461038c57600080fd5b8063a694fc3a116100bd578063a694fc3a1461032e578063c70920bc14610341578063d1e1a8671461034957600080fd5b80638757b15b146102ee5780638a5a167e146102f65780638da5cb5b1461031d57600080fd5b806337d277d41161014557806377aba2131161011f57806377aba2131461028d5780637bb7bed1146102b45780637c6b513f146102c757600080fd5b806337d277d4146102375780634128f86e1461025e578063715018a61461028557600080fd5b806323cb23901161017657806323cb2390146101e85780632abc2a99146101fd5780632e1a7d4d1461022457600080fd5b80630762a3dd146101925780631b0875a6146101d6575b600080fd5b6101b97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6001545b6040519081526020016101cd565b6101fb6101f6366004611cc9565b610402565b005b6101b97f000000000000000000000000000000000000000000000000000000000000000081565b6101fb610232366004611d02565b6104d8565b6101b97f000000000000000000000000000000000000000000000000000000000000000081565b6101b97f000000000000000000000000000000000000000000000000000000000000000081565b6101fb61062d565b6101b97f000000000000000000000000000000000000000000000000000000000000000081565b6101b96102c2366004611d02565b610693565b6101b97f000000000000000000000000000000000000000000000000000000000000000081565b6101fb6106bd565b6101b97f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b03166101b9565b6101fb61033c366004611d02565b610969565b6101da610a5f565b6101b97f000000000000000000000000000000000000000000000000000000000000000081565b6101da61271081565b6101da610387366004611d02565b610aef565b6101fb61039a366004611cc9565b6112d7565b6101b96103ad366004611d1b565b6002602052600090815260409020546001600160a01b031681565b6101fb6103d6366004611d1b565b61136c565b6101b97f000000000000000000000000000000000000000000000000000000000000000081565b6000546001600160a01b031633146104615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600180548082019091557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0393841673ffffffffffffffffffffffffffffffffffffffff1991821681179092556000918252600260205260409091208054929093169116179055565b5050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146105435760405162461bcd60e51b815260206004820152601060248201526f5661756c742063616c6c73206f6e6c7960801b6044820152606401610458565b604051631c683a1b60e11b815260048101829052600060248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906338d07436906044016020604051808303816000875af11580156105b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d59190611d38565b5061062a6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f00000000000000000000000000000000000000000000000000000000000000008361144b565b50565b6000546001600160a01b031633146106875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610458565b61069160006114e0565b565b600181815481106106a357600080fd5b6000918252602090912001546001600160a01b0316905081565b6107126001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000600061153d565b6107686001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000060001961153d565b6107bd6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000600061153d565b6108136001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000060001961153d565b6108686001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000600061153d565b6108be6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000060001961153d565b6109136001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f0000000000000000000000000000000000000000000000000000000000000000600061153d565b6106916001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000060001961153d565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146109d45760405162461bcd60e51b815260206004820152601060248201526f5661756c742063616c6c73206f6e6c7960801b6044820152606401610458565b60405163534a7e1d60e11b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a694fc3a906024016020604051808303816000875af1158015610a3b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d49190611d38565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610ac6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aea9190611d5a565b905090565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314610b5c5760405162461bcd60e51b815260206004820152601060248201526f5661756c742063616c6c73206f6e6c7960801b6044820152606401610458565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633d18b9126040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610bbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be09190611d38565b5060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d55a23f46040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c659190611d5a565b905060005b81811015610e5d57604051632061aa2360e11b8152600481018290526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906340c3544690602401602060405180830381865afa158015610cda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfe9190611d73565b90506000816001600160a01b031663f7c618c16040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d649190611d73565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610dae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd29190611d5a565b90508015610e4957610dee6001600160a01b038316848361144b565b60405163590a41f560e01b8152600481018290526001600160a01b0384169063590a41f590602401600060405180830381600087803b158015610e3057600080fd5b505af1158015610e44573d6000803e3d6000fd5b505050505b50505080610e5690611da6565b9050610c6a565b5060006001805480602002602001604051908101604052809291908181526020018280548015610eb657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610e98575b5050505050905060005b815181101561104457600060026000848481518110610ee157610ee1611dc1565b6020908102919091018101516001600160a01b039081168352908201929092526040016000205416905080610f165750611034565b6000838381518110610f2a57610f2a611dc1565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610f7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9e9190611d5a565b9050801561103157610fdd8282868681518110610fbd57610fbd611dc1565b60200260200101516001600160a01b031661144b9092919063ffffffff16565b816001600160a01b031663457100746040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561101857600080fd5b505af115801561102c573d6000803e3d6000fd5b505050505b50505b61103d81611da6565b9050610ec0565b506040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156110ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d09190611d5a565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa15801561113a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115e9190611d5a565b905061116a8183611dd7565b61117a5750600095945050505050565b61118681836000611659565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156111ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112119190611d5a565b905061121d818861186f565b506040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015611285573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a99190611d5a565b905080156112c7576112ba81610969565b95506112d2945050505050565b600096505050505050505b919050565b6000546001600160a01b031633146113315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610458565b6001600160a01b039182166000908152600260205260409020805473ffffffffffffffffffffffffffffffffffffffff191691909216179055565b6000546001600160a01b031633146113c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610458565b6001600160a01b0381166114425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610458565b61062a816114e0565b6040516001600160a01b0383166024820152604481018290526114db90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611a3e565b505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8015806115b75750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611591573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b59190611d5a565b155b6116295760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610458565b6040516001600160a01b0383166024820152604481018290526114db90849063095ea7b360e01b90606401611477565b6040805160028082526060820183526000926020830190803683370190505090507f0000000000000000000000000000000000000000000000000000000000000000816000815181106116ae576116ae611dc1565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000008160018151811061170257611702611dc1565b6001600160a01b03929092166020928302919091018201526040805160028082526060820183526000939192909183019080368337019050509050848160008151811061175157611751611dc1565b602002602001018181525050838160018151811061177157611771611dc1565b6020026020010181815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b95cac287f0000000000000000000000000000000000000000000000000000000000000000303060405180608001604052808881526020018781526020016001888b6040516020016117fc93929190611e05565b6040516020818303038152906040528152602001600015158152506040518563ffffffff1660e01b81526004016118369493929190611f03565b600060405180830381600087803b15801561185057600080fd5b505af1158015611864573d6000803e3d6000fd5b505050505050505050565b6000806040518060c001604052807f00000000000000000000000000000000000000000000000000000000000000008152602001600060018111156118b6576118b6611def565b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660208301527f00000000000000000000000000000000000000000000000000000000000000001660408201526060810186905260800160006040519080825280601f01601f191660200182016040528015611945576020820181803683370190505b50905290506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166352bbbe29826119c860408051608081018252600080825260208201819052918101829052606081019190915250604080516080810182523080825260006020830181905292820152606081019190915290565b866119d4426001611dd7565b6040518563ffffffff1660e01b81526004016119f39493929190611fce565b6020604051808303816000875af1158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a369190611d5a565b949350505050565b6000611a93826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b239092919063ffffffff16565b8051909150156114db5780806020019051810190611ab19190611d38565b6114db5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610458565b6060611b328484600085611b3c565b90505b9392505050565b606082471015611bb45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610458565b843b611c025760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610458565b600080866001600160a01b03168587604051611c1e9190612092565b60006040518083038185875af1925050503d8060008114611c5b576040519150601f19603f3d011682016040523d82523d6000602084013e611c60565b606091505b5091509150611c70828286611c7b565b979650505050505050565b60608315611c8a575081611b35565b825115611c9a5782518084602001fd5b8160405162461bcd60e51b815260040161045891906120ae565b6001600160a01b038116811461062a57600080fd5b60008060408385031215611cdc57600080fd5b8235611ce781611cb4565b91506020830135611cf781611cb4565b809150509250929050565b600060208284031215611d1457600080fd5b5035919050565b600060208284031215611d2d57600080fd5b8135611b3581611cb4565b600060208284031215611d4a57600080fd5b81518015158114611b3557600080fd5b600060208284031215611d6c57600080fd5b5051919050565b600060208284031215611d8557600080fd5b8151611b3581611cb4565b634e487b7160e01b600052601160045260246000fd5b6000600019821415611dba57611dba611d90565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60008219821115611dea57611dea611d90565b500190565b634e487b7160e01b600052602160045260246000fd5b60006060820160048610611e1b57611e1b611def565b8583526020606081850152818651808452608086019150828801935060005b81811015611e5657845183529383019391830191600101611e3a565b5050809350505050826040830152949350505050565b600081518084526020808501945080840160005b83811015611e9c57815187529582019590820190600101611e80565b509495945050505050565b60005b83811015611ec2578181015183820152602001611eaa565b83811115611ed1576000848401525b50505050565b60008151808452611eef816020860160208601611ea7565b601f01601f19169290920160200192915050565b848152600060206001600160a01b038087168285015280861660408501526080606085015261010084018551608080870152818151808452610120880191508583019350600092505b80831015611f6e57835185168252928501926001929092019190850190611f4c565b50848801519450607f199350838782030160a0880152611f8e8186611e6c565b94505050506040850151818584030160c0860152611fac8382611ed7565b925050506060840151611fc360e085018215159052565b509695505050505050565b60e08152845160e08201526000602086015160028110611ff057611ff0611def565b61010083015260408601516001600160a01b03908116610120840152606087015116610140830152608086015161016083015260a086015160c061018084015261203e6101a0840182611ed7565b91505061208060208301866001600160a01b03808251168352602082015115156020840152806040830151166040840152506060810151151560608301525050565b60a082019390935260c0015292915050565b600082516120a4818460208701611ea7565b9190910192915050565b602081526000611b356020830184611ed756fea164736f6c634300080b000a000000000000000000000000faa2ed111b4f580fcb85c48e6dc6782dc5fcd7a6000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c800000000000000000000000000a7ba8ae7bca0b10a32ea1f8e2a1da980c6cad2000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000c0c293ce456ff0ed870add98a0828dd4d2903dbf000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d000000000000000000000000a13a9247ea42d743238089903570127dda72fe443dd0843a028c86e0b760b1a76929d1c5ef93a2dd0002000000000000000002495c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018d5760003560e01c80638757b15b116100e3578063d73792a91161008c578063ede202a811610066578063ede202a81461039f578063f2fde38b146103c8578063fbfa77cf146103db57600080fd5b8063d73792a914610370578063ddc6326214610379578063ded2379b1461038c57600080fd5b8063a694fc3a116100bd578063a694fc3a1461032e578063c70920bc14610341578063d1e1a8671461034957600080fd5b80638757b15b146102ee5780638a5a167e146102f65780638da5cb5b1461031d57600080fd5b806337d277d41161014557806377aba2131161011f57806377aba2131461028d5780637bb7bed1146102b45780637c6b513f146102c757600080fd5b806337d277d4146102375780634128f86e1461025e578063715018a61461028557600080fd5b806323cb23901161017657806323cb2390146101e85780632abc2a99146101fd5780632e1a7d4d1461022457600080fd5b80630762a3dd146101925780631b0875a6146101d6575b600080fd5b6101b97f0000000000000000000000005c6ee304399dbdb9c8ef030ab642b10820db8f5681565b6040516001600160a01b0390911681526020015b60405180910390f35b6001545b6040519081526020016101cd565b6101fb6101f6366004611cc9565b610402565b005b6101b97f000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d81565b6101fb610232366004611d02565b6104d8565b6101b97f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6101b97f00000000000000000000000000a7ba8ae7bca0b10a32ea1f8e2a1da980c6cad281565b6101fb61062d565b6101b97f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c881565b6101b96102c2366004611d02565b610693565b6101b97f000000000000000000000000a13a9247ea42d743238089903570127dda72fe4481565b6101fb6106bd565b6101b97f000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d81565b6000546001600160a01b03166101b9565b6101fb61033c366004611d02565b610969565b6101da610a5f565b6101b97f000000000000000000000000c0c293ce456ff0ed870add98a0828dd4d2903dbf81565b6101da61271081565b6101da610387366004611d02565b610aef565b6101fb61039a366004611cc9565b6112d7565b6101b96103ad366004611d1b565b6002602052600090815260409020546001600160a01b031681565b6101fb6103d6366004611d1b565b61136c565b6101b97f000000000000000000000000faa2ed111b4f580fcb85c48e6dc6782dc5fcd7a681565b6000546001600160a01b031633146104615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600180548082019091557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b0393841673ffffffffffffffffffffffffffffffffffffffff1991821681179092556000918252600260205260409091208054929093169116179055565b5050565b7f000000000000000000000000faa2ed111b4f580fcb85c48e6dc6782dc5fcd7a66001600160a01b031633146105435760405162461bcd60e51b815260206004820152601060248201526f5661756c742063616c6c73206f6e6c7960801b6044820152606401610458565b604051631c683a1b60e11b815260048101829052600060248201527f00000000000000000000000000a7ba8ae7bca0b10a32ea1f8e2a1da980c6cad26001600160a01b0316906338d07436906044016020604051808303816000875af11580156105b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d59190611d38565b5061062a6001600160a01b037f000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d167f000000000000000000000000faa2ed111b4f580fcb85c48e6dc6782dc5fcd7a68361144b565b50565b6000546001600160a01b031633146106875760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610458565b61069160006114e0565b565b600181815481106106a357600080fd5b6000918252602090912001546001600160a01b0316905081565b6107126001600160a01b037f000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d167f00000000000000000000000000a7ba8ae7bca0b10a32ea1f8e2a1da980c6cad2600061153d565b6107686001600160a01b037f000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d167f00000000000000000000000000a7ba8ae7bca0b10a32ea1f8e2a1da980c6cad260001961153d565b6107bd6001600160a01b037f000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d167f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8600061153d565b6108136001600160a01b037f000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d167f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c860001961153d565b6108686001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2167f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8600061153d565b6108be6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2167f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c860001961153d565b6109136001600160a01b037f0000000000000000000000005c6ee304399dbdb9c8ef030ab642b10820db8f56167f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8600061153d565b6106916001600160a01b037f0000000000000000000000005c6ee304399dbdb9c8ef030ab642b10820db8f56167f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c860001961153d565b7f000000000000000000000000faa2ed111b4f580fcb85c48e6dc6782dc5fcd7a66001600160a01b031633146109d45760405162461bcd60e51b815260206004820152601060248201526f5661756c742063616c6c73206f6e6c7960801b6044820152606401610458565b60405163534a7e1d60e11b8152600481018290527f00000000000000000000000000a7ba8ae7bca0b10a32ea1f8e2a1da980c6cad26001600160a01b03169063a694fc3a906024016020604051808303816000875af1158015610a3b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d49190611d38565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000a7ba8ae7bca0b10a32ea1f8e2a1da980c6cad26001600160a01b0316906370a0823190602401602060405180830381865afa158015610ac6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aea9190611d5a565b905090565b60007f000000000000000000000000faa2ed111b4f580fcb85c48e6dc6782dc5fcd7a66001600160a01b03163314610b5c5760405162461bcd60e51b815260206004820152601060248201526f5661756c742063616c6c73206f6e6c7960801b6044820152606401610458565b7f00000000000000000000000000a7ba8ae7bca0b10a32ea1f8e2a1da980c6cad26001600160a01b0316633d18b9126040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610bbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be09190611d38565b5060007f000000000000000000000000faa2ed111b4f580fcb85c48e6dc6782dc5fcd7a66001600160a01b031663d55a23f46040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c659190611d5a565b905060005b81811015610e5d57604051632061aa2360e11b8152600481018290526000907f000000000000000000000000faa2ed111b4f580fcb85c48e6dc6782dc5fcd7a66001600160a01b0316906340c3544690602401602060405180830381865afa158015610cda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfe9190611d73565b90506000816001600160a01b031663f7c618c16040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d40573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d649190611d73565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610dae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dd29190611d5a565b90508015610e4957610dee6001600160a01b038316848361144b565b60405163590a41f560e01b8152600481018290526001600160a01b0384169063590a41f590602401600060405180830381600087803b158015610e3057600080fd5b505af1158015610e44573d6000803e3d6000fd5b505050505b50505080610e5690611da6565b9050610c6a565b5060006001805480602002602001604051908101604052809291908181526020018280548015610eb657602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610e98575b5050505050905060005b815181101561104457600060026000848481518110610ee157610ee1611dc1565b6020908102919091018101516001600160a01b039081168352908201929092526040016000205416905080610f165750611034565b6000838381518110610f2a57610f2a611dc1565b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610f7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9e9190611d5a565b9050801561103157610fdd8282868681518110610fbd57610fbd611dc1565b60200260200101516001600160a01b031661144b9092919063ffffffff16565b816001600160a01b031663457100746040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561101857600080fd5b505af115801561102c573d6000803e3d6000fd5b505050505b50505b61103d81611da6565b9050610ec0565b506040516370a0823160e01b81523060048201526000907f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316906370a0823190602401602060405180830381865afa1580156110ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d09190611d5a565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d16906370a0823190602401602060405180830381865afa15801561113a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061115e9190611d5a565b905061116a8183611dd7565b61117a5750600095945050505050565b61118681836000611659565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000005c6ee304399dbdb9c8ef030ab642b10820db8f566001600160a01b0316906370a0823190602401602060405180830381865afa1580156111ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112119190611d5a565b905061121d818861186f565b506040516370a0823160e01b81523060048201526000907f000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d6001600160a01b0316906370a0823190602401602060405180830381865afa158015611285573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a99190611d5a565b905080156112c7576112ba81610969565b95506112d2945050505050565b600096505050505050505b919050565b6000546001600160a01b031633146113315760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610458565b6001600160a01b039182166000908152600260205260409020805473ffffffffffffffffffffffffffffffffffffffff191691909216179055565b6000546001600160a01b031633146113c65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610458565b6001600160a01b0381166114425760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610458565b61062a816114e0565b6040516001600160a01b0383166024820152604481018290526114db90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611a3e565b505050565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8015806115b75750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015611591573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b59190611d5a565b155b6116295760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e6365000000000000000000006064820152608401610458565b6040516001600160a01b0383166024820152604481018290526114db90849063095ea7b360e01b90606401611477565b6040805160028082526060820183526000926020830190803683370190505090507f000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d816000815181106116ae576116ae611dc1565b60200260200101906001600160a01b031690816001600160a01b0316815250507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28160018151811061170257611702611dc1565b6001600160a01b03929092166020928302919091018201526040805160028082526060820183526000939192909183019080368337019050509050848160008151811061175157611751611dc1565b602002602001018181525050838160018151811061177157611771611dc1565b6020026020010181815250507f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c86001600160a01b031663b95cac287f5c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014303060405180608001604052808881526020018781526020016001888b6040516020016117fc93929190611e05565b6040516020818303038152906040528152602001600015158152506040518563ffffffff1660e01b81526004016118369493929190611f03565b600060405180830381600087803b15801561185057600080fd5b505af1158015611864573d6000803e3d6000fd5b505050505050505050565b6000806040518060c001604052807f3dd0843a028c86e0b760b1a76929d1c5ef93a2dd0002000000000000000002498152602001600060018111156118b6576118b6611def565b81526001600160a01b037f0000000000000000000000005c6ee304399dbdb9c8ef030ab642b10820db8f56811660208301527f000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d1660408201526060810186905260800160006040519080825280601f01601f191660200182016040528015611945576020820181803683370190505b50905290506001600160a01b037f000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8166352bbbe29826119c860408051608081018252600080825260208201819052918101829052606081019190915250604080516080810182523080825260006020830181905292820152606081019190915290565b866119d4426001611dd7565b6040518563ffffffff1660e01b81526004016119f39493929190611fce565b6020604051808303816000875af1158015611a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a369190611d5a565b949350505050565b6000611a93826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611b239092919063ffffffff16565b8051909150156114db5780806020019051810190611ab19190611d38565b6114db5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610458565b6060611b328484600085611b3c565b90505b9392505050565b606082471015611bb45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610458565b843b611c025760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610458565b600080866001600160a01b03168587604051611c1e9190612092565b60006040518083038185875af1925050503d8060008114611c5b576040519150601f19603f3d011682016040523d82523d6000602084013e611c60565b606091505b5091509150611c70828286611c7b565b979650505050505050565b60608315611c8a575081611b35565b825115611c9a5782518084602001fd5b8160405162461bcd60e51b815260040161045891906120ae565b6001600160a01b038116811461062a57600080fd5b60008060408385031215611cdc57600080fd5b8235611ce781611cb4565b91506020830135611cf781611cb4565b809150509250929050565b600060208284031215611d1457600080fd5b5035919050565b600060208284031215611d2d57600080fd5b8135611b3581611cb4565b600060208284031215611d4a57600080fd5b81518015158114611b3557600080fd5b600060208284031215611d6c57600080fd5b5051919050565b600060208284031215611d8557600080fd5b8151611b3581611cb4565b634e487b7160e01b600052601160045260246000fd5b6000600019821415611dba57611dba611d90565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60008219821115611dea57611dea611d90565b500190565b634e487b7160e01b600052602160045260246000fd5b60006060820160048610611e1b57611e1b611def565b8583526020606081850152818651808452608086019150828801935060005b81811015611e5657845183529383019391830191600101611e3a565b5050809350505050826040830152949350505050565b600081518084526020808501945080840160005b83811015611e9c57815187529582019590820190600101611e80565b509495945050505050565b60005b83811015611ec2578181015183820152602001611eaa565b83811115611ed1576000848401525b50505050565b60008151808452611eef816020860160208601611ea7565b601f01601f19169290920160200192915050565b848152600060206001600160a01b038087168285015280861660408501526080606085015261010084018551608080870152818151808452610120880191508583019350600092505b80831015611f6e57835185168252928501926001929092019190850190611f4c565b50848801519450607f199350838782030160a0880152611f8e8186611e6c565b94505050506040850151818584030160c0860152611fac8382611ed7565b925050506060840151611fc360e085018215159052565b509695505050505050565b60e08152845160e08201526000602086015160028110611ff057611ff0611def565b61010083015260408601516001600160a01b03908116610120840152606087015116610140830152608086015161016083015260a086015160c061018084015261203e6101a0840182611ed7565b91505061208060208301866001600160a01b03808251168352602082015115156020840152806040830151166040840152506060810151151560608301525050565b60a082019390935260c0015292915050565b600082516120a4818460208701611ea7565b9190910192915050565b602081526000611b356020830184611ed756fea164736f6c634300080b000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000faa2ed111b4f580fcb85c48e6dc6782dc5fcd7a6000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c800000000000000000000000000a7ba8ae7bca0b10a32ea1f8e2a1da980c6cad2000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000c0c293ce456ff0ed870add98a0828dd4d2903dbf000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d000000000000000000000000a13a9247ea42d743238089903570127dda72fe443dd0843a028c86e0b760b1a76929d1c5ef93a2dd0002000000000000000002495c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014
-----Decoded View---------------
Arg [0] : _vault (address): 0xfAA2eD111B4F580fCb85C48E6DC6782Dc5FCD7a6
Arg [1] : _balVault (address): 0xBA12222222228d8Ba445958a75a0704d566BF2C8
Arg [2] : _auraBalStaking (address): 0x00A7BA8Ae7bca0B10A32Ea1f8e2a1Da980c6CAd2
Arg [3] : _balToken (address): 0xba100000625a3754423978a60c9317c58a424e3D
Arg [4] : _wethToken (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [5] : _auraToken (address): 0xC0c293ce456fF0ED870ADd98a0828Dd4d2903DBF
Arg [6] : _auraBalToken (address): 0x616e8BfA43F920657B3497DBf40D6b1A02D4608d
Arg [7] : _bbusdToken (address): 0xA13a9247ea42D743238089903570127DdA72fE44
Arg [8] : _auraBalBalETHBptPoolId (bytes32): 0x3dd0843a028c86e0b760b1a76929d1c5ef93a2dd000200000000000000000249
Arg [9] : _balETHPoolId (bytes32): 0x5c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 000000000000000000000000faa2ed111b4f580fcb85c48e6dc6782dc5fcd7a6
Arg [1] : 000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c8
Arg [2] : 00000000000000000000000000a7ba8ae7bca0b10a32ea1f8e2a1da980c6cad2
Arg [3] : 000000000000000000000000ba100000625a3754423978a60c9317c58a424e3d
Arg [4] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [5] : 000000000000000000000000c0c293ce456ff0ed870add98a0828dd4d2903dbf
Arg [6] : 000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d
Arg [7] : 000000000000000000000000a13a9247ea42d743238089903570127dda72fe44
Arg [8] : 3dd0843a028c86e0b760b1a76929d1c5ef93a2dd000200000000000000000249
Arg [9] : 5c6ee304399dbdb9c8ef030ab642b10820db8f56000200000000000000000014
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
OP | 100.00% | $1.68 | 1 | $1.68 |
Loading...
Loading
[ 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.