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
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/IExchangeGovernance.sol"; import "./interface/IGovernanceMothership.sol"; import "./interface/IMooniswapPoolGovernance.sol"; import "./interface/IMooniswapFactoryGovernance.sol"; import "./interface/IOneInchLiquidityProtocol.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; 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 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); } /* * @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); } /* ========================================================================================= */ /* 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 setManager(address _manager) external onlyOwner { manager = _manager; } function setManager2(address _manager2) external onlyOwner { manager2 = _manager2; } 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 onlyOwner { 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() || msg.sender == manager || msg.sender == manager2, "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; } 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 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); }
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":"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":[{"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":"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":"address","name":"_manager","type":"address"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_manager2","type":"address"}],"name":"setManager2","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
608060405234801561001057600080fd5b506142ec806100206000396000f3fe6080604052600436106103545760003560e01c80638bea72fb116101c6578063cbf325b6116100f7578063df22db8811610095578063ed8961041161006f578063ed89610414610d14578063f2fde38b14610d29578063f38a8c0614610d5c578063fdec72f214610569576103a5565b8063df22db8814610c7c578063e7654b3c14610cb4578063e9f7e17b14610cea576103a5565b8063d8f4e0eb116100d1578063d8f4e0eb14610bd2578063d9bb717014610bfc578063dc24fc0714610c2c578063dd62ed3e14610c41576103a5565b8063cbf325b614610b33578063d0ebdbe714610b6c578063d8d8f69b14610b9f576103a5565b8063a1e12fc311610164578063a9059cbb1161013e578063a9059cbb14610a88578063b33712c514610ac1578063b3eaff8b14610ad6578063b90fb49e14610b00576103a5565b8063a1e12fc3146109e6578063a457c2d714610a1f578063a5699e3514610a58576103a5565b806395d89b41116101a057806395d89b41146109575780639725ff351461096c5780639f3e8b3414610996578063a0712d68146109c9576103a5565b80638bea72fb146108de5780638da5cb5b146109115780639154d77c14610942576103a5565b80633d18b912116102a0578063629c577e1161023e57806370a082311161021857806370a082311461086c578063715018a61461089f57806376965867146108b45780637d7c2a1c146108c9576103a5565b8063629c577e146107eb578063693986f61461081e5780636ff9b43a14610857576103a5565b806354bb3b291161027a57806354bb3b29146106935780635a18664c1461078e5780635c975abb146107a35780635cb47469146107b8576103a5565b80633d18b91214610654578063439766ce14610669578063476343ee1461067e576103a5565b80632ba653ec1161030d5780633552c62f116102e75780633552c62f146105be57806339509351146105d357806339b1b96d1461060c5780633b4d2d3914610621576103a5565b80632ba653ec1461053f5780632e17de7814610569578063313ce56714610593576103a5565b8063012ce501146103aa57806306fdde03146103d4578063095ea7b31461045e57806314fd235a146104ab57806318160ddd146104d557806323b872dd146104fc576103a5565b366103a557333214156103a3576040805162461bcd60e51b8152602060048201526012602482015271115c9c985b9d081155120819195c1bdcda5d60721b604482015290519081900360640190fd5b005b600080fd5b3480156103b657600080fd5b506103a3600480360360208110156103cd57600080fd5b5035610d71565b3480156103e057600080fd5b506103e9610de7565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561042357818101518382015260200161040b565b50505050905090810190601f1680156104505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561046a57600080fd5b506104976004803603604081101561048157600080fd5b506001600160a01b038135169060200135610e7e565b604080519115158252519081900360200190f35b3480156104b757600080fd5b506103a3600480360360208110156104ce57600080fd5b5035610e9c565b3480156104e157600080fd5b506104ea610f8b565b60408051918252519081900360200190f35b34801561050857600080fd5b506104976004803603606081101561051f57600080fd5b506001600160a01b03813581169160208101359091169060400135610f91565b34801561054b57600080fd5b506103a36004803603602081101561056257600080fd5b5035610fff565b34801561057557600080fd5b506103a36004803603602081101561058c57600080fd5b50356110d3565b34801561059f57600080fd5b506105a861115a565b6040805160ff9092168252519081900360200190f35b3480156105ca57600080fd5b506104ea611163565b3480156105df57600080fd5b50610497600480360360408110156105f657600080fd5b506001600160a01b038135169060200135611189565b34801561061857600080fd5b506103e96111e2565b34801561062d57600080fd5b506103a36004803603602081101561064457600080fd5b50356001600160a01b0316611271565b34801561066057600080fd5b506103a361131a565b34801561067557600080fd5b506104976113b3565b34801561068a57600080fd5b506103a361144a565b34801561069f57600080fd5b506103a360048036036101008110156106b757600080fd5b8101906020810181356401000000008111156106d257600080fd5b8201836020820111156106e457600080fd5b8035906020019184600183028401116401000000008311171561070657600080fd5b91939092909160208101903564010000000081111561072457600080fd5b82018360208201111561073657600080fd5b8035906020019184600183028401116401000000008311171561075857600080fd5b91935091506001600160a01b03813581169160208101358216916040820135169060608101359060808101359060a00135611599565b34801561079a57600080fd5b506103a3611709565b3480156107af57600080fd5b506104976117b4565b3480156107c457600080fd5b506103a3600480360360208110156107db57600080fd5b50356001600160a01b03166117bd565b3480156107f757600080fd5b50610800611867565b60408051938452602084019290925282820152519081900360600190f35b34801561082a57600080fd5b506103a36004803603604081101561084157600080fd5b506001600160a01b038135169060200135611876565b34801561086357600080fd5b506103a36113a9565b34801561087857600080fd5b506104ea6004803603602081101561088f57600080fd5b50356001600160a01b031661195f565b3480156108ab57600080fd5b506103a361197a565b3480156108c057600080fd5b506104ea611a1c565b3480156108d557600080fd5b506103a3611a99565b3480156108ea57600080fd5b506103a36004803603602081101561090157600080fd5b50356001600160a01b0316611b38565b34801561091d57600080fd5b50610926611bb3565b604080516001600160a01b039092168252519081900360200190f35b34801561094e57600080fd5b506104ea611bc2565b34801561096357600080fd5b506103e9611bc8565b34801561097857600080fd5b506103a36004803603602081101561098f57600080fd5b5035611c29565b3480156109a257600080fd5b506104ea600480360360208110156109b957600080fd5b50356001600160a01b0316611cfd565b6103a3600480360360208110156109df57600080fd5b5035611d10565b3480156109f257600080fd5b506103a360048036036040811015610a0957600080fd5b506001600160a01b038135169060200135611ee8565b348015610a2b57600080fd5b5061049760048036036040811015610a4257600080fd5b506001600160a01b038135169060200135611fb5565b348015610a6457600080fd5b506103a360048036036040811015610a7b57600080fd5b5080359060200135612023565b348015610a9457600080fd5b5061049760048036036040811015610aab57600080fd5b506001600160a01b0381351690602001356120ff565b348015610acd57600080fd5b50610497612163565b348015610ae257600080fd5b506103a360048036036020811015610af957600080fd5b50356121f4565b348015610b0c57600080fd5b506103a360048036036020811015610b2357600080fd5b50356001600160a01b0316612332565b348015610b3f57600080fd5b506103a360048036036040811015610b5657600080fd5b506001600160a01b03813516906020013561240b565b348015610b7857600080fd5b506103a360048036036020811015610b8f57600080fd5b50356001600160a01b03166124d8565b348015610bab57600080fd5b506103a360048036036020811015610bc257600080fd5b50356001600160a01b0316612553565b348015610bde57600080fd5b506103a360048036036020811015610bf557600080fd5b50356125fd565b348015610c0857600080fd5b506104ea60048036036040811015610c1f57600080fd5b50803590602001356126d1565b348015610c3857600080fd5b506104ea612720565b348015610c4d57600080fd5b506104ea60048036036040811015610c6457600080fd5b506001600160a01b03813581169160200135166127af565b348015610c8857600080fd5b506103a360048036036060811015610c9f57600080fd5b508035906020810135151590604001356127da565b348015610cc057600080fd5b506103a360048036036060811015610cd757600080fd5b5080359060208101359060400135612a66565b348015610cf657600080fd5b506103a360048036036020811015610d0d57600080fd5b5035612ac9565b348015610d2057600080fd5b506103a3612b9d565b348015610d3557600080fd5b506103a360048036036020811015610d4c57600080fd5b50356001600160a01b0316612bf1565b348015610d6857600080fd5b506104ea612cea565b60fb544290610d89906224ea0063ffffffff612cf016565b10610ddb576040805162461bcd60e51b815260206004820152601c60248201527f4c69717569646174696f6e2074696d65206e6f7420656c617073656400000000604482015290519081900360640190fd5b610de481612d51565b50565b60688054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610e735780601f10610e4857610100808354040283529160200191610e73565b820191906000526020600020905b815481529060010190602001808311610e5657829003601f168201915b505050505090505b90565b6000610e92610e8b612d9f565b8484612da3565b5060015b92915050565b610ea4611bb3565b6001600160a01b0316336001600160a01b03161480610ece5750610104546001600160a01b031633145b80610ee45750610105546001600160a01b031633145b610f23576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60ff5460408051630a7e91ad60e11b81526004810184905290516001600160a01b03909216916314fd235a9160248082019260009290919082900301818387803b158015610f7057600080fd5b505af1158015610f84573d6000803e3d6000fd5b5050505050565b60675490565b6001600160a01b038316600090815261010a60205260408120548490431015610feb5760405162461bcd60e51b815260040180806020018281038252602f8152602001806140e2602f913960400191505060405180910390fd5b610ff6858585612e8f565b95945050505050565b611007611bb3565b6001600160a01b0316336001600160a01b031614806110315750610104546001600160a01b031633145b806110475750610105546001600160a01b031633145b611086576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60ff5460408051630ae994fb60e21b81526004810184905290516001600160a01b0390921691632ba653ec9160248082019260009290919082900301818387803b158015610f7057600080fd5b6110db611bb3565b6001600160a01b0316336001600160a01b031614806111055750610104546001600160a01b031633145b8061111b5750610105546001600160a01b031633145b610ddb576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b606a5460ff1690565b6000611184611170612720565b611178611a1c565b9063ffffffff612cf016565b905090565b6000610e92611196612d9f565b846111dd85606660006111a7612d9f565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff612cf016565b612da3565b610109805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156112695780601f1061123e57610100808354040283529160200191611269565b820191906000526020600020905b81548152906001019060200180831161124c57829003601f168201915b505050505081565b611279611bb3565b6001600160a01b0316336001600160a01b031614806112a35750610104546001600160a01b031633145b806112b95750610105546001600160a01b031633145b6112f8576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60ff80546001600160a01b0319166001600160a01b0392909216919091179055565b611322611bb3565b6001600160a01b0316336001600160a01b0316148061134c5750610104546001600160a01b031633145b806113625750610105546001600160a01b031633145b6113a1576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b6113a9612f17565b6113b1612f1d565b565b60006113bd611bb3565b6001600160a01b0316336001600160a01b031614806113e75750610104546001600160a01b031633145b806113fd5750610105546001600160a01b031633145b61143c576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b611444612fc7565b50600190565b611452612d9f565b6097546001600160a01b039081169116146114a2576040805162461bcd60e51b8152602060048201819052602482015260008051602061417a833981519152604482015290519081900360640190fd5b6040514790600090339083908381818185875af1925050503d80600081146114e6576040519150601f19603f3d011682016040523d82523d6000602084013e6114eb565b606091505b5050905080611533576040805162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b60fc8054600090915560fd54611559906001600160a01b0316338363ffffffff61306516565b604080518481526020810183905281517f17321e0553949bd83c456af1d2fb55ef7f4cf9cda87b9512c9ea532becaab5f6929181900390910190a1505050565b600054610100900460ff16806115b257506115b26130b7565b806115c0575060005460ff16155b6115fb5760405162461bcd60e51b815260040180806020018281038252602e81526020018061419a602e913960400191505060405180910390fd5b600054610100900460ff16158015611626576000805460ff1961ff0019909116610100171660011790555b61162e6130bd565b61163661315e565b611693604051806040016040528060058152602001640f0929c86960db1b8152508c8c8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061325792505050565b6116a06101098a8a613eff565b5060fd80546001600160a01b03808a166001600160a01b031992831617909255610100805489841690831617905560fe8054928816929091169190911790556116ea84848461332f565b80156116fc576000805461ff00191690555b5050505050505050505050565b611711611bb3565b6001600160a01b0316336001600160a01b0316148061173b5750610104546001600160a01b031633145b806117515750610105546001600160a01b031633145b611790576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b600061179b3061195f565b90508015610de457610de430338363ffffffff61306516565b60c95460ff1690565b6117c5611bb3565b6001600160a01b0316336001600160a01b031614806117ef5750610104546001600160a01b031633145b806118055750610105546001600160a01b031633145b611844576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b61010180546001600160a01b0319166001600160a01b0392909216919091179055565b61010654610107546101085483565b61187e611bb3565b6001600160a01b0316336001600160a01b031614806118a85750610104546001600160a01b031633145b806118be5750610105546001600160a01b031633145b6118fd576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b816001600160a01b03166311212d66826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561194357600080fd5b505af1158015611957573d6000803e3d6000fd5b505050505050565b6001600160a01b031660009081526065602052604090205490565b611982612d9f565b6097546001600160a01b039081169116146119d2576040805162461bcd60e51b8152602060048201819052602482015260008051602061417a833981519152604482015290519081900360640190fd5b6097546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3609780546001600160a01b0319169055565b61010054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611a6857600080fd5b505afa158015611a7c573d6000803e3d6000fd5b505050506040513d6020811015611a9257600080fd5b5051905090565b611aa1611bb3565b6001600160a01b0316336001600160a01b03161480611acb5750610104546001600160a01b031633145b80611ae15750610105546001600160a01b031633145b611b20576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b611b28612f17565b611b30612f1d565b6113b1613464565b611b40612d9f565b6097546001600160a01b03908116911614611b90576040805162461bcd60e51b8152602060048201819052602482015260008051602061417a833981519152604482015290519081900360640190fd5b61010580546001600160a01b0319166001600160a01b0392909216919091179055565b6097546001600160a01b031690565b60fb5481565b60698054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610e735780601f10610e4857610100808354040283529160200191610e73565b611c31611bb3565b6001600160a01b0316336001600160a01b03161480611c5b5750610104546001600160a01b031633145b80611c715750610105546001600160a01b031633145b611cb0576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60ff5460408051639725ff3560e01b81526004810184905290516001600160a01b0390921691639725ff359160248082019260009290919082900301818387803b158015610f7057600080fd5b61010a6020526000908152604090205481565b60c95460ff1615611d5b576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b33600081815261010a6020526040902054431015611daa5760405162461bcd60e51b815260040180806020018281038252602f8152602001806140e2602f913960400191505060405180910390fd5b60003411611def576040805162461bcd60e51b815260206004820152600d60248201526c09aeae6e840e6cadcc8408aa89609b1b604482015290519081900360640190fd5b611df833613500565b6000611e0a3461010660000154613520565b90506000611e1e348363ffffffff61353816565b90506000611e2a612720565b60fe5460fd546040805163d5bcb9b560e01b81526000600482018190526001600160a01b03938416602483015260448201889052606482018b90526084820152905193945091169163d5bcb9b591859160a480830192602092919082900301818588803b158015611e9a57600080fd5b505af1158015611eae573d6000803e3d6000fd5b50505050506040513d6020811015611ec557600080fd5b50610f849050611ee382611ed7612720565b9063ffffffff61353816565b61357a565b611ef0611bb3565b6001600160a01b0316336001600160a01b03161480611f1a5750610104546001600160a01b031633145b80611f305750610105546001600160a01b031633145b611f6f576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b816001600160a01b03166307a80070826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561194357600080fd5b6000610e92611fc2612d9f565b846111dd856040518060600160405280602581526020016142926025913960666000611fec612d9f565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61359916565b61202b611bb3565b6001600160a01b0316336001600160a01b031614806120555750610104546001600160a01b031633145b8061206b5750610105546001600160a01b031633145b6120aa576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b610101546040805163a5699e3560e01b8152600481018590526024810184905290516001600160a01b039092169163a5699e359160448082019260009290919082900301818387803b15801561194357600080fd5b33600081815261010a60205260408120549091904310156121515760405162461bcd60e51b815260040180806020018281038252602f8152602001806140e2602f913960400191505060405180910390fd5b61215b8484613630565b949350505050565b600061216d611bb3565b6001600160a01b0316336001600160a01b031614806121975750610104546001600160a01b031633145b806121ad5750610105546001600160a01b031633145b6121ec576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b611444613644565b60c95460ff161561223f576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b33600081815261010a602052604090205443101561228e5760405162461bcd60e51b815260040180806020018281038252602f8152602001806140e2602f913960400191505060405180910390fd5b600082116122d5576040805162461bcd60e51b815260206004820152600f60248201526e26bab9ba1039b2b732103a37b5b2b760891b604482015290519081900360640190fd5b6122de33613500565b60fd546122fc906001600160a01b031633308563ffffffff6136c516565b600061230e8361010660000154613520565b905061231981613725565b61232c611ee3848363ffffffff61353816565b505b5050565b61233a611bb3565b6001600160a01b0316336001600160a01b031614806123645750610104546001600160a01b031633145b8061237a5750610105546001600160a01b031633145b6123b9576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60fe546001600160a01b03828116911614806123e35750610100546001600160a01b038281169116145b6123ec57600080fd5b60fd54610de4906001600160a01b03168260001963ffffffff61373e16565b612413611bb3565b6001600160a01b0316336001600160a01b0316148061243d5750610104546001600160a01b031633145b806124535750610105546001600160a01b031633145b612492576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b816001600160a01b031663eaadf848826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561194357600080fd5b6124e0612d9f565b6097546001600160a01b03908116911614612530576040805162461bcd60e51b8152602060048201819052602482015260008051602061417a833981519152604482015290519081900360640190fd5b61010480546001600160a01b0319166001600160a01b0392909216919091179055565b61255b611bb3565b6001600160a01b0316336001600160a01b031614806125855750610104546001600160a01b031633145b8061259b5750610105546001600160a01b031633145b6125da576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b61010280546001600160a01b0319166001600160a01b0392909216919091179055565b612605611bb3565b6001600160a01b0316336001600160a01b0316148061262f5750610104546001600160a01b031633145b806126455750610105546001600160a01b031633145b612684576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60ff546040805163d8f4e0eb60e01b81526004810184905290516001600160a01b039092169163d8f4e0eb9160248082019260009290919082900301818387803b158015610f7057600080fd5b6000816126f0576126e983600a63ffffffff61385116565b9050610e96565b60006126fe84611ed7611163565b905061215b81612714868663ffffffff61385116565b9063ffffffff6138aa16565b60fc5460fd54604080516370a0823160e01b815230600482015290516000936111849390926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561277757600080fd5b505afa15801561278b573d6000803e3d6000fd5b505050506040513d60208110156127a157600080fd5b50519063ffffffff61353816565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205490565b33600081815261010a60205260409020544310156128295760405162461bcd60e51b815260040180806020018281038252602f8152602001806140e2602f913960400191505060405180910390fd5b60008411612870576040805162461bcd60e51b815260206004820152600f60248201526e09aeae6e840e6cadcc840f0929c869608b1b604482015290519081900360640190fd5b61287933613500565b6000612883611a1c565b9050600061288f612720565b905060006128a3838363ffffffff612cf016565b905060006128c26128b2610f8b565b612714848b63ffffffff61385116565b905082811115612919576040805162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e742065786974206c69717569646974790000000000604482015290519081900360640190fd5b61292333896138ec565b8615612a1057600061293b8261010660010154613520565b905061294681613725565b60fe5460fd546001600160a01b039182169163e331d03991166000612971868663ffffffff61353816565b604080516001600160e01b031960e087901b1681526001600160a01b0394851660048201529290931660248301526044820152606481018b90526000608482018190523360a4830152915160c48083019360209383900390910190829087803b1580156129dd57600080fd5b505af11580156129f1573d6000803e3d6000fd5b505050506040513d6020811015612a0757600080fd5b50612a5c915050565b6000612a228261010660010154613520565b9050612a2d81613725565b612a5a33612a41848463ffffffff61353816565b60fd546001600160a01b0316919063ffffffff61306516565b505b5050505050505050565b612a6e612d9f565b6097546001600160a01b03908116911614612abe576040805162461bcd60e51b8152602060048201819052602482015260008051602061417a833981519152604482015290519081900360640190fd5b61232c83838361332f565b612ad1611bb3565b6001600160a01b0316336001600160a01b03161480612afb5750610104546001600160a01b031633145b80612b115750610105546001600160a01b031633145b612b50576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60ff546040805163e9f7e17b60e01b81526004810184905290516001600160a01b039092169163e9f7e17b9160248082019260009290919082900301818387803b158015610f7057600080fd5b60fb544290612bb5906224ea0063ffffffff612cf016565b11611b285760405162461bcd60e51b81526004018080602001828103825260298152602001806140296029913960400191505060405180910390fd5b612bf9612d9f565b6097546001600160a01b03908116911614612c49576040805162461bcd60e51b8152602060048201819052602482015260008051602061417a833981519152604482015290519081900360640190fd5b6001600160a01b038116612c8e5760405162461bcd60e51b81526004018080602001828103825260268152602001806140746026913960400191505060405180910390fd5b6097546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b60fc5481565b600082820183811015612d4a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b61010054604080516305c2fbcf60e31b81526004810184905290516001600160a01b0390921691632e17de789160248082019260009290919082900301818387803b158015610f7057600080fd5b3390565b6001600160a01b038316612de85760405162461bcd60e51b815260040180806020018281038252602481526020018061420e6024913960400191505060405180910390fd5b6001600160a01b038216612e2d5760405162461bcd60e51b815260040180806020018281038252602281526020018061409a6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260666020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000612e9c8484846139f4565b612f0d84612ea8612d9f565b6111dd85604051806060016040528060288152602001614152602891396001600160a01b038a16600090815260666020526040812090612ee6612d9f565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61359916565b5060019392505050565b4260fb55565b6000612f27612720565b905061010260009054906101000a90046001600160a01b03166001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612f7a57600080fd5b505af1158015612f8e573d6000803e3d6000fd5b505050506000612f9c612720565b90506000612fbc612fb3838563ffffffff61353816565b61010854613520565b905061232c81613725565b60c95460ff1615613012576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b60c9805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613048612d9f565b604080516001600160a01b039092168252519081900360200190a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261232c908490613b5d565b303b1590565b600054610100900460ff16806130d657506130d66130b7565b806130e4575060005460ff16155b61311f5760405162461bcd60e51b815260040180806020018281038252602e81526020018061419a602e913960400191505060405180910390fd5b600054610100900460ff1615801561314a576000805460ff1961ff0019909116610100171660011790555b8015610de4576000805461ff001916905550565b600054610100900460ff168061317757506131776130b7565b80613185575060005460ff16155b6131c05760405162461bcd60e51b815260040180806020018281038252602e81526020018061419a602e913960400191505060405180910390fd5b600054610100900460ff161580156131eb576000805460ff1961ff0019909116610100171660011790555b60006131f5612d9f565b609780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015610de4576000805461ff001916905550565b600054610100900460ff168061327057506132706130b7565b8061327e575060005460ff16155b6132b95760405162461bcd60e51b815260040180806020018281038252602e81526020018061419a602e913960400191505060405180910390fd5b600054610100900460ff161580156132e4576000805460ff1961ff0019909116610100171660011790555b82516132f7906068906020860190613f7d565b50815161330b906069906020850190613f7d565b50606a805460ff19166012179055801561232c576000805461ff0019169055505050565b82158061333d575060328310155b61337c576040805162461bcd60e51b815260206004820152600b60248201526a496e76616c69642066656560a81b604482015290519081900360640190fd5b81158061338a575060648210155b6133c9576040805162461bcd60e51b815260206004820152600b60248201526a496e76616c69642066656560a81b604482015290519081900360640190fd5b601981101561340d576040805162461bcd60e51b815260206004820152600b60248201526a496e76616c69642066656560a81b604482015290519081900360640190fd5b610106839055610107829055610108819055604080518481526020810184905280820183905290517f985786ed84548f26eae234688f08682cdd04f5b552190a894b31307afd72c46a9181900360600190a1505050565b600061346e611a1c565b9050600061347a612720565b905060006134936014612714858563ffffffff612cf016565b9050808211156134ba576134b56134b0838363ffffffff61353816565b613d15565b6134d2565b6134d26134cd828463ffffffff61353816565b612d51565b6040517ff57243a1fddfdc9fa2c7de26cc3503b1b94cfd4368d2b82d0970bfbb2fbce3a490600090a1505050565b6001600160a01b0316600090815261010a60205260409020436006019055565b60008115610e9657612d4a838363ffffffff6138aa16565b6000612d4a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613599565b600061358d82613588610f8b565b6126d1565b905061232e3382613d63565b600081848411156136285760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156135ed5781810151838201526020016135d5565b50505050905090810190601f16801561361a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000610e9261363d612d9f565b84846139f4565b60c95460ff16613692576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b60c9805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa613048612d9f565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261371f908590613b5d565b50505050565b60fc54613738908263ffffffff612cf016565b60fc5550565b8015806137c4575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561379657600080fd5b505afa1580156137aa573d6000803e3d6000fd5b505050506040513d60208110156137c057600080fd5b5051155b6137ff5760405162461bcd60e51b815260040180806020018281038252603681526020018061425c6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261232c908490613b5d565b60008261386057506000610e96565b8282028284828161386d57fe5b0414612d4a5760405162461bcd60e51b81526004018080602001828103825260218152602001806141316021913960400191505060405180910390fd5b6000612d4a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613e61565b6001600160a01b0382166139315760405162461bcd60e51b81526004018080602001828103825260218152602001806141c86021913960400191505060405180910390fd5b61393d8260008361232c565b61398081604051806060016040528060228152602001614052602291396001600160a01b038516600090815260656020526040902054919063ffffffff61359916565b6001600160a01b0383166000908152606560205260409020556067546139ac908263ffffffff61353816565b6067556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b038316613a395760405162461bcd60e51b81526004018080602001828103825260258152602001806141e96025913960400191505060405180910390fd5b6001600160a01b038216613a7e5760405162461bcd60e51b81526004018080602001828103825260238152602001806140066023913960400191505060405180910390fd5b613a8983838361232c565b613acc816040518060600160405280602681526020016140bc602691396001600160a01b038616600090815260656020526040902054919063ffffffff61359916565b6001600160a01b038085166000908152606560205260408082209390935590841681522054613b01908263ffffffff612cf016565b6001600160a01b0380841660008181526065602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b613b6f826001600160a01b0316613ec6565b613bc0576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310613bfe5780518252601f199092019160209182019101613bdf565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613c60576040519150601f19603f3d011682016040523d82523d6000602084013e613c65565b606091505b509150915081613cbc576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561371f57808060200190516020811015613cd857600080fd5b505161371f5760405162461bcd60e51b815260040180806020018281038252602a815260200180614232602a913960400191505060405180910390fd5b610100546040805163534a7e1d60e11b81526004810184905290516001600160a01b039092169163a694fc3a9160248082019260009290919082900301818387803b158015610f7057600080fd5b6001600160a01b038216613dbe576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b613dca6000838361232c565b606754613ddd908263ffffffff612cf016565b6067556001600160a01b038216600090815260656020526040902054613e09908263ffffffff612cf016565b6001600160a01b03831660008181526065602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008183613eb05760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156135ed5781810151838201526020016135d5565b506000838581613ebc57fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061215b575050151592915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613f405782800160ff19823516178555613f6d565b82800160010185558215613f6d579182015b82811115613f6d578235825591602001919060010190613f52565b50613f79929150613feb565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613fbe57805160ff1916838001178555613f6d565b82800160010185558215613f6d579182015b82811115613f6d578251825591602001919060010190613fd0565b610e7b91905b80821115613f795760008155600101613ff156fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734c69717569646174696f6e2074696d6520656c61707365643b206e6f206d6f7265207374616b696e6745524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636546756e6374696f6e2069732074656d706f726172696c79206c6f636b656420666f72207468697320616464726573734e6f6e2d61646d696e2063616c6c657200000000000000000000000000000000536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b0242bf3dab3395aaac6d22d7f82370628ecf31d8c75265e8e1bf37019673f5764736f6c63430006020033
Deployed Bytecode
0x6080604052600436106103545760003560e01c80638bea72fb116101c6578063cbf325b6116100f7578063df22db8811610095578063ed8961041161006f578063ed89610414610d14578063f2fde38b14610d29578063f38a8c0614610d5c578063fdec72f214610569576103a5565b8063df22db8814610c7c578063e7654b3c14610cb4578063e9f7e17b14610cea576103a5565b8063d8f4e0eb116100d1578063d8f4e0eb14610bd2578063d9bb717014610bfc578063dc24fc0714610c2c578063dd62ed3e14610c41576103a5565b8063cbf325b614610b33578063d0ebdbe714610b6c578063d8d8f69b14610b9f576103a5565b8063a1e12fc311610164578063a9059cbb1161013e578063a9059cbb14610a88578063b33712c514610ac1578063b3eaff8b14610ad6578063b90fb49e14610b00576103a5565b8063a1e12fc3146109e6578063a457c2d714610a1f578063a5699e3514610a58576103a5565b806395d89b41116101a057806395d89b41146109575780639725ff351461096c5780639f3e8b3414610996578063a0712d68146109c9576103a5565b80638bea72fb146108de5780638da5cb5b146109115780639154d77c14610942576103a5565b80633d18b912116102a0578063629c577e1161023e57806370a082311161021857806370a082311461086c578063715018a61461089f57806376965867146108b45780637d7c2a1c146108c9576103a5565b8063629c577e146107eb578063693986f61461081e5780636ff9b43a14610857576103a5565b806354bb3b291161027a57806354bb3b29146106935780635a18664c1461078e5780635c975abb146107a35780635cb47469146107b8576103a5565b80633d18b91214610654578063439766ce14610669578063476343ee1461067e576103a5565b80632ba653ec1161030d5780633552c62f116102e75780633552c62f146105be57806339509351146105d357806339b1b96d1461060c5780633b4d2d3914610621576103a5565b80632ba653ec1461053f5780632e17de7814610569578063313ce56714610593576103a5565b8063012ce501146103aa57806306fdde03146103d4578063095ea7b31461045e57806314fd235a146104ab57806318160ddd146104d557806323b872dd146104fc576103a5565b366103a557333214156103a3576040805162461bcd60e51b8152602060048201526012602482015271115c9c985b9d081155120819195c1bdcda5d60721b604482015290519081900360640190fd5b005b600080fd5b3480156103b657600080fd5b506103a3600480360360208110156103cd57600080fd5b5035610d71565b3480156103e057600080fd5b506103e9610de7565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561042357818101518382015260200161040b565b50505050905090810190601f1680156104505780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561046a57600080fd5b506104976004803603604081101561048157600080fd5b506001600160a01b038135169060200135610e7e565b604080519115158252519081900360200190f35b3480156104b757600080fd5b506103a3600480360360208110156104ce57600080fd5b5035610e9c565b3480156104e157600080fd5b506104ea610f8b565b60408051918252519081900360200190f35b34801561050857600080fd5b506104976004803603606081101561051f57600080fd5b506001600160a01b03813581169160208101359091169060400135610f91565b34801561054b57600080fd5b506103a36004803603602081101561056257600080fd5b5035610fff565b34801561057557600080fd5b506103a36004803603602081101561058c57600080fd5b50356110d3565b34801561059f57600080fd5b506105a861115a565b6040805160ff9092168252519081900360200190f35b3480156105ca57600080fd5b506104ea611163565b3480156105df57600080fd5b50610497600480360360408110156105f657600080fd5b506001600160a01b038135169060200135611189565b34801561061857600080fd5b506103e96111e2565b34801561062d57600080fd5b506103a36004803603602081101561064457600080fd5b50356001600160a01b0316611271565b34801561066057600080fd5b506103a361131a565b34801561067557600080fd5b506104976113b3565b34801561068a57600080fd5b506103a361144a565b34801561069f57600080fd5b506103a360048036036101008110156106b757600080fd5b8101906020810181356401000000008111156106d257600080fd5b8201836020820111156106e457600080fd5b8035906020019184600183028401116401000000008311171561070657600080fd5b91939092909160208101903564010000000081111561072457600080fd5b82018360208201111561073657600080fd5b8035906020019184600183028401116401000000008311171561075857600080fd5b91935091506001600160a01b03813581169160208101358216916040820135169060608101359060808101359060a00135611599565b34801561079a57600080fd5b506103a3611709565b3480156107af57600080fd5b506104976117b4565b3480156107c457600080fd5b506103a3600480360360208110156107db57600080fd5b50356001600160a01b03166117bd565b3480156107f757600080fd5b50610800611867565b60408051938452602084019290925282820152519081900360600190f35b34801561082a57600080fd5b506103a36004803603604081101561084157600080fd5b506001600160a01b038135169060200135611876565b34801561086357600080fd5b506103a36113a9565b34801561087857600080fd5b506104ea6004803603602081101561088f57600080fd5b50356001600160a01b031661195f565b3480156108ab57600080fd5b506103a361197a565b3480156108c057600080fd5b506104ea611a1c565b3480156108d557600080fd5b506103a3611a99565b3480156108ea57600080fd5b506103a36004803603602081101561090157600080fd5b50356001600160a01b0316611b38565b34801561091d57600080fd5b50610926611bb3565b604080516001600160a01b039092168252519081900360200190f35b34801561094e57600080fd5b506104ea611bc2565b34801561096357600080fd5b506103e9611bc8565b34801561097857600080fd5b506103a36004803603602081101561098f57600080fd5b5035611c29565b3480156109a257600080fd5b506104ea600480360360208110156109b957600080fd5b50356001600160a01b0316611cfd565b6103a3600480360360208110156109df57600080fd5b5035611d10565b3480156109f257600080fd5b506103a360048036036040811015610a0957600080fd5b506001600160a01b038135169060200135611ee8565b348015610a2b57600080fd5b5061049760048036036040811015610a4257600080fd5b506001600160a01b038135169060200135611fb5565b348015610a6457600080fd5b506103a360048036036040811015610a7b57600080fd5b5080359060200135612023565b348015610a9457600080fd5b5061049760048036036040811015610aab57600080fd5b506001600160a01b0381351690602001356120ff565b348015610acd57600080fd5b50610497612163565b348015610ae257600080fd5b506103a360048036036020811015610af957600080fd5b50356121f4565b348015610b0c57600080fd5b506103a360048036036020811015610b2357600080fd5b50356001600160a01b0316612332565b348015610b3f57600080fd5b506103a360048036036040811015610b5657600080fd5b506001600160a01b03813516906020013561240b565b348015610b7857600080fd5b506103a360048036036020811015610b8f57600080fd5b50356001600160a01b03166124d8565b348015610bab57600080fd5b506103a360048036036020811015610bc257600080fd5b50356001600160a01b0316612553565b348015610bde57600080fd5b506103a360048036036020811015610bf557600080fd5b50356125fd565b348015610c0857600080fd5b506104ea60048036036040811015610c1f57600080fd5b50803590602001356126d1565b348015610c3857600080fd5b506104ea612720565b348015610c4d57600080fd5b506104ea60048036036040811015610c6457600080fd5b506001600160a01b03813581169160200135166127af565b348015610c8857600080fd5b506103a360048036036060811015610c9f57600080fd5b508035906020810135151590604001356127da565b348015610cc057600080fd5b506103a360048036036060811015610cd757600080fd5b5080359060208101359060400135612a66565b348015610cf657600080fd5b506103a360048036036020811015610d0d57600080fd5b5035612ac9565b348015610d2057600080fd5b506103a3612b9d565b348015610d3557600080fd5b506103a360048036036020811015610d4c57600080fd5b50356001600160a01b0316612bf1565b348015610d6857600080fd5b506104ea612cea565b60fb544290610d89906224ea0063ffffffff612cf016565b10610ddb576040805162461bcd60e51b815260206004820152601c60248201527f4c69717569646174696f6e2074696d65206e6f7420656c617073656400000000604482015290519081900360640190fd5b610de481612d51565b50565b60688054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610e735780601f10610e4857610100808354040283529160200191610e73565b820191906000526020600020905b815481529060010190602001808311610e5657829003601f168201915b505050505090505b90565b6000610e92610e8b612d9f565b8484612da3565b5060015b92915050565b610ea4611bb3565b6001600160a01b0316336001600160a01b03161480610ece5750610104546001600160a01b031633145b80610ee45750610105546001600160a01b031633145b610f23576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60ff5460408051630a7e91ad60e11b81526004810184905290516001600160a01b03909216916314fd235a9160248082019260009290919082900301818387803b158015610f7057600080fd5b505af1158015610f84573d6000803e3d6000fd5b5050505050565b60675490565b6001600160a01b038316600090815261010a60205260408120548490431015610feb5760405162461bcd60e51b815260040180806020018281038252602f8152602001806140e2602f913960400191505060405180910390fd5b610ff6858585612e8f565b95945050505050565b611007611bb3565b6001600160a01b0316336001600160a01b031614806110315750610104546001600160a01b031633145b806110475750610105546001600160a01b031633145b611086576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60ff5460408051630ae994fb60e21b81526004810184905290516001600160a01b0390921691632ba653ec9160248082019260009290919082900301818387803b158015610f7057600080fd5b6110db611bb3565b6001600160a01b0316336001600160a01b031614806111055750610104546001600160a01b031633145b8061111b5750610105546001600160a01b031633145b610ddb576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b606a5460ff1690565b6000611184611170612720565b611178611a1c565b9063ffffffff612cf016565b905090565b6000610e92611196612d9f565b846111dd85606660006111a7612d9f565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff612cf016565b612da3565b610109805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156112695780601f1061123e57610100808354040283529160200191611269565b820191906000526020600020905b81548152906001019060200180831161124c57829003601f168201915b505050505081565b611279611bb3565b6001600160a01b0316336001600160a01b031614806112a35750610104546001600160a01b031633145b806112b95750610105546001600160a01b031633145b6112f8576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60ff80546001600160a01b0319166001600160a01b0392909216919091179055565b611322611bb3565b6001600160a01b0316336001600160a01b0316148061134c5750610104546001600160a01b031633145b806113625750610105546001600160a01b031633145b6113a1576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b6113a9612f17565b6113b1612f1d565b565b60006113bd611bb3565b6001600160a01b0316336001600160a01b031614806113e75750610104546001600160a01b031633145b806113fd5750610105546001600160a01b031633145b61143c576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b611444612fc7565b50600190565b611452612d9f565b6097546001600160a01b039081169116146114a2576040805162461bcd60e51b8152602060048201819052602482015260008051602061417a833981519152604482015290519081900360640190fd5b6040514790600090339083908381818185875af1925050503d80600081146114e6576040519150601f19603f3d011682016040523d82523d6000602084013e6114eb565b606091505b5050905080611533576040805162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b60fc8054600090915560fd54611559906001600160a01b0316338363ffffffff61306516565b604080518481526020810183905281517f17321e0553949bd83c456af1d2fb55ef7f4cf9cda87b9512c9ea532becaab5f6929181900390910190a1505050565b600054610100900460ff16806115b257506115b26130b7565b806115c0575060005460ff16155b6115fb5760405162461bcd60e51b815260040180806020018281038252602e81526020018061419a602e913960400191505060405180910390fd5b600054610100900460ff16158015611626576000805460ff1961ff0019909116610100171660011790555b61162e6130bd565b61163661315e565b611693604051806040016040528060058152602001640f0929c86960db1b8152508c8c8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061325792505050565b6116a06101098a8a613eff565b5060fd80546001600160a01b03808a166001600160a01b031992831617909255610100805489841690831617905560fe8054928816929091169190911790556116ea84848461332f565b80156116fc576000805461ff00191690555b5050505050505050505050565b611711611bb3565b6001600160a01b0316336001600160a01b0316148061173b5750610104546001600160a01b031633145b806117515750610105546001600160a01b031633145b611790576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b600061179b3061195f565b90508015610de457610de430338363ffffffff61306516565b60c95460ff1690565b6117c5611bb3565b6001600160a01b0316336001600160a01b031614806117ef5750610104546001600160a01b031633145b806118055750610105546001600160a01b031633145b611844576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b61010180546001600160a01b0319166001600160a01b0392909216919091179055565b61010654610107546101085483565b61187e611bb3565b6001600160a01b0316336001600160a01b031614806118a85750610104546001600160a01b031633145b806118be5750610105546001600160a01b031633145b6118fd576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b816001600160a01b03166311212d66826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561194357600080fd5b505af1158015611957573d6000803e3d6000fd5b505050505050565b6001600160a01b031660009081526065602052604090205490565b611982612d9f565b6097546001600160a01b039081169116146119d2576040805162461bcd60e51b8152602060048201819052602482015260008051602061417a833981519152604482015290519081900360640190fd5b6097546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3609780546001600160a01b0319169055565b61010054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611a6857600080fd5b505afa158015611a7c573d6000803e3d6000fd5b505050506040513d6020811015611a9257600080fd5b5051905090565b611aa1611bb3565b6001600160a01b0316336001600160a01b03161480611acb5750610104546001600160a01b031633145b80611ae15750610105546001600160a01b031633145b611b20576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b611b28612f17565b611b30612f1d565b6113b1613464565b611b40612d9f565b6097546001600160a01b03908116911614611b90576040805162461bcd60e51b8152602060048201819052602482015260008051602061417a833981519152604482015290519081900360640190fd5b61010580546001600160a01b0319166001600160a01b0392909216919091179055565b6097546001600160a01b031690565b60fb5481565b60698054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610e735780601f10610e4857610100808354040283529160200191610e73565b611c31611bb3565b6001600160a01b0316336001600160a01b03161480611c5b5750610104546001600160a01b031633145b80611c715750610105546001600160a01b031633145b611cb0576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60ff5460408051639725ff3560e01b81526004810184905290516001600160a01b0390921691639725ff359160248082019260009290919082900301818387803b158015610f7057600080fd5b61010a6020526000908152604090205481565b60c95460ff1615611d5b576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b33600081815261010a6020526040902054431015611daa5760405162461bcd60e51b815260040180806020018281038252602f8152602001806140e2602f913960400191505060405180910390fd5b60003411611def576040805162461bcd60e51b815260206004820152600d60248201526c09aeae6e840e6cadcc8408aa89609b1b604482015290519081900360640190fd5b611df833613500565b6000611e0a3461010660000154613520565b90506000611e1e348363ffffffff61353816565b90506000611e2a612720565b60fe5460fd546040805163d5bcb9b560e01b81526000600482018190526001600160a01b03938416602483015260448201889052606482018b90526084820152905193945091169163d5bcb9b591859160a480830192602092919082900301818588803b158015611e9a57600080fd5b505af1158015611eae573d6000803e3d6000fd5b50505050506040513d6020811015611ec557600080fd5b50610f849050611ee382611ed7612720565b9063ffffffff61353816565b61357a565b611ef0611bb3565b6001600160a01b0316336001600160a01b03161480611f1a5750610104546001600160a01b031633145b80611f305750610105546001600160a01b031633145b611f6f576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b816001600160a01b03166307a80070826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561194357600080fd5b6000610e92611fc2612d9f565b846111dd856040518060600160405280602581526020016142926025913960666000611fec612d9f565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff61359916565b61202b611bb3565b6001600160a01b0316336001600160a01b031614806120555750610104546001600160a01b031633145b8061206b5750610105546001600160a01b031633145b6120aa576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b610101546040805163a5699e3560e01b8152600481018590526024810184905290516001600160a01b039092169163a5699e359160448082019260009290919082900301818387803b15801561194357600080fd5b33600081815261010a60205260408120549091904310156121515760405162461bcd60e51b815260040180806020018281038252602f8152602001806140e2602f913960400191505060405180910390fd5b61215b8484613630565b949350505050565b600061216d611bb3565b6001600160a01b0316336001600160a01b031614806121975750610104546001600160a01b031633145b806121ad5750610105546001600160a01b031633145b6121ec576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b611444613644565b60c95460ff161561223f576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b33600081815261010a602052604090205443101561228e5760405162461bcd60e51b815260040180806020018281038252602f8152602001806140e2602f913960400191505060405180910390fd5b600082116122d5576040805162461bcd60e51b815260206004820152600f60248201526e26bab9ba1039b2b732103a37b5b2b760891b604482015290519081900360640190fd5b6122de33613500565b60fd546122fc906001600160a01b031633308563ffffffff6136c516565b600061230e8361010660000154613520565b905061231981613725565b61232c611ee3848363ffffffff61353816565b505b5050565b61233a611bb3565b6001600160a01b0316336001600160a01b031614806123645750610104546001600160a01b031633145b8061237a5750610105546001600160a01b031633145b6123b9576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60fe546001600160a01b03828116911614806123e35750610100546001600160a01b038281169116145b6123ec57600080fd5b60fd54610de4906001600160a01b03168260001963ffffffff61373e16565b612413611bb3565b6001600160a01b0316336001600160a01b0316148061243d5750610104546001600160a01b031633145b806124535750610105546001600160a01b031633145b612492576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b816001600160a01b031663eaadf848826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561194357600080fd5b6124e0612d9f565b6097546001600160a01b03908116911614612530576040805162461bcd60e51b8152602060048201819052602482015260008051602061417a833981519152604482015290519081900360640190fd5b61010480546001600160a01b0319166001600160a01b0392909216919091179055565b61255b611bb3565b6001600160a01b0316336001600160a01b031614806125855750610104546001600160a01b031633145b8061259b5750610105546001600160a01b031633145b6125da576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b61010280546001600160a01b0319166001600160a01b0392909216919091179055565b612605611bb3565b6001600160a01b0316336001600160a01b0316148061262f5750610104546001600160a01b031633145b806126455750610105546001600160a01b031633145b612684576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60ff546040805163d8f4e0eb60e01b81526004810184905290516001600160a01b039092169163d8f4e0eb9160248082019260009290919082900301818387803b158015610f7057600080fd5b6000816126f0576126e983600a63ffffffff61385116565b9050610e96565b60006126fe84611ed7611163565b905061215b81612714868663ffffffff61385116565b9063ffffffff6138aa16565b60fc5460fd54604080516370a0823160e01b815230600482015290516000936111849390926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561277757600080fd5b505afa15801561278b573d6000803e3d6000fd5b505050506040513d60208110156127a157600080fd5b50519063ffffffff61353816565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205490565b33600081815261010a60205260409020544310156128295760405162461bcd60e51b815260040180806020018281038252602f8152602001806140e2602f913960400191505060405180910390fd5b60008411612870576040805162461bcd60e51b815260206004820152600f60248201526e09aeae6e840e6cadcc840f0929c869608b1b604482015290519081900360640190fd5b61287933613500565b6000612883611a1c565b9050600061288f612720565b905060006128a3838363ffffffff612cf016565b905060006128c26128b2610f8b565b612714848b63ffffffff61385116565b905082811115612919576040805162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e742065786974206c69717569646974790000000000604482015290519081900360640190fd5b61292333896138ec565b8615612a1057600061293b8261010660010154613520565b905061294681613725565b60fe5460fd546001600160a01b039182169163e331d03991166000612971868663ffffffff61353816565b604080516001600160e01b031960e087901b1681526001600160a01b0394851660048201529290931660248301526044820152606481018b90526000608482018190523360a4830152915160c48083019360209383900390910190829087803b1580156129dd57600080fd5b505af11580156129f1573d6000803e3d6000fd5b505050506040513d6020811015612a0757600080fd5b50612a5c915050565b6000612a228261010660010154613520565b9050612a2d81613725565b612a5a33612a41848463ffffffff61353816565b60fd546001600160a01b0316919063ffffffff61306516565b505b5050505050505050565b612a6e612d9f565b6097546001600160a01b03908116911614612abe576040805162461bcd60e51b8152602060048201819052602482015260008051602061417a833981519152604482015290519081900360640190fd5b61232c83838361332f565b612ad1611bb3565b6001600160a01b0316336001600160a01b03161480612afb5750610104546001600160a01b031633145b80612b115750610105546001600160a01b031633145b612b50576040805162461bcd60e51b81526020600482015260106024820152600080516020614111833981519152604482015290519081900360640190fd5b60ff546040805163e9f7e17b60e01b81526004810184905290516001600160a01b039092169163e9f7e17b9160248082019260009290919082900301818387803b158015610f7057600080fd5b60fb544290612bb5906224ea0063ffffffff612cf016565b11611b285760405162461bcd60e51b81526004018080602001828103825260298152602001806140296029913960400191505060405180910390fd5b612bf9612d9f565b6097546001600160a01b03908116911614612c49576040805162461bcd60e51b8152602060048201819052602482015260008051602061417a833981519152604482015290519081900360640190fd5b6001600160a01b038116612c8e5760405162461bcd60e51b81526004018080602001828103825260268152602001806140746026913960400191505060405180910390fd5b6097546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b60fc5481565b600082820183811015612d4a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b61010054604080516305c2fbcf60e31b81526004810184905290516001600160a01b0390921691632e17de789160248082019260009290919082900301818387803b158015610f7057600080fd5b3390565b6001600160a01b038316612de85760405162461bcd60e51b815260040180806020018281038252602481526020018061420e6024913960400191505060405180910390fd5b6001600160a01b038216612e2d5760405162461bcd60e51b815260040180806020018281038252602281526020018061409a6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260666020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000612e9c8484846139f4565b612f0d84612ea8612d9f565b6111dd85604051806060016040528060288152602001614152602891396001600160a01b038a16600090815260666020526040812090612ee6612d9f565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61359916565b5060019392505050565b4260fb55565b6000612f27612720565b905061010260009054906101000a90046001600160a01b03166001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612f7a57600080fd5b505af1158015612f8e573d6000803e3d6000fd5b505050506000612f9c612720565b90506000612fbc612fb3838563ffffffff61353816565b61010854613520565b905061232c81613725565b60c95460ff1615613012576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b60c9805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613048612d9f565b604080516001600160a01b039092168252519081900360200190a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261232c908490613b5d565b303b1590565b600054610100900460ff16806130d657506130d66130b7565b806130e4575060005460ff16155b61311f5760405162461bcd60e51b815260040180806020018281038252602e81526020018061419a602e913960400191505060405180910390fd5b600054610100900460ff1615801561314a576000805460ff1961ff0019909116610100171660011790555b8015610de4576000805461ff001916905550565b600054610100900460ff168061317757506131776130b7565b80613185575060005460ff16155b6131c05760405162461bcd60e51b815260040180806020018281038252602e81526020018061419a602e913960400191505060405180910390fd5b600054610100900460ff161580156131eb576000805460ff1961ff0019909116610100171660011790555b60006131f5612d9f565b609780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015610de4576000805461ff001916905550565b600054610100900460ff168061327057506132706130b7565b8061327e575060005460ff16155b6132b95760405162461bcd60e51b815260040180806020018281038252602e81526020018061419a602e913960400191505060405180910390fd5b600054610100900460ff161580156132e4576000805460ff1961ff0019909116610100171660011790555b82516132f7906068906020860190613f7d565b50815161330b906069906020850190613f7d565b50606a805460ff19166012179055801561232c576000805461ff0019169055505050565b82158061333d575060328310155b61337c576040805162461bcd60e51b815260206004820152600b60248201526a496e76616c69642066656560a81b604482015290519081900360640190fd5b81158061338a575060648210155b6133c9576040805162461bcd60e51b815260206004820152600b60248201526a496e76616c69642066656560a81b604482015290519081900360640190fd5b601981101561340d576040805162461bcd60e51b815260206004820152600b60248201526a496e76616c69642066656560a81b604482015290519081900360640190fd5b610106839055610107829055610108819055604080518481526020810184905280820183905290517f985786ed84548f26eae234688f08682cdd04f5b552190a894b31307afd72c46a9181900360600190a1505050565b600061346e611a1c565b9050600061347a612720565b905060006134936014612714858563ffffffff612cf016565b9050808211156134ba576134b56134b0838363ffffffff61353816565b613d15565b6134d2565b6134d26134cd828463ffffffff61353816565b612d51565b6040517ff57243a1fddfdc9fa2c7de26cc3503b1b94cfd4368d2b82d0970bfbb2fbce3a490600090a1505050565b6001600160a01b0316600090815261010a60205260409020436006019055565b60008115610e9657612d4a838363ffffffff6138aa16565b6000612d4a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613599565b600061358d82613588610f8b565b6126d1565b905061232e3382613d63565b600081848411156136285760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156135ed5781810151838201526020016135d5565b50505050905090810190601f16801561361a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000610e9261363d612d9f565b84846139f4565b60c95460ff16613692576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b60c9805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa613048612d9f565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261371f908590613b5d565b50505050565b60fc54613738908263ffffffff612cf016565b60fc5550565b8015806137c4575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561379657600080fd5b505afa1580156137aa573d6000803e3d6000fd5b505050506040513d60208110156137c057600080fd5b5051155b6137ff5760405162461bcd60e51b815260040180806020018281038252603681526020018061425c6036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905261232c908490613b5d565b60008261386057506000610e96565b8282028284828161386d57fe5b0414612d4a5760405162461bcd60e51b81526004018080602001828103825260218152602001806141316021913960400191505060405180910390fd5b6000612d4a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613e61565b6001600160a01b0382166139315760405162461bcd60e51b81526004018080602001828103825260218152602001806141c86021913960400191505060405180910390fd5b61393d8260008361232c565b61398081604051806060016040528060228152602001614052602291396001600160a01b038516600090815260656020526040902054919063ffffffff61359916565b6001600160a01b0383166000908152606560205260409020556067546139ac908263ffffffff61353816565b6067556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b038316613a395760405162461bcd60e51b81526004018080602001828103825260258152602001806141e96025913960400191505060405180910390fd5b6001600160a01b038216613a7e5760405162461bcd60e51b81526004018080602001828103825260238152602001806140066023913960400191505060405180910390fd5b613a8983838361232c565b613acc816040518060600160405280602681526020016140bc602691396001600160a01b038616600090815260656020526040902054919063ffffffff61359916565b6001600160a01b038085166000908152606560205260408082209390935590841681522054613b01908263ffffffff612cf016565b6001600160a01b0380841660008181526065602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b613b6f826001600160a01b0316613ec6565b613bc0576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310613bfe5780518252601f199092019160209182019101613bdf565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613c60576040519150601f19603f3d011682016040523d82523d6000602084013e613c65565b606091505b509150915081613cbc576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561371f57808060200190516020811015613cd857600080fd5b505161371f5760405162461bcd60e51b815260040180806020018281038252602a815260200180614232602a913960400191505060405180910390fd5b610100546040805163534a7e1d60e11b81526004810184905290516001600160a01b039092169163a694fc3a9160248082019260009290919082900301818387803b158015610f7057600080fd5b6001600160a01b038216613dbe576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b613dca6000838361232c565b606754613ddd908263ffffffff612cf016565b6067556001600160a01b038216600090815260656020526040902054613e09908263ffffffff612cf016565b6001600160a01b03831660008181526065602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008183613eb05760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156135ed5781810151838201526020016135d5565b506000838581613ebc57fe5b0495945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061215b575050151592915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613f405782800160ff19823516178555613f6d565b82800160010185558215613f6d579182015b82811115613f6d578235825591602001919060010190613f52565b50613f79929150613feb565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10613fbe57805160ff1916838001178555613f6d565b82800160010185558215613f6d579182015b82811115613f6d578251825591602001919060010190613fd0565b610e7b91905b80821115613f795760008155600101613ff156fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734c69717569646174696f6e2074696d6520656c61707365643b206e6f206d6f7265207374616b696e6745524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636546756e6374696f6e2069732074656d706f726172696c79206c6f636b656420666f72207468697320616464726573734e6f6e2d61646d696e2063616c6c657200000000000000000000000000000000536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b0242bf3dab3395aaac6d22d7f82370628ecf31d8c75265e8e1bf37019673f5764736f6c63430006020033
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.