Source Code
Overview
ETH Balance
65,552.310647624074253919 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 25 from a total of 12,058 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Submit And Depos... | 2837104 | 3 days ago | IN | 43.75607456 ETH | 0.00000764 | ||||
Submit And Depos... | 2830704 | 4 days ago | IN | 0.07 ETH | 0.00000837 | ||||
Submit | 2830702 | 4 days ago | IN | 0.03 ETH | 0.00000383 | ||||
Submit | 2830487 | 4 days ago | IN | 0.01 ETH | 0.00000383 | ||||
Submit And Depos... | 2830460 | 4 days ago | IN | 0.09 ETH | 0.00000863 | ||||
Submit | 2830446 | 4 days ago | IN | 0.01 ETH | 0.00000383 | ||||
Submit And Depos... | 2829952 | 4 days ago | IN | 0.08 ETH | 0.00000902 | ||||
Submit | 2829950 | 4 days ago | IN | 0.02 ETH | 0.00000383 | ||||
Submit And Depos... | 2816479 | 6 days ago | IN | 0.45930662 ETH | 0.00008663 | ||||
Submit And Depos... | 2798635 | 9 days ago | IN | 1 ETH | 0.00003875 | ||||
Submit And Depos... | 2789650 | 10 days ago | IN | 0.05 ETH | 0.00002125 | ||||
Submit And Depos... | 2783640 | 11 days ago | IN | 19.95019207 ETH | 0.00005949 | ||||
Submit | 2783102 | 11 days ago | IN | 5 ETH | 0.00004691 | ||||
Submit And Depos... | 2780505 | 12 days ago | IN | 1.5 ETH | 0.00014787 | ||||
Submit And Depos... | 2774429 | 13 days ago | IN | 1 ETH | 0.00010686 | ||||
Submit And Depos... | 2773607 | 13 days ago | IN | 1 ETH | 0.00011357 | ||||
Submit And Depos... | 2767060 | 14 days ago | IN | 1.5 ETH | 0.00014787 | ||||
Submit And Depos... | 2766214 | 14 days ago | IN | 1 ETH | 0.00006629 | ||||
Submit And Depos... | 2765642 | 14 days ago | IN | 1.2 ETH | 0.00008989 | ||||
Submit And Depos... | 2763243 | 14 days ago | IN | 15 ETH | 0.00008316 | ||||
Submit And Depos... | 2763130 | 14 days ago | IN | 5 ETH | 0.00007393 | ||||
Submit And Depos... | 2763127 | 14 days ago | IN | 5 ETH | 0.00008316 | ||||
Submit And Depos... | 2759818 | 15 days ago | IN | 1 ETH | 0.00009653 | ||||
Submit And Depos... | 2759469 | 15 days ago | IN | 1 ETH | 0.00013496 | ||||
Submit And Depos... | 2747856 | 17 days ago | IN | 2 ETH | 0.00000708 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH | ||||
427128 | 368 days ago | 32 ETH |
Loading...
Loading
Contract Name:
frxETHMinter
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-10-11 */ // SPDX-License-Identifier: AGPL-3.0-only pragma solidity ^0.8.0; // ==================================================================== // | ______ _______ | // | / _____________ __ __ / ____(_____ ____ _____ ________ | // | / /_ / ___/ __ `| |/_/ / /_ / / __ \/ __ `/ __ \/ ___/ _ \ | // | / __/ / / / /_/ _> < / __/ / / / / / /_/ / / / / /__/ __/ | // | /_/ /_/ \__,_/_/|_| /_/ /_/_/ /_/\__,_/_/ /_/\___/\___/ | // | | // ==================================================================== // ============================ frxETHMinter ========================== // ==================================================================== // Frax Finance: https://github.com/FraxFinance // Primary Author(s) // Jack Corddry: https://github.com/corddry // Justin Moore: https://github.com/0xJM // Reviewer(s) / Contributor(s) // Travis Moore: https://github.com/FortisFortuna // Dennis: https://github.com/denett // Jamie Turley: https://github.com/jyturley // ==================================================================== // | ______ _______ | // | / _____________ __ __ / ____(_____ ____ _____ ________ | // | / /_ / ___/ __ `| |/_/ / /_ / / __ \/ __ `/ __ \/ ___/ _ \ | // | / __/ / / / /_/ _> < / __/ / / / / / /_/ / / / / /__/ __/ | // | /_/ /_/ \__,_/_/|_| /_/ /_/_/ /_/\__,_/_/ /_/\___/\___/ | // | | // ==================================================================== // ============================== frxETH ============================== // ==================================================================== // Frax Finance: https://github.com/FraxFinance // Primary Author(s) // Jack Corddry: https://github.com/corddry // Nader Ghazvini: https://github.com/amirnader-ghazvini // Reviewer(s) / Contributor(s) // Sam Kazemian: https://github.com/samkazemian // Dennis: https://github.com/denett // Travis Moore: https://github.com/FortisFortuna // Jamie Turley: https://github.com/jyturley /// @title Stablecoin pegged to Ether for use within the Frax ecosystem /** @notice Does not accrue ETH 2.0 staking yield: it must be staked at the sfrxETH contract first. ETH -> frxETH conversion is permanent, so a market will develop for the latter. Withdraws are not live (as of deploy time) so loosely pegged to eth but is possible will float */ /// @dev frxETH adheres to EIP-712/EIP-2612 and can use permits // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the 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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); } // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // OpenZeppelin Contracts v4.4.1 (utils/Context.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 meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } /** * @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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead 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 ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 this function is * overridden; * * 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 virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, 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}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, 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}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); 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) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + 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) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This 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: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, 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: * * - `account` 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 += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(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); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This 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 Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @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 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/extensions/draft-ERC20Permit.sol) // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol) // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) // OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol) /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } } /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } } // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private constant _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`. * However, to ensure consistency with the upgradeable transpiler, we will continue * to reserve a slot. * @custom:oz-renamed-from _PERMIT_TYPEHASH */ // solhint-disable-next-line var-name-mixedcase bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT; /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } } // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } } // https://docs.synthetix.io/contracts/Owned // NO NEED TO AUDIT contract Owned { address public owner; address public nominatedOwner; constructor (address _owner) { require(_owner != address(0), "Owner address cannot be 0"); owner = _owner; emit OwnerChanged(address(0), _owner); } function nominateNewOwner(address _owner) external onlyOwner { nominatedOwner = _owner; emit OwnerNominated(_owner); } function acceptOwnership() external { require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership"); emit OwnerChanged(owner, nominatedOwner); owner = nominatedOwner; nominatedOwner = address(0); } modifier onlyOwner { require(msg.sender == owner, "Only the contract owner may perform this action"); _; } event OwnerNominated(address newOwner); event OwnerChanged(address oldOwner, address newOwner); } /// @title Parent contract for frxETH.sol /** @notice Combines Openzeppelin's ERC20Permit and ERC20Burnable with Synthetix's Owned. Also includes a list of authorized minters */ /// @dev frxETH adheres to EIP-712/EIP-2612 and can use permits contract ERC20PermitPermissionedMint is ERC20Permit, ERC20Burnable, Owned { // Core address public timelock_address; // Minters address[] public minters_array; // Allowed to mint mapping(address => bool) public minters; // Mapping is also used for faster verification /* ========== CONSTRUCTOR ========== */ constructor( address _creator_address, address _timelock_address, string memory _name, string memory _symbol ) ERC20(_name, _symbol) ERC20Permit(_name) Owned(_creator_address) { timelock_address = _timelock_address; } /* ========== MODIFIERS ========== */ modifier onlyByOwnGov() { require(msg.sender == timelock_address || msg.sender == owner, "Not owner or timelock"); _; } modifier onlyMinters() { require(minters[msg.sender] == true, "Only minters"); _; } /* ========== RESTRICTED FUNCTIONS ========== */ // Used by minters when user redeems function minter_burn_from(address b_address, uint256 b_amount) public onlyMinters { super.burnFrom(b_address, b_amount); emit TokenMinterBurned(b_address, msg.sender, b_amount); } // This function is what other minters will call to mint new tokens function minter_mint(address m_address, uint256 m_amount) public onlyMinters { super._mint(m_address, m_amount); emit TokenMinterMinted(msg.sender, m_address, m_amount); } // Adds whitelisted minters function addMinter(address minter_address) public onlyByOwnGov { require(minter_address != address(0), "Zero address detected"); require(minters[minter_address] == false, "Address already exists"); minters[minter_address] = true; minters_array.push(minter_address); emit MinterAdded(minter_address); } // Remove a minter function removeMinter(address minter_address) public onlyByOwnGov { require(minter_address != address(0), "Zero address detected"); require(minters[minter_address] == true, "Address nonexistant"); // Delete from the mapping delete minters[minter_address]; // 'Delete' from the array by setting the address to 0x0 for (uint i = 0; i < minters_array.length; i++){ if (minters_array[i] == minter_address) { minters_array[i] = address(0); // This will leave a null in the array and keep the indices the same break; } } emit MinterRemoved(minter_address); } function setTimelock(address _timelock_address) public onlyByOwnGov { require(_timelock_address != address(0), "Zero address detected"); timelock_address = _timelock_address; emit TimelockChanged(_timelock_address); } /* ========== EVENTS ========== */ event TokenMinterBurned(address indexed from, address indexed to, uint256 amount); event TokenMinterMinted(address indexed from, address indexed to, uint256 amount); event MinterAdded(address minter_address); event MinterRemoved(address minter_address); event TimelockChanged(address timelock_address); } contract frxETH is ERC20PermitPermissionedMint { /* ========== CONSTRUCTOR ========== */ constructor( address _creator_address, address _timelock_address ) ERC20PermitPermissionedMint(_creator_address, _timelock_address, "Frax Ether", "frxETH") {} } // Primarily added to prevent ERC20 name collisions in frxETHMinter.sol interface IsfrxETH { function DOMAIN_SEPARATOR() external view returns (bytes32); function allowance(address, address) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function asset() external view returns (address); function balanceOf(address) external view returns (uint256); function convertToAssets(uint256 shares) external view returns (uint256); function convertToShares(uint256 assets) external view returns (uint256); function decimals() external view returns (uint8); function deposit(uint256 assets, address receiver) external returns (uint256 shares); function depositWithSignature(uint256 assets, address receiver, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s) external returns (uint256 shares); function lastRewardAmount() external view returns (uint192); function lastSync() external view returns (uint32); function maxDeposit(address) external view returns (uint256); function maxMint(address) external view returns (uint256); function maxRedeem(address owner) external view returns (uint256); function maxWithdraw(address owner) external view returns (uint256); function mint(uint256 shares, address receiver) external returns (uint256 assets); function name() external view returns (string memory); function nonces(address) external view returns (uint256); function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external; function previewDeposit(uint256 assets) external view returns (uint256); function previewMint(uint256 shares) external view returns (uint256); function previewRedeem(uint256 shares) external view returns (uint256); function previewWithdraw(uint256 assets) external view returns (uint256); function redeem(uint256 shares, address receiver, address owner) external returns (uint256 assets); function rewardsCycleEnd() external view returns (uint32); function rewardsCycleLength() external view returns (uint32); function symbol() external view returns (string memory); function syncRewards() external; function totalAssets() external view returns (uint256); function totalSupply() external view returns (uint256); function transfer(address to, uint256 amount) external returns (bool); function transferFrom(address from, address to, uint256 amount) external returns (bool); function withdraw(uint256 assets, address receiver, address owner) external returns (uint256 shares); } // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // ┏━━━┓━┏┓━┏┓━━┏━━━┓━━┏━━━┓━━━━┏━━━┓━━━━━━━━━━━━━━━━━━━┏┓━━━━━┏━━━┓━━━━━━━━━┏┓━━━━━━━━━━━━━━┏┓━ // ┃┏━━┛┏┛┗┓┃┃━━┃┏━┓┃━━┃┏━┓┃━━━━┗┓┏┓┃━━━━━━━━━━━━━━━━━━┏┛┗┓━━━━┃┏━┓┃━━━━━━━━┏┛┗┓━━━━━━━━━━━━┏┛┗┓ // ┃┗━━┓┗┓┏┛┃┗━┓┗┛┏┛┃━━┃┃━┃┃━━━━━┃┃┃┃┏━━┓┏━━┓┏━━┓┏━━┓┏┓┗┓┏┛━━━━┃┃━┗┛┏━━┓┏━┓━┗┓┏┛┏━┓┏━━┓━┏━━┓┗┓┏┛ // ┃┏━━┛━┃┃━┃┏┓┃┏━┛┏┛━━┃┃━┃┃━━━━━┃┃┃┃┃┏┓┃┃┏┓┃┃┏┓┃┃━━┫┣┫━┃┃━━━━━┃┃━┏┓┃┏┓┃┃┏┓┓━┃┃━┃┏┛┗━┓┃━┃┏━┛━┃┃━ // ┃┗━━┓━┃┗┓┃┃┃┃┃┃┗━┓┏┓┃┗━┛┃━━━━┏┛┗┛┃┃┃━┫┃┗┛┃┃┗┛┃┣━━┃┃┃━┃┗┓━━━━┃┗━┛┃┃┗┛┃┃┃┃┃━┃┗┓┃┃━┃┗┛┗┓┃┗━┓━┃┗┓ // ┗━━━┛━┗━┛┗┛┗┛┗━━━┛┗┛┗━━━┛━━━━┗━━━┛┗━━┛┃┏━┛┗━━┛┗━━┛┗┛━┗━┛━━━━┗━━━┛┗━━┛┗┛┗┛━┗━┛┗┛━┗━━━┛┗━━┛━┗━┛ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┃┃━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┗┛━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ // This interface is designed to be compatible with the Vyper version. /// @notice This is the Ethereum 2.0 deposit contract interface. /// For more information see the Phase 0 specification under https://github.com/ethereum/eth2.0-specs interface IDepositContract { /// @notice A processed deposit event. event DepositEvent( bytes pubkey, bytes withdrawal_credentials, bytes amount, bytes signature, bytes index ); /// @notice Submit a Phase 0 DepositData object. /// @param pubkey A BLS12-381 public key. /// @param withdrawal_credentials Commitment to a public key for withdrawals. /// @param signature A BLS12-381 signature. /// @param deposit_data_root The SHA-256 hash of the SSZ-encoded DepositData object. /// Used as a protection against malformed input. function deposit( bytes calldata pubkey, bytes calldata withdrawal_credentials, bytes calldata signature, bytes32 deposit_data_root ) external payable; /// @notice Query the current deposit root hash. /// @return The deposit root hash. function get_deposit_root() external view returns (bytes32); /// @notice Query the current deposit count. /// @return The deposit count encoded as a little endian 64-bit number. function get_deposit_count() external view returns (bytes memory); } // Based on official specification in https://eips.ethereum.org/EIPS/eip-165 interface ERC165 { /// @notice Query if a contract implements an interface /// @param interfaceId The interface identifier, as specified in ERC-165 /// @dev Interface identification is specified in ERC-165. This function /// uses less than 30,000 gas. /// @return `true` if the contract implements `interfaceId` and /// `interfaceId` is not 0xffffffff, `false` otherwise function supportsInterface(bytes4 interfaceId) external pure returns (bool); } // This is a rewrite of the Vyper Eth2.0 deposit contract in Solidity. // It tries to stay as close as possible to the original source code. /// @notice This is the Ethereum 2.0 deposit contract interface. /// For more information see the Phase 0 specification under https://github.com/ethereum/eth2.0-specs contract DepositContract is IDepositContract, ERC165 { uint constant DEPOSIT_CONTRACT_TREE_DEPTH = 32; // NOTE: this also ensures `deposit_count` will fit into 64-bits uint constant MAX_DEPOSIT_COUNT = 2**DEPOSIT_CONTRACT_TREE_DEPTH - 1; bytes32[DEPOSIT_CONTRACT_TREE_DEPTH] branch; uint256 deposit_count; bytes32[DEPOSIT_CONTRACT_TREE_DEPTH] zero_hashes; constructor() public { // Compute hashes in empty sparse Merkle tree for (uint height = 0; height < DEPOSIT_CONTRACT_TREE_DEPTH - 1; height++) zero_hashes[height + 1] = sha256(abi.encodePacked(zero_hashes[height], zero_hashes[height])); } function get_deposit_root() override external view returns (bytes32) { bytes32 node; uint size = deposit_count; for (uint height = 0; height < DEPOSIT_CONTRACT_TREE_DEPTH; height++) { if ((size & 1) == 1) node = sha256(abi.encodePacked(branch[height], node)); else node = sha256(abi.encodePacked(node, zero_hashes[height])); size /= 2; } return sha256(abi.encodePacked( node, to_little_endian_64(uint64(deposit_count)), bytes24(0) )); } function get_deposit_count() override external view returns (bytes memory) { return to_little_endian_64(uint64(deposit_count)); } function deposit( bytes calldata pubkey, bytes calldata withdrawal_credentials, bytes calldata signature, bytes32 deposit_data_root ) override external payable { // Extended ABI length checks since dynamic types are used. require(pubkey.length == 48, "DepositContract: invalid pubkey length"); require(withdrawal_credentials.length == 32, "DepositContract: invalid withdrawal_credentials length"); require(signature.length == 96, "DepositContract: invalid signature length"); // Check deposit amount require(msg.value >= 1 ether, "DepositContract: deposit value too low"); require(msg.value % 1 gwei == 0, "DepositContract: deposit value not multiple of gwei"); uint deposit_amount = msg.value / 1 gwei; require(deposit_amount <= type(uint64).max, "DepositContract: deposit value too high"); // Emit `DepositEvent` log bytes memory amount = to_little_endian_64(uint64(deposit_amount)); emit DepositEvent( pubkey, withdrawal_credentials, amount, signature, to_little_endian_64(uint64(deposit_count)) ); // Compute deposit data root (`DepositData` hash tree root) bytes32 pubkey_root = sha256(abi.encodePacked(pubkey, bytes16(0))); bytes32 signature_root = sha256(abi.encodePacked( sha256(abi.encodePacked(signature[:64])), sha256(abi.encodePacked(signature[64:], bytes32(0))) )); bytes32 node = sha256(abi.encodePacked( sha256(abi.encodePacked(pubkey_root, withdrawal_credentials)), sha256(abi.encodePacked(amount, bytes24(0), signature_root)) )); // Verify computed and expected deposit data roots match require(node == deposit_data_root, "DepositContract: reconstructed DepositData does not match supplied deposit_data_root"); // Avoid overflowing the Merkle tree (and prevent edge case in computing `branch`) require(deposit_count < MAX_DEPOSIT_COUNT, "DepositContract: merkle tree full"); // Add deposit data root to Merkle tree (update a single `branch` node) deposit_count += 1; uint size = deposit_count; for (uint height = 0; height < DEPOSIT_CONTRACT_TREE_DEPTH; height++) { if ((size & 1) == 1) { branch[height] = node; return; } node = sha256(abi.encodePacked(branch[height], node)); size /= 2; } // As the loop should always end prematurely with the `return` statement, // this code should be unreachable. We assert `false` just to be safe. assert(false); } function supportsInterface(bytes4 interfaceId) override external pure returns (bool) { return interfaceId == type(ERC165).interfaceId || interfaceId == type(IDepositContract).interfaceId; } function to_little_endian_64(uint64 value) internal pure returns (bytes memory ret) { ret = new bytes(8); bytes8 bytesValue = bytes8(value); // Byteswapping during copying to bytes. ret[0] = bytesValue[7]; ret[1] = bytesValue[6]; ret[2] = bytesValue[5]; ret[3] = bytesValue[4]; ret[4] = bytesValue[3]; ret[5] = bytesValue[2]; ret[6] = bytesValue[1]; ret[7] = bytesValue[0]; } } // ==================================================================== // | ______ _______ | // | / _____________ __ __ / ____(_____ ____ _____ ________ | // | / /_ / ___/ __ `| |/_/ / /_ / / __ \/ __ `/ __ \/ ___/ _ \ | // | / __/ / / / /_/ _> < / __/ / / / / / /_/ / / / / /__/ __/ | // | /_/ /_/ \__,_/_/|_| /_/ /_/_/ /_/\__,_/_/ /_/\___/\___/ | // | | // ==================================================================== // ========================= OperatorRegistry ========================= // ==================================================================== // Frax Finance: https://github.com/FraxFinance // Primary Author(s) // Jack Corddry: https://github.com/corddry // Justin Moore: https://github.com/0xJM // Reviewer(s) / Contributor(s) // Travis Moore: https://github.com/FortisFortuna // Dennis: https://github.com/denett /// @title Keeps track of validators used for ETH 2.0 staking /// @notice A permissioned owner can add and removed them at will contract OperatorRegistry is Owned { struct Validator { bytes pubKey; bytes signature; bytes32 depositDataRoot; } Validator[] validators; // Array of unused / undeposited validators that can be used at a future time bytes curr_withdrawal_pubkey; // Pubkey for ETH 2.0 withdrawal creds. If you change it, you must empty the validators array address public timelock_address; constructor(address _owner, address _timelock_address, bytes memory _withdrawal_pubkey) Owned(_owner) { timelock_address = _timelock_address; curr_withdrawal_pubkey = _withdrawal_pubkey; } modifier onlyByOwnGov() { require(msg.sender == timelock_address || msg.sender == owner, "Not owner or timelock"); _; } /// @notice Add a new validator /** @dev You should verify offchain that the validator is indeed valid before adding it Reason we don't do that here is for gas */ function addValidator(Validator calldata validator) public onlyByOwnGov { validators.push(validator); emit ValidatorAdded(validator.pubKey, curr_withdrawal_pubkey); } /// @notice Add multiple new validators in one function call /** @dev You should verify offchain that the validators are indeed valid before adding them Reason we don't do that here is for gas */ function addValidators(Validator[] calldata validatorArray) external onlyByOwnGov { uint arrayLength = validatorArray.length; for (uint256 i = 0; i < arrayLength; ++i) { addValidator(validatorArray[i]); } } /// @notice Swap the location of one validator with another function swapValidator(uint256 from_idx, uint256 to_idx) public onlyByOwnGov { // Get the original values Validator memory fromVal = validators[from_idx]; Validator memory toVal = validators[to_idx]; // Set the swapped values validators[to_idx] = fromVal; validators[from_idx] = toVal; emit ValidatorsSwapped(fromVal.pubKey, toVal.pubKey, from_idx, to_idx); } /// @notice Remove validators from the end of the validators array, in case they were added in error function popValidators(uint256 times) public onlyByOwnGov { // Loop through and remove validator entries at the end for (uint256 i = 0; i < times; ++i) { validators.pop(); } emit ValidatorsPopped(times); } /** @notice Remove a validator from the array. If dont_care_about_ordering is true, a swap and pop will occur instead of a more gassy loop */ function removeValidator(uint256 remove_idx, bool dont_care_about_ordering) public onlyByOwnGov { // Get the pubkey for the validator to remove (for informational purposes) bytes memory removed_pubkey = validators[remove_idx].pubKey; // Less gassy to swap and pop if (dont_care_about_ordering){ // Swap the (validator to remove) with the (last validator in the array) swapValidator(remove_idx, validators.length - 1); // Pop off the validator to remove, which is now at the end of the array validators.pop(); } // More gassy, loop else { // Save the original validators Validator[] memory original_validators = validators; // Clear the original validators list delete validators; // Fill the new validators array with all except the value to remove for (uint256 i = 0; i < original_validators.length; ++i) { if (i != remove_idx) { validators.push(original_validators[i]); } } } emit ValidatorRemoved(removed_pubkey, remove_idx, dont_care_about_ordering); } // Internal /// @dev Remove the last validator from the validators array and return its information function getNextValidator() internal returns ( bytes memory pubKey, bytes memory withdrawalCredentials, bytes memory signature, bytes32 depositDataRoot ) { // Make sure there are free validators available uint numVals = numValidators(); require(numVals != 0, "Validator stack is empty"); // Pop the last validator off the array Validator memory popped = validators[numVals - 1]; validators.pop(); // Return the validator's information pubKey = popped.pubKey; withdrawalCredentials = curr_withdrawal_pubkey; signature = popped.signature; depositDataRoot = popped.depositDataRoot; } /// @notice Return the information of the i'th validator in the registry function getValidator(uint i) view external returns ( bytes memory pubKey, bytes memory withdrawalCredentials, bytes memory signature, bytes32 depositDataRoot ) { Validator memory v = validators[i]; // Return the validator's information pubKey = v.pubKey; withdrawalCredentials = curr_withdrawal_pubkey; signature = v.signature; depositDataRoot = v.depositDataRoot; } /// @notice Returns a Validator struct of the given inputs to make formatting addValidator inputs easier function getValidatorStruct( bytes memory pubKey, bytes memory signature, bytes32 depositDataRoot ) external pure returns (Validator memory) { return Validator(pubKey, signature, depositDataRoot); } /// @notice Requires empty validator stack as changing withdrawal creds invalidates signature /// @dev May need to call clearValidatorArray() first function setWithdrawalCredential(bytes memory _new_withdrawal_pubkey) external onlyByOwnGov { require(numValidators() == 0, "Clear validator array first"); curr_withdrawal_pubkey = _new_withdrawal_pubkey; emit WithdrawalCredentialSet(_new_withdrawal_pubkey); } /// @notice Empties the validator array /// @dev Need to do this before setWithdrawalCredential() function clearValidatorArray() external onlyByOwnGov { delete validators; emit ValidatorArrayCleared(); } /// @notice Returns the number of validators function numValidators() public view returns (uint256) { return validators.length; } /// @notice Set the timelock contract function setTimelock(address _timelock_address) external onlyByOwnGov { require(_timelock_address != address(0), "Zero address detected"); timelock_address = _timelock_address; emit TimelockChanged(_timelock_address); } event TimelockChanged(address timelock_address); event WithdrawalCredentialSet(bytes _withdrawalCredential); event ValidatorAdded(bytes pubKey, bytes withdrawalCredential); event ValidatorArrayCleared(); event ValidatorRemoved(bytes pubKey, uint256 remove_idx, bool dont_care_about_ordering); event ValidatorsPopped(uint256 times); event ValidatorsSwapped(bytes from_pubKey, bytes to_pubKey, uint256 from_idx, uint256 to_idx); event KeysCleared(); } /// @title Authorized minter contract for frxETH /// @notice Accepts user-supplied ETH and converts it to frxETH (submit()), and also optionally inline stakes it for sfrxETH (submitAndDeposit()) /** @dev Has permission to mint frxETH. Once +32 ETH has accumulated, adds it to a validator, which then deposits it for ETH 2.0 staking (depositEther()) Withhold ratio refers to what percentage of ETH this contract keeps whenever a user makes a deposit. 0% is kept initially */ contract frxETHMinter is OperatorRegistry, ReentrancyGuard { uint256 public constant DEPOSIT_SIZE = 32 ether; // ETH 2.0 minimum deposit size uint256 public constant RATIO_PRECISION = 1e6; // 1,000,000 uint256 public withholdRatio; // What we keep and don't deposit whenever someone submit()'s ETH uint256 public currentWithheldETH; // Needed for internal tracking mapping(bytes => bool) public activeValidators; // Tracks validators (via their pubkeys) that already have 32 ETH in them IDepositContract public immutable depositContract; // ETH 2.0 deposit contract frxETH public immutable frxETHToken; IsfrxETH public immutable sfrxETHToken; bool public submitPaused; bool public depositEtherPaused; constructor( address depositContractAddress, address frxETHAddress, address sfrxETHAddress, address _owner, address _timelock_address, bytes memory _withdrawalCredential ) OperatorRegistry(_owner, _timelock_address, _withdrawalCredential) { depositContract = IDepositContract(depositContractAddress); frxETHToken = frxETH(frxETHAddress); sfrxETHToken = IsfrxETH(sfrxETHAddress); withholdRatio = 0; // No ETH is withheld initially currentWithheldETH = 0; } /// @notice Mint frxETH and deposit it to receive sfrxETH in one transaction /** @dev Could try using EIP-712 / EIP-2612 here in the future if you replace this contract, but you might run into msg.sender vs tx.origin issues with the ERC4626 */ function submitAndDeposit(address recipient) external payable returns (uint256 shares) { // Give the frxETH to this contract after it is generated _submit(address(this)); // Approve frxETH to sfrxETH for staking frxETHToken.approve(address(sfrxETHToken), msg.value); // Deposit the frxETH and give the generated sfrxETH to the final recipient uint256 sfrxeth_recieved = sfrxETHToken.deposit(msg.value, recipient); require(sfrxeth_recieved > 0, 'No sfrxETH was returned'); return sfrxeth_recieved; } /// @notice Mint frxETH to the recipient using sender's funds. Internal portion function _submit(address recipient) internal nonReentrant { // Initial pause and value checks require(!submitPaused, "Submit is paused"); require(msg.value != 0, "Cannot submit 0"); // Give the sender frxETH frxETHToken.minter_mint(recipient, msg.value); // Track the amount of ETH that we are keeping uint256 withheld_amt = 0; if (withholdRatio != 0) { withheld_amt = (msg.value * withholdRatio) / RATIO_PRECISION; currentWithheldETH += withheld_amt; } emit ETHSubmitted(msg.sender, recipient, msg.value, withheld_amt); } /// @notice Mint frxETH to the sender depending on the ETH value sent function submit() external payable { _submit(msg.sender); } /// @notice Mint frxETH to the recipient using sender's funds function submitAndGive(address recipient) external payable { _submit(recipient); } /// @notice Fallback to minting frxETH to the sender receive() external payable { _submit(msg.sender); } /// @notice Deposit batches of ETH to the ETH 2.0 deposit contract /// @dev Usually a bot will call this periodically /// @param max_deposits Used to prevent gassing out if a whale drops in a huge amount of ETH. Break it down into batches. function depositEther(uint256 max_deposits) external nonReentrant { // Initial pause check require(!depositEtherPaused, "Depositing ETH is paused"); // See how many deposits can be made. Truncation desired. uint256 numDeposits = (address(this).balance - currentWithheldETH) / DEPOSIT_SIZE; require(numDeposits > 0, "Not enough ETH in contract"); uint256 loopsToUse = numDeposits; if (max_deposits == 0) loopsToUse = numDeposits; else if (numDeposits > max_deposits) loopsToUse = max_deposits; // Give each deposit chunk to an empty validator for (uint256 i = 0; i < loopsToUse; ++i) { // Get validator information ( bytes memory pubKey, bytes memory withdrawalCredential, bytes memory signature, bytes32 depositDataRoot ) = getNextValidator(); // Will revert if there are not enough free validators // Make sure the validator hasn't been deposited into already, to prevent stranding an extra 32 eth // until withdrawals are allowed require(!activeValidators[pubKey], "Validator already has 32 ETH"); // Deposit the ether in the ETH 2.0 deposit contract depositContract.deposit{value: DEPOSIT_SIZE}( pubKey, withdrawalCredential, signature, depositDataRoot ); // Set the validator as used so it won't get an extra 32 ETH activeValidators[pubKey] = true; emit DepositSent(pubKey, withdrawalCredential); } } /// @param newRatio of ETH that is sent to deposit contract vs withheld, 1e6 precision /// @notice An input of 1e6 results in 100% of Eth deposited, 0% withheld function setWithholdRatio(uint256 newRatio) external onlyByOwnGov { require (newRatio <= RATIO_PRECISION, "Ratio cannot surpass 100%"); withholdRatio = newRatio; emit WithholdRatioSet(newRatio); } /// @notice Give the withheld ETH to the "to" address function moveWithheldETH(address payable to, uint256 amount) external onlyByOwnGov { require(amount <= currentWithheldETH, "Not enough withheld ETH in contract"); currentWithheldETH -= amount; (bool success,) = payable(to).call{ value: amount }(""); require(success, "Invalid transfer"); emit WithheldETHMoved(to, amount); } /// @notice Toggle allowing submites function togglePauseSubmits() external onlyByOwnGov { submitPaused = !submitPaused; emit SubmitPaused(submitPaused); } /// @notice Toggle allowing depositing ETH to validators function togglePauseDepositEther() external onlyByOwnGov { depositEtherPaused = !depositEtherPaused; emit DepositEtherPaused(depositEtherPaused); } /// @notice For emergencies if something gets stuck function recoverEther(uint256 amount) external onlyByOwnGov { (bool success,) = address(owner).call{ value: amount }(""); require(success, "Invalid transfer"); emit EmergencyEtherRecovered(amount); } /// @notice For emergencies if someone accidentally sent some ERC20 tokens here function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyByOwnGov { require(IERC20(tokenAddress).transfer(owner, tokenAmount), "recoverERC20: Transfer failed"); emit EmergencyERC20Recovered(tokenAddress, tokenAmount); } event EmergencyEtherRecovered(uint256 amount); event EmergencyERC20Recovered(address tokenAddress, uint256 tokenAmount); event ETHSubmitted(address indexed sender, address indexed recipient, uint256 sent_amount, uint256 withheld_amt); event DepositEtherPaused(bool new_status); event DepositSent(bytes indexed pubKey, bytes withdrawalCredential); event SubmitPaused(bool new_status); event WithheldETHMoved(address indexed to, uint256 amount); event WithholdRatioSet(uint256 newRatio); }
[{"inputs":[{"internalType":"address","name":"depositContractAddress","type":"address"},{"internalType":"address","name":"frxETHAddress","type":"address"},{"internalType":"address","name":"sfrxETHAddress","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_timelock_address","type":"address"},{"internalType":"bytes","name":"_withdrawalCredential","type":"bytes"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"new_status","type":"bool"}],"name":"DepositEtherPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes","name":"pubKey","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"withdrawalCredential","type":"bytes"}],"name":"DepositSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"sent_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"withheld_amt","type":"uint256"}],"name":"ETHSubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"EmergencyERC20Recovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyEtherRecovered","type":"event"},{"anonymous":false,"inputs":[],"name":"KeysCleared","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"new_status","type":"bool"}],"name":"SubmitPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"timelock_address","type":"address"}],"name":"TimelockChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"pubKey","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"withdrawalCredential","type":"bytes"}],"name":"ValidatorAdded","type":"event"},{"anonymous":false,"inputs":[],"name":"ValidatorArrayCleared","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"pubKey","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"remove_idx","type":"uint256"},{"indexed":false,"internalType":"bool","name":"dont_care_about_ordering","type":"bool"}],"name":"ValidatorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"times","type":"uint256"}],"name":"ValidatorsPopped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"from_pubKey","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"to_pubKey","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"from_idx","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"to_idx","type":"uint256"}],"name":"ValidatorsSwapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"_withdrawalCredential","type":"bytes"}],"name":"WithdrawalCredentialSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithheldETHMoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"WithholdRatioSet","type":"event"},{"inputs":[],"name":"DEPOSIT_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RATIO_PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"activeValidators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"pubKey","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"depositDataRoot","type":"bytes32"}],"internalType":"struct OperatorRegistry.Validator","name":"validator","type":"tuple"}],"name":"addValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"pubKey","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"depositDataRoot","type":"bytes32"}],"internalType":"struct OperatorRegistry.Validator[]","name":"validatorArray","type":"tuple[]"}],"name":"addValidators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"clearValidatorArray","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentWithheldETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositContract","outputs":[{"internalType":"contract IDepositContract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"max_deposits","type":"uint256"}],"name":"depositEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositEtherPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"frxETHToken","outputs":[{"internalType":"contract frxETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"}],"name":"getValidator","outputs":[{"internalType":"bytes","name":"pubKey","type":"bytes"},{"internalType":"bytes","name":"withdrawalCredentials","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"depositDataRoot","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"pubKey","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"depositDataRoot","type":"bytes32"}],"name":"getValidatorStruct","outputs":[{"components":[{"internalType":"bytes","name":"pubKey","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"depositDataRoot","type":"bytes32"}],"internalType":"struct OperatorRegistry.Validator","name":"","type":"tuple"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"moveWithheldETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numValidators","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"times","type":"uint256"}],"name":"popValidators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"remove_idx","type":"uint256"},{"internalType":"bool","name":"dont_care_about_ordering","type":"bool"}],"name":"removeValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_timelock_address","type":"address"}],"name":"setTimelock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"_new_withdrawal_pubkey","type":"bytes"}],"name":"setWithdrawalCredential","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"setWithholdRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sfrxETHToken","outputs":[{"internalType":"contract IsfrxETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"submit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"submitAndDeposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"submitAndGive","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"submitPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"from_idx","type":"uint256"},{"internalType":"uint256","name":"to_idx","type":"uint256"}],"name":"swapValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"timelock_address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePauseDepositEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePauseSubmits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withholdRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e06040523480156200001157600080fd5b50604051620041423803806200414283398101604081905262000034916200017b565b828282826001600160a01b038116620000935760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015260640160405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a150600480546001600160a01b0319166001600160a01b03841617905560036200011482826200033b565b505060016005555050506001600160a01b03948516608052505090821660a0521660c0526000600681905560075562000407565b80516001600160a01b03811681146200016057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60008060008060008060c087890312156200019557600080fd5b620001a08762000148565b95506020620001b181890162000148565b9550620001c16040890162000148565b9450620001d16060890162000148565b9350620001e16080890162000148565b60a08901519093506001600160401b0380821115620001ff57600080fd5b818a0191508a601f8301126200021457600080fd5b81518181111562000229576200022962000165565b604051601f8201601f19908116603f0116810190838211818310171562000254576200025462000165565b816040528281528d868487010111156200026d57600080fd5b600093505b8284101562000291578484018601518185018701529285019262000272565b60008684830101528096505050505050509295509295509295565b600181811c90821680620002c157607f821691505b602082108103620002e257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200033657600081815260208120601f850160051c81016020861015620003115750805b601f850160051c820191505b8181101562000332578281556001016200031d565b5050505b505050565b81516001600160401b0381111562000357576200035762000165565b6200036f81620003688454620002ac565b84620002e8565b602080601f831160018114620003a757600084156200038e5750858301515b600019600386901b1c1916600185901b17855562000332565b600085815260208120601f198616915b82811015620003d857888601518255948401946001909101908401620003b7565b5085821015620003f75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c051613ce86200045a6000396000818161029a0152818161176c01526118560152600081816105a60152818161089e015261179a01526000818161072d0152610ccc0152613ce86000f3fe6080604052600436106102535760003560e01c8063a3f3498011610138578063bdacb303116100b0578063d32867d01161007f578063e77df36611610064578063e77df366146106fb578063e94ad65b1461071b578063f63a17111461074f57600080fd5b8063d32867d0146106b7578063dc6663c7146106ce57600080fd5b8063bdacb30314610629578063bfda0c8c14610649578063c3d314871461065c578063cdcedf401461067c57600080fd5b8063b5d8962711610107578063b6d24f18116100ec578063b6d24f181461057a578063ba947f2714610594578063bc9944f9146105c857600080fd5b8063b5d8962714610535578063b5e5e64c1461056557600080fd5b8063a3f34980146104cb578063aa6fa83c146104e0578063ae6e83bf14610500578063b507fb001461052057600080fd5b80634dcd4547116101cb5780635d593f8d1161019a5780638980f11f1161017f5780638980f11f146104685780638da5cb5b146104885780638e69d7ad146104b557600080fd5b80635d593f8d1461043e57806379ba50971461045357600080fd5b80634dcd4547146103e057806353a47bb7146103f357806357c59b04146104205780635bcb2fc61461043657600080fd5b806335b5d5341161022257806336bf33251161020757806336bf3325146103755780633f8380b6146103a05780634b9b90c5146103c057600080fd5b806335b5d534146103355780633683c2041461035557600080fd5b80631627540c146102685780631c568db614610288578063206583ac146102e657806326839f171461031557600080fd5b36610263576102613361076f565b005b600080fd5b34801561027457600080fd5b506102616102833660046130cf565b61099d565b34801561029457600080fd5b506102bc7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156102f257600080fd5b5060095461030590610100900460ff1681565b60405190151581526020016102dd565b34801561032157600080fd5b506102616103303660046130f3565b610abe565b34801561034157600080fd5b5061026161035036600461310c565b610e01565b34801561036157600080fd5b50610261610370366004613208565b61124f565b34801561038157600080fd5b506103926801bc16d674ec80000081565b6040519081526020016102dd565b3480156103ac57600080fd5b506102616103bb366004613245565b611398565b3480156103cc57600080fd5b506102616103db366004613271565b611601565b6103926103ee3660046130cf565b611724565b3480156103ff57600080fd5b506001546102bc9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561042c57600080fd5b5061039260065481565b610261611937565b34801561044a57600080fd5b50600254610392565b34801561045f57600080fd5b50610261611942565b34801561047457600080fd5b50610261610483366004613245565b611a8d565b34801561049457600080fd5b506000546102bc9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156104c157600080fd5b5061039260075481565b3480156104d757600080fd5b50610261611c87565b3480156104ec57600080fd5b506102616104fb3660046130f3565b611d61565b34801561050c57600080fd5b5061026161051b3660046130f3565b611ea6565b34801561052c57600080fd5b50610261611ffe565b34801561054157600080fd5b506105556105503660046130f3565b61210d565b6040516102dd949392919061331a565b34801561057157600080fd5b5061026161231b565b34801561058657600080fd5b506009546103059060ff1681565b3480156105a057600080fd5b506102bc7f000000000000000000000000000000000000000000000000000000000000000081565b3480156105d457600080fd5b5061061c6105e3366004613365565b60408051606080820183528082526020820152600091810191909152506040805160608101825293845260208401929092529082015290565b6040516102dd91906133d2565b34801561063557600080fd5b506102616106443660046130cf565b612433565b6102616106573660046130cf565b6125c6565b34801561066857600080fd5b506102616106773660046130f3565b6125cf565b34801561068857600080fd5b50610305610697366004613208565b805160208183018101805160088252928201919093012091525460ff1681565b3480156106c357600080fd5b50610392620f424081565b3480156106da57600080fd5b506004546102bc9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561070757600080fd5b5061026161071636600461344e565b61276c565b34801561072757600080fd5b506102bc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561075b57600080fd5b5061026161076a36600461347e565b612bb0565b610777612c9c565b60095460ff16156107e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5375626d6974206973207061757365640000000000000000000000000000000060448201526064015b60405180910390fd5b34600003610853576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f43616e6e6f74207375626d69742030000000000000000000000000000000000060448201526064016107e0565b6040517f6a257ebc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301523460248301527f00000000000000000000000000000000000000000000000000000000000000001690636a257ebc90604401600060405180830381600087803b1580156108e257600080fd5b505af11580156108f6573d6000803e3d6000fd5b50505050600060065460001461093c57620f4240600654346109189190613522565b6109229190613539565b905080600760008282546109369190613574565b90915550505b604080513481526020810183905273ffffffffffffffffffffffffffffffffffffffff84169133917f29b3e86ecfd94a32218997c40b051e650e4fd8c97fc7a4d266be3f7c61c5205b910160405180910390a35061099a6001600555565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e000000000000000000000000000000000060648201526084016107e0565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020015b60405180910390a150565b610ac6612c9c565b600954610100900460ff1615610b38576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4465706f736974696e672045544820697320706175736564000000000000000060448201526064016107e0565b60006801bc16d674ec80000060075447610b529190613587565b610b5c9190613539565b905060008111610bc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4e6f7420656e6f7567682045544820696e20636f6e747261637400000000000060448201526064016107e0565b806000839003610bd9575080610be4565b82821115610be45750815b60005b81811015610df457600080600080610bfd612d0f565b9350935093509350600884604051610c15919061359a565b9081526040519081900360200190205460ff1615610c8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f56616c696461746f7220616c726561647920686173203332204554480000000060448201526064016107e0565b6040517f2289511800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016906322895118906801bc16d674ec80000090610d1290889088908890889060040161331a565b6000604051808303818588803b158015610d2b57600080fd5b505af1158015610d3f573d6000803e3d6000fd5b50505050506001600885604051610d56919061359a565b90815260405190819003602001812080549215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090931692909217909155610da090859061359a565b60405180910390207f4d312bd9aebc53f5bfad5cc169f41e65030288ef6b769786d43998abfb69a25084604051610dd791906135b6565b60405180910390a25050505080610ded906135c9565b9050610be7565b50505061099a6001600555565b60045473ffffffffffffffffffffffffffffffffffffffff16331480610e3e575060005473ffffffffffffffffffffffffffffffffffffffff1633145b610ea4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b600060028381548110610eb957610eb9613601565b9060005260206000209060030201604051806060016040529081600082018054610ee290613630565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0e90613630565b8015610f5b5780601f10610f3057610100808354040283529160200191610f5b565b820191906000526020600020905b815481529060010190602001808311610f3e57829003601f168201915b50505050508152602001600182018054610f7490613630565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa090613630565b8015610fed5780601f10610fc257610100808354040283529160200191610fed565b820191906000526020600020905b815481529060010190602001808311610fd057829003601f168201915b50505050508152602001600282015481525050905060006002838154811061101757611017613601565b906000526020600020906003020160405180606001604052908160008201805461104090613630565b80601f016020809104026020016040519081016040528092919081815260200182805461106c90613630565b80156110b95780601f1061108e576101008083540402835291602001916110b9565b820191906000526020600020905b81548152906001019060200180831161109c57829003601f168201915b505050505081526020016001820180546110d290613630565b80601f01602080910402602001604051908101604052809291908181526020018280546110fe90613630565b801561114b5780601f106111205761010080835404028352916020019161114b565b820191906000526020600020905b81548152906001019060200180831161112e57829003601f168201915b505050505081526020016002820154815250509050816002848154811061117457611174613601565b60009182526020909120825160039092020190819061119390826136d2565b50602082015160018201906111a890826136d2565b506040820151816002015590505080600285815481106111ca576111ca613601565b6000918252602090912082516003909202019081906111e990826136d2565b50602082015160018201906111fe90826136d2565b506040918201516002909101558251825191517f03f1d229173cc08c7c85f7dcd914724184489590489ed1d27b31afb310135061926112419291889088906137ec565b60405180910390a150505050565b60045473ffffffffffffffffffffffffffffffffffffffff1633148061128c575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6112f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6002541561135c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f436c6561722076616c696461746f72206172726179206669727374000000000060448201526064016107e0565b600361136882826136d2565b507f8ba040512c1273086ac3dc9e59c32b9fc104064d6df4c3747fec10e029bc3fba81604051610ab391906135b6565b60045473ffffffffffffffffffffffffffffffffffffffff163314806113d5575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61143b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6007548111156114cd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f4e6f7420656e6f756768207769746868656c642045544820696e20636f6e747260448201527f616374000000000000000000000000000000000000000000000000000000000060648201526084016107e0565b80600760008282546114df9190613587565b909155505060405160009073ffffffffffffffffffffffffffffffffffffffff84169083908381818185875af1925050503d806000811461153c576040519150601f19603f3d011682016040523d82523d6000602084013e611541565b606091505b50509050806115ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c6964207472616e736665720000000000000000000000000000000060448201526064016107e0565b8273ffffffffffffffffffffffffffffffffffffffff167f60b677b352dc4c2f8482a85e1557d78515c38e3f3671be950a8357db6f563b9b836040516115f491815260200190565b60405180910390a2505050565b60045473ffffffffffffffffffffffffffffffffffffffff1633148061163e575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6116a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6002805460018101825560009190915281906003027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace016116e582826139ac565b507f56fee40578122d6872c25c03569653f7c3535363d7c04df91aa93806113b50c190506117138280613825565b6003604051610ab393929190613af9565b600061172f3061076f565b6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000811660048301523460248301527f0000000000000000000000000000000000000000000000000000000000000000169063095ea7b3906044016020604051808303816000875af11580156117e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118079190613bef565b506040517f6e553f6500000000000000000000000000000000000000000000000000000000815234600482015273ffffffffffffffffffffffffffffffffffffffff83811660248301526000917f000000000000000000000000000000000000000000000000000000000000000090911690636e553f65906044016020604051808303816000875af11580156118a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c59190613c0c565b905060008111611931576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4e6f2073667278455448207761732072657475726e656400000000000000000060448201526064016107e0565b92915050565b6119403361076f565b565b60015473ffffffffffffffffffffffffffffffffffffffff1633146119e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e657273686970000000000000000000000060648201526084016107e0565b6000546001546040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b60045473ffffffffffffffffffffffffffffffffffffffff16331480611aca575060005473ffffffffffffffffffffffffffffffffffffffff1633145b611b30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6000546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9182166004820152602481018390529083169063a9059cbb906044016020604051808303816000875af1158015611ba9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bcd9190613bef565b611c33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f7265636f76657245524332303a205472616e73666572206661696c656400000060448201526064016107e0565b6040805173ffffffffffffffffffffffffffffffffffffffff84168152602081018390527f2178cd1256ad9200080414ad733212aa6401e6a74954264b7654e671db074f5691015b60405180910390a15050565b60045473ffffffffffffffffffffffffffffffffffffffff16331480611cc4575060005473ffffffffffffffffffffffffffffffffffffffff1633145b611d2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b611d3660026000613007565b6040517fbf5f94bdb8a562775e85a1990f734d669663e8de3b240d56ec4b1f71ca66b00790600090a1565b60045473ffffffffffffffffffffffffffffffffffffffff16331480611d9e575060005473ffffffffffffffffffffffffffffffffffffffff1633145b611e04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b620f4240811115611e71576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f526174696f2063616e6e6f74207375727061737320313030250000000000000060448201526064016107e0565b60068190556040518181527f9d9f4a1fa43ffde666e23300e98e21e37dccd7f33bb238071f5341a53f346f9390602001610ab3565b60045473ffffffffffffffffffffffffffffffffffffffff16331480611ee3575060005473ffffffffffffffffffffffffffffffffffffffff1633145b611f49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b60005b81811015611fcd576002805480611f6557611f65613c25565b6000828152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90920191600383020190611fa38282613028565b611fb1600183016000613028565b506000600291909101559055611fc6816135c9565b9050611f4c565b506040518181527f03ed6e686bcf321d69427b429b8e18745c96afc0ba4e6c7eb1f3aefaff088cf390602001610ab3565b60045473ffffffffffffffffffffffffffffffffffffffff1633148061203b575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6120a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6009805460ff808216157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090921682179092556040519116151581527f4aff1af3f32e78f88c86566e6b50fe05d6ba3d9c7374e042ac17e5191c5fac56906020015b60405180910390a1565b60608060606000806002868154811061212857612128613601565b906000526020600020906003020160405180606001604052908160008201805461215190613630565b80601f016020809104026020016040519081016040528092919081815260200182805461217d90613630565b80156121ca5780601f1061219f576101008083540402835291602001916121ca565b820191906000526020600020905b8154815290600101906020018083116121ad57829003601f168201915b505050505081526020016001820180546121e390613630565b80601f016020809104026020016040519081016040528092919081815260200182805461220f90613630565b801561225c5780601f106122315761010080835404028352916020019161225c565b820191906000526020600020905b81548152906001019060200180831161223f57829003601f168201915b505050505081526020016002820154815250509050806000015194506003805461228590613630565b80601f01602080910402602001604051908101604052809291908181526020018280546122b190613630565b80156122fe5780601f106122d3576101008083540402835291602001916122fe565b820191906000526020600020905b8154815290600101906020018083116122e157829003601f168201915b505050505093508060200151925080604001519150509193509193565b60045473ffffffffffffffffffffffffffffffffffffffff16331480612358575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6123be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6009805460ff61010080830482161581027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff90931692909217928390556040517fcead0025c428cc6485390ecd2b3213d7a3d44d3f190a3b880ba9025521365706936121039390049091161515815260200190565b60045473ffffffffffffffffffffffffffffffffffffffff16331480612470575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6124d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b73ffffffffffffffffffffffffffffffffffffffff8116612553576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5a65726f2061646472657373206465746563746564000000000000000000000060448201526064016107e0565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527ff02fdf7b40fb25784d39342249bbb15cee2bc0288f75ded1cf8ad2e63d4d91aa90602001610ab3565b61099a8161076f565b60045473ffffffffffffffffffffffffffffffffffffffff1633148061260c575060005473ffffffffffffffffffffffffffffffffffffffff1633145b612672576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6000805460405173ffffffffffffffffffffffffffffffffffffffff9091169083908381818185875af1925050503d80600081146126cc576040519150601f19603f3d011682016040523d82523d6000602084013e6126d1565b606091505b505090508061273c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c6964207472616e736665720000000000000000000000000000000060448201526064016107e0565b6040518281527f040130779a9eeca4469ba7b0c5223a65f424ea2a23f9b9ee336afd7905ef68b490602001611c7b565b60045473ffffffffffffffffffffffffffffffffffffffff163314806127a9575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61280f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b60006002838154811061282457612824613601565b9060005260206000209060030201600001805461284090613630565b80601f016020809104026020016040519081016040528092919081815260200182805461286c90613630565b80156128b95780601f1061288e576101008083540402835291602001916128b9565b820191906000526020600020905b81548152906001019060200180831161289c57829003601f168201915b505050505090508115612949576002546128db90849061035090600190613587565b60028054806128ec576128ec613c25565b6000828152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019160038302019061292a8282613028565b612938600183016000613028565b600282016000905550509055612b70565b60006002805480602002602001604051908101604052809291908181526020016000905b82821015612acd57838290600052602060002090600302016040518060600160405290816000820180546129a090613630565b80601f01602080910402602001604051908101604052809291908181526020018280546129cc90613630565b8015612a195780601f106129ee57610100808354040283529160200191612a19565b820191906000526020600020905b8154815290600101906020018083116129fc57829003601f168201915b50505050508152602001600182018054612a3290613630565b80601f0160208091040260200160405190810160405280929190818152602001828054612a5e90613630565b8015612aab5780601f10612a8057610100808354040283529160200191612aab565b820191906000526020600020905b815481529060010190602001808311612a8e57829003601f168201915b505050505081526020016002820154815250508152602001906001019061296d565b50505050905060026000612ae19190613007565b60005b8151811015612b6d57848114612b5d576002828281518110612b0857612b08613601565b60209081029190910181015182546001810184556000938452919092208251600390920201908190612b3a90826136d2565b5060208201516001820190612b4f90826136d2565b506040820151816002015550505b612b66816135c9565b9050612ae4565b50505b7f0d69d6651f1449a1038428f2773f275a39ef104c76bf46970cdffdbbe1496c51818484604051612ba393929190613c54565b60405180910390a1505050565b60045473ffffffffffffffffffffffffffffffffffffffff16331480612bed575060005473ffffffffffffffffffffffffffffffffffffffff1633145b612c53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b8060005b81811015612c9657612c86848483818110612c7457612c74613601565b90506020028101906103db9190613c7e565b612c8f816135c9565b9050612c57565b50505050565b600260055403612d08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107e0565b6002600555565b6060806060600080612d2060025490565b905080600003612d8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f56616c696461746f7220737461636b20697320656d707479000000000000000060448201526064016107e0565b60006002612d9b600184613587565b81548110612dab57612dab613601565b9060005260206000209060030201604051806060016040529081600082018054612dd490613630565b80601f0160208091040260200160405190810160405280929190818152602001828054612e0090613630565b8015612e4d5780601f10612e2257610100808354040283529160200191612e4d565b820191906000526020600020905b815481529060010190602001808311612e3057829003601f168201915b50505050508152602001600182018054612e6690613630565b80601f0160208091040260200160405190810160405280929190818152602001828054612e9290613630565b8015612edf5780601f10612eb457610100808354040283529160200191612edf565b820191906000526020600020905b815481529060010190602001808311612ec257829003601f168201915b5050505050815260200160028201548152505090506002805480612f0557612f05613c25565b6000828152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90920191600383020190612f438282613028565b612f51600183016000613028565b6002820160009055505090558060000151955060038054612f7190613630565b80601f0160208091040260200160405190810160405280929190818152602001828054612f9d90613630565b8015612fea5780601f10612fbf57610100808354040283529160200191612fea565b820191906000526020600020905b815481529060010190602001808311612fcd57829003601f168201915b505050505094508060200151935080604001519250505090919293565b508054600082556003029060005260206000209081019061099a9190613062565b50805461303490613630565b6000825580601f10613044575050565b601f01602090049060005260206000209081019061099a9190613098565b808211156130945760006130768282613028565b613084600183016000613028565b5060006002820155600301613062565b5090565b5b808211156130945760008155600101613099565b73ffffffffffffffffffffffffffffffffffffffff8116811461099a57600080fd5b6000602082840312156130e157600080fd5b81356130ec816130ad565b9392505050565b60006020828403121561310557600080fd5b5035919050565b6000806040838503121561311f57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f83011261316e57600080fd5b813567ffffffffffffffff808211156131895761318961312e565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156131cf576131cf61312e565b816040528381528660208588010111156131e857600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561321a57600080fd5b813567ffffffffffffffff81111561323157600080fd5b61323d8482850161315d565b949350505050565b6000806040838503121561325857600080fd5b8235613263816130ad565b946020939093013593505050565b60006020828403121561328357600080fd5b813567ffffffffffffffff81111561329a57600080fd5b8201606081850312156130ec57600080fd5b60005b838110156132c75781810151838201526020016132af565b50506000910152565b600081518084526132e88160208601602086016132ac565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60808152600061332d60808301876132d0565b828103602084015261333f81876132d0565b9050828103604084015261335381866132d0565b91505082606083015295945050505050565b60008060006060848603121561337a57600080fd5b833567ffffffffffffffff8082111561339257600080fd5b61339e8783880161315d565b945060208601359150808211156133b457600080fd5b506133c18682870161315d565b925050604084013590509250925092565b6020815260008251606060208401526133ee60808401826132d0565b905060208401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe084830301604085015261342982826132d0565b915050604084015160608401528091505092915050565b801515811461099a57600080fd5b6000806040838503121561346157600080fd5b82359150602083013561347381613440565b809150509250929050565b6000806020838503121561349157600080fd5b823567ffffffffffffffff808211156134a957600080fd5b818501915085601f8301126134bd57600080fd5b8135818111156134cc57600080fd5b8660208260051b85010111156134e157600080fd5b60209290920196919550909350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417611931576119316134f3565b60008261356f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820180821115611931576119316134f3565b81810381811115611931576119316134f3565b600082516135ac8184602087016132ac565b9190910192915050565b6020815260006130ec60208301846132d0565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036135fa576135fa6134f3565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600181811c9082168061364457607f821691505b60208210810361367d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f8211156136cd57600081815260208120601f850160051c810160208610156136aa5750805b601f850160051c820191505b818110156136c9578281556001016136b6565b5050505b505050565b815167ffffffffffffffff8111156136ec576136ec61312e565b613700816136fa8454613630565b84613683565b602080601f831160018114613753576000841561371d5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b1785556136c9565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b828110156137a057888601518255948401946001909101908401613781565b50858210156137dc57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b6080815260006137ff60808301876132d0565b828103602084015261381181876132d0565b604084019590955250506060015292915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261385a57600080fd5b83018035915067ffffffffffffffff82111561387557600080fd5b60200191503681900382131561388a57600080fd5b9250929050565b67ffffffffffffffff8311156138a9576138a961312e565b6138bd836138b78354613630565b83613683565b6000601f84116001811461390f57600085156138d95750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b1783556139a5565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b8281101561395e578685013582556020948501946001909201910161393e565b5086821015613999577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6139b68283613825565b67ffffffffffffffff8111156139ce576139ce61312e565b6139e2816139dc8554613630565b85613683565b6000601f821160018114613a3457600083156139fe5750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600385901b1c1916600184901b178555613aca565b6000858152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0841690835b82811015613a835786850135825560209485019460019092019101613a63565b5084821015613abe577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88660031b161c19848701351681555b505060018360011b0185555b50505050613adb6020830183613825565b613ae9818360018601613891565b5050604082013560028201555050565b604081528260408201528284606083013760006060848301015260007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116820160206060848303018185015260008554613b5681613630565b8060608601526080600180841660008114613b785760018114613bb057613bde565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008516838901528284151560051b8901019550613bde565b8a6000528660002060005b85811015613bd65781548a8201860152908301908801613bbb565b890184019650505b50939b9a5050505050505050505050565b600060208284031215613c0157600080fd5b81516130ec81613440565b600060208284031215613c1e57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b606081526000613c6760608301866132d0565b602083019490945250901515604090910152919050565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa18336030181126135ac57600080fdfea264697066735822122001c8565cd2fb78248ed5b2ad62c3cbca79a1bccc321c4d3b26704bbba417bc3864736f6c63430008130033000000000000000000000000424242424242424242424242424242424242424200000000000000000000000017845ea6a9bfd2caf1b9e558948bb4999df2656e000000000000000000000000a63f56985f9c7f3bc9ffc5685535649e0c1a55f30000000000000000000000008b1e899ec5d51387a41ee68261149f7d3dfd71600000000000000000000000008b1e899ec5d51387a41ee68261149f7d3dfd716000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200100000000000000000000008b1e899ec5d51387a41ee68261149f7d3dfd7160
Deployed Bytecode
0x6080604052600436106102535760003560e01c8063a3f3498011610138578063bdacb303116100b0578063d32867d01161007f578063e77df36611610064578063e77df366146106fb578063e94ad65b1461071b578063f63a17111461074f57600080fd5b8063d32867d0146106b7578063dc6663c7146106ce57600080fd5b8063bdacb30314610629578063bfda0c8c14610649578063c3d314871461065c578063cdcedf401461067c57600080fd5b8063b5d8962711610107578063b6d24f18116100ec578063b6d24f181461057a578063ba947f2714610594578063bc9944f9146105c857600080fd5b8063b5d8962714610535578063b5e5e64c1461056557600080fd5b8063a3f34980146104cb578063aa6fa83c146104e0578063ae6e83bf14610500578063b507fb001461052057600080fd5b80634dcd4547116101cb5780635d593f8d1161019a5780638980f11f1161017f5780638980f11f146104685780638da5cb5b146104885780638e69d7ad146104b557600080fd5b80635d593f8d1461043e57806379ba50971461045357600080fd5b80634dcd4547146103e057806353a47bb7146103f357806357c59b04146104205780635bcb2fc61461043657600080fd5b806335b5d5341161022257806336bf33251161020757806336bf3325146103755780633f8380b6146103a05780634b9b90c5146103c057600080fd5b806335b5d534146103355780633683c2041461035557600080fd5b80631627540c146102685780631c568db614610288578063206583ac146102e657806326839f171461031557600080fd5b36610263576102613361076f565b005b600080fd5b34801561027457600080fd5b506102616102833660046130cf565b61099d565b34801561029457600080fd5b506102bc7f000000000000000000000000a63f56985f9c7f3bc9ffc5685535649e0c1a55f381565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156102f257600080fd5b5060095461030590610100900460ff1681565b60405190151581526020016102dd565b34801561032157600080fd5b506102616103303660046130f3565b610abe565b34801561034157600080fd5b5061026161035036600461310c565b610e01565b34801561036157600080fd5b50610261610370366004613208565b61124f565b34801561038157600080fd5b506103926801bc16d674ec80000081565b6040519081526020016102dd565b3480156103ac57600080fd5b506102616103bb366004613245565b611398565b3480156103cc57600080fd5b506102616103db366004613271565b611601565b6103926103ee3660046130cf565b611724565b3480156103ff57600080fd5b506001546102bc9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561042c57600080fd5b5061039260065481565b610261611937565b34801561044a57600080fd5b50600254610392565b34801561045f57600080fd5b50610261611942565b34801561047457600080fd5b50610261610483366004613245565b611a8d565b34801561049457600080fd5b506000546102bc9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156104c157600080fd5b5061039260075481565b3480156104d757600080fd5b50610261611c87565b3480156104ec57600080fd5b506102616104fb3660046130f3565b611d61565b34801561050c57600080fd5b5061026161051b3660046130f3565b611ea6565b34801561052c57600080fd5b50610261611ffe565b34801561054157600080fd5b506105556105503660046130f3565b61210d565b6040516102dd949392919061331a565b34801561057157600080fd5b5061026161231b565b34801561058657600080fd5b506009546103059060ff1681565b3480156105a057600080fd5b506102bc7f00000000000000000000000017845ea6a9bfd2caf1b9e558948bb4999df2656e81565b3480156105d457600080fd5b5061061c6105e3366004613365565b60408051606080820183528082526020820152600091810191909152506040805160608101825293845260208401929092529082015290565b6040516102dd91906133d2565b34801561063557600080fd5b506102616106443660046130cf565b612433565b6102616106573660046130cf565b6125c6565b34801561066857600080fd5b506102616106773660046130f3565b6125cf565b34801561068857600080fd5b50610305610697366004613208565b805160208183018101805160088252928201919093012091525460ff1681565b3480156106c357600080fd5b50610392620f424081565b3480156106da57600080fd5b506004546102bc9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561070757600080fd5b5061026161071636600461344e565b61276c565b34801561072757600080fd5b506102bc7f000000000000000000000000424242424242424242424242424242424242424281565b34801561075b57600080fd5b5061026161076a36600461347e565b612bb0565b610777612c9c565b60095460ff16156107e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5375626d6974206973207061757365640000000000000000000000000000000060448201526064015b60405180910390fd5b34600003610853576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f43616e6e6f74207375626d69742030000000000000000000000000000000000060448201526064016107e0565b6040517f6a257ebc00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301523460248301527f00000000000000000000000017845ea6a9bfd2caf1b9e558948bb4999df2656e1690636a257ebc90604401600060405180830381600087803b1580156108e257600080fd5b505af11580156108f6573d6000803e3d6000fd5b50505050600060065460001461093c57620f4240600654346109189190613522565b6109229190613539565b905080600760008282546109369190613574565b90915550505b604080513481526020810183905273ffffffffffffffffffffffffffffffffffffffff84169133917f29b3e86ecfd94a32218997c40b051e650e4fd8c97fc7a4d266be3f7c61c5205b910160405180910390a35061099a6001600555565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a44576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e000000000000000000000000000000000060648201526084016107e0565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020015b60405180910390a150565b610ac6612c9c565b600954610100900460ff1615610b38576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f4465706f736974696e672045544820697320706175736564000000000000000060448201526064016107e0565b60006801bc16d674ec80000060075447610b529190613587565b610b5c9190613539565b905060008111610bc8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4e6f7420656e6f7567682045544820696e20636f6e747261637400000000000060448201526064016107e0565b806000839003610bd9575080610be4565b82821115610be45750815b60005b81811015610df457600080600080610bfd612d0f565b9350935093509350600884604051610c15919061359a565b9081526040519081900360200190205460ff1615610c8f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f56616c696461746f7220616c726561647920686173203332204554480000000060448201526064016107e0565b6040517f2289511800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000424242424242424242424242424242424242424216906322895118906801bc16d674ec80000090610d1290889088908890889060040161331a565b6000604051808303818588803b158015610d2b57600080fd5b505af1158015610d3f573d6000803e3d6000fd5b50505050506001600885604051610d56919061359a565b90815260405190819003602001812080549215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090931692909217909155610da090859061359a565b60405180910390207f4d312bd9aebc53f5bfad5cc169f41e65030288ef6b769786d43998abfb69a25084604051610dd791906135b6565b60405180910390a25050505080610ded906135c9565b9050610be7565b50505061099a6001600555565b60045473ffffffffffffffffffffffffffffffffffffffff16331480610e3e575060005473ffffffffffffffffffffffffffffffffffffffff1633145b610ea4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b600060028381548110610eb957610eb9613601565b9060005260206000209060030201604051806060016040529081600082018054610ee290613630565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0e90613630565b8015610f5b5780601f10610f3057610100808354040283529160200191610f5b565b820191906000526020600020905b815481529060010190602001808311610f3e57829003601f168201915b50505050508152602001600182018054610f7490613630565b80601f0160208091040260200160405190810160405280929190818152602001828054610fa090613630565b8015610fed5780601f10610fc257610100808354040283529160200191610fed565b820191906000526020600020905b815481529060010190602001808311610fd057829003601f168201915b50505050508152602001600282015481525050905060006002838154811061101757611017613601565b906000526020600020906003020160405180606001604052908160008201805461104090613630565b80601f016020809104026020016040519081016040528092919081815260200182805461106c90613630565b80156110b95780601f1061108e576101008083540402835291602001916110b9565b820191906000526020600020905b81548152906001019060200180831161109c57829003601f168201915b505050505081526020016001820180546110d290613630565b80601f01602080910402602001604051908101604052809291908181526020018280546110fe90613630565b801561114b5780601f106111205761010080835404028352916020019161114b565b820191906000526020600020905b81548152906001019060200180831161112e57829003601f168201915b505050505081526020016002820154815250509050816002848154811061117457611174613601565b60009182526020909120825160039092020190819061119390826136d2565b50602082015160018201906111a890826136d2565b506040820151816002015590505080600285815481106111ca576111ca613601565b6000918252602090912082516003909202019081906111e990826136d2565b50602082015160018201906111fe90826136d2565b506040918201516002909101558251825191517f03f1d229173cc08c7c85f7dcd914724184489590489ed1d27b31afb310135061926112419291889088906137ec565b60405180910390a150505050565b60045473ffffffffffffffffffffffffffffffffffffffff1633148061128c575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6112f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6002541561135c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f436c6561722076616c696461746f72206172726179206669727374000000000060448201526064016107e0565b600361136882826136d2565b507f8ba040512c1273086ac3dc9e59c32b9fc104064d6df4c3747fec10e029bc3fba81604051610ab391906135b6565b60045473ffffffffffffffffffffffffffffffffffffffff163314806113d5575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61143b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6007548111156114cd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f4e6f7420656e6f756768207769746868656c642045544820696e20636f6e747260448201527f616374000000000000000000000000000000000000000000000000000000000060648201526084016107e0565b80600760008282546114df9190613587565b909155505060405160009073ffffffffffffffffffffffffffffffffffffffff84169083908381818185875af1925050503d806000811461153c576040519150601f19603f3d011682016040523d82523d6000602084013e611541565b606091505b50509050806115ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c6964207472616e736665720000000000000000000000000000000060448201526064016107e0565b8273ffffffffffffffffffffffffffffffffffffffff167f60b677b352dc4c2f8482a85e1557d78515c38e3f3671be950a8357db6f563b9b836040516115f491815260200190565b60405180910390a2505050565b60045473ffffffffffffffffffffffffffffffffffffffff1633148061163e575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6116a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6002805460018101825560009190915281906003027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace016116e582826139ac565b507f56fee40578122d6872c25c03569653f7c3535363d7c04df91aa93806113b50c190506117138280613825565b6003604051610ab393929190613af9565b600061172f3061076f565b6040517f095ea7b300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000a63f56985f9c7f3bc9ffc5685535649e0c1a55f3811660048301523460248301527f00000000000000000000000017845ea6a9bfd2caf1b9e558948bb4999df2656e169063095ea7b3906044016020604051808303816000875af11580156117e3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118079190613bef565b506040517f6e553f6500000000000000000000000000000000000000000000000000000000815234600482015273ffffffffffffffffffffffffffffffffffffffff83811660248301526000917f000000000000000000000000a63f56985f9c7f3bc9ffc5685535649e0c1a55f390911690636e553f65906044016020604051808303816000875af11580156118a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c59190613c0c565b905060008111611931576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4e6f2073667278455448207761732072657475726e656400000000000000000060448201526064016107e0565b92915050565b6119403361076f565b565b60015473ffffffffffffffffffffffffffffffffffffffff1633146119e9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e657273686970000000000000000000000060648201526084016107e0565b6000546001546040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b60045473ffffffffffffffffffffffffffffffffffffffff16331480611aca575060005473ffffffffffffffffffffffffffffffffffffffff1633145b611b30576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6000546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9182166004820152602481018390529083169063a9059cbb906044016020604051808303816000875af1158015611ba9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bcd9190613bef565b611c33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f7265636f76657245524332303a205472616e73666572206661696c656400000060448201526064016107e0565b6040805173ffffffffffffffffffffffffffffffffffffffff84168152602081018390527f2178cd1256ad9200080414ad733212aa6401e6a74954264b7654e671db074f5691015b60405180910390a15050565b60045473ffffffffffffffffffffffffffffffffffffffff16331480611cc4575060005473ffffffffffffffffffffffffffffffffffffffff1633145b611d2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b611d3660026000613007565b6040517fbf5f94bdb8a562775e85a1990f734d669663e8de3b240d56ec4b1f71ca66b00790600090a1565b60045473ffffffffffffffffffffffffffffffffffffffff16331480611d9e575060005473ffffffffffffffffffffffffffffffffffffffff1633145b611e04576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b620f4240811115611e71576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f526174696f2063616e6e6f74207375727061737320313030250000000000000060448201526064016107e0565b60068190556040518181527f9d9f4a1fa43ffde666e23300e98e21e37dccd7f33bb238071f5341a53f346f9390602001610ab3565b60045473ffffffffffffffffffffffffffffffffffffffff16331480611ee3575060005473ffffffffffffffffffffffffffffffffffffffff1633145b611f49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b60005b81811015611fcd576002805480611f6557611f65613c25565b6000828152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90920191600383020190611fa38282613028565b611fb1600183016000613028565b506000600291909101559055611fc6816135c9565b9050611f4c565b506040518181527f03ed6e686bcf321d69427b429b8e18745c96afc0ba4e6c7eb1f3aefaff088cf390602001610ab3565b60045473ffffffffffffffffffffffffffffffffffffffff1633148061203b575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6120a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6009805460ff808216157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090921682179092556040519116151581527f4aff1af3f32e78f88c86566e6b50fe05d6ba3d9c7374e042ac17e5191c5fac56906020015b60405180910390a1565b60608060606000806002868154811061212857612128613601565b906000526020600020906003020160405180606001604052908160008201805461215190613630565b80601f016020809104026020016040519081016040528092919081815260200182805461217d90613630565b80156121ca5780601f1061219f576101008083540402835291602001916121ca565b820191906000526020600020905b8154815290600101906020018083116121ad57829003601f168201915b505050505081526020016001820180546121e390613630565b80601f016020809104026020016040519081016040528092919081815260200182805461220f90613630565b801561225c5780601f106122315761010080835404028352916020019161225c565b820191906000526020600020905b81548152906001019060200180831161223f57829003601f168201915b505050505081526020016002820154815250509050806000015194506003805461228590613630565b80601f01602080910402602001604051908101604052809291908181526020018280546122b190613630565b80156122fe5780601f106122d3576101008083540402835291602001916122fe565b820191906000526020600020905b8154815290600101906020018083116122e157829003601f168201915b505050505093508060200151925080604001519150509193509193565b60045473ffffffffffffffffffffffffffffffffffffffff16331480612358575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6123be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6009805460ff61010080830482161581027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff90931692909217928390556040517fcead0025c428cc6485390ecd2b3213d7a3d44d3f190a3b880ba9025521365706936121039390049091161515815260200190565b60045473ffffffffffffffffffffffffffffffffffffffff16331480612470575060005473ffffffffffffffffffffffffffffffffffffffff1633145b6124d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b73ffffffffffffffffffffffffffffffffffffffff8116612553576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5a65726f2061646472657373206465746563746564000000000000000000000060448201526064016107e0565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527ff02fdf7b40fb25784d39342249bbb15cee2bc0288f75ded1cf8ad2e63d4d91aa90602001610ab3565b61099a8161076f565b60045473ffffffffffffffffffffffffffffffffffffffff1633148061260c575060005473ffffffffffffffffffffffffffffffffffffffff1633145b612672576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b6000805460405173ffffffffffffffffffffffffffffffffffffffff9091169083908381818185875af1925050503d80600081146126cc576040519150601f19603f3d011682016040523d82523d6000602084013e6126d1565b606091505b505090508061273c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f496e76616c6964207472616e736665720000000000000000000000000000000060448201526064016107e0565b6040518281527f040130779a9eeca4469ba7b0c5223a65f424ea2a23f9b9ee336afd7905ef68b490602001611c7b565b60045473ffffffffffffffffffffffffffffffffffffffff163314806127a9575060005473ffffffffffffffffffffffffffffffffffffffff1633145b61280f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b60006002838154811061282457612824613601565b9060005260206000209060030201600001805461284090613630565b80601f016020809104026020016040519081016040528092919081815260200182805461286c90613630565b80156128b95780601f1061288e576101008083540402835291602001916128b9565b820191906000526020600020905b81548152906001019060200180831161289c57829003601f168201915b505050505090508115612949576002546128db90849061035090600190613587565b60028054806128ec576128ec613c25565b6000828152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019160038302019061292a8282613028565b612938600183016000613028565b600282016000905550509055612b70565b60006002805480602002602001604051908101604052809291908181526020016000905b82821015612acd57838290600052602060002090600302016040518060600160405290816000820180546129a090613630565b80601f01602080910402602001604051908101604052809291908181526020018280546129cc90613630565b8015612a195780601f106129ee57610100808354040283529160200191612a19565b820191906000526020600020905b8154815290600101906020018083116129fc57829003601f168201915b50505050508152602001600182018054612a3290613630565b80601f0160208091040260200160405190810160405280929190818152602001828054612a5e90613630565b8015612aab5780601f10612a8057610100808354040283529160200191612aab565b820191906000526020600020905b815481529060010190602001808311612a8e57829003601f168201915b505050505081526020016002820154815250508152602001906001019061296d565b50505050905060026000612ae19190613007565b60005b8151811015612b6d57848114612b5d576002828281518110612b0857612b08613601565b60209081029190910181015182546001810184556000938452919092208251600390920201908190612b3a90826136d2565b5060208201516001820190612b4f90826136d2565b506040820151816002015550505b612b66816135c9565b9050612ae4565b50505b7f0d69d6651f1449a1038428f2773f275a39ef104c76bf46970cdffdbbe1496c51818484604051612ba393929190613c54565b60405180910390a1505050565b60045473ffffffffffffffffffffffffffffffffffffffff16331480612bed575060005473ffffffffffffffffffffffffffffffffffffffff1633145b612c53576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b000000000000000000000060448201526064016107e0565b8060005b81811015612c9657612c86848483818110612c7457612c74613601565b90506020028101906103db9190613c7e565b612c8f816135c9565b9050612c57565b50505050565b600260055403612d08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107e0565b6002600555565b6060806060600080612d2060025490565b905080600003612d8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f56616c696461746f7220737461636b20697320656d707479000000000000000060448201526064016107e0565b60006002612d9b600184613587565b81548110612dab57612dab613601565b9060005260206000209060030201604051806060016040529081600082018054612dd490613630565b80601f0160208091040260200160405190810160405280929190818152602001828054612e0090613630565b8015612e4d5780601f10612e2257610100808354040283529160200191612e4d565b820191906000526020600020905b815481529060010190602001808311612e3057829003601f168201915b50505050508152602001600182018054612e6690613630565b80601f0160208091040260200160405190810160405280929190818152602001828054612e9290613630565b8015612edf5780601f10612eb457610100808354040283529160200191612edf565b820191906000526020600020905b815481529060010190602001808311612ec257829003601f168201915b5050505050815260200160028201548152505090506002805480612f0557612f05613c25565b6000828152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90920191600383020190612f438282613028565b612f51600183016000613028565b6002820160009055505090558060000151955060038054612f7190613630565b80601f0160208091040260200160405190810160405280929190818152602001828054612f9d90613630565b8015612fea5780601f10612fbf57610100808354040283529160200191612fea565b820191906000526020600020905b815481529060010190602001808311612fcd57829003601f168201915b505050505094508060200151935080604001519250505090919293565b508054600082556003029060005260206000209081019061099a9190613062565b50805461303490613630565b6000825580601f10613044575050565b601f01602090049060005260206000209081019061099a9190613098565b808211156130945760006130768282613028565b613084600183016000613028565b5060006002820155600301613062565b5090565b5b808211156130945760008155600101613099565b73ffffffffffffffffffffffffffffffffffffffff8116811461099a57600080fd5b6000602082840312156130e157600080fd5b81356130ec816130ad565b9392505050565b60006020828403121561310557600080fd5b5035919050565b6000806040838503121561311f57600080fd5b50508035926020909101359150565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f83011261316e57600080fd5b813567ffffffffffffffff808211156131895761318961312e565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f011681019082821181831017156131cf576131cf61312e565b816040528381528660208588010111156131e857600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561321a57600080fd5b813567ffffffffffffffff81111561323157600080fd5b61323d8482850161315d565b949350505050565b6000806040838503121561325857600080fd5b8235613263816130ad565b946020939093013593505050565b60006020828403121561328357600080fd5b813567ffffffffffffffff81111561329a57600080fd5b8201606081850312156130ec57600080fd5b60005b838110156132c75781810151838201526020016132af565b50506000910152565b600081518084526132e88160208601602086016132ac565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60808152600061332d60808301876132d0565b828103602084015261333f81876132d0565b9050828103604084015261335381866132d0565b91505082606083015295945050505050565b60008060006060848603121561337a57600080fd5b833567ffffffffffffffff8082111561339257600080fd5b61339e8783880161315d565b945060208601359150808211156133b457600080fd5b506133c18682870161315d565b925050604084013590509250925092565b6020815260008251606060208401526133ee60808401826132d0565b905060208401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe084830301604085015261342982826132d0565b915050604084015160608401528091505092915050565b801515811461099a57600080fd5b6000806040838503121561346157600080fd5b82359150602083013561347381613440565b809150509250929050565b6000806020838503121561349157600080fd5b823567ffffffffffffffff808211156134a957600080fd5b818501915085601f8301126134bd57600080fd5b8135818111156134cc57600080fd5b8660208260051b85010111156134e157600080fd5b60209290920196919550909350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082028115828204841417611931576119316134f3565b60008261356f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820180821115611931576119316134f3565b81810381811115611931576119316134f3565b600082516135ac8184602087016132ac565b9190910192915050565b6020815260006130ec60208301846132d0565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036135fa576135fa6134f3565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600181811c9082168061364457607f821691505b60208210810361367d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f8211156136cd57600081815260208120601f850160051c810160208610156136aa5750805b601f850160051c820191505b818110156136c9578281556001016136b6565b5050505b505050565b815167ffffffffffffffff8111156136ec576136ec61312e565b613700816136fa8454613630565b84613683565b602080601f831160018114613753576000841561371d5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b1785556136c9565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b828110156137a057888601518255948401946001909101908401613781565b50858210156137dc57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b6080815260006137ff60808301876132d0565b828103602084015261381181876132d0565b604084019590955250506060015292915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261385a57600080fd5b83018035915067ffffffffffffffff82111561387557600080fd5b60200191503681900382131561388a57600080fd5b9250929050565b67ffffffffffffffff8311156138a9576138a961312e565b6138bd836138b78354613630565b83613683565b6000601f84116001811461390f57600085156138d95750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b1783556139a5565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b8281101561395e578685013582556020948501946001909201910161393e565b5086821015613999577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6139b68283613825565b67ffffffffffffffff8111156139ce576139ce61312e565b6139e2816139dc8554613630565b85613683565b6000601f821160018114613a3457600083156139fe5750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600385901b1c1916600184901b178555613aca565b6000858152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0841690835b82811015613a835786850135825560209485019460019092019101613a63565b5084821015613abe577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88660031b161c19848701351681555b505060018360011b0185555b50505050613adb6020830183613825565b613ae9818360018601613891565b5050604082013560028201555050565b604081528260408201528284606083013760006060848301015260007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116820160206060848303018185015260008554613b5681613630565b8060608601526080600180841660008114613b785760018114613bb057613bde565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008516838901528284151560051b8901019550613bde565b8a6000528660002060005b85811015613bd65781548a8201860152908301908801613bbb565b890184019650505b50939b9a5050505050505050505050565b600060208284031215613c0157600080fd5b81516130ec81613440565b600060208284031215613c1e57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b606081526000613c6760608301866132d0565b602083019490945250901515604090910152919050565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa18336030181126135ac57600080fdfea264697066735822122001c8565cd2fb78248ed5b2ad62c3cbca79a1bccc321c4d3b26704bbba417bc3864736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000424242424242424242424242424242424242424200000000000000000000000017845ea6a9bfd2caf1b9e558948bb4999df2656e000000000000000000000000a63f56985f9c7f3bc9ffc5685535649e0c1a55f30000000000000000000000008b1e899ec5d51387a41ee68261149f7d3dfd71600000000000000000000000008b1e899ec5d51387a41ee68261149f7d3dfd716000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000200100000000000000000000008b1e899ec5d51387a41ee68261149f7d3dfd7160
-----Decoded View---------------
Arg [0] : depositContractAddress (address): 0x4242424242424242424242424242424242424242
Arg [1] : frxETHAddress (address): 0x17845EA6a9BfD2caF1b9E558948BB4999dF2656e
Arg [2] : sfrxETHAddress (address): 0xa63f56985F9C7F3bc9fFc5685535649e0C1a55f3
Arg [3] : _owner (address): 0x8b1E899ec5d51387a41Ee68261149F7d3Dfd7160
Arg [4] : _timelock_address (address): 0x8b1E899ec5d51387a41Ee68261149F7d3Dfd7160
Arg [5] : _withdrawalCredential (bytes): 0x0100000000000000000000008b1e899ec5d51387a41ee68261149f7d3dfd7160
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000004242424242424242424242424242424242424242
Arg [1] : 00000000000000000000000017845ea6a9bfd2caf1b9e558948bb4999df2656e
Arg [2] : 000000000000000000000000a63f56985f9c7f3bc9ffc5685535649e0c1a55f3
Arg [3] : 0000000000000000000000008b1e899ec5d51387a41ee68261149f7d3dfd7160
Arg [4] : 0000000000000000000000008b1e899ec5d51387a41ee68261149f7d3dfd7160
Arg [5] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [7] : 0100000000000000000000008b1e899ec5d51387a41ee68261149f7d3dfd7160
Deployed Bytecode Sourcemap
85214:7840:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88576:19;88584:10;88576:7;:19::i;:::-;85214:7840;;;;;56500:141;;;;;;;;;;-1:-1:-1;56500:141:0;;;;;:::i;:::-;;:::i;85866:38::-;;;;;;;;;;;;;;;;;;618:42:1;606:55;;;588:74;;576:2;561:18;85866:38:0;;;;;;;;85944:30;;;;;;;;;;-1:-1:-1;85944:30:0;;;;;;;;;;;;;;838:14:1;;831:22;813:41;;801:2;786:18;85944:30:0;673:187:1;88866:1714:0;;;;;;;;;;-1:-1:-1;88866:1714:0;;;;;:::i;:::-;;:::i;78980:431::-;;;;;;;;;;-1:-1:-1;78980:431:0;;;;;:::i;:::-;;:::i;83231:294::-;;;;;;;;;;-1:-1:-1;83231:294:0;;;;;:::i;:::-;;:::i;85284:47::-;;;;;;;;;;;;85323:8;85284:47;;;;;2745:25:1;;;2733:2;2718:18;85284:47:0;2599:177:1;91054:378:0;;;;;;;;;;-1:-1:-1;91054:378:0;;;;;:::i;:::-;;:::i;78244:189::-;;;;;;;;;;-1:-1:-1;78244:189:0;;;;;:::i;:::-;;:::i;86822:581::-;;;;;;:::i;:::-;;:::i;56275:29::-;;;;;;;;;;-1:-1:-1;56275:29:0;;;;;;;;85438:28;;;;;;;;;;;;;;;;88228:73;;;:::i;83829:98::-;;;;;;;;;;-1:-1:-1;83902:10:0;:17;83829:98;;56649:271;;;;;;;;;;;;;:::i;92258:265::-;;;;;;;;;;-1:-1:-1;92258:265:0;;;;;:::i;:::-;;:::i;56248:20::-;;;;;;;;;;-1:-1:-1;56248:20:0;;;;;;;;85539:33;;;;;;;;;;;;;;;;83641:130;;;;;;;;;;;;;:::i;90759:228::-;;;;;;;;;;-1:-1:-1;90759:228:0;;;;;:::i;:::-;;:::i;79525:261::-;;;;;;;;;;-1:-1:-1;79525:261:0;;;;;:::i;:::-;;:::i;91482:143::-;;;;;;;;;;;;;:::i;82179:522::-;;;;;;;;;;-1:-1:-1;82179:522:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;:::i;91695:172::-;;;;;;;;;;;;;:::i;85913:24::-;;;;;;;;;;-1:-1:-1;85913:24:0;;;;;;;;85824:35;;;;;;;;;;;;;;;82819:246;;;;;;;;;;-1:-1:-1;82819:246:0;;;;;:::i;:::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;83012:45:0;;;;;;;;;;;;;;;;;;;;;;;82819:246;;;;;;;;:::i;83978:251::-;;;;;;;;;;-1:-1:-1;83978:251:0;;;;;:::i;:::-;;:::i;88376:96::-;;;;;;:::i;:::-;;:::i;91932:233::-;;;;;;;;;;-1:-1:-1;91932:233:0;;;;;:::i;:::-;;:::i;85611:46::-;;;;;;;;;;-1:-1:-1;85611:46:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85370:45;;;;;;;;;;;;85412:3;85370:45;;77653:31;;;;;;;;;;-1:-1:-1;77653:31:0;;;;;;;;79953:1250;;;;;;;;;;-1:-1:-1;79953:1250:0;;;;;:::i;:::-;;:::i;85740:49::-;;;;;;;;;;;;;;;78656:251;;;;;;;;;;-1:-1:-1;78656:251:0;;;;;:::i;:::-;;:::i;87496:649::-;65967:21;:19;:21::i;:::-;87617:12:::1;::::0;::::1;;87616:13;87608:42;;;::::0;::::1;::::0;;8345:2:1;87608:42:0::1;::::0;::::1;8327:21:1::0;8384:2;8364:18;;;8357:30;8423:18;8403;;;8396:46;8459:18;;87608:42:0::1;;;;;;;;;87669:9;87682:1;87669:14:::0;87661:42:::1;;;::::0;::::1;::::0;;8690:2:1;87661:42:0::1;::::0;::::1;8672:21:1::0;8729:2;8709:18;;;8702:30;8768:17;8748:18;;;8741:45;8803:18;;87661:42:0::1;8488:339:1::0;87661:42:0::1;87751:45;::::0;;;;:23:::1;9024:55:1::0;;;87751:45:0::1;::::0;::::1;9006:74:1::0;87786:9:0::1;9096:18:1::0;;;9089:34;87751:11:0::1;:23;::::0;::::1;::::0;8979:18:1;;87751:45:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;87865:20;87904:13;;87921:1;87904:18;87900:160;;85412:3;87967:13;;87955:9;:25;;;;:::i;:::-;87954:45;;;;:::i;:::-;87939:60;;88036:12;88014:18;;:34;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;87900:160:0::1;88077:60;::::0;;88113:9:::1;10079:25:1::0;;10135:2;10120:18;;10113:34;;;88077:60:0::1;::::0;::::1;::::0;88090:10:::1;::::0;88077:60:::1;::::0;10052:18:1;88077:60:0::1;;;;;;;87554:591;66011:20:::0;65405:1;66531:7;:22;66348:213;66011:20;87496:649;:::o;56500:141::-;56980:5;;;;56966:10;:19;56958:79;;;;;;;10360:2:1;56958:79:0;;;10342:21:1;10399:2;10379:18;;;10372:30;10438:34;10418:18;;;10411:62;10509:17;10489:18;;;10482:45;10544:19;;56958:79:0;10158:411:1;56958:79:0;56572:14:::1;:23:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;56611:22:::1;::::0;588:74:1;;;56611:22:0::1;::::0;576:2:1;561:18;56611:22:0::1;;;;;;;;56500:141:::0;:::o;88866:1714::-;65967:21;:19;:21::i;:::-;88984:18:::1;::::0;::::1;::::0;::::1;;;88983:19;88975:56;;;::::0;::::1;::::0;;10776:2:1;88975:56:0::1;::::0;::::1;10758:21:1::0;10815:2;10795:18;;;10788:30;10854:26;10834:18;;;10827:54;10898:18;;88975:56:0::1;10574:348:1::0;88975:56:0::1;89111:19;85323:8;89158:18;;89134:21;:42;;;;:::i;:::-;89133:59;;;;:::i;:::-;89111:81;;89225:1;89211:11;:15;89203:54;;;::::0;::::1;::::0;;11262:2:1;89203:54:0::1;::::0;::::1;11244:21:1::0;11301:2;11281:18;;;11274:30;11340:28;11320:18;;;11313:56;11386:18;;89203:54:0::1;11060:350:1::0;89203:54:0::1;89291:11:::0;89270:18:::1;89317:17:::0;;;89313:120:::1;;-1:-1:-1::0;89349:11:0;89313:120:::1;;;89394:12;89380:11;:26;89376:57;;;-1:-1:-1::0;89421:12:0;89376:57:::1;89509:9;89504:1069;89528:10;89524:1;:14;89504:1069;;;89621:19;89659:33:::0;89711:22:::1;89752:23:::0;89793:18:::1;:16;:18::i;:::-;89602:209;;;;;;;;90051:16;90068:6;90051:24;;;;;;:::i;:::-;::::0;;;::::1;::::0;;;;;::::1;::::0;;;;::::1;;90050:25;90042:66;;;::::0;::::1;::::0;;11909:2:1;90042:66:0::1;::::0;::::1;11891:21:1::0;11948:2;11928:18;;;11921:30;11987;11967:18;;;11960:58;12035:18;;90042:66:0::1;11707:352:1::0;90042:66:0::1;90191:185;::::0;;;;:23:::1;:15;:23;::::0;::::1;::::0;85323:8:::1;::::0;90191:185:::1;::::0;90254:6;;90279:20;;90318:9;;90346:15;;90191:185:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;90494:4;90467:16;90484:6;90467:24;;;;;;:::i;:::-;::::0;;;::::1;::::0;;;;;::::1;::::0;;;:31;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;;90520:41:::1;::::0;90532:6;;90520:41:::1;:::i;:::-;;;;;;;;;90540:20;90520:41;;;;;;:::i;:::-;;;;;;;;89545:1028;;;;89540:3;;;;:::i;:::-;;;89504:1069;;;;88932:1648;;66011:20:::0;65405:1;66531:7;:22;66348:213;78980:431;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;79104:24:::1;79131:10;79142:8;79131:20;;;;;;;;:::i;:::-;;;;;;;;;;;79104:47;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;79162:22;79187:10;79198:6;79187:18;;;;;;;;:::i;:::-;;;;;;;;;;;79162:43;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;79274:7;79253:10;79264:6;79253:18;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:28;;:18:::1;::::0;;::::1;;::::0;;;:28:::1;::::0;:18;:28:::1;:::i;:::-;-1:-1:-1::0;79253:28:0::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;:::i;:::-;;;;;;;;;;;;;79315:5;79292:10;79303:8;79292:20;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:28;;:20:::1;::::0;;::::1;;::::0;;;:28:::1;::::0;:20;:28:::1;:::i;:::-;-1:-1:-1::0;79292:28:0::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;:::i;:::-;-1:-1:-1::0;79292:28:0::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;79356:14;;79372:12;;79338:65;;::::1;::::0;::::1;::::0;79356:14;79386:8;;79396:6;;79338:65:::1;:::i;:::-;;;;;;;;79057:354;;78980:431:::0;;:::o;83231:294::-;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;83902:10;:17;83342:20;83334:60:::1;;;::::0;::::1;::::0;;16572:2:1;83334:60:0::1;::::0;::::1;16554:21:1::0;16611:2;16591:18;;;16584:30;16650:29;16630:18;;;16623:57;16697:18;;83334:60:0::1;16370:351:1::0;83334:60:0::1;83405:22;:47;83430:22:::0;83405;:47:::1;:::i;:::-;;83470;83494:22;83470:47;;;;;;:::i;91054:378::-:0;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;91166:18:::1;;91156:6;:28;;91148:76;;;::::0;::::1;::::0;;16928:2:1;91148:76:0::1;::::0;::::1;16910:21:1::0;16967:2;16947:18;;;16940:30;17006:34;16986:18;;;16979:62;17077:5;17057:18;;;17050:33;17100:19;;91148:76:0::1;16726:399:1::0;91148:76:0::1;91257:6;91235:18;;:28;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;91294:37:0::1;::::0;91277:12:::1;::::0;91294:16:::1;::::0;::::1;::::0;91319:6;;91277:12;91294:37;91277:12;91294:37;91319:6;91294:16;:37:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91276:55;;;91350:7;91342:36;;;::::0;::::1;::::0;;17542:2:1;91342:36:0::1;::::0;::::1;17524:21:1::0;17581:2;17561:18;;;17554:30;17620:18;17600;;;17593:46;17656:18;;91342:36:0::1;17340:340:1::0;91342:36:0::1;91413:2;91396:28;;;91417:6;91396:28;;;;2745:25:1::0;;2733:2;2718:18;;2599:177;91396:28:0::1;;;;;;;;91137:295;91054:378:::0;;:::o;78244:189::-;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;78327:10:::1;:26:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;78327:26:0;;;;78343:9;;78327:26:::1;;::::0;::::1;;78343:9:::0;78327:26;::::1;:::i;:::-;-1:-1:-1::0;78369:56:0::1;::::0;-1:-1:-1;78384:16:0::1;:9:::0;;:16:::1;:::i;:::-;78402:22;78369:56;;;;;;;;:::i;86822:581::-:0;86893:14;86987:22;87003:4;86987:7;:22::i;:::-;87072:53;;;;;:19;87100:12;9024:55:1;;87072:53:0;;;9006:74:1;87115:9:0;9096:18:1;;;9089:34;87072:11:0;:19;;;;8979:18:1;;87072:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;87250:42:0;;;;;87271:9;87250:42;;;23240:25:1;87250:20:0;23301:55:1;;;23281:18;;;23274:83;87223:24:0;;87250:12;:20;;;;;;23213:18:1;;87250:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;87223:69;;87330:1;87311:16;:20;87303:56;;;;;;;23759:2:1;87303:56:0;;;23741:21:1;23798:2;23778:18;;;23771:30;23837:25;23817:18;;;23810:53;23880:18;;87303:56:0;23557:347:1;87303:56:0;87379:16;86822:581;-1:-1:-1;;86822:581:0:o;88228:73::-;88274:19;88282:10;88274:7;:19::i;:::-;88228:73::o;56649:271::-;56718:14;;;;56704:10;:28;56696:94;;;;;;;24111:2:1;56696:94:0;;;24093:21:1;24150:2;24130:18;;;24123:30;24189:34;24169:18;;;24162:62;24260:23;24240:18;;;24233:51;24301:19;;56696:94:0;23909:417:1;56696:94:0;56819:5;;;56826:14;56806:35;;;56819:5;;;;24566:34:1;;56826:14:0;;;;24631:2:1;24616:18;;24609:43;56806:35:0;;24478:18:1;56806:35:0;;;;;;;56860:14;;;;56852:22;;;;;;56860:14;;;56852:22;;;;56885:27;;;56649:271::o;92258:265::-;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;92394:5:::1;::::0;92364:49:::1;::::0;;;;:29:::1;92394:5:::0;;::::1;92364:49;::::0;::::1;9006:74:1::0;9096:18;;;9089:34;;;92364:29:0;;::::1;::::0;::::1;::::0;8979:18:1;;92364:49:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;92356:91;;;::::0;::::1;::::0;;24865:2:1;92356:91:0::1;::::0;::::1;24847:21:1::0;24904:2;24884:18;;;24877:30;24943:31;24923:18;;;24916:59;24992:18;;92356:91:0::1;24663:353:1::0;92356:91:0::1;92465:50;::::0;;9036:42:1;9024:55;;9006:74;;9111:2;9096:18;;9089:34;;;92465:50:0::1;::::0;8979:18:1;92465:50:0::1;;;;;;;;92258:265:::0;;:::o;83641:130::-;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;83705:17:::1;83712:10;;83705:17;:::i;:::-;83740:23;::::0;::::1;::::0;;;::::1;83641:130::o:0;90759:228::-;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;85412:3:::1;90845:8;:27;;90836:66;;;::::0;::::1;::::0;;25223:2:1;90836:66:0::1;::::0;::::1;25205:21:1::0;25262:2;25242:18;;;25235:30;25301:27;25281:18;;;25274:55;25346:18;;90836:66:0::1;25021:349:1::0;90836:66:0::1;90913:13;:24:::0;;;90953:26:::1;::::0;2745:25:1;;;90953:26:0::1;::::0;2733:2:1;2718:18;90953:26:0::1;2599:177:1::0;79525:261:0;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;79664:9:::1;79659:79;79683:5;79679:1;:9;79659:79;;;79710:10;:16;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;;;;::::1;::::0;::::1;;::::0;::::1;::::0;;::::1;:::i;:::-;;;::::0;::::1;;;:::i;:::-;-1:-1:-1::0;79710:16:0::1;;::::0;;;::::1;::::0;;;79690:3:::1;::::0;::::1;:::i;:::-;;;79659:79;;;-1:-1:-1::0;79755:23:0::1;::::0;2745:25:1;;;79755:23:0::1;::::0;2733:2:1;2718:18;79755:23:0::1;2599:177:1::0;91482:143:0;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;91561:12:::1;::::0;;::::1;::::0;;::::1;91560:13;91545:28:::0;;;::::1;::::0;::::1;::::0;;;91591:26:::1;::::0;91604:12;;838:14:1;831:22;813:41;;91591:26:0::1;::::0;801:2:1;786:18;91591:26:0::1;;;;;;;;91482:143::o:0;82179:522::-;82274:19;82308:34;82357:22;82394:23;82445:18;82466:10;82477:1;82466:13;;;;;;;;:::i;:::-;;;;;;;;;;;82445:34;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82548:1;:8;;;82539:17;;82591:22;82567:46;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82636:1;:11;;;82624:23;;82676:1;:17;;;82658:35;;82434:267;82179:522;;;;;:::o;91695:172::-;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;91785:18:::1;::::0;;::::1;;::::0;;::::1;::::0;::::1;91784:19;91763:40:::0;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;;;91821:38:::1;::::0;::::1;::::0;::::1;::::0;91840:18;::::1;::::0;;::::1;838:14:1::0;831:22;813:41;;801:2;786:18;;673:187;83978:251:0;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;84067:31:::1;::::0;::::1;84059:65;;;::::0;::::1;::::0;;25766:2:1;84059:65:0::1;::::0;::::1;25748:21:1::0;25805:2;25785:18;;;25778:30;25844:23;25824:18;;;25817:51;25885:18;;84059:65:0::1;25564:345:1::0;84059:65:0::1;84135:16;:36:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;84187:34:::1;::::0;588:74:1;;;84187:34:0::1;::::0;576:2:1;561:18;84187:34:0::1;425:243:1::0;88376:96:0;88446:18;88454:9;88446:7;:18::i;91932:233::-;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;92004:12:::1;92029:5:::0;;92021:40:::1;::::0;92029:5:::1;::::0;;::::1;::::0;92049:6;;92004:12;92021:40;92004:12;92021:40;92049:6;92029:5;92021:40:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92003:58;;;92080:7;92072:36;;;::::0;::::1;::::0;;17542:2:1;92072:36:0::1;::::0;::::1;17524:21:1::0;17581:2;17561:18;;;17554:30;17620:18;17600;;;17593:46;17656:18;;92072:36:0::1;17340:340:1::0;92072:36:0::1;92126:31;::::0;2745:25:1;;;92126:31:0::1;::::0;2733:2:1;2718:18;92126:31:0::1;2599:177:1::0;79953:1250:0;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;80144:27:::1;80174:10;80185;80174:22;;;;;;;;:::i;:::-;;;;;;;;;;;:29;;80144:59;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80259:24;80255:853;;;80411:10;:17:::0;80385:48:::1;::::0;80399:10;;80411:21:::1;::::0;80431:1:::1;::::0;80411:21:::1;:::i;80385:48::-;80536:10;:16;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;;;;::::1;::::0;::::1;;::::0;::::1;::::0;;::::1;:::i;:::-;;;::::0;::::1;;;:::i;:::-;;;;;;;;;;;80255:853;;;80668:38;80709:10;80668:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;80794:10;;80787:17;;;;:::i;:::-;80908:9;80903:194;80927:19;:26;80923:1;:30;80903:194;;;80988:10;80983:1;:15;80979:103;;81023:10;81039:19;81059:1;81039:22;;;;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;;81023:39;;::::1;::::0;::::1;::::0;;-1:-1:-1;81023:39:0;;;;;;;;;::::1;::::0;;::::1;;::::0;;;::::1;::::0;;::::1;:::i;:::-;-1:-1:-1::0;81023:39:0::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;:::i;:::-;;;;;;;;;;;;80979:103;80955:3;::::0;::::1;:::i;:::-;;;80903:194;;;;80608:500;80255:853;81125:70;81142:14;81158:10;81170:24;81125:70;;;;;;;;:::i;:::-;;;;;;;;80049:1154;79953:1250:::0;;:::o;78656:251::-;77969:16;;;;77955:10;:30;;:53;;-1:-1:-1;78003:5:0;;;;77989:10;:19;77955:53;77947:87;;;;;;;12688:2:1;77947:87:0;;;12670:21:1;12727:2;12707:18;;;12700:30;12766:23;12746:18;;;12739:51;12807:18;;77947:87:0;12486:345:1;77947:87:0;78768:14;78749:16:::1;78800:100;78824:11;78820:1;:15;78800:100;;;78857:31;78870:14;;78885:1;78870:17;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;78857:31::-;78837:3;::::0;::::1;:::i;:::-;;;78800:100;;;;78738:169;78656:251:::0;;:::o;66047:293::-;65449:1;66181:7;;:19;66173:63;;;;;;;26880:2:1;66173:63:0;;;26862:21:1;26919:2;26899:18;;;26892:30;26958:33;26938:18;;;26931:61;27009:18;;66173:63:0;26678:355:1;66173:63:0;65449:1;66314:7;:18;66047:293::o;81321:772::-;81399:19;81433:34;81482:22;81519:23;81628:12;81643:15;83902:10;:17;;83829:98;81643:15;81628:30;;81677:7;81688:1;81677:12;81669:49;;;;;;;27240:2:1;81669:49:0;;;27222:21:1;27279:2;27259:18;;;27252:30;27318:26;27298:18;;;27291:54;27362:18;;81669:49:0;27038:348:1;81669:49:0;81780:23;81806:10;81817:11;81827:1;81817:7;:11;:::i;:::-;81806:23;;;;;;;;:::i;:::-;;;;;;;;;;;81780:49;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81840:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;81925:6;:13;;;81916:22;;81973;81949:46;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82018:6;:16;;;82006:28;;82063:6;:22;;;82045:40;;81559:534;;81321:772;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;14:154:1;100:42;93:5;89:54;82:5;79:65;69:93;;158:1;155;148:12;173:247;232:6;285:2;273:9;264:7;260:23;256:32;253:52;;;301:1;298;291:12;253:52;340:9;327:23;359:31;384:5;359:31;:::i;:::-;409:5;173:247;-1:-1:-1;;;173:247:1:o;865:180::-;924:6;977:2;965:9;956:7;952:23;948:32;945:52;;;993:1;990;983:12;945:52;-1:-1:-1;1016:23:1;;865:180;-1:-1:-1;865:180:1:o;1050:248::-;1118:6;1126;1179:2;1167:9;1158:7;1154:23;1150:32;1147:52;;;1195:1;1192;1185:12;1147:52;-1:-1:-1;;1218:23:1;;;1288:2;1273:18;;;1260:32;;-1:-1:-1;1050:248:1:o;1303:184::-;1355:77;1352:1;1345:88;1452:4;1449:1;1442:15;1476:4;1473:1;1466:15;1492:777;1534:5;1587:3;1580:4;1572:6;1568:17;1564:27;1554:55;;1605:1;1602;1595:12;1554:55;1641:6;1628:20;1667:18;1704:2;1700;1697:10;1694:36;;;1710:18;;:::i;:::-;1844:2;1838:9;1906:4;1898:13;;1749:66;1894:22;;;1918:2;1890:31;1886:40;1874:53;;;1942:18;;;1962:22;;;1939:46;1936:72;;;1988:18;;:::i;:::-;2028:10;2024:2;2017:22;2063:2;2055:6;2048:18;2109:3;2102:4;2097:2;2089:6;2085:15;2081:26;2078:35;2075:55;;;2126:1;2123;2116:12;2075:55;2190:2;2183:4;2175:6;2171:17;2164:4;2156:6;2152:17;2139:54;2237:1;2230:4;2225:2;2217:6;2213:15;2209:26;2202:37;2257:6;2248:15;;;;;;1492:777;;;;:::o;2274:320::-;2342:6;2395:2;2383:9;2374:7;2370:23;2366:32;2363:52;;;2411:1;2408;2401:12;2363:52;2451:9;2438:23;2484:18;2476:6;2473:30;2470:50;;;2516:1;2513;2506:12;2470:50;2539:49;2580:7;2571:6;2560:9;2556:22;2539:49;:::i;:::-;2529:59;2274:320;-1:-1:-1;;;;2274:320:1:o;2781:323::-;2857:6;2865;2918:2;2906:9;2897:7;2893:23;2889:32;2886:52;;;2934:1;2931;2924:12;2886:52;2973:9;2960:23;2992:31;3017:5;2992:31;:::i;:::-;3042:5;3094:2;3079:18;;;;3066:32;;-1:-1:-1;;;2781:323:1:o;3109:388::-;3197:6;3250:2;3238:9;3229:7;3225:23;3221:32;3218:52;;;3266:1;3263;3256:12;3218:52;3306:9;3293:23;3339:18;3331:6;3328:30;3325:50;;;3371:1;3368;3361:12;3325:50;3394:22;;3450:2;3432:16;;;3428:25;3425:45;;;3466:1;3463;3456:12;4053:250;4138:1;4148:113;4162:6;4159:1;4156:13;4148:113;;;4238:11;;;4232:18;4219:11;;;4212:39;4184:2;4177:10;4148:113;;;-1:-1:-1;;4295:1:1;4277:16;;4270:27;4053:250::o;4308:329::-;4349:3;4387:5;4381:12;4414:6;4409:3;4402:19;4430:76;4499:6;4492:4;4487:3;4483:14;4476:4;4469:5;4465:16;4430:76;:::i;:::-;4551:2;4539:15;4556:66;4535:88;4526:98;;;;4626:4;4522:109;;4308:329;-1:-1:-1;;4308:329:1:o;4642:610::-;4909:3;4898:9;4891:22;4872:4;4936:45;4976:3;4965:9;4961:19;4953:6;4936:45;:::i;:::-;5029:9;5021:6;5017:22;5012:2;5001:9;4997:18;4990:50;5063:32;5088:6;5080;5063:32;:::i;:::-;5049:46;;5143:9;5135:6;5131:22;5126:2;5115:9;5111:18;5104:50;5171:32;5196:6;5188;5171:32;:::i;:::-;5163:40;;;5239:6;5234:2;5223:9;5219:18;5212:34;4642:610;;;;;;;:::o;5503:607::-;5598:6;5606;5614;5667:2;5655:9;5646:7;5642:23;5638:32;5635:52;;;5683:1;5680;5673:12;5635:52;5723:9;5710:23;5752:18;5793:2;5785:6;5782:14;5779:34;;;5809:1;5806;5799:12;5779:34;5832:49;5873:7;5864:6;5853:9;5849:22;5832:49;:::i;:::-;5822:59;;5934:2;5923:9;5919:18;5906:32;5890:48;;5963:2;5953:8;5950:16;5947:36;;;5979:1;5976;5969:12;5947:36;;6002:51;6045:7;6034:8;6023:9;6019:24;6002:51;:::i;:::-;5992:61;;;6100:2;6089:9;6085:18;6072:32;6062:42;;5503:607;;;;;:::o;6115:681::-;6298:2;6287:9;6280:21;6261:4;6336:6;6330:13;6379:4;6374:2;6363:9;6359:18;6352:32;6407:51;6453:3;6442:9;6438:19;6424:12;6407:51;:::i;:::-;6393:65;;6507:2;6499:6;6495:15;6489:22;6575:66;6563:9;6555:6;6551:22;6547:95;6542:2;6531:9;6527:18;6520:123;6666:40;6699:6;6683:14;6666:40;:::i;:::-;6652:54;;;6762:2;6754:6;6750:15;6744:22;6737:4;6726:9;6722:20;6715:52;6784:6;6776:14;;;6115:681;;;;:::o;6801:118::-;6887:5;6880:13;6873:21;6866:5;6863:32;6853:60;;6909:1;6906;6899:12;6924:309;6989:6;6997;7050:2;7038:9;7029:7;7025:23;7021:32;7018:52;;;7066:1;7063;7056:12;7018:52;7102:9;7089:23;7079:33;;7162:2;7151:9;7147:18;7134:32;7175:28;7197:5;7175:28;:::i;:::-;7222:5;7212:15;;;6924:309;;;;;:::o;7494:644::-;7609:6;7617;7670:2;7658:9;7649:7;7645:23;7641:32;7638:52;;;7686:1;7683;7676:12;7638:52;7726:9;7713:23;7755:18;7796:2;7788:6;7785:14;7782:34;;;7812:1;7809;7802:12;7782:34;7850:6;7839:9;7835:22;7825:32;;7895:7;7888:4;7884:2;7880:13;7876:27;7866:55;;7917:1;7914;7907:12;7866:55;7957:2;7944:16;7983:2;7975:6;7972:14;7969:34;;;7999:1;7996;7989:12;7969:34;8052:7;8047:2;8037:6;8034:1;8030:14;8026:2;8022:23;8018:32;8015:45;8012:65;;;8073:1;8070;8063:12;8012:65;8104:2;8096:11;;;;;8126:6;;-1:-1:-1;7494:644:1;;-1:-1:-1;;;;7494:644:1:o;9134:184::-;9186:77;9183:1;9176:88;9283:4;9280:1;9273:15;9307:4;9304:1;9297:15;9323:168;9396:9;;;9427;;9444:15;;;9438:22;;9424:37;9414:71;;9465:18;;:::i;9496:274::-;9536:1;9562;9552:189;;9597:77;9594:1;9587:88;9698:4;9695:1;9688:15;9726:4;9723:1;9716:15;9552:189;-1:-1:-1;9755:9:1;;9496:274::o;9775:125::-;9840:9;;;9861:10;;;9858:36;;;9874:18;;:::i;10927:128::-;10994:9;;;11015:11;;;11012:37;;;11029:18;;:::i;11415:287::-;11544:3;11582:6;11576:13;11598:66;11657:6;11652:3;11645:4;11637:6;11633:17;11598:66;:::i;:::-;11680:16;;;;;11415:287;-1:-1:-1;;11415:287:1:o;12064:217::-;12211:2;12200:9;12193:21;12174:4;12231:44;12271:2;12260:9;12256:18;12248:6;12231:44;:::i;12286:195::-;12325:3;12356:66;12349:5;12346:77;12343:103;;12426:18;;:::i;:::-;-1:-1:-1;12473:1:1;12462:13;;12286:195::o;12836:184::-;12888:77;12885:1;12878:88;12985:4;12982:1;12975:15;13009:4;13006:1;12999:15;13025:437;13104:1;13100:12;;;;13147;;;13168:61;;13222:4;13214:6;13210:17;13200:27;;13168:61;13275:2;13267:6;13264:14;13244:18;13241:38;13238:218;;13312:77;13309:1;13302:88;13413:4;13410:1;13403:15;13441:4;13438:1;13431:15;13238:218;;13025:437;;;:::o;13592:544::-;13693:2;13688:3;13685:11;13682:448;;;13729:1;13754:5;13750:2;13743:17;13799:4;13795:2;13785:19;13869:2;13857:10;13853:19;13850:1;13846:27;13840:4;13836:38;13905:4;13893:10;13890:20;13887:47;;;-1:-1:-1;13928:4:1;13887:47;13983:2;13978:3;13974:12;13971:1;13967:20;13961:4;13957:31;13947:41;;14038:82;14056:2;14049:5;14046:13;14038:82;;;14101:17;;;14082:1;14071:13;14038:82;;;14042:3;;;13682:448;13592:544;;;:::o;14372:1467::-;14496:3;14490:10;14523:18;14515:6;14512:30;14509:56;;;14545:18;;:::i;:::-;14574:96;14663:6;14623:38;14655:4;14649:11;14623:38;:::i;:::-;14617:4;14574:96;:::i;:::-;14725:4;;14789:2;14778:14;;14806:1;14801:781;;;;15626:1;15643:6;15640:89;;;-1:-1:-1;15695:19:1;;;15689:26;15640:89;14278:66;14269:1;14265:11;;;14261:84;14257:89;14247:100;14353:1;14349:11;;;14244:117;15742:81;;14771:1062;;14801:781;13539:1;13532:14;;;13576:4;13563:18;;14849:66;14837:79;;;15013:236;15027:7;15024:1;15021:14;15013:236;;;15116:19;;;15110:26;15095:42;;15208:27;;;;15176:1;15164:14;;;;15043:19;;15013:236;;;15017:3;15277:6;15268:7;15265:19;15262:261;;;15338:19;;;15332:26;15439:66;15421:1;15417:14;;;15433:3;15413:24;15409:97;15405:102;15390:118;15375:134;;15262:261;-1:-1:-1;;;;;15569:1:1;15553:14;;;15549:22;15536:36;;-1:-1:-1;14372:1467:1:o;15844:521::-;16093:3;16082:9;16075:22;16056:4;16120:45;16160:3;16149:9;16145:19;16137:6;16120:45;:::i;:::-;16213:9;16205:6;16201:22;16196:2;16185:9;16181:18;16174:50;16241:32;16266:6;16258;16241:32;:::i;:::-;16304:2;16289:18;;16282:34;;;;-1:-1:-1;;16347:2:1;16332:18;16325:34;16233:40;15844:521;-1:-1:-1;;15844:521:1:o;17685:580::-;17762:4;17768:6;17828:11;17815:25;17918:66;17907:8;17891:14;17887:29;17883:102;17863:18;17859:127;17849:155;;18000:1;17997;17990:12;17849:155;18027:33;;18079:20;;;-1:-1:-1;18122:18:1;18111:30;;18108:50;;;18154:1;18151;18144:12;18108:50;18187:4;18175:17;;-1:-1:-1;18218:14:1;18214:27;;;18204:38;;18201:58;;;18255:1;18252;18245:12;18201:58;17685:580;;;;;:::o;18270:1305::-;18376:18;18371:3;18368:27;18365:53;;;18398:18;;:::i;:::-;18427:93;18516:3;18476:38;18508:4;18502:11;18476:38;:::i;:::-;18470:4;18427:93;:::i;:::-;18546:1;18571:2;18566:3;18563:11;18588:1;18583:734;;;;19361:1;19378:3;19375:93;;;-1:-1:-1;19434:19:1;;;19421:33;19375:93;14278:66;14269:1;14265:11;;;14261:84;14257:89;14247:100;14353:1;14349:11;;;14244:117;19481:78;;18556:1013;;18583:734;13539:1;13532:14;;;13576:4;13563:18;;18628:66;18619:76;;;18778:9;18800:229;18814:7;18811:1;18808:14;18800:229;;;18903:19;;;18890:33;18875:49;;19010:4;18995:20;;;;18963:1;18951:14;;;;18830:12;18800:229;;;18804:3;19057;19048:7;19045:16;19042:219;;;19177:66;19171:3;19165;19162:1;19158:11;19154:21;19150:94;19146:99;19133:9;19128:3;19124:19;19111:33;19107:139;19099:6;19092:155;19042:219;;;19304:1;19298:3;19295:1;19291:11;19287:19;19281:4;19274:33;18556:1013;;;18270:1305;;;:::o;19580:1845::-;19755:55;19804:5;19797;19755:55;:::i;:::-;19840:18;19825:13;19822:37;19819:63;;;19862:18;;:::i;:::-;19891:103;19980:13;19940:38;19972:4;19966:11;19940:38;:::i;:::-;19934:4;19891:103;:::i;:::-;20020:1;20055:2;20040:13;20037:21;20072:1;20067:790;;;;20903:1;20920:13;20917:113;;;-1:-1:-1;20988:27:1;;;20975:41;20917:113;14278:66;14269:1;14265:11;;;14261:84;14257:89;14247:100;14353:1;14349:11;;;14244:117;21043:90;;20030:1113;;20067:790;13539:1;13532:14;;;13576:4;13563:18;;20122:66;20103:86;;;20272:9;20294:237;20308:7;20305:1;20302:14;20294:237;;;20397:27;;;20384:41;20369:57;;20512:4;20497:20;;;;20465:1;20453:14;;;;20324:12;20294:237;;;20298:3;20559:13;20550:7;20547:26;20544:247;;;20707:66;20701:3;20685:13;20682:1;20678:21;20674:31;20670:104;20666:109;20653:9;20640:11;20636:27;20623:41;20619:157;20611:6;20604:173;20544:247;;;20844:1;20828:13;20825:1;20821:21;20817:29;20811:4;20804:43;20030:1113;;;;;21188:64;21248:2;21241:5;21237:14;21230:5;21188:64;:::i;:::-;21261:99;21346:13;21331;21327:1;21321:4;21317:12;21261:99;:::i;:::-;;;21414:2;21407:5;21403:14;21390:28;21386:1;21380:4;21376:12;21369:50;19580:1845;;:::o;21430:1381::-;21630:2;21619:9;21612:21;21669:6;21664:2;21653:9;21649:18;21642:34;21726:6;21718;21713:2;21702:9;21698:18;21685:48;21782:1;21777:2;21768:6;21757:9;21753:22;21749:31;21742:42;21593:4;21839:66;21834:2;21826:6;21822:15;21818:88;21807:9;21803:104;21926:4;21990:2;21978:9;21974:2;21970:18;21966:27;21961:2;21950:9;21946:18;21939:55;22014:1;22047:6;22041:13;22077:36;22103:9;22077:36;:::i;:::-;22142:6;22137:2;22133;22129:11;22122:27;22168:3;22190:1;22222:2;22211:9;22207:18;22239:1;22234:202;;;;22450:1;22445:340;;;;22200:585;;22234:202;22290:66;22279:9;22275:82;22270:2;22266;22262:11;22255:103;22423:2;22411:6;22404:14;22397:22;22394:1;22390:30;22386:2;22382:39;22378:48;22371:55;;22234:202;;22445:340;22476:6;22473:1;22466:17;22524:2;22521:1;22511:16;22549:1;22563:173;22577:6;22574:1;22571:13;22563:173;;;22663:14;;22646:10;;;22642:19;;22635:43;22706:16;;;;22592:10;;22563:173;;;22760:10;;22756:19;;;-1:-1:-1;;22200:585:1;-1:-1:-1;22802:3:1;;21430:1381;-1:-1:-1;;;;;;;;;;;21430:1381:1:o;22816:245::-;22883:6;22936:2;22924:9;22915:7;22911:23;22907:32;22904:52;;;22952:1;22949;22942:12;22904:52;22984:9;22978:16;23003:28;23025:5;23003:28;:::i;23368:184::-;23438:6;23491:2;23479:9;23470:7;23466:23;23462:32;23459:52;;;23507:1;23504;23497:12;23459:52;-1:-1:-1;23530:16:1;;23368:184;-1:-1:-1;23368:184:1:o;25375:::-;25427:77;25424:1;25417:88;25524:4;25521:1;25514:15;25548:4;25545:1;25538:15;25914:369;26111:2;26100:9;26093:21;26074:4;26131:44;26171:2;26160:9;26156:18;26148:6;26131:44;:::i;:::-;26206:2;26191:18;;26184:34;;;;-1:-1:-1;26261:14:1;;26254:22;26249:2;26234:18;;;26227:50;26123:52;25914:369;-1:-1:-1;25914:369:1:o;26288:385::-;26383:4;26441:11;26428:25;26531:66;26520:8;26504:14;26500:29;26496:102;26476:18;26472:127;26462:155;;26613:1;26610;26603:12
Swarm Source
ipfs://01c8565cd2fb78248ed5b2ad62c3cbca79a1bccc321c4d3b26704bbba417bc38
Latest 25 blocks (From a total of 109 blocks with 1.74 Ether produced)
Block | Transaction | Difficulty | Gas Used | Reward | |
---|---|---|---|---|---|
910876 | 297 days ago | 48 | 0.00 TH | 29,204,264 (97.35%) | 0.00821236010748816 ETH |
910459 | 297 days ago | 46 | 0.00 TH | 29,795,445 (99.32%) | 0.009160266268341557 ETH |
910169 | 297 days ago | 42 | 0.00 TH | 9,721,059 (32.40%) | 0.002501377688801812 ETH |
909801 | 297 days ago | 43 | 0.00 TH | 29,998,054 (99.99%) | 0.00450934965390836 ETH |
909744 | 297 days ago | 46 | 0.00 TH | 29,494,529 (98.32%) | 0.019481298941864024 ETH |
909660 | 297 days ago | 38 | 0.00 TH | 29,999,734 (100.00%) | 0.003924942287927208 ETH |
909556 | 297 days ago | 26 | 0.00 TH | 3,642,980 (12.14%) | 0.008876457437983135 ETH |
909470 | 297 days ago | 33 | 0.00 TH | 8,180,741 (27.27%) | 0.005062829536121775 ETH |
909183 | 297 days ago | 173 | 0.00 TH | 22,408,284 (74.69%) | 0.720830372509859855 ETH |
908865 | 297 days ago | 15 | 0.00 TH | 2,515,513 (8.39%) | 0.00211060195977716 ETH |
908617 | 297 days ago | 49 | 0.00 TH | 29,916,621 (99.72%) | 0.00912299991681144 ETH |
908551 | 297 days ago | 55 | 0.00 TH | 29,592,062 (98.64%) | 0.019764635389079854 ETH |
908417 | 297 days ago | 42 | 0.00 TH | 29,989,060 (99.96%) | 0.019426996340504676 ETH |
908388 | 297 days ago | 33 | 0.00 TH | 8,352,340 (27.84%) | 0.00212046534163092 ETH |
907991 | 297 days ago | 29 | 0.00 TH | 6,666,882 (22.22%) | 0.003590060276300272 ETH |
907960 | 297 days ago | 35 | 0.00 TH | 4,386,982 (14.62%) | 0.011822142295190124 ETH |
907819 | 297 days ago | 46 | 0.00 TH | 9,638,693 (32.13%) | 0.00355681266467368 ETH |
907526 | 297 days ago | 37 | 0.00 TH | 7,785,663 (25.95%) | 0.007565555631723136 ETH |
907379 | 297 days ago | 39 | 0.00 TH | 8,657,215 (28.86%) | 0.013973451405575544 ETH |
907298 | 297 days ago | 25 | 0.00 TH | 6,018,924 (20.06%) | 0.003535916380056168 ETH |
907131 | 297 days ago | 23 | 0.00 TH | 7,305,005 (24.35%) | 0.017924059136105218 ETH |
907049 | 297 days ago | 20 | 0.00 TH | 3,904,417 (13.01%) | 0.0043304973822064 ETH |
906880 | 297 days ago | 27 | 0.00 TH | 7,736,326 (25.79%) | 0.020794652625077278 ETH |
906479 | 297 days ago | 16 | 0.00 TH | 2,766,247 (9.22%) | 0.00364355723503169 ETH |
905973 | 298 days ago | 45 | 0.00 TH | 29,430,206 (98.10%) | 0.006061101870760454 ETH |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
[ 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.