Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Initialize | 13057650 | 1233 days ago | IN | 0 ETH | 0.01833495 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
xINCH
Compiler Version
v0.6.2+commit.bacdbe57
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity 0.6.2; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/access/Ownable.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/Initializable.sol"; import "@openzeppelin/contracts-ethereum-package/contracts/utils/Pausable.sol"; import "./interface/IGovernanceRewards.sol"; import "./interface/IDelegateRegistry.sol"; import "./interface/IExchangeGovernance.sol"; import "./interface/IGovernanceMothership.sol"; import "./interface/IMooniswapPoolGovernance.sol"; import "./interface/IMooniswapFactoryGovernance.sol"; import "./interface/IOneInchLiquidityProtocol.sol"; import "./interface/IxTokenManager.sol"; contract xINCH is Initializable, ERC20UpgradeSafe, OwnableUpgradeSafe, PausableUpgradeSafe { using SafeMath for uint256; using SafeERC20 for IERC20; uint256 private constant LIQUIDATION_TIME_PERIOD = 4 weeks; uint256 private constant INITIAL_SUPPLY_MULTIPLIER = 10; uint256 private constant BUFFER_TARGET = 20; // 5% target uint256 private constant MAX_UINT = 2**256 - 1; uint256 public adminActiveTimestamp; uint256 public withdrawableOneInchFees; IERC20 private oneInch; IOneInchLiquidityProtocol private oneInchLiquidityProtocol; IMooniswapFactoryGovernance private factoryGovernance; IGovernanceMothership private governanceMothership; IExchangeGovernance private exchangeGovernance; IGovernanceRewards private governanceRewards; address private oneInchExchange; address private manager; address private manager2; address private constant ETH_ADDRESS = address(0); struct FeeDivisors { uint256 mintFee; uint256 burnFee; uint256 claimFee; } FeeDivisors public feeDivisors; string public mandate; // addresses are locked from transfer after minting or burning uint256 private constant BLOCK_LOCK_COUNT = 6; // last block for which this address is timelocked mapping(address => uint256) public lastLockedBlock; IxTokenManager private xTokenManager; event Rebalance(); event FeeDivisorsSet(uint256 mintFee, uint256 burnFee, uint256 claimFee); event FeeWithdraw(uint256 ethFee, uint256 inchFee); function initialize( string calldata _symbol, string calldata _mandate, IERC20 _oneInch, IGovernanceMothership _governanceMothership, IOneInchLiquidityProtocol _oneInchLiquidityProtocol, uint256 _mintFeeDivisor, uint256 _burnFeeDivisor, uint256 _claimFeeDivisor ) external initializer { __Context_init_unchained(); __Ownable_init_unchained(); __ERC20_init_unchained("xINCH", _symbol); mandate = _mandate; oneInch = _oneInch; governanceMothership = _governanceMothership; oneInchLiquidityProtocol = _oneInchLiquidityProtocol; _setFeeDivisors(_mintFeeDivisor, _burnFeeDivisor, _claimFeeDivisor); } /* * @dev Mint xINCH using ETH * @param minReturn: Min return to pass to 1Inch trade */ function mint(uint256 minReturn) external payable whenNotPaused notLocked(msg.sender) { require(msg.value > 0, "Must send ETH"); lock(msg.sender); uint256 fee = _calculateFee(msg.value, feeDivisors.mintFee); uint256 ethValue = msg.value.sub(fee); uint256 bufferBalanceBefore = getBufferBalance(); oneInchLiquidityProtocol.swap.value(ethValue)( ETH_ADDRESS, address(oneInch), ethValue, minReturn, address(0) ); _mintInternal(getBufferBalance().sub(bufferBalanceBefore)); } /* * @dev Mint xINCH using INCH * @param oneInchAmount: INCH tokens to contribute */ function mintWithToken(uint256 oneInchAmount) external whenNotPaused notLocked(msg.sender) { require(oneInchAmount > 0, "Must send token"); lock(msg.sender); oneInch.safeTransferFrom(msg.sender, address(this), oneInchAmount); uint256 fee = _calculateFee(oneInchAmount, feeDivisors.mintFee); _incrementWithdrawableOneInchFees(fee); return _mintInternal(oneInchAmount.sub(fee)); } function _mintInternal(uint256 _incrementalOneInch) private { uint256 mintAmount = calculateMintAmount(_incrementalOneInch, totalSupply()); return super._mint(msg.sender, mintAmount); } function calculateMintAmount( uint256 incrementalOneInch, uint256 totalSupply ) public view returns (uint256 mintAmount) { if (totalSupply == 0) return incrementalOneInch.mul(INITIAL_SUPPLY_MULTIPLIER); uint256 previousNav = getNav().sub(incrementalOneInch); mintAmount = (incrementalOneInch).mul(totalSupply).div(previousNav); } /* * @dev Burn xINCH tokens * @notice Will fail if pro rata balance exceeds available liquidity * @param tokenAmount: xINCH tokens to burn * @param redeemForEth: Redeem for ETH or INCH * @param minReturn: Min return to pass to 1Inch trade */ function burn( uint256 tokenAmount, bool redeemForEth, uint256 minReturn ) external notLocked(msg.sender) { require(tokenAmount > 0, "Must send xINCH"); lock(msg.sender); uint256 stakedBalance = getStakedBalance(); uint256 bufferBalance = getBufferBalance(); uint256 inchHoldings = stakedBalance.add(bufferBalance); uint256 proRataInch = inchHoldings.mul(tokenAmount).div(totalSupply()); require(proRataInch <= bufferBalance, "Insufficient exit liquidity"); super._burn(msg.sender, tokenAmount); if (redeemForEth) { uint256 fee = _calculateFee(proRataInch, feeDivisors.burnFee); _incrementWithdrawableOneInchFees(fee); oneInchLiquidityProtocol.swapFor( address(oneInch), ETH_ADDRESS, proRataInch.sub(fee), minReturn, address(0), msg.sender ); } else { uint256 fee = _calculateFee(proRataInch, feeDivisors.burnFee); _incrementWithdrawableOneInchFees(fee); oneInch.safeTransfer(msg.sender, proRataInch.sub(fee)); } } function transfer(address recipient, uint256 amount) public override notLocked(msg.sender) returns (bool) { return super.transfer(recipient, amount); } function transferFrom( address sender, address recipient, uint256 amount ) public override notLocked(sender) returns (bool) { return super.transferFrom(sender, recipient, amount); } /* ========================================================================================= */ /* Management */ /* ========================================================================================= */ function getAmountOfAssetHeld() public view returns (uint256) { return getNav(); } function getNav() public view returns (uint256) { return getStakedBalance().add(getBufferBalance()); } function getStakedBalance() public view returns (uint256) { return IERC20(address(governanceMothership)).balanceOf(address(this)); } function getBufferBalance() public view returns (uint256) { return oneInch.balanceOf(address(this)).sub(withdrawableOneInchFees); } function getWithdrawableFees() public view returns (address[2] memory feeAssets, uint256[2] memory feeAmounts) { feeAssets[0] = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; // ETH feeAssets[1] = address(oneInch); feeAmounts[0] = address(this).balance; feeAmounts[1] = withdrawableOneInchFees; } /* * @dev Admin function for claiming INCH rewards */ function getReward() external onlyOwnerOrManager { _certifyAdmin(); _getReward(); } /* * @dev Public callable function for claiming INCH rewards */ function getRewardExternal() external { _getReward(); } function _getReward() private { uint256 bufferBalanceBefore = getBufferBalance(); governanceRewards.getReward(); uint256 bufferBalanceAfter = getBufferBalance(); uint256 fee = _calculateFee( bufferBalanceAfter.sub(bufferBalanceBefore), feeDivisors.claimFee ); _incrementWithdrawableOneInchFees(fee); } function _stake(uint256 _amount) private { governanceMothership.stake(_amount); } /* * @dev Admin function for unstaking beyond the scope of a rebalance */ function adminUnstake(uint256 _amount) external onlyOwnerOrManager { _unstake(_amount); } /* * @dev Public callable function for unstaking in event of admin failure/incapacitation */ function emergencyUnstake(uint256 _amount) external { require( adminActiveTimestamp.add(LIQUIDATION_TIME_PERIOD) < block.timestamp, "Liquidation time not elapsed" ); _unstake(_amount); } function unstake(uint256 _amount) external onlyOwnerOrManager { _unstake(_amount); } function _unstake(uint256 _amount) private { governanceMothership.unstake(_amount); } /* * @dev Admin function for collecting reward and restoring target buffer balance */ function rebalance() external onlyOwnerOrManager { _certifyAdmin(); _getReward(); _rebalance(); } /* * @dev Public callable function for collecting reward and restoring target buffer balance */ function rebalanceExternal() external { require( adminActiveTimestamp.add(LIQUIDATION_TIME_PERIOD) > block.timestamp, "Liquidation time elapsed; no more staking" ); _getReward(); _rebalance(); } function _rebalance() private { uint256 stakedBalance = getStakedBalance(); uint256 bufferBalance = getBufferBalance(); uint256 targetBuffer = (stakedBalance.add(bufferBalance)).div(BUFFER_TARGET); if (bufferBalance > targetBuffer) { _stake(bufferBalance.sub(targetBuffer)); } else { _unstake(targetBuffer.sub(bufferBalance)); } emit Rebalance(); } function _calculateFee(uint256 _value, uint256 _feeDivisor) internal pure returns (uint256 fee) { if (_feeDivisor > 0) { fee = _value.div(_feeDivisor); } } function _incrementWithdrawableOneInchFees(uint256 _feeAmount) private { withdrawableOneInchFees = withdrawableOneInchFees.add(_feeAmount); } /* ========================================================================================= */ /* Governance */ /* ========================================================================================= */ function setFactoryGovernanceAddress( IMooniswapFactoryGovernance _factoryGovernance ) external onlyOwnerOrManager { factoryGovernance = _factoryGovernance; } function setGovernanceRewardsAddress(IGovernanceRewards _governanceRewards) external onlyOwnerOrManager { governanceRewards = _governanceRewards; } function setExchangeGovernanceAddress( IExchangeGovernance _exchangeGovernance ) external onlyOwnerOrManager { exchangeGovernance = _exchangeGovernance; } function defaultDecayPeriodVote(uint256 vote) external onlyOwnerOrManager { factoryGovernance.defaultDecayPeriodVote(vote); } function defaultFeeVote(uint256 vote) external onlyOwnerOrManager { factoryGovernance.defaultFeeVote(vote); } function defaultSlippageFeeVote(uint256 vote) external onlyOwnerOrManager { factoryGovernance.defaultSlippageFeeVote(vote); } function governanceShareVote(uint256 vote) external onlyOwnerOrManager { factoryGovernance.governanceShareVote(vote); } function referralShareVote(uint256 vote) external onlyOwnerOrManager { factoryGovernance.referralShareVote(vote); } function leftoverShareVote(uint256 govShare, uint256 refShare) external onlyOwnerOrManager { exchangeGovernance.leftoverShareVote(govShare, refShare); } function poolFeeVote(address pool, uint256 vote) external onlyOwnerOrManager { IMooniswapPoolGovernance(pool).feeVote(vote); } function poolSlippageFeeVote(address pool, uint256 vote) external onlyOwnerOrManager { IMooniswapPoolGovernance(pool).slippageFeeVote(vote); } function poolDecayPeriodVote(address pool, uint256 vote) external onlyOwnerOrManager { IMooniswapPoolGovernance(pool).decayPeriodVote(vote); } function setDelegate( address delegateRegistry, bytes32 id, address delegate ) external onlyOwnerOrManager { IDelegateRegistry(delegateRegistry).setDelegate(id, delegate); } /* ========================================================================================= */ /* Utils */ /* ========================================================================================= */ /* * @notice Inverse of fee i.e., a fee divisor of 100 == 1% * @notice Three fee types * @dev Mint fee 0 or <= 2% * @dev Burn fee 0 or <= 1% * @dev Claim fee 0 <= 4% */ function setFeeDivisors( uint256 mintFeeDivisor, uint256 burnFeeDivisor, uint256 claimFeeDivisor ) public onlyOwner { _setFeeDivisors(mintFeeDivisor, burnFeeDivisor, claimFeeDivisor); } function _setFeeDivisors( uint256 _mintFeeDivisor, uint256 _burnFeeDivisor, uint256 _claimFeeDivisor ) private { require(_mintFeeDivisor == 0 || _mintFeeDivisor >= 50, "Invalid fee"); require(_burnFeeDivisor == 0 || _burnFeeDivisor >= 100, "Invalid fee"); require(_claimFeeDivisor >= 25, "Invalid fee"); feeDivisors.mintFee = _mintFeeDivisor; feeDivisors.burnFee = _burnFeeDivisor; feeDivisors.claimFee = _claimFeeDivisor; emit FeeDivisorsSet(_mintFeeDivisor, _burnFeeDivisor, _claimFeeDivisor); } function pauseContract() public onlyOwnerOrManager returns (bool) { _pause(); return true; } function unpauseContract() public onlyOwnerOrManager returns (bool) { _unpause(); return true; } /* * @notice Registers that admin is present and active * @notice If admin isn't certified within liquidation time period, * emergencyUnstake function becomes callable */ function _certifyAdmin() private { adminActiveTimestamp = block.timestamp; } function approveInch(address _toApprove) external onlyOwnerOrManager { require( _toApprove == address(oneInchLiquidityProtocol) || _toApprove == address(governanceMothership) ); oneInch.safeApprove(_toApprove, MAX_UINT); } /* * @notice Emergency function in case of errant transfer of * xINCH token directly to contract */ function withdrawNativeToken() public onlyOwnerOrManager { uint256 tokenBal = balanceOf(address(this)); if (tokenBal > 0) { IERC20(address(this)).safeTransfer(msg.sender, tokenBal); } } /* * @notice Withdraw function for ETH and INCH fees */ function withdrawFees() public { require( xTokenManager.isRevenueController(msg.sender), "Callable only by Revenue Controller" ); uint256 ethBal = address(this).balance; (bool success, ) = msg.sender.call.value(ethBal)(""); require(success, "Transfer failed"); uint256 oneInchFees = withdrawableOneInchFees; withdrawableOneInchFees = 0; oneInch.safeTransfer(msg.sender, oneInchFees); emit FeeWithdraw(ethBal, oneInchFees); } modifier onlyOwnerOrManager { require( msg.sender == owner() || xTokenManager.isManager(msg.sender, address(this)), "Non-admin caller" ); _; } /** * BlockLock logic: Implements locking of mint, burn, transfer and transferFrom * functions via a notLocked modifier. * Functions are locked per address. */ modifier notLocked(address lockedAddress) { require( lastLockedBlock[lockedAddress] <= block.number, "Function is temporarily locked for this address" ); _; } /** * @dev Lock mint, burn, transfer and transferFrom functions * for _address for BLOCK_LOCK_COUNT blocks */ function lock(address _address) private { lastLockedBlock[_address] = block.number + BLOCK_LOCK_COUNT; } /** * Set xTokenManager contract */ function setxTokenManager(IxTokenManager _manager) external onlyOwner { require( address(xTokenManager) == address(0), "Cannot set manager twice" ); xTokenManager = _manager; } receive() external payable { require(msg.sender != tx.origin, "Errant ETH deposit"); } }
pragma solidity ^0.6.0; import "./IERC20.sol"; import "../../math/SafeMath.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 ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; 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)); } 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' // solhint-disable-next-line max-line-length 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).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _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. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
pragma solidity ^0.6.0; import "../../GSN/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; import "../../Initializable.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20MinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20UpgradeSafe is Initializable, ContextUpgradeSafe, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ function __ERC20_init(string memory name, string memory symbol) internal initializer { __Context_init_unchained(); __ERC20_init_unchained(name, symbol); } function __ERC20_init_unchained(string memory name, string memory symbol) internal initializer { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } uint256[44] private __gap; }
pragma solidity ^0.6.0; import "../GSN/Context.sol"; import "../Initializable.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. */ contract OwnableUpgradeSafe is Initializable, ContextUpgradeSafe { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } uint256[49] private __gap; }
pragma solidity >=0.4.24 <0.7.0; /** * @title Initializable * * @dev Helper contract to support initializer functions. To use it, replace * the constructor with a function that has the `initializer` modifier. * WARNING: Unlike constructors, initializer functions must be manually * invoked. This applies both to deploying an Initializable contract, as well * as extending an Initializable contract via inheritance. * WARNING: When used with inheritance, manual care must be taken to not invoke * a parent initializer twice, or ensure that all initializers are idempotent, * because this is not dealt with automatically as with constructors. */ contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private initializing; /** * @dev Modifier to use in the initializer function of a contract. */ modifier initializer() { require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized"); bool isTopLevelCall = !initializing; if (isTopLevelCall) { initializing = true; initialized = true; } _; if (isTopLevelCall) { initializing = false; } } /// @dev Returns true if and only if the function is running in the constructor function isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; assembly { cs := extcodesize(self) } return cs == 0; } // Reserved storage space to allow for layout changes in the future. uint256[50] private ______gap; }
pragma solidity ^0.6.0; import "../GSN/Context.sol"; import "../Initializable.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. */ contract PausableUpgradeSafe is Initializable, ContextUpgradeSafe { /** * @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); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal initializer { __Context_init_unchained(); __Pausable_init_unchained(); } function __Pausable_init_unchained() internal initializer { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!_paused, "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. */ modifier whenPaused() { require(_paused, "Pausable: not paused"); _; } /** * @dev Triggers stopped state. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } uint256[49] private __gap; }
pragma solidity 0.6.2; // https://etherscan.io/address/0x0f85a912448279111694f4ba4f85dc641c54b594#writeContract interface IGovernanceRewards { function getReward() external; function earned(address account) external view returns (uint256); }
pragma solidity 0.6.2; interface IDelegateRegistry { function setDelegate(bytes32 id, address delegate) external; }
pragma solidity 0.6.2; interface IExchangeGovernance { function leftoverShareVote(uint256 govShare, uint256 refShare) external; }
pragma solidity 0.6.2; interface IGovernanceMothership { function stake(uint256 amount) external; function unstake(uint256 amount) external; function notify() external; }
pragma solidity 0.6.2; interface IMooniswapPoolGovernance { function feeVote(uint256 vote) external; function slippageFeeVote(uint256 vote) external; function decayPeriodVote(uint256 vote) external; }
pragma solidity 0.6.2; // https://etherscan.io/address/0xc4a8b7e29e3c8ec560cd4945c1cf3461a85a148d#code interface IMooniswapFactoryGovernance { function defaultDecayPeriodVote(uint256 vote) external; function defaultFeeVote(uint256 vote) external; function defaultSlippageFeeVote(uint256 vote) external; function governanceShareVote(uint256 vote) external; function referralShareVote(uint256 vote) external; }
pragma solidity ^0.6.0; interface IOneInchLiquidityProtocol { function swap(address src, address dst, uint256 amount, uint256 minReturn, address referral) external payable returns(uint256 result); function swapFor(address src, address dst, uint256 amount, uint256 minReturn, address referral, address payable receiver) external payable returns(uint256 result); }
//SPDX-License-Identifier: MIT pragma solidity ^0.6.2; interface IxTokenManager { /** * @dev Add a manager to an xAsset fund */ function addManager(address manager, address fund) external; /** * @dev Remove a manager from an xAsset fund */ function removeManager(address manager, address fund) external; /** * @dev Check if an address is a manager for a fund */ function isManager(address manager, address fund) external view returns (bool); /** * @dev Set revenue controller */ function setRevenueController(address controller) external; /** * @dev Check if address is revenue controller */ function isRevenueController(address caller) external view returns (bool); }
pragma solidity ^0.6.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); }
pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
pragma solidity ^0.6.2; /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } }
pragma solidity ^0.6.0; import "../Initializable.sol"; /* * @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 GSN 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. */ contract ContextUpgradeSafe is Initializable { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } uint256[50] private __gap; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"mintFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"burnFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimFee","type":"uint256"}],"name":"FeeDivisorsSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ethFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"inchFee","type":"uint256"}],"name":"FeeWithdraw","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":[],"name":"Rebalance","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"adminActiveTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"adminUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_toApprove","type":"address"}],"name":"approveInch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"bool","name":"redeemForEth","type":"bool"},{"internalType":"uint256","name":"minReturn","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"incrementalOneInch","type":"uint256"},{"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"calculateMintAmount","outputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vote","type":"uint256"}],"name":"defaultDecayPeriodVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vote","type":"uint256"}],"name":"defaultFeeVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vote","type":"uint256"}],"name":"defaultSlippageFeeVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyUnstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeDivisors","outputs":[{"internalType":"uint256","name":"mintFee","type":"uint256"},{"internalType":"uint256","name":"burnFee","type":"uint256"},{"internalType":"uint256","name":"claimFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAmountOfAssetHeld","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBufferBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNav","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardExternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getStakedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWithdrawableFees","outputs":[{"internalType":"address[2]","name":"feeAssets","type":"address[2]"},{"internalType":"uint256[2]","name":"feeAmounts","type":"uint256[2]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vote","type":"uint256"}],"name":"governanceShareVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_mandate","type":"string"},{"internalType":"contract IERC20","name":"_oneInch","type":"address"},{"internalType":"contract IGovernanceMothership","name":"_governanceMothership","type":"address"},{"internalType":"contract IOneInchLiquidityProtocol","name":"_oneInchLiquidityProtocol","type":"address"},{"internalType":"uint256","name":"_mintFeeDivisor","type":"uint256"},{"internalType":"uint256","name":"_burnFeeDivisor","type":"uint256"},{"internalType":"uint256","name":"_claimFeeDivisor","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastLockedBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"govShare","type":"uint256"},{"internalType":"uint256","name":"refShare","type":"uint256"}],"name":"leftoverShareVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mandate","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"minReturn","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"oneInchAmount","type":"uint256"}],"name":"mintWithToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint256","name":"vote","type":"uint256"}],"name":"poolDecayPeriodVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint256","name":"vote","type":"uint256"}],"name":"poolFeeVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint256","name":"vote","type":"uint256"}],"name":"poolSlippageFeeVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebalanceExternal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vote","type":"uint256"}],"name":"referralShareVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegateRegistry","type":"address"},{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"address","name":"delegate","type":"address"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IExchangeGovernance","name":"_exchangeGovernance","type":"address"}],"name":"setExchangeGovernanceAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMooniswapFactoryGovernance","name":"_factoryGovernance","type":"address"}],"name":"setFactoryGovernanceAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintFeeDivisor","type":"uint256"},{"internalType":"uint256","name":"burnFeeDivisor","type":"uint256"},{"internalType":"uint256","name":"claimFeeDivisor","type":"uint256"}],"name":"setFeeDivisors","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IGovernanceRewards","name":"_governanceRewards","type":"address"}],"name":"setGovernanceRewardsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IxTokenManager","name":"_manager","type":"address"}],"name":"setxTokenManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawNativeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawableOneInchFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b50614c7f806100206000396000f3fe60806040526004361061037a5760003560e01c806376965867116101d1578063b90fb49e11610102578063dd62ed3e116100a0578063ed8961041161006f578063ed89610414610ddb578063f2fde38b14610df0578063f38a8c0614610e23578063fdec72f2146105e7576103cb565b8063dd62ed3e14610d08578063df22db8814610d43578063e7654b3c14610d7b578063e9f7e17b14610db1576103cb565b8063d8d8f69b116100dc578063d8d8f69b14610c66578063d8f4e0eb14610c99578063d9bb717014610cc3578063dc24fc0714610cf3576103cb565b8063b90fb49e14610b7e578063cbf325b614610bb1578063d7785bdb14610bea576103cb565b8063a0712d681161016f578063a5699e3511610149578063a5699e3514610ad6578063a9059cbb14610b06578063b33712c514610b3f578063b3eaff8b14610b54576103cb565b8063a0712d6814610a47578063a1e12fc314610a64578063a457c2d714610a9d576103cb565b80639154d77c116101ab5780639154d77c146109c057806395d89b41146109d55780639725ff35146109ea5780639f3e8b3414610a14576103cb565b806376965867146109655780637d7c2a1c1461097a5780638da5cb5b1461098f576103cb565b80633b4d2d39116102ab5780635c975abb11610249578063693986f611610223578063693986f6146108cf5780636ff9b43a1461090857806370a082311461091d578063715018a614610950576103cb565b80635c975abb146108545780635cb4746914610869578063629c577e1461089c576103cb565b8063476343ee11610285578063476343ee146106fc57806354bb3b29146107115780635981b5d31461080c5780635a18664c1461083f576103cb565b80633b4d2d391461069f5780633d18b912146106d2578063439766ce146106e7576103cb565b806323b872dd11610318578063313ce567116102f2578063313ce567146106115780633552c62f1461063c578063395093511461065157806339b1b96d1461068a576103cb565b806323b872dd1461057a5780632ba653ec146105bd5780632e17de78146105e7576103cb565b8063095ea7b311610354578063095ea7b3146104c75780630d44e3ed1461051457806314fd235a1461053b57806318160ddd14610565576103cb565b8063012ce501146103d057806303b17808146103fa57806306fdde031461043d576103cb565b366103cb57333214156103c9576040805162461bcd60e51b8152602060048201526012602482015271115c9c985b9d081155120819195c1bdcda5d60721b604482015290519081900360640190fd5b005b600080fd5b3480156103dc57600080fd5b506103c9600480360360208110156103f357600080fd5b5035610e38565b34801561040657600080fd5b506103c96004803603606081101561041d57600080fd5b506001600160a01b03813581169160208101359160409091013516610eae565b34801561044957600080fd5b5061045261100b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561048c578181015183820152602001610474565b50505050905090810190601f1680156104b95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156104d357600080fd5b50610500600480360360408110156104ea57600080fd5b506001600160a01b0381351690602001356110a2565b604080519115158252519081900360200190f35b34801561052057600080fd5b506105296110c0565b60408051918252519081900360200190f35b34801561054757600080fd5b506103c96004803603602081101561055e57600080fd5b50356110cf565b34801561057157600080fd5b50610529611217565b34801561058657600080fd5b506105006004803603606081101561059d57600080fd5b506001600160a01b0381358116916020810135909116906040013561121d565b3480156105c957600080fd5b506103c9600480360360208110156105e057600080fd5b503561128b565b3480156105f357600080fd5b506103c96004803603602081101561060a57600080fd5b50356113b8565b34801561061d57600080fd5b50610626611498565b6040805160ff9092168252519081900360200190f35b34801561064857600080fd5b506105296114a1565b34801561065d57600080fd5b506105006004803603604081101561067457600080fd5b506001600160a01b0381351690602001356114c2565b34801561069657600080fd5b5061045261151b565b3480156106ab57600080fd5b506103c9600480360360208110156106c257600080fd5b50356001600160a01b03166115aa565b3480156106de57600080fd5b506103c96116ac565b3480156106f357600080fd5b5061050061179e565b34801561070857600080fd5b506103c961188e565b34801561071d57600080fd5b506103c9600480360361010081101561073557600080fd5b81019060208101813564010000000081111561075057600080fd5b82018360208201111561076257600080fd5b8035906020019184600183028401116401000000008311171561078457600080fd5b9193909290916020810190356401000000008111156107a257600080fd5b8201836020820111156107b457600080fd5b803590602001918460018302840111640100000000831117156107d657600080fd5b91935091506001600160a01b03813581169160208101358216916040820135169060608101359060808101359060a00135611a38565b34801561081857600080fd5b506103c96004803603602081101561082f57600080fd5b50356001600160a01b0316611ba8565b34801561084b57600080fd5b506103c9611c82565b34801561086057600080fd5b50610500611d86565b34801561087557600080fd5b506103c96004803603602081101561088c57600080fd5b50356001600160a01b0316611d8f565b3480156108a857600080fd5b506108b1611e92565b60408051938452602084019290925282820152519081900360600190f35b3480156108db57600080fd5b506103c9600480360360408110156108f257600080fd5b506001600160a01b038135169060200135611ea1565b34801561091457600080fd5b506103c9611794565b34801561092957600080fd5b506105296004803603602081101561094057600080fd5b50356001600160a01b0316611fe3565b34801561095c57600080fd5b506103c9611ffe565b34801561097157600080fd5b506105296120a0565b34801561098657600080fd5b506103c961211d565b34801561099b57600080fd5b506109a4612215565b604080516001600160a01b039092168252519081900360200190f35b3480156109cc57600080fd5b50610529612224565b3480156109e157600080fd5b5061045261222a565b3480156109f657600080fd5b506103c960048036036020811015610a0d57600080fd5b503561228b565b348015610a2057600080fd5b5061052960048036036020811015610a3757600080fd5b50356001600160a01b03166123b8565b6103c960048036036020811015610a5d57600080fd5b50356123cb565b348015610a7057600080fd5b506103c960048036036040811015610a8757600080fd5b506001600160a01b0381351690602001356125a3565b348015610aa957600080fd5b5061050060048036036040811015610ac057600080fd5b506001600160a01b0381351690602001356126c9565b348015610ae257600080fd5b506103c960048036036040811015610af957600080fd5b5080359060200135612737565b348015610b1257600080fd5b5061050060048036036040811015610b2957600080fd5b506001600160a01b03813516906020013561286c565b348015610b4b57600080fd5b506105006128d0565b348015610b6057600080fd5b506103c960048036036020811015610b7757600080fd5b50356129ba565b348015610b8a57600080fd5b506103c960048036036020811015610ba157600080fd5b50356001600160a01b0316612af8565b348015610bbd57600080fd5b506103c960048036036040811015610bd457600080fd5b506001600160a01b038135169060200135612c2a565b348015610bf657600080fd5b50610bff612d50565b6040518083600260200280838360005b83811015610c27578181015183820152602001610c0f565b5050505090500182600260200280838360005b83811015610c52578181015183820152602001610c3a565b505050509050019250505060405180910390f35b348015610c7257600080fd5b506103c960048036036020811015610c8957600080fd5b50356001600160a01b0316612d9a565b348015610ca557600080fd5b506103c960048036036020811015610cbc57600080fd5b5035612e9d565b348015610ccf57600080fd5b5061052960048036036040811015610ce657600080fd5b5080359060200135612fca565b348015610cff57600080fd5b50610529613019565b348015610d1457600080fd5b5061052960048036036040811015610d2b57600080fd5b506001600160a01b03813581169160200135166130a8565b348015610d4f57600080fd5b506103c960048036036060811015610d6657600080fd5b508035906020810135151590604001356130d3565b348015610d8757600080fd5b506103c960048036036060811015610d9e57600080fd5b508035906020810135906040013561335f565b348015610dbd57600080fd5b506103c960048036036020811015610dd457600080fd5b50356133c2565b348015610de757600080fd5b506103c96134ef565b348015610dfc57600080fd5b506103c960048036036020811015610e1357600080fd5b50356001600160a01b0316613543565b348015610e2f57600080fd5b5061052961363c565b60fb544290610e50906224ea0063ffffffff61364216565b10610ea2576040805162461bcd60e51b815260206004820152601c60248201527f4c69717569646174696f6e2074696d65206e6f7420656c617073656400000000604482015290519081900360640190fd5b610eab816136a3565b50565b610eb6612215565b6001600160a01b0316336001600160a01b03161480610f4f575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015610f2257600080fd5b505afa158015610f36573d6000803e3d6000fd5b505050506040513d6020811015610f4c57600080fd5b50515b610f8e576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b826001600160a01b031663bd86e50883836040518363ffffffff1660e01b815260040180838152602001826001600160a01b03166001600160a01b0316815260200192505050600060405180830381600087803b158015610fee57600080fd5b505af1158015611002573d6000803e3d6000fd5b50505050505050565b60688054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110975780601f1061106c57610100808354040283529160200191611097565b820191906000526020600020905b81548152906001019060200180831161107a57829003601f168201915b505050505090505b90565b60006110b66110af6136f1565b84846136f5565b5060015b92915050565b60006110ca6114a1565b905090565b6110d7612215565b6001600160a01b0316336001600160a01b03161480611170575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561114357600080fd5b505afa158015611157573d6000803e3d6000fd5b505050506040513d602081101561116d57600080fd5b50515b6111af576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60ff5460408051630a7e91ad60e11b81526004810184905290516001600160a01b03909216916314fd235a9160248082019260009290919082900301818387803b1580156111fc57600080fd5b505af1158015611210573d6000803e3d6000fd5b5050505050565b60675490565b6001600160a01b038316600090815261010a602052604081205484904310156112775760405162461bcd60e51b815260040180806020018281038252602f815260200180614a75602f913960400191505060405180910390fd5b6112828585856137e1565b95945050505050565b611293612215565b6001600160a01b0316336001600160a01b0316148061132c575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b1580156112ff57600080fd5b505afa158015611313573d6000803e3d6000fd5b505050506040513d602081101561132957600080fd5b50515b61136b576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60ff5460408051630ae994fb60e21b81526004810184905290516001600160a01b0390921691632ba653ec9160248082019260009290919082900301818387803b1580156111fc57600080fd5b6113c0612215565b6001600160a01b0316336001600160a01b03161480611459575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561142c57600080fd5b505afa158015611440573d6000803e3d6000fd5b505050506040513d602081101561145657600080fd5b50515b610ea2576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b606a5460ff1690565b60006110ca6114ae613019565b6114b66120a0565b9063ffffffff61364216565b60006110b66114cf6136f1565b8461151685606660006114e06136f1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61364216565b6136f5565b610109805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156115a25780601f10611577576101008083540402835291602001916115a2565b820191906000526020600020905b81548152906001019060200180831161158557829003601f168201915b505050505081565b6115b2612215565b6001600160a01b0316336001600160a01b0316148061164b575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561161e57600080fd5b505afa158015611632573d6000803e3d6000fd5b505050506040513d602081101561164857600080fd5b50515b61168a576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60ff80546001600160a01b0319166001600160a01b0392909216919091179055565b6116b4612215565b6001600160a01b0316336001600160a01b0316148061174d575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561172057600080fd5b505afa158015611734573d6000803e3d6000fd5b505050506040513d602081101561174a57600080fd5b50515b61178c576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b611794613869565b61179c61386f565b565b60006117a8612215565b6001600160a01b0316336001600160a01b03161480611841575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561181457600080fd5b505afa158015611828573d6000803e3d6000fd5b505050506040513d602081101561183e57600080fd5b50515b611880576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b611888613919565b50600190565b61010b5460408051638ef7359f60e01b815233600482015290516001600160a01b0390921691638ef7359f91602480820192602092909190829003018186803b1580156118da57600080fd5b505afa1580156118ee573d6000803e3d6000fd5b505050506040513d602081101561190457600080fd5b50516119415760405162461bcd60e51b8152600401808060200182810382526023815260200180614a526023913960400191505060405180910390fd5b6040514790600090339083908381818185875af1925050503d8060008114611985576040519150601f19603f3d011682016040523d82523d6000602084013e61198a565b606091505b50509050806119d2576040805162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b60fc8054600090915560fd546119f8906001600160a01b0316338363ffffffff6139b716565b604080518481526020810183905281517f17321e0553949bd83c456af1d2fb55ef7f4cf9cda87b9512c9ea532becaab5f6929181900390910190a1505050565b600054610100900460ff1680611a515750611a51613a09565b80611a5f575060005460ff16155b611a9a5760405162461bcd60e51b815260040180806020018281038252602e815260200180614b2d602e913960400191505060405180910390fd5b600054610100900460ff16158015611ac5576000805460ff1961ff0019909116610100171660011790555b611acd613a0f565b611ad5613ab0565b611b32604051806040016040528060058152602001640f0929c86960db1b8152508c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613ba992505050565b611b3f6101098a8a614851565b5060fd80546001600160a01b03808a166001600160a01b031992831617909255610100805489841690831617905560fe805492881692909116919091179055611b89848484613c81565b8015611b9b576000805461ff00191690555b5050505050505050505050565b611bb06136f1565b6097546001600160a01b03908116911614611c00576040805162461bcd60e51b81526020600482018190526024820152600080516020614b0d833981519152604482015290519081900360640190fd5b61010b546001600160a01b031615611c5f576040805162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420736574206d616e616765722074776963650000000000000000604482015290519081900360640190fd5b61010b80546001600160a01b0319166001600160a01b0392909216919091179055565b611c8a612215565b6001600160a01b0316336001600160a01b03161480611d23575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015611cf657600080fd5b505afa158015611d0a573d6000803e3d6000fd5b505050506040513d6020811015611d2057600080fd5b50515b611d62576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b6000611d6d30611fe3565b90508015610eab57610eab30338363ffffffff6139b716565b60c95460ff1690565b611d97612215565b6001600160a01b0316336001600160a01b03161480611e30575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015611e0357600080fd5b505afa158015611e17573d6000803e3d6000fd5b505050506040513d6020811015611e2d57600080fd5b50515b611e6f576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b61010180546001600160a01b0319166001600160a01b0392909216919091179055565b61010654610107546101085483565b611ea9612215565b6001600160a01b0316336001600160a01b03161480611f42575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015611f1557600080fd5b505afa158015611f29573d6000803e3d6000fd5b505050506040513d6020811015611f3f57600080fd5b50515b611f81576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b816001600160a01b03166311212d66826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611fc757600080fd5b505af1158015611fdb573d6000803e3d6000fd5b505050505050565b6001600160a01b031660009081526065602052604090205490565b6120066136f1565b6097546001600160a01b03908116911614612056576040805162461bcd60e51b81526020600482018190526024820152600080516020614b0d833981519152604482015290519081900360640190fd5b6097546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3609780546001600160a01b0319169055565b61010054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156120ec57600080fd5b505afa158015612100573d6000803e3d6000fd5b505050506040513d602081101561211657600080fd5b5051905090565b612125612215565b6001600160a01b0316336001600160a01b031614806121be575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561219157600080fd5b505afa1580156121a5573d6000803e3d6000fd5b505050506040513d60208110156121bb57600080fd5b50515b6121fd576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b612205613869565b61220d61386f565b61179c613db6565b6097546001600160a01b031690565b60fb5481565b60698054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110975780601f1061106c57610100808354040283529160200191611097565b612293612215565b6001600160a01b0316336001600160a01b0316148061232c575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b1580156122ff57600080fd5b505afa158015612313573d6000803e3d6000fd5b505050506040513d602081101561232957600080fd5b50515b61236b576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60ff5460408051639725ff3560e01b81526004810184905290516001600160a01b0390921691639725ff359160248082019260009290919082900301818387803b1580156111fc57600080fd5b61010a6020526000908152604090205481565b60c95460ff1615612416576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b33600081815261010a60205260409020544310156124655760405162461bcd60e51b815260040180806020018281038252602f815260200180614a75602f913960400191505060405180910390fd5b600034116124aa576040805162461bcd60e51b815260206004820152600d60248201526c09aeae6e840e6cadcc8408aa89609b1b604482015290519081900360640190fd5b6124b333613e52565b60006124c53461010660000154613e72565b905060006124d9348363ffffffff613e8a16565b905060006124e5613019565b60fe5460fd546040805163d5bcb9b560e01b81526000600482018190526001600160a01b03938416602483015260448201889052606482018b90526084820152905193945091169163d5bcb9b591859160a480830192602092919082900301818588803b15801561255557600080fd5b505af1158015612569573d6000803e3d6000fd5b50505050506040513d602081101561258057600080fd5b50611210905061259e82612592613019565b9063ffffffff613e8a16565b613ecc565b6125ab612215565b6001600160a01b0316336001600160a01b03161480612644575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561261757600080fd5b505afa15801561262b573d6000803e3d6000fd5b505050506040513d602081101561264157600080fd5b50515b612683576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b816001600160a01b03166307a80070826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611fc757600080fd5b60006110b66126d66136f1565b8461151685604051806060016040528060258152602001614c2560259139606660006127006136f1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff613eeb16565b61273f612215565b6001600160a01b0316336001600160a01b031614806127d8575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b1580156127ab57600080fd5b505afa1580156127bf573d6000803e3d6000fd5b505050506040513d60208110156127d557600080fd5b50515b612817576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b610101546040805163a5699e3560e01b8152600481018590526024810184905290516001600160a01b039092169163a5699e359160448082019260009290919082900301818387803b158015611fc757600080fd5b33600081815261010a60205260408120549091904310156128be5760405162461bcd60e51b815260040180806020018281038252602f815260200180614a75602f913960400191505060405180910390fd5b6128c88484613f82565b949350505050565b60006128da612215565b6001600160a01b0316336001600160a01b03161480612973575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561294657600080fd5b505afa15801561295a573d6000803e3d6000fd5b505050506040513d602081101561297057600080fd5b50515b6129b2576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b611888613f96565b60c95460ff1615612a05576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b33600081815261010a6020526040902054431015612a545760405162461bcd60e51b815260040180806020018281038252602f815260200180614a75602f913960400191505060405180910390fd5b60008211612a9b576040805162461bcd60e51b815260206004820152600f60248201526e26bab9ba1039b2b732103a37b5b2b760891b604482015290519081900360640190fd5b612aa433613e52565b60fd54612ac2906001600160a01b031633308563ffffffff61401716565b6000612ad48361010660000154613e72565b9050612adf81614077565b612af261259e848363ffffffff613e8a16565b505b5050565b612b00612215565b6001600160a01b0316336001600160a01b03161480612b99575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015612b6c57600080fd5b505afa158015612b80573d6000803e3d6000fd5b505050506040513d6020811015612b9657600080fd5b50515b612bd8576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60fe546001600160a01b0382811691161480612c025750610100546001600160a01b038281169116145b612c0b57600080fd5b60fd54610eab906001600160a01b03168260001963ffffffff61409016565b612c32612215565b6001600160a01b0316336001600160a01b03161480612ccb575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015612c9e57600080fd5b505afa158015612cb2573d6000803e3d6000fd5b505050506040513d6020811015612cc857600080fd5b50515b612d0a576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b816001600160a01b031663eaadf848826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611fc757600080fd5b612d586148cf565b612d606148cf565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee825260fd546001600160a01b031660208084019190915247825260fc54908201529091565b612da2612215565b6001600160a01b0316336001600160a01b03161480612e3b575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015612e0e57600080fd5b505afa158015612e22573d6000803e3d6000fd5b505050506040513d6020811015612e3857600080fd5b50515b612e7a576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b61010280546001600160a01b0319166001600160a01b0392909216919091179055565b612ea5612215565b6001600160a01b0316336001600160a01b03161480612f3e575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015612f1157600080fd5b505afa158015612f25573d6000803e3d6000fd5b505050506040513d6020811015612f3b57600080fd5b50515b612f7d576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60ff546040805163d8f4e0eb60e01b81526004810184905290516001600160a01b039092169163d8f4e0eb9160248082019260009290919082900301818387803b1580156111fc57600080fd5b600081612fe957612fe283600a63ffffffff6141a316565b90506110ba565b6000612ff7846125926114a1565b90506128c88161300d868663ffffffff6141a316565b9063ffffffff6141fc16565b60fc5460fd54604080516370a0823160e01b815230600482015290516000936110ca9390926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561307057600080fd5b505afa158015613084573d6000803e3d6000fd5b505050506040513d602081101561309a57600080fd5b50519063ffffffff613e8a16565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205490565b33600081815261010a60205260409020544310156131225760405162461bcd60e51b815260040180806020018281038252602f815260200180614a75602f913960400191505060405180910390fd5b60008411613169576040805162461bcd60e51b815260206004820152600f60248201526e09aeae6e840e6cadcc840f0929c869608b1b604482015290519081900360640190fd5b61317233613e52565b600061317c6120a0565b90506000613188613019565b9050600061319c838363ffffffff61364216565b905060006131bb6131ab611217565b61300d848b63ffffffff6141a316565b905082811115613212576040805162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e742065786974206c69717569646974790000000000604482015290519081900360640190fd5b61321c338961423e565b86156133095760006132348261010660010154613e72565b905061323f81614077565b60fe5460fd546001600160a01b039182169163e331d0399116600061326a868663ffffffff613e8a16565b604080516001600160e01b031960e087901b1681526001600160a01b0394851660048201529290931660248301526044820152606481018b90526000608482018190523360a4830152915160c48083019360209383900390910190829087803b1580156132d657600080fd5b505af11580156132ea573d6000803e3d6000fd5b505050506040513d602081101561330057600080fd5b50613355915050565b600061331b8261010660010154613e72565b905061332681614077565b6133533361333a848463ffffffff613e8a16565b60fd546001600160a01b0316919063ffffffff6139b716565b505b5050505050505050565b6133676136f1565b6097546001600160a01b039081169116146133b7576040805162461bcd60e51b81526020600482018190526024820152600080516020614b0d833981519152604482015290519081900360640190fd5b612af2838383613c81565b6133ca612215565b6001600160a01b0316336001600160a01b03161480613463575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561343657600080fd5b505afa15801561344a573d6000803e3d6000fd5b505050506040513d602081101561346057600080fd5b50515b6134a2576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60ff546040805163e9f7e17b60e01b81526004810184905290516001600160a01b039092169163e9f7e17b9160248082019260009290919082900301818387803b1580156111fc57600080fd5b60fb544290613507906224ea0063ffffffff61364216565b116122055760405162461bcd60e51b81526004018080602001828103825260298152602001806149996029913960400191505060405180910390fd5b61354b6136f1565b6097546001600160a01b0390811691161461359b576040805162461bcd60e51b81526020600482018190526024820152600080516020614b0d833981519152604482015290519081900360640190fd5b6001600160a01b0381166135e05760405162461bcd60e51b81526004018080602001828103825260268152602001806149e46026913960400191505060405180910390fd5b6097546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b60fc5481565b60008282018381101561369c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b61010054604080516305c2fbcf60e31b81526004810184905290516001600160a01b0390921691632e17de789160248082019260009290919082900301818387803b1580156111fc57600080fd5b3390565b6001600160a01b03831661373a5760405162461bcd60e51b8152600401808060200182810382526024815260200180614ba16024913960400191505060405180910390fd5b6001600160a01b03821661377f5760405162461bcd60e51b8152600401808060200182810382526022815260200180614a0a6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260666020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006137ee848484614346565b61385f846137fa6136f1565b61151685604051806060016040528060288152602001614ae5602891396001600160a01b038a166000908152606660205260408120906138386136f1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff613eeb16565b5060019392505050565b4260fb55565b6000613879613019565b905061010260009054906101000a90046001600160a01b03166001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156138cc57600080fd5b505af11580156138e0573d6000803e3d6000fd5b5050505060006138ee613019565b9050600061390e613905838563ffffffff613e8a16565b61010854613e72565b9050612af281614077565b60c95460ff1615613964576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b60c9805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861399a6136f1565b604080516001600160a01b039092168252519081900360200190a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612af29084906144af565b303b1590565b600054610100900460ff1680613a285750613a28613a09565b80613a36575060005460ff16155b613a715760405162461bcd60e51b815260040180806020018281038252602e815260200180614b2d602e913960400191505060405180910390fd5b600054610100900460ff16158015613a9c576000805460ff1961ff0019909116610100171660011790555b8015610eab576000805461ff001916905550565b600054610100900460ff1680613ac95750613ac9613a09565b80613ad7575060005460ff16155b613b125760405162461bcd60e51b815260040180806020018281038252602e815260200180614b2d602e913960400191505060405180910390fd5b600054610100900460ff16158015613b3d576000805460ff1961ff0019909116610100171660011790555b6000613b476136f1565b609780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015610eab576000805461ff001916905550565b600054610100900460ff1680613bc25750613bc2613a09565b80613bd0575060005460ff16155b613c0b5760405162461bcd60e51b815260040180806020018281038252602e815260200180614b2d602e913960400191505060405180910390fd5b600054610100900460ff16158015613c36576000805460ff1961ff0019909116610100171660011790555b8251613c499060689060208601906148ed565b508151613c5d9060699060208501906148ed565b50606a805460ff191660121790558015612af2576000805461ff0019169055505050565b821580613c8f575060328310155b613cce576040805162461bcd60e51b815260206004820152600b60248201526a496e76616c69642066656560a81b604482015290519081900360640190fd5b811580613cdc575060648210155b613d1b576040805162461bcd60e51b815260206004820152600b60248201526a496e76616c69642066656560a81b604482015290519081900360640190fd5b6019811015613d5f576040805162461bcd60e51b815260206004820152600b60248201526a496e76616c69642066656560a81b604482015290519081900360640190fd5b610106839055610107829055610108819055604080518481526020810184905280820183905290517f985786ed84548f26eae234688f08682cdd04f5b552190a894b31307afd72c46a9181900360600190a1505050565b6000613dc06120a0565b90506000613dcc613019565b90506000613de5601461300d858563ffffffff61364216565b905080821115613e0c57613e07613e02838363ffffffff613e8a16565b614667565b613e24565b613e24613e1f828463ffffffff613e8a16565b6136a3565b6040517ff57243a1fddfdc9fa2c7de26cc3503b1b94cfd4368d2b82d0970bfbb2fbce3a490600090a1505050565b6001600160a01b0316600090815261010a60205260409020436006019055565b600081156110ba5761369c838363ffffffff6141fc16565b600061369c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613eeb565b6000613edf82613eda611217565b612fca565b9050612af433826146b5565b60008184841115613f7a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613f3f578181015183820152602001613f27565b50505050905090810190601f168015613f6c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60006110b6613f8f6136f1565b8484614346565b60c95460ff16613fe4576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b60c9805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61399a6136f1565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526140719085906144af565b50505050565b60fc5461408a908263ffffffff61364216565b60fc5550565b801580614116575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156140e857600080fd5b505afa1580156140fc573d6000803e3d6000fd5b505050506040513d602081101561411257600080fd5b5051155b6141515760405162461bcd60e51b8152600401808060200182810382526036815260200180614bef6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052612af29084906144af565b6000826141b2575060006110ba565b828202828482816141bf57fe5b041461369c5760405162461bcd60e51b8152600401808060200182810382526021815260200180614ac46021913960400191505060405180910390fd5b600061369c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506147b3565b6001600160a01b0382166142835760405162461bcd60e51b8152600401808060200182810382526021815260200180614b5b6021913960400191505060405180910390fd5b61428f82600083612af2565b6142d2816040518060600160405280602281526020016149c2602291396001600160a01b038516600090815260656020526040902054919063ffffffff613eeb16565b6001600160a01b0383166000908152606560205260409020556067546142fe908263ffffffff613e8a16565b6067556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b03831661438b5760405162461bcd60e51b8152600401808060200182810382526025815260200180614b7c6025913960400191505060405180910390fd5b6001600160a01b0382166143d05760405162461bcd60e51b81526004018080602001828103825260238152602001806149766023913960400191505060405180910390fd5b6143db838383612af2565b61441e81604051806060016040528060268152602001614a2c602691396001600160a01b038616600090815260656020526040902054919063ffffffff613eeb16565b6001600160a01b038085166000908152606560205260408082209390935590841681522054614453908263ffffffff61364216565b6001600160a01b0380841660008181526065602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6144c1826001600160a01b0316614818565b614512576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106145505780518252601f199092019160209182019101614531565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146145b2576040519150601f19603f3d011682016040523d82523d6000602084013e6145b7565b606091505b50915091508161460e576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156140715780806020019051602081101561462a57600080fd5b50516140715760405162461bcd60e51b815260040180806020018281038252602a815260200180614bc5602a913960400191505060405180910390fd5b610100546040805163534a7e1d60e11b81526004810184905290516001600160a01b039092169163a694fc3a9160248082019260009290919082900301818387803b1580156111fc57600080fd5b6001600160a01b038216614710576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61471c60008383612af2565b60675461472f908263ffffffff61364216565b6067556001600160a01b03821660009081526065602052604090205461475b908263ffffffff61364216565b6001600160a01b03831660008181526065602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600081836148025760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613f3f578181015183820152602001613f27565b50600083858161480e57fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906128c8575050151592915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106148925782800160ff198235161785556148bf565b828001600101855582156148bf579182015b828111156148bf5782358255916020019190600101906148a4565b506148cb92915061495b565b5090565b60405180604001604052806002906020820280388339509192915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061492e57805160ff19168380011785556148bf565b828001600101855582156148bf579182015b828111156148bf578251825591602001919060010190614940565b61109f91905b808211156148cb576000815560010161496156fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734c69717569646174696f6e2074696d6520656c61707365643b206e6f206d6f7265207374616b696e6745524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636543616c6c61626c65206f6e6c7920627920526576656e756520436f6e74726f6c6c657246756e6374696f6e2069732074656d706f726172696c79206c6f636b656420666f72207468697320616464726573734e6f6e2d61646d696e2063616c6c657200000000000000000000000000000000536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212200b759ddca2098b39e0987577367880037d44614e72f66d1dd21069c5cea4a56d64736f6c63430006020033
Deployed Bytecode
0x60806040526004361061037a5760003560e01c806376965867116101d1578063b90fb49e11610102578063dd62ed3e116100a0578063ed8961041161006f578063ed89610414610ddb578063f2fde38b14610df0578063f38a8c0614610e23578063fdec72f2146105e7576103cb565b8063dd62ed3e14610d08578063df22db8814610d43578063e7654b3c14610d7b578063e9f7e17b14610db1576103cb565b8063d8d8f69b116100dc578063d8d8f69b14610c66578063d8f4e0eb14610c99578063d9bb717014610cc3578063dc24fc0714610cf3576103cb565b8063b90fb49e14610b7e578063cbf325b614610bb1578063d7785bdb14610bea576103cb565b8063a0712d681161016f578063a5699e3511610149578063a5699e3514610ad6578063a9059cbb14610b06578063b33712c514610b3f578063b3eaff8b14610b54576103cb565b8063a0712d6814610a47578063a1e12fc314610a64578063a457c2d714610a9d576103cb565b80639154d77c116101ab5780639154d77c146109c057806395d89b41146109d55780639725ff35146109ea5780639f3e8b3414610a14576103cb565b806376965867146109655780637d7c2a1c1461097a5780638da5cb5b1461098f576103cb565b80633b4d2d39116102ab5780635c975abb11610249578063693986f611610223578063693986f6146108cf5780636ff9b43a1461090857806370a082311461091d578063715018a614610950576103cb565b80635c975abb146108545780635cb4746914610869578063629c577e1461089c576103cb565b8063476343ee11610285578063476343ee146106fc57806354bb3b29146107115780635981b5d31461080c5780635a18664c1461083f576103cb565b80633b4d2d391461069f5780633d18b912146106d2578063439766ce146106e7576103cb565b806323b872dd11610318578063313ce567116102f2578063313ce567146106115780633552c62f1461063c578063395093511461065157806339b1b96d1461068a576103cb565b806323b872dd1461057a5780632ba653ec146105bd5780632e17de78146105e7576103cb565b8063095ea7b311610354578063095ea7b3146104c75780630d44e3ed1461051457806314fd235a1461053b57806318160ddd14610565576103cb565b8063012ce501146103d057806303b17808146103fa57806306fdde031461043d576103cb565b366103cb57333214156103c9576040805162461bcd60e51b8152602060048201526012602482015271115c9c985b9d081155120819195c1bdcda5d60721b604482015290519081900360640190fd5b005b600080fd5b3480156103dc57600080fd5b506103c9600480360360208110156103f357600080fd5b5035610e38565b34801561040657600080fd5b506103c96004803603606081101561041d57600080fd5b506001600160a01b03813581169160208101359160409091013516610eae565b34801561044957600080fd5b5061045261100b565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561048c578181015183820152602001610474565b50505050905090810190601f1680156104b95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156104d357600080fd5b50610500600480360360408110156104ea57600080fd5b506001600160a01b0381351690602001356110a2565b604080519115158252519081900360200190f35b34801561052057600080fd5b506105296110c0565b60408051918252519081900360200190f35b34801561054757600080fd5b506103c96004803603602081101561055e57600080fd5b50356110cf565b34801561057157600080fd5b50610529611217565b34801561058657600080fd5b506105006004803603606081101561059d57600080fd5b506001600160a01b0381358116916020810135909116906040013561121d565b3480156105c957600080fd5b506103c9600480360360208110156105e057600080fd5b503561128b565b3480156105f357600080fd5b506103c96004803603602081101561060a57600080fd5b50356113b8565b34801561061d57600080fd5b50610626611498565b6040805160ff9092168252519081900360200190f35b34801561064857600080fd5b506105296114a1565b34801561065d57600080fd5b506105006004803603604081101561067457600080fd5b506001600160a01b0381351690602001356114c2565b34801561069657600080fd5b5061045261151b565b3480156106ab57600080fd5b506103c9600480360360208110156106c257600080fd5b50356001600160a01b03166115aa565b3480156106de57600080fd5b506103c96116ac565b3480156106f357600080fd5b5061050061179e565b34801561070857600080fd5b506103c961188e565b34801561071d57600080fd5b506103c9600480360361010081101561073557600080fd5b81019060208101813564010000000081111561075057600080fd5b82018360208201111561076257600080fd5b8035906020019184600183028401116401000000008311171561078457600080fd5b9193909290916020810190356401000000008111156107a257600080fd5b8201836020820111156107b457600080fd5b803590602001918460018302840111640100000000831117156107d657600080fd5b91935091506001600160a01b03813581169160208101358216916040820135169060608101359060808101359060a00135611a38565b34801561081857600080fd5b506103c96004803603602081101561082f57600080fd5b50356001600160a01b0316611ba8565b34801561084b57600080fd5b506103c9611c82565b34801561086057600080fd5b50610500611d86565b34801561087557600080fd5b506103c96004803603602081101561088c57600080fd5b50356001600160a01b0316611d8f565b3480156108a857600080fd5b506108b1611e92565b60408051938452602084019290925282820152519081900360600190f35b3480156108db57600080fd5b506103c9600480360360408110156108f257600080fd5b506001600160a01b038135169060200135611ea1565b34801561091457600080fd5b506103c9611794565b34801561092957600080fd5b506105296004803603602081101561094057600080fd5b50356001600160a01b0316611fe3565b34801561095c57600080fd5b506103c9611ffe565b34801561097157600080fd5b506105296120a0565b34801561098657600080fd5b506103c961211d565b34801561099b57600080fd5b506109a4612215565b604080516001600160a01b039092168252519081900360200190f35b3480156109cc57600080fd5b50610529612224565b3480156109e157600080fd5b5061045261222a565b3480156109f657600080fd5b506103c960048036036020811015610a0d57600080fd5b503561228b565b348015610a2057600080fd5b5061052960048036036020811015610a3757600080fd5b50356001600160a01b03166123b8565b6103c960048036036020811015610a5d57600080fd5b50356123cb565b348015610a7057600080fd5b506103c960048036036040811015610a8757600080fd5b506001600160a01b0381351690602001356125a3565b348015610aa957600080fd5b5061050060048036036040811015610ac057600080fd5b506001600160a01b0381351690602001356126c9565b348015610ae257600080fd5b506103c960048036036040811015610af957600080fd5b5080359060200135612737565b348015610b1257600080fd5b5061050060048036036040811015610b2957600080fd5b506001600160a01b03813516906020013561286c565b348015610b4b57600080fd5b506105006128d0565b348015610b6057600080fd5b506103c960048036036020811015610b7757600080fd5b50356129ba565b348015610b8a57600080fd5b506103c960048036036020811015610ba157600080fd5b50356001600160a01b0316612af8565b348015610bbd57600080fd5b506103c960048036036040811015610bd457600080fd5b506001600160a01b038135169060200135612c2a565b348015610bf657600080fd5b50610bff612d50565b6040518083600260200280838360005b83811015610c27578181015183820152602001610c0f565b5050505090500182600260200280838360005b83811015610c52578181015183820152602001610c3a565b505050509050019250505060405180910390f35b348015610c7257600080fd5b506103c960048036036020811015610c8957600080fd5b50356001600160a01b0316612d9a565b348015610ca557600080fd5b506103c960048036036020811015610cbc57600080fd5b5035612e9d565b348015610ccf57600080fd5b5061052960048036036040811015610ce657600080fd5b5080359060200135612fca565b348015610cff57600080fd5b50610529613019565b348015610d1457600080fd5b5061052960048036036040811015610d2b57600080fd5b506001600160a01b03813581169160200135166130a8565b348015610d4f57600080fd5b506103c960048036036060811015610d6657600080fd5b508035906020810135151590604001356130d3565b348015610d8757600080fd5b506103c960048036036060811015610d9e57600080fd5b508035906020810135906040013561335f565b348015610dbd57600080fd5b506103c960048036036020811015610dd457600080fd5b50356133c2565b348015610de757600080fd5b506103c96134ef565b348015610dfc57600080fd5b506103c960048036036020811015610e1357600080fd5b50356001600160a01b0316613543565b348015610e2f57600080fd5b5061052961363c565b60fb544290610e50906224ea0063ffffffff61364216565b10610ea2576040805162461bcd60e51b815260206004820152601c60248201527f4c69717569646174696f6e2074696d65206e6f7420656c617073656400000000604482015290519081900360640190fd5b610eab816136a3565b50565b610eb6612215565b6001600160a01b0316336001600160a01b03161480610f4f575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015610f2257600080fd5b505afa158015610f36573d6000803e3d6000fd5b505050506040513d6020811015610f4c57600080fd5b50515b610f8e576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b826001600160a01b031663bd86e50883836040518363ffffffff1660e01b815260040180838152602001826001600160a01b03166001600160a01b0316815260200192505050600060405180830381600087803b158015610fee57600080fd5b505af1158015611002573d6000803e3d6000fd5b50505050505050565b60688054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110975780601f1061106c57610100808354040283529160200191611097565b820191906000526020600020905b81548152906001019060200180831161107a57829003601f168201915b505050505090505b90565b60006110b66110af6136f1565b84846136f5565b5060015b92915050565b60006110ca6114a1565b905090565b6110d7612215565b6001600160a01b0316336001600160a01b03161480611170575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561114357600080fd5b505afa158015611157573d6000803e3d6000fd5b505050506040513d602081101561116d57600080fd5b50515b6111af576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60ff5460408051630a7e91ad60e11b81526004810184905290516001600160a01b03909216916314fd235a9160248082019260009290919082900301818387803b1580156111fc57600080fd5b505af1158015611210573d6000803e3d6000fd5b5050505050565b60675490565b6001600160a01b038316600090815261010a602052604081205484904310156112775760405162461bcd60e51b815260040180806020018281038252602f815260200180614a75602f913960400191505060405180910390fd5b6112828585856137e1565b95945050505050565b611293612215565b6001600160a01b0316336001600160a01b0316148061132c575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b1580156112ff57600080fd5b505afa158015611313573d6000803e3d6000fd5b505050506040513d602081101561132957600080fd5b50515b61136b576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60ff5460408051630ae994fb60e21b81526004810184905290516001600160a01b0390921691632ba653ec9160248082019260009290919082900301818387803b1580156111fc57600080fd5b6113c0612215565b6001600160a01b0316336001600160a01b03161480611459575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561142c57600080fd5b505afa158015611440573d6000803e3d6000fd5b505050506040513d602081101561145657600080fd5b50515b610ea2576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b606a5460ff1690565b60006110ca6114ae613019565b6114b66120a0565b9063ffffffff61364216565b60006110b66114cf6136f1565b8461151685606660006114e06136f1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61364216565b6136f5565b610109805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156115a25780601f10611577576101008083540402835291602001916115a2565b820191906000526020600020905b81548152906001019060200180831161158557829003601f168201915b505050505081565b6115b2612215565b6001600160a01b0316336001600160a01b0316148061164b575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561161e57600080fd5b505afa158015611632573d6000803e3d6000fd5b505050506040513d602081101561164857600080fd5b50515b61168a576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60ff80546001600160a01b0319166001600160a01b0392909216919091179055565b6116b4612215565b6001600160a01b0316336001600160a01b0316148061174d575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561172057600080fd5b505afa158015611734573d6000803e3d6000fd5b505050506040513d602081101561174a57600080fd5b50515b61178c576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b611794613869565b61179c61386f565b565b60006117a8612215565b6001600160a01b0316336001600160a01b03161480611841575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561181457600080fd5b505afa158015611828573d6000803e3d6000fd5b505050506040513d602081101561183e57600080fd5b50515b611880576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b611888613919565b50600190565b61010b5460408051638ef7359f60e01b815233600482015290516001600160a01b0390921691638ef7359f91602480820192602092909190829003018186803b1580156118da57600080fd5b505afa1580156118ee573d6000803e3d6000fd5b505050506040513d602081101561190457600080fd5b50516119415760405162461bcd60e51b8152600401808060200182810382526023815260200180614a526023913960400191505060405180910390fd5b6040514790600090339083908381818185875af1925050503d8060008114611985576040519150601f19603f3d011682016040523d82523d6000602084013e61198a565b606091505b50509050806119d2576040805162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b60fc8054600090915560fd546119f8906001600160a01b0316338363ffffffff6139b716565b604080518481526020810183905281517f17321e0553949bd83c456af1d2fb55ef7f4cf9cda87b9512c9ea532becaab5f6929181900390910190a1505050565b600054610100900460ff1680611a515750611a51613a09565b80611a5f575060005460ff16155b611a9a5760405162461bcd60e51b815260040180806020018281038252602e815260200180614b2d602e913960400191505060405180910390fd5b600054610100900460ff16158015611ac5576000805460ff1961ff0019909116610100171660011790555b611acd613a0f565b611ad5613ab0565b611b32604051806040016040528060058152602001640f0929c86960db1b8152508c8c8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250613ba992505050565b611b3f6101098a8a614851565b5060fd80546001600160a01b03808a166001600160a01b031992831617909255610100805489841690831617905560fe805492881692909116919091179055611b89848484613c81565b8015611b9b576000805461ff00191690555b5050505050505050505050565b611bb06136f1565b6097546001600160a01b03908116911614611c00576040805162461bcd60e51b81526020600482018190526024820152600080516020614b0d833981519152604482015290519081900360640190fd5b61010b546001600160a01b031615611c5f576040805162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420736574206d616e616765722074776963650000000000000000604482015290519081900360640190fd5b61010b80546001600160a01b0319166001600160a01b0392909216919091179055565b611c8a612215565b6001600160a01b0316336001600160a01b03161480611d23575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015611cf657600080fd5b505afa158015611d0a573d6000803e3d6000fd5b505050506040513d6020811015611d2057600080fd5b50515b611d62576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b6000611d6d30611fe3565b90508015610eab57610eab30338363ffffffff6139b716565b60c95460ff1690565b611d97612215565b6001600160a01b0316336001600160a01b03161480611e30575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015611e0357600080fd5b505afa158015611e17573d6000803e3d6000fd5b505050506040513d6020811015611e2d57600080fd5b50515b611e6f576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b61010180546001600160a01b0319166001600160a01b0392909216919091179055565b61010654610107546101085483565b611ea9612215565b6001600160a01b0316336001600160a01b03161480611f42575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015611f1557600080fd5b505afa158015611f29573d6000803e3d6000fd5b505050506040513d6020811015611f3f57600080fd5b50515b611f81576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b816001600160a01b03166311212d66826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611fc757600080fd5b505af1158015611fdb573d6000803e3d6000fd5b505050505050565b6001600160a01b031660009081526065602052604090205490565b6120066136f1565b6097546001600160a01b03908116911614612056576040805162461bcd60e51b81526020600482018190526024820152600080516020614b0d833981519152604482015290519081900360640190fd5b6097546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3609780546001600160a01b0319169055565b61010054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156120ec57600080fd5b505afa158015612100573d6000803e3d6000fd5b505050506040513d602081101561211657600080fd5b5051905090565b612125612215565b6001600160a01b0316336001600160a01b031614806121be575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561219157600080fd5b505afa1580156121a5573d6000803e3d6000fd5b505050506040513d60208110156121bb57600080fd5b50515b6121fd576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b612205613869565b61220d61386f565b61179c613db6565b6097546001600160a01b031690565b60fb5481565b60698054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156110975780601f1061106c57610100808354040283529160200191611097565b612293612215565b6001600160a01b0316336001600160a01b0316148061232c575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b1580156122ff57600080fd5b505afa158015612313573d6000803e3d6000fd5b505050506040513d602081101561232957600080fd5b50515b61236b576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60ff5460408051639725ff3560e01b81526004810184905290516001600160a01b0390921691639725ff359160248082019260009290919082900301818387803b1580156111fc57600080fd5b61010a6020526000908152604090205481565b60c95460ff1615612416576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b33600081815261010a60205260409020544310156124655760405162461bcd60e51b815260040180806020018281038252602f815260200180614a75602f913960400191505060405180910390fd5b600034116124aa576040805162461bcd60e51b815260206004820152600d60248201526c09aeae6e840e6cadcc8408aa89609b1b604482015290519081900360640190fd5b6124b333613e52565b60006124c53461010660000154613e72565b905060006124d9348363ffffffff613e8a16565b905060006124e5613019565b60fe5460fd546040805163d5bcb9b560e01b81526000600482018190526001600160a01b03938416602483015260448201889052606482018b90526084820152905193945091169163d5bcb9b591859160a480830192602092919082900301818588803b15801561255557600080fd5b505af1158015612569573d6000803e3d6000fd5b50505050506040513d602081101561258057600080fd5b50611210905061259e82612592613019565b9063ffffffff613e8a16565b613ecc565b6125ab612215565b6001600160a01b0316336001600160a01b03161480612644575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561261757600080fd5b505afa15801561262b573d6000803e3d6000fd5b505050506040513d602081101561264157600080fd5b50515b612683576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b816001600160a01b03166307a80070826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611fc757600080fd5b60006110b66126d66136f1565b8461151685604051806060016040528060258152602001614c2560259139606660006127006136f1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff613eeb16565b61273f612215565b6001600160a01b0316336001600160a01b031614806127d8575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b1580156127ab57600080fd5b505afa1580156127bf573d6000803e3d6000fd5b505050506040513d60208110156127d557600080fd5b50515b612817576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b610101546040805163a5699e3560e01b8152600481018590526024810184905290516001600160a01b039092169163a5699e359160448082019260009290919082900301818387803b158015611fc757600080fd5b33600081815261010a60205260408120549091904310156128be5760405162461bcd60e51b815260040180806020018281038252602f815260200180614a75602f913960400191505060405180910390fd5b6128c88484613f82565b949350505050565b60006128da612215565b6001600160a01b0316336001600160a01b03161480612973575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561294657600080fd5b505afa15801561295a573d6000803e3d6000fd5b505050506040513d602081101561297057600080fd5b50515b6129b2576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b611888613f96565b60c95460ff1615612a05576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b33600081815261010a6020526040902054431015612a545760405162461bcd60e51b815260040180806020018281038252602f815260200180614a75602f913960400191505060405180910390fd5b60008211612a9b576040805162461bcd60e51b815260206004820152600f60248201526e26bab9ba1039b2b732103a37b5b2b760891b604482015290519081900360640190fd5b612aa433613e52565b60fd54612ac2906001600160a01b031633308563ffffffff61401716565b6000612ad48361010660000154613e72565b9050612adf81614077565b612af261259e848363ffffffff613e8a16565b505b5050565b612b00612215565b6001600160a01b0316336001600160a01b03161480612b99575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015612b6c57600080fd5b505afa158015612b80573d6000803e3d6000fd5b505050506040513d6020811015612b9657600080fd5b50515b612bd8576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60fe546001600160a01b0382811691161480612c025750610100546001600160a01b038281169116145b612c0b57600080fd5b60fd54610eab906001600160a01b03168260001963ffffffff61409016565b612c32612215565b6001600160a01b0316336001600160a01b03161480612ccb575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015612c9e57600080fd5b505afa158015612cb2573d6000803e3d6000fd5b505050506040513d6020811015612cc857600080fd5b50515b612d0a576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b816001600160a01b031663eaadf848826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015611fc757600080fd5b612d586148cf565b612d606148cf565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee825260fd546001600160a01b031660208084019190915247825260fc54908201529091565b612da2612215565b6001600160a01b0316336001600160a01b03161480612e3b575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015612e0e57600080fd5b505afa158015612e22573d6000803e3d6000fd5b505050506040513d6020811015612e3857600080fd5b50515b612e7a576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b61010280546001600160a01b0319166001600160a01b0392909216919091179055565b612ea5612215565b6001600160a01b0316336001600160a01b03161480612f3e575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b158015612f1157600080fd5b505afa158015612f25573d6000803e3d6000fd5b505050506040513d6020811015612f3b57600080fd5b50515b612f7d576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60ff546040805163d8f4e0eb60e01b81526004810184905290516001600160a01b039092169163d8f4e0eb9160248082019260009290919082900301818387803b1580156111fc57600080fd5b600081612fe957612fe283600a63ffffffff6141a316565b90506110ba565b6000612ff7846125926114a1565b90506128c88161300d868663ffffffff6141a316565b9063ffffffff6141fc16565b60fc5460fd54604080516370a0823160e01b815230600482015290516000936110ca9390926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561307057600080fd5b505afa158015613084573d6000803e3d6000fd5b505050506040513d602081101561309a57600080fd5b50519063ffffffff613e8a16565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205490565b33600081815261010a60205260409020544310156131225760405162461bcd60e51b815260040180806020018281038252602f815260200180614a75602f913960400191505060405180910390fd5b60008411613169576040805162461bcd60e51b815260206004820152600f60248201526e09aeae6e840e6cadcc840f0929c869608b1b604482015290519081900360640190fd5b61317233613e52565b600061317c6120a0565b90506000613188613019565b9050600061319c838363ffffffff61364216565b905060006131bb6131ab611217565b61300d848b63ffffffff6141a316565b905082811115613212576040805162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e742065786974206c69717569646974790000000000604482015290519081900360640190fd5b61321c338961423e565b86156133095760006132348261010660010154613e72565b905061323f81614077565b60fe5460fd546001600160a01b039182169163e331d0399116600061326a868663ffffffff613e8a16565b604080516001600160e01b031960e087901b1681526001600160a01b0394851660048201529290931660248301526044820152606481018b90526000608482018190523360a4830152915160c48083019360209383900390910190829087803b1580156132d657600080fd5b505af11580156132ea573d6000803e3d6000fd5b505050506040513d602081101561330057600080fd5b50613355915050565b600061331b8261010660010154613e72565b905061332681614077565b6133533361333a848463ffffffff613e8a16565b60fd546001600160a01b0316919063ffffffff6139b716565b505b5050505050505050565b6133676136f1565b6097546001600160a01b039081169116146133b7576040805162461bcd60e51b81526020600482018190526024820152600080516020614b0d833981519152604482015290519081900360640190fd5b612af2838383613c81565b6133ca612215565b6001600160a01b0316336001600160a01b03161480613463575061010b546040805163177870e560e11b815233600482015230602482015290516001600160a01b0390921691632ef0e1ca91604480820192602092909190829003018186803b15801561343657600080fd5b505afa15801561344a573d6000803e3d6000fd5b505050506040513d602081101561346057600080fd5b50515b6134a2576040805162461bcd60e51b81526020600482015260106024820152600080516020614aa4833981519152604482015290519081900360640190fd5b60ff546040805163e9f7e17b60e01b81526004810184905290516001600160a01b039092169163e9f7e17b9160248082019260009290919082900301818387803b1580156111fc57600080fd5b60fb544290613507906224ea0063ffffffff61364216565b116122055760405162461bcd60e51b81526004018080602001828103825260298152602001806149996029913960400191505060405180910390fd5b61354b6136f1565b6097546001600160a01b0390811691161461359b576040805162461bcd60e51b81526020600482018190526024820152600080516020614b0d833981519152604482015290519081900360640190fd5b6001600160a01b0381166135e05760405162461bcd60e51b81526004018080602001828103825260268152602001806149e46026913960400191505060405180910390fd5b6097546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b60fc5481565b60008282018381101561369c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b61010054604080516305c2fbcf60e31b81526004810184905290516001600160a01b0390921691632e17de789160248082019260009290919082900301818387803b1580156111fc57600080fd5b3390565b6001600160a01b03831661373a5760405162461bcd60e51b8152600401808060200182810382526024815260200180614ba16024913960400191505060405180910390fd5b6001600160a01b03821661377f5760405162461bcd60e51b8152600401808060200182810382526022815260200180614a0a6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260666020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006137ee848484614346565b61385f846137fa6136f1565b61151685604051806060016040528060288152602001614ae5602891396001600160a01b038a166000908152606660205260408120906138386136f1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff613eeb16565b5060019392505050565b4260fb55565b6000613879613019565b905061010260009054906101000a90046001600160a01b03166001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156138cc57600080fd5b505af11580156138e0573d6000803e3d6000fd5b5050505060006138ee613019565b9050600061390e613905838563ffffffff613e8a16565b61010854613e72565b9050612af281614077565b60c95460ff1615613964576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b60c9805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861399a6136f1565b604080516001600160a01b039092168252519081900360200190a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612af29084906144af565b303b1590565b600054610100900460ff1680613a285750613a28613a09565b80613a36575060005460ff16155b613a715760405162461bcd60e51b815260040180806020018281038252602e815260200180614b2d602e913960400191505060405180910390fd5b600054610100900460ff16158015613a9c576000805460ff1961ff0019909116610100171660011790555b8015610eab576000805461ff001916905550565b600054610100900460ff1680613ac95750613ac9613a09565b80613ad7575060005460ff16155b613b125760405162461bcd60e51b815260040180806020018281038252602e815260200180614b2d602e913960400191505060405180910390fd5b600054610100900460ff16158015613b3d576000805460ff1961ff0019909116610100171660011790555b6000613b476136f1565b609780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015610eab576000805461ff001916905550565b600054610100900460ff1680613bc25750613bc2613a09565b80613bd0575060005460ff16155b613c0b5760405162461bcd60e51b815260040180806020018281038252602e815260200180614b2d602e913960400191505060405180910390fd5b600054610100900460ff16158015613c36576000805460ff1961ff0019909116610100171660011790555b8251613c499060689060208601906148ed565b508151613c5d9060699060208501906148ed565b50606a805460ff191660121790558015612af2576000805461ff0019169055505050565b821580613c8f575060328310155b613cce576040805162461bcd60e51b815260206004820152600b60248201526a496e76616c69642066656560a81b604482015290519081900360640190fd5b811580613cdc575060648210155b613d1b576040805162461bcd60e51b815260206004820152600b60248201526a496e76616c69642066656560a81b604482015290519081900360640190fd5b6019811015613d5f576040805162461bcd60e51b815260206004820152600b60248201526a496e76616c69642066656560a81b604482015290519081900360640190fd5b610106839055610107829055610108819055604080518481526020810184905280820183905290517f985786ed84548f26eae234688f08682cdd04f5b552190a894b31307afd72c46a9181900360600190a1505050565b6000613dc06120a0565b90506000613dcc613019565b90506000613de5601461300d858563ffffffff61364216565b905080821115613e0c57613e07613e02838363ffffffff613e8a16565b614667565b613e24565b613e24613e1f828463ffffffff613e8a16565b6136a3565b6040517ff57243a1fddfdc9fa2c7de26cc3503b1b94cfd4368d2b82d0970bfbb2fbce3a490600090a1505050565b6001600160a01b0316600090815261010a60205260409020436006019055565b600081156110ba5761369c838363ffffffff6141fc16565b600061369c83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613eeb565b6000613edf82613eda611217565b612fca565b9050612af433826146b5565b60008184841115613f7a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613f3f578181015183820152602001613f27565b50505050905090810190601f168015613f6c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60006110b6613f8f6136f1565b8484614346565b60c95460ff16613fe4576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b60c9805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61399a6136f1565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526140719085906144af565b50505050565b60fc5461408a908263ffffffff61364216565b60fc5550565b801580614116575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156140e857600080fd5b505afa1580156140fc573d6000803e3d6000fd5b505050506040513d602081101561411257600080fd5b5051155b6141515760405162461bcd60e51b8152600401808060200182810382526036815260200180614bef6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052612af29084906144af565b6000826141b2575060006110ba565b828202828482816141bf57fe5b041461369c5760405162461bcd60e51b8152600401808060200182810382526021815260200180614ac46021913960400191505060405180910390fd5b600061369c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506147b3565b6001600160a01b0382166142835760405162461bcd60e51b8152600401808060200182810382526021815260200180614b5b6021913960400191505060405180910390fd5b61428f82600083612af2565b6142d2816040518060600160405280602281526020016149c2602291396001600160a01b038516600090815260656020526040902054919063ffffffff613eeb16565b6001600160a01b0383166000908152606560205260409020556067546142fe908263ffffffff613e8a16565b6067556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b03831661438b5760405162461bcd60e51b8152600401808060200182810382526025815260200180614b7c6025913960400191505060405180910390fd5b6001600160a01b0382166143d05760405162461bcd60e51b81526004018080602001828103825260238152602001806149766023913960400191505060405180910390fd5b6143db838383612af2565b61441e81604051806060016040528060268152602001614a2c602691396001600160a01b038616600090815260656020526040902054919063ffffffff613eeb16565b6001600160a01b038085166000908152606560205260408082209390935590841681522054614453908263ffffffff61364216565b6001600160a01b0380841660008181526065602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6144c1826001600160a01b0316614818565b614512576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106145505780518252601f199092019160209182019101614531565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146145b2576040519150601f19603f3d011682016040523d82523d6000602084013e6145b7565b606091505b50915091508161460e576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156140715780806020019051602081101561462a57600080fd5b50516140715760405162461bcd60e51b815260040180806020018281038252602a815260200180614bc5602a913960400191505060405180910390fd5b610100546040805163534a7e1d60e11b81526004810184905290516001600160a01b039092169163a694fc3a9160248082019260009290919082900301818387803b1580156111fc57600080fd5b6001600160a01b038216614710576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61471c60008383612af2565b60675461472f908263ffffffff61364216565b6067556001600160a01b03821660009081526065602052604090205461475b908263ffffffff61364216565b6001600160a01b03831660008181526065602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600081836148025760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613f3f578181015183820152602001613f27565b50600083858161480e57fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906128c8575050151592915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106148925782800160ff198235161785556148bf565b828001600101855582156148bf579182015b828111156148bf5782358255916020019190600101906148a4565b506148cb92915061495b565b5090565b60405180604001604052806002906020820280388339509192915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061492e57805160ff19168380011785556148bf565b828001600101855582156148bf579182015b828111156148bf578251825591602001919060010190614940565b61109f91905b808211156148cb576000815560010161496156fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734c69717569646174696f6e2074696d6520656c61707365643b206e6f206d6f7265207374616b696e6745524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636543616c6c61626c65206f6e6c7920627920526576656e756520436f6e74726f6c6c657246756e6374696f6e2069732074656d706f726172696c79206c6f636b656420666f72207468697320616464726573734e6f6e2d61646d696e2063616c6c657200000000000000000000000000000000536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212200b759ddca2098b39e0987577367880037d44614e72f66d1dd21069c5cea4a56d64736f6c63430006020033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.