Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- OVMFiatToken
- Optimization enabled
- true
- Compiler version
- v0.8.9+commit.e5eed63a
- Optimization runs
- 625
- EVM Version
- default
- Verified at
- 2023-06-28T08:32:55.652522Z
Constructor Arguments
0x0000000000000000000000004200000000000000000000000000000000000010000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000340c44089bc45f86060922d2d89efee9e0cdf5c700000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000855534420436f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045553444300000000000000000000000000000000000000000000000000000000
Arg [0] (address) : 0x4200000000000000000000000000000000000010
Arg [1] (address) : 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [2] (address) : 0x340c44089bc45f86060922d2d89efee9e0cdf5c7
Arg [3] (string) : USD Coin
Arg [4] (string) : USDC
Arg [5] (uint8) : 6
contracts/OVMFiatToken.sol
/** *Submitted for verification at Etherscan.io on 2021-08-31 */ // Sources flattened with hardhat v2.3.3 https://hardhat.org // File @openzeppelin/contracts/utils/Context.sol@v3.4.1 // SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return payable(msg.sender); } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File @openzeppelin/contracts/token/ERC20/IERC20.sol@v3.4.1 pragma solidity ^0.8.9; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File @openzeppelin/contracts/math/SafeMath.sol@v3.4.1 pragma solidity ^0.8.9; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } // File @openzeppelin/contracts/token/ERC20/ERC20.sol@v3.4.1 pragma solidity ^0.8.9; /** * @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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File @openzeppelin/contracts/introspection/IERC165.sol@v3.4.1 pragma solidity ^0.8.9; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @eth-optimism/contracts/libraries/standards/IL2StandardERC20.sol@v0.4.6 pragma solidity ^0.8.9; interface IL2StandardERC20 is IERC20, IERC165 { function l1Token() external returns (address); function mint(address _to, uint256 _amount) external; function burn(address _from, uint256 _amount) external; event Mint(address indexed _account, uint256 _amount); event Burn(address indexed _account, uint256 _amount); } // File @eth-optimism/contracts/libraries/standards/L2StandardERC20.sol@v0.4.6 pragma solidity ^0.8.9; contract L2StandardERC20 is IL2StandardERC20, ERC20 { address public override l1Token; address public l2Bridge; /** * @param _l2Bridge Address of the L2 standard bridge. * @param _l1Token Address of the corresponding L1 token. * @param _name ERC20 name. * @param _symbol ERC20 symbol. */ constructor( address _l2Bridge, address _l1Token, string memory _name, string memory _symbol ) ERC20(_name, _symbol) { l1Token = _l1Token; l2Bridge = _l2Bridge; } modifier onlyL2Bridge { require(msg.sender == l2Bridge, "Only L2 Bridge can mint and burn"); _; } function supportsInterface(bytes4 _interfaceId) public override pure returns (bool) { bytes4 firstSupportedInterface = bytes4(keccak256("supportsInterface(bytes4)")); // ERC165 bytes4 secondSupportedInterface = IL2StandardERC20.l1Token.selector ^ IL2StandardERC20.mint.selector ^ IL2StandardERC20.burn.selector; return _interfaceId == firstSupportedInterface || _interfaceId == secondSupportedInterface; } function mint(address _to, uint256 _amount) public virtual override onlyL2Bridge { _mint(_to, _amount); emit Mint(_to, _amount); } function burn(address _from, uint256 _amount) public virtual override onlyL2Bridge { _burn(_from, _amount); emit Burn(_from, _amount); } } // File contracts/USDC/lib/Ownable.sol // Copyright (c) 2021 Coinbase, Inc. pragma solidity ^0.8.9; /** * @notice Ownable * @dev Similar to OpenZeppelin's Ownable. * Differences: * - An internally callable _changeOwner() function * - No renounceOwnership() function * - No constructor * - No GSN support */ abstract contract Ownable { address internal _owner; /** * @notice Emitted when the owner changes. * @param previousOwner Previous owner's address * @param newOwner New owner's address */ event OwnerChanged(address indexed previousOwner, address indexed newOwner); /** * @notice Throw if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == msg.sender, "caller is not the owner"); _; } /** * @notice Return the address of the current owner. * @return Owner's address */ function owner() external view returns (address) { return _owner; } /** * @notice Change the owner. Can only be called by the current owner. * @param account New owner's address */ function changeOwner(address account) external onlyOwner { _changeOwner(account); } /** * @notice Internal function to change the owner. * @param account New owner's address */ function _changeOwner(address account) internal { require(account != address(0), "account is the zero address"); require(account != address(this), "account is this contract"); emit OwnerChanged(_owner, account); _owner = account; } } // File contracts/USDC/lib/Pausable.sol // Copyright (c) 2021 Coinbase, Inc. pragma solidity ^0.8.9; /** * @notice Pausable * @dev Similar to OpenZeppelin's Pausable. * Differences: * - Has the pauser role * - External pause/unpause functions callable by the pauser * - No constructor * - No GSN support */ abstract contract Pausable is Ownable { address private _pauser; bool private _paused; /** * @notice Emitted when the pauser changes. * @param previousPauser Previous pauser's address * @param newPauser New pauser's address */ event PauserChanged( address indexed previousPauser, address indexed newPauser ); /** * @notice Emitted when the contract is paused. * @param pauser Pauser's address */ event Paused(address pauser); /** * @notice Emitted when the contract is unpaused. * @param pauser Pauser's address */ event Unpaused(address pauser); /** * @notice Callable only by the pauser. */ modifier onlyPauser() { require(msg.sender == _pauser, "caller is not the pauser"); _; } /** * @notice Callable only when the contract is not paused. */ modifier whenNotPaused() { require(!_paused, "contract is paused"); _; } /** * @notice Callable only when the contract is paused. */ modifier whenPaused() { require(_paused, "contract is not paused"); _; } /** * @notice Return the current pauser. * @return Pauser's address */ function pauser() external view returns (address) { return _pauser; } /** * @notice Return whether the contract is paused. * @return True if paused */ function paused() external view returns (bool) { return _paused; } /** * @notice Pause the contract. */ function pause() external onlyPauser { _paused = true; emit Paused(msg.sender); } /** * @notice Unpause the contract. */ function unpause() external onlyPauser { _paused = false; emit Unpaused(msg.sender); } /** * @notice Set a new pauser. * @param account New pauser's address */ function setPauser(address account) external onlyOwner { _setPauser(account); } /** * @notice Initial function to set the pauser. * @param account New pauser's address */ function _setPauser(address account) internal { emit PauserChanged(_pauser, account); _pauser = account; } } // File contracts/USDC/lib/Blacklistable.sol /** * * Copyright (c) 2018-2020 CENTRE SECZ * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ pragma solidity ^0.8.9; abstract contract Blacklistable is Ownable { address internal _blacklister; mapping(address => bool) internal _blacklisted; event Blacklisted(address indexed account); event UnBlacklisted(address indexed account); event BlacklisterChanged(address indexed newBlacklister); /** * @notice Throw if called by any account other than the blacklister */ modifier onlyBlacklister() { require(msg.sender == _blacklister, "caller is not the blacklister"); _; } /** * @notice Throw if argument account is blacklisted * @param account The address to check */ modifier notBlacklisted(address account) { require(!_blacklisted[account], "account is blacklisted"); _; } /** * @notice Blacklister address * @return Address */ function blacklister() external view returns (address) { return _blacklister; } /** * @notice Check whether a given account is blacklisted * @param account The address to check */ function isBlacklisted(address account) external view returns (bool) { return _blacklisted[account]; } /** * @notice Add an account to blacklist * @param account The address to blacklist */ function blacklist(address account) external onlyBlacklister { _blacklisted[account] = true; emit Blacklisted(account); } /** * @notice Remove an account from blacklist * @param account The address to remove from the blacklist */ function unBlacklist(address account) external onlyBlacklister { _blacklisted[account] = false; emit UnBlacklisted(account); } /** * @notice Change the blacklister * @param newBlacklister new blacklister's address */ function updateBlacklister(address newBlacklister) external onlyOwner { require( newBlacklister != address(0), "new blacklister is the zero address" ); _blacklister = newBlacklister; emit BlacklisterChanged(_blacklister); } } // File contracts/USDC/OVMFiatToken.sol // Copyright (c) 2021 Coinbase, Inc. pragma solidity ^0.8.9; contract OVMFiatToken is L2StandardERC20, Ownable, Pausable, Blacklistable { constructor( address _l2Bridge, address _l1Token, address owner, string memory name, string memory symbol, uint8 decimals ) L2StandardERC20(_l2Bridge, _l1Token, name, symbol) { _setupDecimals(decimals); _changeOwner(owner); } function mint(address account, uint256 amount) public override whenNotPaused notBlacklisted(account) onlyL2Bridge { super.mint(account, amount); } function burn(address account, uint256 amount) public override whenNotPaused notBlacklisted(account) onlyL2Bridge { super.burn(account, amount); } function approve(address spender, uint256 amount) public override whenNotPaused notBlacklisted(msg.sender) notBlacklisted(spender) returns (bool) { return super.approve(spender, amount); } function increaseAllowance(address spender, uint256 addedValue) public override whenNotPaused notBlacklisted(msg.sender) notBlacklisted(spender) returns (bool) { return super.increaseAllowance(spender, addedValue); } function decreaseAllowance(address spender, uint256 subtractedValue) public override whenNotPaused notBlacklisted(msg.sender) notBlacklisted(spender) returns (bool) { return super.decreaseAllowance(spender, subtractedValue); } function transfer(address recipient, uint256 amount) public override whenNotPaused notBlacklisted(msg.sender) notBlacklisted(recipient) returns (bool) { return super.transfer(recipient, amount); } function transferFrom( address sender, address recipient, uint256 amount ) public override whenNotPaused notBlacklisted(msg.sender) notBlacklisted(sender) notBlacklisted(recipient) returns (bool) { return super.transferFrom(sender, recipient, amount); } }
Compiler Settings
{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers"]}},"optimizer":{"runs":625,"enabled":true},"metadata":{"useLiteralContent":true,"bytecodeHash":"none"},"libraries":{}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_l2Bridge","internalType":"address"},{"type":"address","name":"_l1Token","internalType":"address"},{"type":"address","name":"owner","internalType":"address"},{"type":"string","name":"name","internalType":"string"},{"type":"string","name":"symbol","internalType":"string"},{"type":"uint8","name":"decimals","internalType":"uint8"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Blacklisted","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"BlacklisterChanged","inputs":[{"type":"address","name":"newBlacklister","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Burn","inputs":[{"type":"address","name":"_account","internalType":"address","indexed":true},{"type":"uint256","name":"_amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Mint","inputs":[{"type":"address","name":"_account","internalType":"address","indexed":true},{"type":"uint256","name":"_amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnerChanged","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"type":"address","name":"pauser","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"PauserChanged","inputs":[{"type":"address","name":"previousPauser","internalType":"address","indexed":true},{"type":"address","name":"newPauser","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"UnBlacklisted","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"type":"address","name":"pauser","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"blacklist","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"blacklister","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeOwner","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isBlacklisted","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"l1Token","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"l2Bridge","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pauser","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPauser","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"_interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unBlacklist","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unpause","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateBlacklister","inputs":[{"type":"address","name":"newBlacklister","internalType":"address"}]}]
Contract Creation Code
0x60806040523480156200001157600080fd5b50604051620021803803806200218083398101604081905262000034916200037a565b858584848181816003908051906020019062000052929190620001ea565b50805162000068906004906020840190620001ea565b505060058054600680546001600160a01b039889166001600160a01b031990911617905560ff881660ff1996909716610100026001600160a81b031990911617601217949094169490941790925550620000c0915050565b620000cb84620000d7565b50505050505062000474565b6001600160a01b038116620001335760405162461bcd60e51b815260206004820152601b60248201527f6163636f756e7420697320746865207a65726f2061646472657373000000000060448201526064015b60405180910390fd5b6001600160a01b0381163014156200018e5760405162461bcd60e51b815260206004820152601860248201527f6163636f756e74206973207468697320636f6e7472616374000000000000000060448201526064016200012a565b6007546040516001600160a01b038084169216907fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c90600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b828054620001f89062000437565b90600052602060002090601f0160209004810192826200021c576000855562000267565b82601f106200023757805160ff191683800117855562000267565b8280016001018555821562000267579182015b82811115620002675782518255916020019190600101906200024a565b506200027592915062000279565b5090565b5b808211156200027557600081556001016200027a565b80516001600160a01b0381168114620002a857600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002d557600080fd5b81516001600160401b0380821115620002f257620002f2620002ad565b604051601f8301601f19908116603f011681019082821181831017156200031d576200031d620002ad565b816040528381526020925086838588010111156200033a57600080fd5b600091505b838210156200035e57858201830151818301840152908201906200033f565b83821115620003705760008385830101525b9695505050505050565b60008060008060008060c087890312156200039457600080fd5b6200039f8762000290565b9550620003af6020880162000290565b9450620003bf6040880162000290565b60608801519094506001600160401b0380821115620003dd57600080fd5b620003eb8a838b01620002c3565b945060808901519150808211156200040257600080fd5b506200041189828a01620002c3565b92505060a087015160ff811681146200042957600080fd5b809150509295509295509295565b600181811c908216806200044c57607f821691505b602082108114156200046e57634e487b7160e01b600052602260045260246000fd5b50919050565b611cfc80620004846000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80638da5cb5b116100f9578063ad38bf2211610097578063c01e1bd611610071578063c01e1bd6146103ad578063dd62ed3e146103c5578063f9f92be4146103fe578063fe575a871461041157600080fd5b8063ad38bf2214610376578063ae1f6aaf14610389578063bd1024301461039c57600080fd5b80639fd0506d116100d35780639fd0506d1461032c578063a457c2d71461033d578063a6f9dae114610350578063a9059cbb1461036357600080fd5b80638da5cb5b146102ec57806395d89b41146103115780639dc29fac1461031957600080fd5b8063313ce5671161016657806340c10f191161014057806340c10f19146102965780635c975abb146102a957806370a08231146102bb5780638456cb59146102e457600080fd5b8063313ce56714610266578063395093511461027b5780633f4ba83a1461028e57600080fd5b806318160ddd116101a257806318160ddd146102195780631a8952661461022b57806323b872dd146102405780632d88af4a1461025357600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063095ea7b314610206575b600080fd5b6101dc6101d7366004611a6b565b61043d565b60405190151581526020015b60405180910390f35b6101f961049b565b6040516101e89190611a95565b6101dc610214366004611b06565b61052d565b6002545b6040519081526020016101e8565b61023e610239366004611b30565b61063e565b005b6101dc61024e366004611b4b565b6106e1565b61023e610261366004611b30565b610849565b60055460405160ff90911681526020016101e8565b6101dc610289366004611b06565b6108af565b61023e6109b2565b61023e6102a4366004611b06565b610a4f565b600854600160a01b900460ff166101dc565b61021d6102c9366004611b30565b6001600160a01b031660009081526020819052604090205490565b61023e610b60565b6007546001600160a01b03165b6040516001600160a01b0390911681526020016101e8565b6101f9610bfd565b61023e610327366004611b06565b610c0c565b6008546001600160a01b03166102f9565b6101dc61034b366004611b06565b610d18565b61023e61035e366004611b30565b610e1b565b6101dc610371366004611b06565b610e7e565b61023e610384366004611b30565b610f81565b6006546102f9906001600160a01b031681565b6009546001600160a01b03166102f9565b6005546102f99061010090046001600160a01b031681565b61021d6103d3366004611b87565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61023e61040c366004611b30565b611087565b6101dc61041f366004611b30565b6001600160a01b03166000908152600a602052604090205460ff1690565b60007f01ffc9a7a5cef8baa21ed3c5c0d7e23accb804b619e9333b597f47a0d84076e2631d1d8b6360e01b6001600160e01b031984166301ffc9a760e01b148061049357506001600160e01b0319848116908216145b949350505050565b6060600380546104aa90611bba565b80601f01602080910402602001604051908101604052809291908181526020018280546104d690611bba565b80156105235780601f106104f857610100808354040283529160200191610523565b820191906000526020600020905b81548152906001019060200180831161050657829003601f168201915b5050505050905090565b600854600090600160a01b900460ff16156105845760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b60448201526064015b60405180910390fd5b336000818152600a602052604090205460ff16156105d25760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6001600160a01b0384166000908152600a6020526040902054849060ff161561062b5760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b610635858561112d565b95945050505050565b6009546001600160a01b031633146106985760405162461bcd60e51b815260206004820152601d60248201527f63616c6c6572206973206e6f742074686520626c61636b6c6973746572000000604482015260640161057b565b6001600160a01b0381166000818152600a6020526040808220805460ff19169055517f117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e9190a250565b600854600090600160a01b900460ff16156107335760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161057b565b336000818152600a602052604090205460ff16156107815760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6001600160a01b0385166000908152600a6020526040902054859060ff16156107da5760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6001600160a01b0385166000908152600a6020526040902054859060ff16156108335760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b61083e878787611143565b979650505050505050565b6007546001600160a01b031633146108a35760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e6572000000000000000000604482015260640161057b565b6108ac816111ac565b50565b600854600090600160a01b900460ff16156109015760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161057b565b336000818152600a602052604090205460ff161561094f5760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6001600160a01b0384166000908152600a6020526040902054849060ff16156109a85760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6106358585611208565b6008546001600160a01b03163314610a0c5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865207061757365720000000000000000604482015260640161057b565b6008805460ff60a01b191690556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906020015b60405180910390a1565b600854600160a01b900460ff1615610a9e5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161057b565b6001600160a01b0382166000908152600a6020526040902054829060ff1615610af75760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6006546001600160a01b03163314610b515760405162461bcd60e51b815260206004820181905260248201527f4f6e6c79204c32204272696467652063616e206d696e7420616e64206275726e604482015260640161057b565b610b5b838361123e565b505050565b6008546001600160a01b03163314610bba5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865207061757365720000000000000000604482015260640161057b565b6008805460ff60a01b1916600160a01b1790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602001610a45565b6060600480546104aa90611bba565b600854600160a01b900460ff1615610c5b5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161057b565b6001600160a01b0382166000908152600a6020526040902054829060ff1615610cb45760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6006546001600160a01b03163314610d0e5760405162461bcd60e51b815260206004820181905260248201527f4f6e6c79204c32204272696467652063616e206d696e7420616e64206275726e604482015260640161057b565b610b5b83836112e9565b600854600090600160a01b900460ff1615610d6a5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161057b565b336000818152600a602052604090205460ff1615610db85760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6001600160a01b0384166000908152600a6020526040902054849060ff1615610e115760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6106358585611388565b6007546001600160a01b03163314610e755760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e6572000000000000000000604482015260640161057b565b6108ac816113d7565b600854600090600160a01b900460ff1615610ed05760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161057b565b336000818152600a602052604090205460ff1615610f1e5760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6001600160a01b0384166000908152600a6020526040902054849060ff1615610f775760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b61063585856114e2565b6007546001600160a01b03163314610fdb5760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e6572000000000000000000604482015260640161057b565b6001600160a01b03811661103d5760405162461bcd60e51b815260206004820152602360248201527f6e657720626c61636b6c697374657220697320746865207a65726f206164647260448201526265737360e81b606482015260840161057b565b600980546001600160a01b0319166001600160a01b0383169081179091556040517fc67398012c111ce95ecb7429b933096c977380ee6c421175a71a4a4c6c88c06e90600090a250565b6009546001600160a01b031633146110e15760405162461bcd60e51b815260206004820152601d60248201527f63616c6c6572206973206e6f742074686520626c61636b6c6973746572000000604482015260640161057b565b6001600160a01b0381166000818152600a6020526040808220805460ff19166001179055517fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b8559190a250565b600061113a3384846114ef565b50600192915050565b6000611150848484611614565b6111a2843361119d85604051806060016040528060288152602001611ca3602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190611797565b6114ef565b5060019392505050565b6008546040516001600160a01b038084169216907f95bb211a5a393c4d30c3edc9a745825fba4e6ad3e3bb949e6bf8ccdfe431a81190600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161113a91859061119d90866117c6565b6006546001600160a01b031633146112985760405162461bcd60e51b815260206004820181905260248201527f4f6e6c79204c32204272696467652063616e206d696e7420616e64206275726e604482015260640161057b565b6112a2828261182c565b816001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885826040516112dd91815260200190565b60405180910390a25050565b6006546001600160a01b031633146113435760405162461bcd60e51b815260206004820181905260248201527f4f6e6c79204c32204272696467652063616e206d696e7420616e64206275726e604482015260640161057b565b61134d828261190b565b816001600160a01b03167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5826040516112dd91815260200190565b600061113a338461119d85604051806060016040528060258152602001611ccb602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190611797565b6001600160a01b03811661142d5760405162461bcd60e51b815260206004820152601b60248201527f6163636f756e7420697320746865207a65726f20616464726573730000000000604482015260640161057b565b6001600160a01b0381163014156114865760405162461bcd60e51b815260206004820152601860248201527f6163636f756e74206973207468697320636f6e74726163740000000000000000604482015260640161057b565b6007546040516001600160a01b038084169216907fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c90600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b600061113a338484611614565b6001600160a01b0383166115515760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161057b565b6001600160a01b0382166115b25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161057b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166116785760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161057b565b6001600160a01b0382166116da5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161057b565b61171781604051806060016040528060268152602001611c5d602691396001600160a01b0386166000908152602081905260409020549190611797565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461174690826117c6565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611607565b600081848411156117bb5760405162461bcd60e51b815260040161057b9190611a95565b506104938385611c0b565b6000806117d38385611c22565b9050838110156118255760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161057b565b9392505050565b6001600160a01b0382166118825760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161057b565b60025461188f90826117c6565b6002556001600160a01b0382166000908152602081905260409020546118b590826117c6565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b03821661196b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161057b565b6119a881604051806060016040528060228152602001611c3b602291396001600160a01b0385166000908152602081905260409020549190611797565b6001600160a01b0383166000908152602081905260409020556002546119ce9082611a0f565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016118ff565b600082821115611a615760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015260640161057b565b6118258284611c0b565b600060208284031215611a7d57600080fd5b81356001600160e01b03198116811461182557600080fd5b600060208083528351808285015260005b81811015611ac257858101830151858201604001528201611aa6565b81811115611ad4576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114611b0157600080fd5b919050565b60008060408385031215611b1957600080fd5b611b2283611aea565b946020939093013593505050565b600060208284031215611b4257600080fd5b61182582611aea565b600080600060608486031215611b6057600080fd5b611b6984611aea565b9250611b7760208501611aea565b9150604084013590509250925092565b60008060408385031215611b9a57600080fd5b611ba383611aea565b9150611bb160208401611aea565b90509250929050565b600181811c90821680611bce57607f821691505b60208210811415611bef57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611c1d57611c1d611bf5565b500390565b60008219821115611c3557611c35611bf5565b50019056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63656163636f756e7420697320626c61636b6c69737465640000000000000000000045524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa164736f6c6343000809000a0000000000000000000000004200000000000000000000000000000000000010000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000340c44089bc45f86060922d2d89efee9e0cdf5c700000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000855534420436f696e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045553444300000000000000000000000000000000000000000000000000000000
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80638da5cb5b116100f9578063ad38bf2211610097578063c01e1bd611610071578063c01e1bd6146103ad578063dd62ed3e146103c5578063f9f92be4146103fe578063fe575a871461041157600080fd5b8063ad38bf2214610376578063ae1f6aaf14610389578063bd1024301461039c57600080fd5b80639fd0506d116100d35780639fd0506d1461032c578063a457c2d71461033d578063a6f9dae114610350578063a9059cbb1461036357600080fd5b80638da5cb5b146102ec57806395d89b41146103115780639dc29fac1461031957600080fd5b8063313ce5671161016657806340c10f191161014057806340c10f19146102965780635c975abb146102a957806370a08231146102bb5780638456cb59146102e457600080fd5b8063313ce56714610266578063395093511461027b5780633f4ba83a1461028e57600080fd5b806318160ddd116101a257806318160ddd146102195780631a8952661461022b57806323b872dd146102405780632d88af4a1461025357600080fd5b806301ffc9a7146101c957806306fdde03146101f1578063095ea7b314610206575b600080fd5b6101dc6101d7366004611a6b565b61043d565b60405190151581526020015b60405180910390f35b6101f961049b565b6040516101e89190611a95565b6101dc610214366004611b06565b61052d565b6002545b6040519081526020016101e8565b61023e610239366004611b30565b61063e565b005b6101dc61024e366004611b4b565b6106e1565b61023e610261366004611b30565b610849565b60055460405160ff90911681526020016101e8565b6101dc610289366004611b06565b6108af565b61023e6109b2565b61023e6102a4366004611b06565b610a4f565b600854600160a01b900460ff166101dc565b61021d6102c9366004611b30565b6001600160a01b031660009081526020819052604090205490565b61023e610b60565b6007546001600160a01b03165b6040516001600160a01b0390911681526020016101e8565b6101f9610bfd565b61023e610327366004611b06565b610c0c565b6008546001600160a01b03166102f9565b6101dc61034b366004611b06565b610d18565b61023e61035e366004611b30565b610e1b565b6101dc610371366004611b06565b610e7e565b61023e610384366004611b30565b610f81565b6006546102f9906001600160a01b031681565b6009546001600160a01b03166102f9565b6005546102f99061010090046001600160a01b031681565b61021d6103d3366004611b87565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61023e61040c366004611b30565b611087565b6101dc61041f366004611b30565b6001600160a01b03166000908152600a602052604090205460ff1690565b60007f01ffc9a7a5cef8baa21ed3c5c0d7e23accb804b619e9333b597f47a0d84076e2631d1d8b6360e01b6001600160e01b031984166301ffc9a760e01b148061049357506001600160e01b0319848116908216145b949350505050565b6060600380546104aa90611bba565b80601f01602080910402602001604051908101604052809291908181526020018280546104d690611bba565b80156105235780601f106104f857610100808354040283529160200191610523565b820191906000526020600020905b81548152906001019060200180831161050657829003601f168201915b5050505050905090565b600854600090600160a01b900460ff16156105845760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b60448201526064015b60405180910390fd5b336000818152600a602052604090205460ff16156105d25760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6001600160a01b0384166000908152600a6020526040902054849060ff161561062b5760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b610635858561112d565b95945050505050565b6009546001600160a01b031633146106985760405162461bcd60e51b815260206004820152601d60248201527f63616c6c6572206973206e6f742074686520626c61636b6c6973746572000000604482015260640161057b565b6001600160a01b0381166000818152600a6020526040808220805460ff19169055517f117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e9190a250565b600854600090600160a01b900460ff16156107335760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161057b565b336000818152600a602052604090205460ff16156107815760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6001600160a01b0385166000908152600a6020526040902054859060ff16156107da5760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6001600160a01b0385166000908152600a6020526040902054859060ff16156108335760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b61083e878787611143565b979650505050505050565b6007546001600160a01b031633146108a35760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e6572000000000000000000604482015260640161057b565b6108ac816111ac565b50565b600854600090600160a01b900460ff16156109015760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161057b565b336000818152600a602052604090205460ff161561094f5760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6001600160a01b0384166000908152600a6020526040902054849060ff16156109a85760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6106358585611208565b6008546001600160a01b03163314610a0c5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865207061757365720000000000000000604482015260640161057b565b6008805460ff60a01b191690556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906020015b60405180910390a1565b600854600160a01b900460ff1615610a9e5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161057b565b6001600160a01b0382166000908152600a6020526040902054829060ff1615610af75760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6006546001600160a01b03163314610b515760405162461bcd60e51b815260206004820181905260248201527f4f6e6c79204c32204272696467652063616e206d696e7420616e64206275726e604482015260640161057b565b610b5b838361123e565b505050565b6008546001600160a01b03163314610bba5760405162461bcd60e51b815260206004820152601860248201527f63616c6c6572206973206e6f7420746865207061757365720000000000000000604482015260640161057b565b6008805460ff60a01b1916600160a01b1790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602001610a45565b6060600480546104aa90611bba565b600854600160a01b900460ff1615610c5b5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161057b565b6001600160a01b0382166000908152600a6020526040902054829060ff1615610cb45760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6006546001600160a01b03163314610d0e5760405162461bcd60e51b815260206004820181905260248201527f4f6e6c79204c32204272696467652063616e206d696e7420616e64206275726e604482015260640161057b565b610b5b83836112e9565b600854600090600160a01b900460ff1615610d6a5760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161057b565b336000818152600a602052604090205460ff1615610db85760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6001600160a01b0384166000908152600a6020526040902054849060ff1615610e115760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6106358585611388565b6007546001600160a01b03163314610e755760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e6572000000000000000000604482015260640161057b565b6108ac816113d7565b600854600090600160a01b900460ff1615610ed05760405162461bcd60e51b815260206004820152601260248201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604482015260640161057b565b336000818152600a602052604090205460ff1615610f1e5760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b6001600160a01b0384166000908152600a6020526040902054849060ff1615610f775760405162461bcd60e51b81526020600482015260166024820152600080516020611c83833981519152604482015260640161057b565b61063585856114e2565b6007546001600160a01b03163314610fdb5760405162461bcd60e51b815260206004820152601760248201527f63616c6c6572206973206e6f7420746865206f776e6572000000000000000000604482015260640161057b565b6001600160a01b03811661103d5760405162461bcd60e51b815260206004820152602360248201527f6e657720626c61636b6c697374657220697320746865207a65726f206164647260448201526265737360e81b606482015260840161057b565b600980546001600160a01b0319166001600160a01b0383169081179091556040517fc67398012c111ce95ecb7429b933096c977380ee6c421175a71a4a4c6c88c06e90600090a250565b6009546001600160a01b031633146110e15760405162461bcd60e51b815260206004820152601d60248201527f63616c6c6572206973206e6f742074686520626c61636b6c6973746572000000604482015260640161057b565b6001600160a01b0381166000818152600a6020526040808220805460ff19166001179055517fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b8559190a250565b600061113a3384846114ef565b50600192915050565b6000611150848484611614565b6111a2843361119d85604051806060016040528060288152602001611ca3602891396001600160a01b038a1660009081526001602090815260408083203384529091529020549190611797565b6114ef565b5060019392505050565b6008546040516001600160a01b038084169216907f95bb211a5a393c4d30c3edc9a745825fba4e6ad3e3bb949e6bf8ccdfe431a81190600090a3600880546001600160a01b0319166001600160a01b0392909216919091179055565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161113a91859061119d90866117c6565b6006546001600160a01b031633146112985760405162461bcd60e51b815260206004820181905260248201527f4f6e6c79204c32204272696467652063616e206d696e7420616e64206275726e604482015260640161057b565b6112a2828261182c565b816001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885826040516112dd91815260200190565b60405180910390a25050565b6006546001600160a01b031633146113435760405162461bcd60e51b815260206004820181905260248201527f4f6e6c79204c32204272696467652063616e206d696e7420616e64206275726e604482015260640161057b565b61134d828261190b565b816001600160a01b03167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5826040516112dd91815260200190565b600061113a338461119d85604051806060016040528060258152602001611ccb602591393360009081526001602090815260408083206001600160a01b038d1684529091529020549190611797565b6001600160a01b03811661142d5760405162461bcd60e51b815260206004820152601b60248201527f6163636f756e7420697320746865207a65726f20616464726573730000000000604482015260640161057b565b6001600160a01b0381163014156114865760405162461bcd60e51b815260206004820152601860248201527f6163636f756e74206973207468697320636f6e74726163740000000000000000604482015260640161057b565b6007546040516001600160a01b038084169216907fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c90600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b600061113a338484611614565b6001600160a01b0383166115515760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161057b565b6001600160a01b0382166115b25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161057b565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166116785760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161057b565b6001600160a01b0382166116da5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161057b565b61171781604051806060016040528060268152602001611c5d602691396001600160a01b0386166000908152602081905260409020549190611797565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461174690826117c6565b6001600160a01b038381166000818152602081815260409182902094909455518481529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611607565b600081848411156117bb5760405162461bcd60e51b815260040161057b9190611a95565b506104938385611c0b565b6000806117d38385611c22565b9050838110156118255760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015260640161057b565b9392505050565b6001600160a01b0382166118825760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161057b565b60025461188f90826117c6565b6002556001600160a01b0382166000908152602081905260409020546118b590826117c6565b6001600160a01b038316600081815260208181526040808320949094559251848152919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b6001600160a01b03821661196b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161057b565b6119a881604051806060016040528060228152602001611c3b602291396001600160a01b0385166000908152602081905260409020549190611797565b6001600160a01b0383166000908152602081905260409020556002546119ce9082611a0f565b6002556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016118ff565b600082821115611a615760405162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015260640161057b565b6118258284611c0b565b600060208284031215611a7d57600080fd5b81356001600160e01b03198116811461182557600080fd5b600060208083528351808285015260005b81811015611ac257858101830151858201604001528201611aa6565b81811115611ad4576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114611b0157600080fd5b919050565b60008060408385031215611b1957600080fd5b611b2283611aea565b946020939093013593505050565b600060208284031215611b4257600080fd5b61182582611aea565b600080600060608486031215611b6057600080fd5b611b6984611aea565b9250611b7760208501611aea565b9150604084013590509250925092565b60008060408385031215611b9a57600080fd5b611ba383611aea565b9150611bb160208401611aea565b90509250929050565b600181811c90821680611bce57607f821691505b60208210811415611bef57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611c1d57611c1d611bf5565b500390565b60008219821115611c3557611c35611bf5565b50019056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63656163636f756e7420697320626c61636b6c69737465640000000000000000000045524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa164736f6c6343000809000a