Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Initialize | 155561670 | 716 days ago | IN | 0 ETH | 0.0001886 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
ArbFiatToken
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 Coinbase, Inc.
pragma solidity ^0.8.13;
import "./lib/Ownable.sol";
import "./lib/Pausable.sol";
import "./lib/Blacklistable.sol";
import "./StandardArbERC20.sol";
import "./lib/ERC20Upgradeable.sol";
import "openzeppelin-upgradeable/contracts/token/ERC20/IERC20Upgradeable.sol";
contract ArbFiatToken is StandardArbERC20, Ownable, Pausable, Blacklistable {
function initialize(
address _gatewayAddress,
address _l1Address,
address owner,
string memory name,
string memory symbol,
uint8 decimals
) external {
gatewayAddress = _gatewayAddress;
l1Address = _l1Address;
_changeOwner(owner);
super.initialize(name, symbol, decimals);
}
function bridgeMint(
address account,
uint256 amount
) public override onlyGateway whenNotPaused notBlacklisted(account) {
super.bridgeMint(account, amount);
}
function bridgeBurn(
address account,
uint256 amount
) public override onlyGateway whenNotPaused notBlacklisted(account) {
super.bridgeBurn(account, amount);
}
function approve(
address spender,
uint256 amount
)
public
override(ERC20Upgradeable, IERC20Upgradeable)
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(ERC20Upgradeable, IERC20Upgradeable)
whenNotPaused
notBlacklisted(msg.sender)
notBlacklisted(recipient)
returns (bool)
{
return super.transfer(recipient, amount);
}
function transferFrom(
address sender,
address recipient,
uint256 amount
)
public
override(ERC20Upgradeable, IERC20Upgradeable)
whenNotPaused
notBlacklisted(msg.sender)
notBlacklisted(sender)
notBlacklisted(recipient)
returns (bool)
{
return super.transferFrom(sender, recipient, amount);
}
function transferAndCall(
address to,
uint256 value,
bytes memory data
)
public
override
whenNotPaused
notBlacklisted(msg.sender)
notBlacklisted(to)
returns (bool success)
{
return super.transferAndCall(to, value, data);
}
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
)
public
override
whenNotPaused
notBlacklisted(msg.sender)
notBlacklisted(owner)
notBlacklisted(spender)
{
super.permit(owner, spender, value, deadline, v, r, s);
}
}// SPDX-License-Identifier: MIT
// Copyright (c) 2021 Coinbase, Inc.
pragma solidity ^0.8.13;
/**
* @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;
}
}// SPDX-License-Identifier: MIT
// Copyright (c) 2021 Coinbase, Inc.
pragma solidity ^0.8.13;
import {Ownable} from "./Ownable.sol";
/**
* @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;
}
}/**
* SPDX-License-Identifier: MIT
*
* 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.13;
import {Ownable} from "./Ownable.sol";
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);
}
}// SPDX-License-Identifier: Apache-2.0
// Modifications:
// - No longer Cloneable
// - Remove bridgeInit function
// - Make bridge{Mint,Burn} virtual and public
/*
* Copyright 2020, Offchain Labs, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
pragma solidity ^0.8.13;
import "./lib/aeERC20.sol";
import "./IArbToken.sol";
/**
* @title Standard (i.e., non-custom) contract deployed by L2Gateway.sol as L2 ERC20. Includes standard ERC20 interface plus additional methods for deposits/withdraws
*/
contract StandardArbERC20 is aeERC20, IArbToken {
address public gatewayAddress;
address public override l1Address;
modifier onlyGateway() {
require(msg.sender == address(gatewayAddress), "ONLY_GATEWAY");
_;
}
/**
* @notice Mint tokens on L2. Callable path is L1Gateway depositToken (which handles L1 escrow), which triggers L2Gateway, which calls this
* @param account recipient of tokens
* @param amount amount of tokens minted
*/
function bridgeMint(
address account,
uint256 amount
) public virtual override onlyGateway {
_mint(account, amount);
}
/**
* @notice Burn tokens on L2.
* @dev only the token bridge can call this
* @param account owner of tokens
* @param amount amount of tokens burnt
*/
function bridgeBurn(
address account,
uint256 amount
) public virtual override onlyGateway {
_burn(account, amount);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "./ContextUpgradeable.sol";
import "openzeppelin-upgradeable/contracts/token/ERC20/IERC20Upgradeable.sol";
import "./Initializable.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {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 ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable {
mapping (address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be set once during
* construction.
*/
function __ERC20_init(string memory name_, string memory symbol_) internal initializer {
__Context_init_unchained();
__ERC20_init_unchained(name_, symbol_);
}
function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
_name = name_;
_symbol = symbol_;
_decimals = 18;
}
/**
* @dev Returns the name of the token.
*/
function name() public view 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);
uint256 currentAllowance = _allowances[sender][_msgSender()];
require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
_approve(sender, _msgSender(), _allowances[sender][_msgSender()] - 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) {
_approve(_msgSender(), spender, _allowances[_msgSender()][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) {
uint256 currentAllowance = _allowances[_msgSender()][spender];
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
_approve(_msgSender(), spender, _allowances[_msgSender()][spender] - subtractedValue);
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);
require(_balances[sender] >= amount, "ERC20: transfer amount exceeds balance");
_balances[sender] = _balances[sender] - amount;
_balances[recipient] = _balances[recipient] + 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 + amount;
_balances[account] = _balances[account] + 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);
require(_balances[account] >= amount, "ERC20: burn amount exceeds balance");
_balances[account] = _balances[account] - amount;
_totalSupply = _totalSupply - 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 { }
uint256[44] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Upgradeable {
/**
* @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);
}// SPDX-License-Identifier: Apache-2.0
/*
* Copyright 2020, Offchain Labs, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
pragma solidity ^0.8.13;
import "./ERC20PermitUpgradeable.sol";
import "./ERC677Token.sol";
/// @title Arbitrum extended ERC20
/// @notice The recommended ERC20 implementation for Layer 2 tokens
/// @dev This implements the ERC20 standard with extensions to improve UX (ERC677 & ERC2612)
contract aeERC20 is ERC20PermitUpgradeable, ERC677Token {
using AddressUpgradeable for address;
function initialize(
string memory name,
string memory symbol,
uint8 decimals
) public initializer {
__ERC20Permit_init(name);
__ERC20_init(name, symbol);
_setupDecimals(decimals);
}
}// SPDX-License-Identifier: Apache-2.0
/*
* Copyright 2020, Offchain Labs, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @title Minimum expected interface for L2 token that interacts with the L2 token bridge (this is the interface necessary
* for a custom token that interacts with the bridge, see TestArbCustomToken.sol for an example implementation).
*/
// solhint-disable-next-line compiler-version
pragma solidity >=0.6.9 <0.9.0;
interface IArbToken {
/**
* @notice should increase token supply by amount, and should (probably) only be callable by the L1 bridge.
*/
function bridgeMint(address account, uint256 amount) external;
/**
* @notice should decrease token supply by amount, and should (probably) only be callable by the L1 bridge.
*/
function bridgeBurn(address account, uint256 amount) external;
/**
* @return address of layer 1 token
*/
function l1Address() external view returns (address);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "./Initializable.sol";
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract ContextUpgradeable is Initializable {
function __Context_init() internal initializer {
__Context_init_unchained();
}
function __Context_init_unchained() internal initializer {
}
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;
}
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// solhint-disable-next-line compiler-version
pragma solidity ^0.8.13;
import "./AddressUpgradeable.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
*/
bool private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Modifier to protect an initializer function from being invoked twice.
*/
modifier initializer() {
require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");
bool isTopLevelCall = !_initializing;
if (isTopLevelCall) {
_initializing = true;
_initialized = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
}
}
/// @dev Returns true if and only if the function is running in the constructor
function _isConstructor() private view returns (bool) {
return !AddressUpgradeable.isContract(address(this));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "./ERC20Upgradeable.sol";
import "openzeppelin-upgradeable/contracts/token/ERC20/extensions/IERC20PermitUpgradeable.sol";
import "./ECDSAUpgradeable.sol";
import "./CountersUpgradeable.sol";
import "./EIP712Upgradeable.sol";
import "./Initializable.sol";
/**
* @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 ERC20PermitUpgradeable is Initializable, ERC20Upgradeable, IERC20PermitUpgradeable, EIP712Upgradeable {
using CountersUpgradeable for CountersUpgradeable.Counter;
mapping (address => CountersUpgradeable.Counter) private _nonces;
// solhint-disable-next-line var-name-mixedcase
bytes32 private _PERMIT_TYPEHASH;
/**
* @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.
*/
function __ERC20Permit_init(string memory name) internal initializer {
__Context_init_unchained();
__EIP712_init_unchained(name, "1");
__ERC20Permit_init_unchained();
}
function __ERC20Permit_init_unchained() internal initializer {
_PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
}
/**
* @dev See {IERC20Permit-permit}.
*/
function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public virtual override {
// solhint-disable-next-line not-rely-on-time
require(block.timestamp <= deadline, "ERC20Permit: expired deadline");
bytes32 structHash = keccak256(
abi.encode(
_PERMIT_TYPEHASH,
owner,
spender,
value,
_nonces[owner].current(),
deadline
)
);
bytes32 hash = _hashTypedDataV4(structHash);
address signer = ECDSAUpgradeable.recover(hash, v, r, s);
require(signer == owner, "ERC20Permit: invalid signature");
_nonces[owner].increment();
_approve(owner, spender, value);
}
/**
* @dev See {IERC20Permit-nonces}.
*/
function nonces(address owner) public view 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();
}
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "./ERC20Upgradeable.sol";
import "./IERC677.sol";
// Implementation from https://github.com/smartcontractkit/LinkToken/blob/master/contracts/v0.6/ERC677Token.sol
abstract contract ERC677Token is ERC20Upgradeable, IERC677 {
/**
* @dev transfer token to a contract address with additional data if the recipient is a contact.
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
* @param _data The extra data to be passed to the receiving contract.
*/
function transferAndCall(
address _to,
uint256 _value,
bytes memory _data
) public virtual override returns (bool success) {
super.transfer(_to, _value);
emit Transfer(msg.sender, _to, _value, _data);
if (isContract(_to)) {
contractFallback(_to, _value, _data);
}
return true;
}
// PRIVATE
function contractFallback(
address _to,
uint256 _value,
bytes memory _data
) private {
IERC677Receiver receiver = IERC677Receiver(_to);
receiver.onTokenTransfer(msg.sender, _value, _data);
}
function isContract(address _addr) private view returns (bool hasCode) {
uint256 length;
assembly {
length := extcodesize(_addr)
}
return length > 0;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: value }(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @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 IERC20PermitUpgradeable {
/**
* @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);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
/**
* @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 ECDSAUpgradeable {
/**
* @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) {
// Check the signature length
if (signature.length != 65) {
revert("ECDSA: invalid signature length");
}
// Divide the signature in r, s and v variables
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
// solhint-disable-next-line no-inline-assembly
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return recover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover-bytes32-bytes-} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
// 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 (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): 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.
require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value");
require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
require(signer != address(0), "ECDSA: invalid signature");
return signer;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* replicates the behavior of the
* https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]
* JSON-RPC method.
*
* 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));
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented or decremented by one. 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;`
* Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
* overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
* directly accessed.
*/
library CountersUpgradeable {
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 {
counter._value += 1;
}
function decrement(Counter storage counter) internal {
counter._value = counter._value - 1;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "./Initializable.sol";
/**
* @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 EIP712Upgradeable is Initializable {
/* solhint-disable var-name-mixedcase */
bytes32 private _HASHED_NAME;
bytes32 private _HASHED_VERSION;
bytes32 private constant _TYPE_HASH = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
/* 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].
*/
function __EIP712_init(string memory name, string memory version) internal initializer {
__EIP712_init_unchained(name, version);
}
function __EIP712_init_unchained(string memory name, string memory version) internal initializer {
bytes32 hashedName = keccak256(bytes(name));
bytes32 hashedVersion = keccak256(bytes(version));
_HASHED_NAME = hashedName;
_HASHED_VERSION = hashedVersion;
}
/**
* @dev Returns the domain separator for the current chain.
*/
function _domainSeparatorV4() internal view returns (bytes32) {
return _buildDomainSeparator(_TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash());
}
function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) {
return keccak256(
abi.encode(
typeHash,
name,
version,
_getChainId(),
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 keccak256(abi.encodePacked("\x19\x01", _domainSeparatorV4(), structHash));
}
function _getChainId() private view returns (uint256 chainId) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
// solhint-disable-next-line no-inline-assembly
assembly {
chainId := chainid()
}
}
/**
* @dev The hash of the name parameter for the EIP712 domain.
*
* NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
* are a concern.
*/
function _EIP712NameHash() internal virtual view returns (bytes32) {
return _HASHED_NAME;
}
/**
* @dev The hash of the version parameter for the EIP712 domain.
*
* NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
* are a concern.
*/
function _EIP712VersionHash() internal virtual view returns (bytes32) {
return _HASHED_VERSION;
}
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import "openzeppelin-upgradeable/contracts/token/ERC20/IERC20Upgradeable.sol";
interface IERC677 is IERC20Upgradeable {
function transferAndCall(
address to,
uint256 value,
bytes memory data
) external returns (bool success);
event Transfer(address indexed from, address indexed to, uint256 value, bytes data);
}
interface IERC677Receiver {
function onTokenTransfer(
address _sender,
uint256 _value,
bytes memory _data
) external;
}{
"remappings": [
"ds-test/=lib/forge-std/lib/ds-test/src/",
"forge-std/=lib/forge-std/src/",
"openzeppelin/=lib/openzeppelin-contracts/contracts/",
"openzeppelin-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
"erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
"openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "london",
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"Blacklisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newBlacklister","type":"address"}],"name":"BlacklisterChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pauser","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousPauser","type":"address"},{"indexed":true,"internalType":"address","name":"newPauser","type":"address"}],"name":"PauserChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"UnBlacklisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pauser","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"blacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"blacklister","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bridgeBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bridgeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gatewayAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gatewayAddress","type":"address"},{"internalType":"address","name":"_l1Address","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"l1Address","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauser","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"setPauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferAndCall","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"unBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newBlacklister","type":"address"}],"name":"updateBlacklister","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50612852806100206000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c80637ecebe001161011a578063a6f9dae1116100ad578063c2eeeebd1161007c578063c2eeeebd14610443578063d505accf14610456578063dd62ed3e14610469578063f9f92be4146104a2578063fe575a87146104b557600080fd5b8063a6f9dae1146103f9578063a9059cbb1461040c578063ad38bf221461041f578063bd1024301461043257600080fd5b80638da5cb5b116100e95780638da5cb5b146103bc57806395d89b41146103cd5780639fd0506d146103d5578063a457c2d7146103e657600080fd5b80637ecebe001461034d5780638456cb59146103765780638b851b951461037e5780638c2a993e146103a957600080fd5b8063313ce567116101925780634000aea0116101615780634000aea0146102ec5780635c975abb146102ff57806370a082311461031157806374f4f5471461033a57600080fd5b8063313ce567146102b45780633644e515146102c957806339509351146102d15780633f4ba83a146102e457600080fd5b80631a895266116101ce5780631a89526614610268578063238b4bc51461027b57806323b872dd1461028e5780632d88af4a146102a157600080fd5b806306fdde0314610200578063095ea7b31461021e5780631624f6c61461024157806318160ddd14610256575b600080fd5b6102086104e1565b60405161021591906122b9565b60405180910390f35b61023161022c3660046122ef565b610573565b6040519015158152602001610215565b61025461024f3660046123d6565b610627565b005b6035545b604051908152602001610215565b61025461027636600461244a565b6106c2565b610254610289366004612465565b610765565b61023161029c36600461250a565b6107b1565b6102546102af36600461244a565b61089a565b60385460405160ff9091168152602001610215565b61025a6108d0565b6102316102df3660046122ef565b6108df565b610254610981565b6102316102fa366004612546565b610a19565b60cf54600160a01b900460ff16610231565b61025a61031f36600461244a565b6001600160a01b031660009081526033602052604090205490565b6102546103483660046122ef565b610ac6565b61025a61035b36600461244a565b6001600160a01b031660009081526099602052604090205490565b610254610b64565b60cc54610391906001600160a01b031681565b6040516001600160a01b039091168152602001610215565b6102546103b73660046122ef565b610bfc565b60ce546001600160a01b0316610391565b610208610c95565b60cf546001600160a01b0316610391565b6102316103f43660046122ef565b610ca4565b61025461040736600461244a565b610d46565b61023161041a3660046122ef565b610d79565b61025461042d36600461244a565b610e1b565b60d0546001600160a01b0316610391565b60cd54610391906001600160a01b031681565b6102546104643660046125b1565b610ef1565b61025a61047736600461261b565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b6102546104b036600461244a565b610fdc565b6102316104c336600461244a565b6001600160a01b0316600090815260d1602052604090205460ff1690565b6060603680546104f09061264e565b80601f016020809104026020016040519081016040528092919081815260200182805461051c9061264e565b80156105695780601f1061053e57610100808354040283529160200191610569565b820191906000526020600020905b81548152906001019060200180831161054c57829003601f168201915b5050505050905090565b60cf54600090600160a01b900460ff16156105a95760405162461bcd60e51b81526004016105a090612688565b60405180910390fd5b33600081815260d1602052604090205460ff16156105d95760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038416600090815260d16020526040902054849060ff16156106145760405162461bcd60e51b81526004016105a0906126b4565b61061e8585611082565b95945050505050565b600054610100900460ff168061063c5750303b155b8061064a575060005460ff16155b6106665760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff16158015610688576000805461ffff19166101011790555b61069184611098565b61069b8484611142565b6038805460ff191660ff841617905580156106bc576000805461ff00191690555b50505050565b60d0546001600160a01b0316331461071c5760405162461bcd60e51b815260206004820152601d60248201527f63616c6c6572206973206e6f742074686520626c61636b6c697374657200000060448201526064016105a0565b6001600160a01b038116600081815260d16020526040808220805460ff19169055517f117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e9190a250565b60cc80546001600160a01b038089166001600160a01b03199283161790925560cd80549288169290911691909117905561079e846111cb565b6107a9838383610627565b505050505050565b60cf54600090600160a01b900460ff16156107de5760405162461bcd60e51b81526004016105a090612688565b33600081815260d1602052604090205460ff161561080e5760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038516600090815260d16020526040902054859060ff16156108495760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038516600090815260d16020526040902054859060ff16156108845760405162461bcd60e51b81526004016105a0906126b4565b61088f8787876112d5565b979650505050505050565b60ce546001600160a01b031633146108c45760405162461bcd60e51b81526004016105a090612732565b6108cd816113ad565b50565b60006108da611409565b905090565b60cf54600090600160a01b900460ff161561090c5760405162461bcd60e51b81526004016105a090612688565b33600081815260d1602052604090205460ff161561093c5760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038416600090815260d16020526040902054849060ff16156109775760405162461bcd60e51b81526004016105a0906126b4565b61061e8585611485565b60cf546001600160a01b031633146109d65760405162461bcd60e51b815260206004820152601860248201527731b0b63632b91034b9903737ba103a3432903830bab9b2b960411b60448201526064016105a0565b60cf805460ff60a01b191690556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906020015b60405180910390a1565b60cf54600090600160a01b900460ff1615610a465760405162461bcd60e51b81526004016105a090612688565b33600081815260d1602052604090205460ff1615610a765760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038516600090815260d16020526040902054859060ff1615610ab15760405162461bcd60e51b81526004016105a0906126b4565b610abc8686866114bc565b9695505050505050565b60cc546001600160a01b03163314610af05760405162461bcd60e51b81526004016105a090612769565b60cf54600160a01b900460ff1615610b1a5760405162461bcd60e51b81526004016105a090612688565b6001600160a01b038216600090815260d16020526040902054829060ff1615610b555760405162461bcd60e51b81526004016105a0906126b4565b610b5f8383611532565b505050565b60cf546001600160a01b03163314610bb95760405162461bcd60e51b815260206004820152601860248201527731b0b63632b91034b9903737ba103a3432903830bab9b2b960411b60448201526064016105a0565b60cf805460ff60a01b1916600160a01b1790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602001610a0f565b60cc546001600160a01b03163314610c265760405162461bcd60e51b81526004016105a090612769565b60cf54600160a01b900460ff1615610c505760405162461bcd60e51b81526004016105a090612688565b6001600160a01b038216600090815260d16020526040902054829060ff1615610c8b5760405162461bcd60e51b81526004016105a0906126b4565b610b5f8383611566565b6060603780546104f09061264e565b60cf54600090600160a01b900460ff1615610cd15760405162461bcd60e51b81526004016105a090612688565b33600081815260d1602052604090205460ff1615610d015760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038416600090815260d16020526040902054849060ff1615610d3c5760405162461bcd60e51b81526004016105a0906126b4565b61061e858561159a565b60ce546001600160a01b03163314610d705760405162461bcd60e51b81526004016105a090612732565b6108cd816111cb565b60cf54600090600160a01b900460ff1615610da65760405162461bcd60e51b81526004016105a090612688565b33600081815260d1602052604090205460ff1615610dd65760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038416600090815260d16020526040902054849060ff1615610e115760405162461bcd60e51b81526004016105a0906126b4565b61061e8585611652565b60ce546001600160a01b03163314610e455760405162461bcd60e51b81526004016105a090612732565b6001600160a01b038116610ea75760405162461bcd60e51b815260206004820152602360248201527f6e657720626c61636b6c697374657220697320746865207a65726f206164647260448201526265737360e81b60648201526084016105a0565b60d080546001600160a01b0319166001600160a01b0383169081179091556040517fc67398012c111ce95ecb7429b933096c977380ee6c421175a71a4a4c6c88c06e90600090a250565b60cf54600160a01b900460ff1615610f1b5760405162461bcd60e51b81526004016105a090612688565b33600081815260d1602052604090205460ff1615610f4b5760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038816600090815260d16020526040902054889060ff1615610f865760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038816600090815260d16020526040902054889060ff1615610fc15760405162461bcd60e51b81526004016105a0906126b4565b610fd08a8a8a8a8a8a8a61165f565b50505050505050505050565b60d0546001600160a01b031633146110365760405162461bcd60e51b815260206004820152601d60248201527f63616c6c6572206973206e6f742074686520626c61636b6c697374657200000060448201526064016105a0565b6001600160a01b038116600081815260d16020526040808220805460ff19166001179055517fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b8559190a250565b600061108f3384846117ca565b50600192915050565b600054610100900460ff16806110ad5750303b155b806110bb575060005460ff16155b6110d75760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff161580156110f9576000805461ffff19166101011790555b6111016118ef565b61112482604051806040016040528060018152602001603160f81b815250611964565b61112c6119f8565b801561113e576000805461ff00191690555b5050565b600054610100900460ff16806111575750303b155b80611165575060005460ff16155b6111815760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff161580156111a3576000805461ffff19166101011790555b6111ab6118ef565b6111b58383611a91565b8015610b5f576000805461ff0019169055505050565b6001600160a01b0381166112215760405162461bcd60e51b815260206004820152601b60248201527f6163636f756e7420697320746865207a65726f2061646472657373000000000060448201526064016105a0565b306001600160a01b038216036112795760405162461bcd60e51b815260206004820152601860248201527f6163636f756e74206973207468697320636f6e7472616374000000000000000060448201526064016105a0565b60ce546040516001600160a01b038084169216907fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c90600090a360ce80546001600160a01b0319166001600160a01b0392909216919091179055565b60006112e2848484611b3d565b6001600160a01b0384166000908152603460209081526040808320338452909152902054828110156113675760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016105a0565b6001600160a01b0385166000908152603460209081526040808320338085529252909120546113a291879161139d9087906127a5565b6117ca565b506001949350505050565b60cf546040516001600160a01b038084169216907f95bb211a5a393c4d30c3edc9a745825fba4e6ad3e3bb949e6bf8ccdfe431a81190600090a360cf80546001600160a01b0319166001600160a01b0392909216919091179055565b60006108da7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61143860655490565b606654600083838346604080516020810195909552840192909252606083015260808201523060a082015260c0016040516020818303038152906040528051906020012090509392505050565b3360008181526034602090815260408083206001600160a01b0387168452909152812054909161108f91859061139d9086906127bc565b60006114c88484611652565b50836001600160a01b0316336001600160a01b03167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c16858560405161150e9291906127d4565b60405180910390a3833b1561152857611528848484611d22565b5060019392505050565b60cc546001600160a01b0316331461155c5760405162461bcd60e51b81526004016105a090612769565b61113e8282611d8c565b60cc546001600160a01b031633146115905760405162461bcd60e51b81526004016105a090612769565b61113e8282611ef3565b3360009081526034602090815260408083206001600160a01b03861684529091528120548281101561161c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105a0565b3360008181526034602090815260408083206001600160a01b03891684529091529020546115289190869061139d9087906127a5565b600061108f338484611b3d565b834211156116af5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016105a0565b609a546001600160a01b0388166000908152609960205260408120549091908990899089906040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061172f82611fcf565b9050600061173f82878787612016565b9050896001600160a01b0316816001600160a01b0316146117a25760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016105a0565b6001600160a01b038a1660009081526099602052604090206117c3906121b6565b610fd08a8a8a5b6001600160a01b03831661182c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105a0565b6001600160a01b03821661188d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105a0565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600054610100900460ff16806119045750303b155b80611912575060005460ff16155b61192e5760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff16158015611950576000805461ffff19166101011790555b80156108cd576000805461ff001916905550565b600054610100900460ff16806119795750303b155b80611987575060005460ff16155b6119a35760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff161580156119c5576000805461ffff19166101011790555b82516020808501919091208351918401919091206065919091556066558015610b5f576000805461ff0019169055505050565b600054610100900460ff1680611a0d5750303b155b80611a1b575060005460ff16155b611a375760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff16158015611a59576000805461ffff19166101011790555b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9609a5580156108cd576000805461ff001916905550565b600054610100900460ff1680611aa65750303b155b80611ab4575060005460ff16155b611ad05760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff16158015611af2576000805461ffff19166101011790555b8251611b059060369060208601906121d3565b508151611b199060379060208501906121d3565b506038805460ff191660121790558015610b5f576000805461ff0019169055505050565b6001600160a01b038316611ba15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105a0565b6001600160a01b038216611c035760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105a0565b6001600160a01b038316600090815260336020526040902054811115611c7a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105a0565b6001600160a01b038316600090815260336020526040902054611c9e9082906127a5565b6001600160a01b038085166000908152603360205260408082209390935590841681522054611cce9082906127bc565b6001600160a01b0380841660008181526033602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906118e29085815260200190565b604051635260769b60e11b815283906001600160a01b0382169063a4c0ed3690611d54903390879087906004016127f5565b600060405180830381600087803b158015611d6e57600080fd5b505af1158015611d82573d6000803e3d6000fd5b5050505050505050565b6001600160a01b038216611dec5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105a0565b6001600160a01b038216600090815260336020526040902054811115611e5f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105a0565b6001600160a01b038216600090815260336020526040902054611e839082906127a5565b6001600160a01b038316600090815260336020526040902055603554611eaa9082906127a5565b6035556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6001600160a01b038216611f495760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105a0565b80603554611f5791906127bc565b6035556001600160a01b038216600090815260336020526040902054611f7e9082906127bc565b6001600160a01b0383166000818152603360205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611ee79085815260200190565b6000611fd9611409565b60405161190160f01b6020820152602281019190915260428101839052606201604051602081830303815290604052805190602001209050919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156120935760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105a0565b8360ff16601b14806120a857508360ff16601c145b6120ff5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105a0565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612153573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661061e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105a0565b60018160000160008282546121cb91906127bc565b909155505050565b8280546121df9061264e565b90600052602060002090601f0160209004810192826122015760008555612247565b82601f1061221a57805160ff1916838001178555612247565b82800160010185558215612247579182015b8281111561224757825182559160200191906001019061222c565b50612253929150612257565b5090565b5b808211156122535760008155600101612258565b6000815180845260005b8181101561229257602081850181015186830182015201612276565b818111156122a4576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006122cc602083018461226c565b9392505050565b80356001600160a01b03811681146122ea57600080fd5b919050565b6000806040838503121561230257600080fd5b61230b836122d3565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561234a5761234a612319565b604051601f8501601f19908116603f0116810190828211818310171561237257612372612319565b8160405280935085815286868601111561238b57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126123b657600080fd5b6122cc8383356020850161232f565b803560ff811681146122ea57600080fd5b6000806000606084860312156123eb57600080fd5b833567ffffffffffffffff8082111561240357600080fd5b61240f878388016123a5565b9450602086013591508082111561242557600080fd5b50612432868287016123a5565b925050612441604085016123c5565b90509250925092565b60006020828403121561245c57600080fd5b6122cc826122d3565b60008060008060008060c0878903121561247e57600080fd5b612487876122d3565b9550612495602088016122d3565b94506124a3604088016122d3565b9350606087013567ffffffffffffffff808211156124c057600080fd5b6124cc8a838b016123a5565b945060808901359150808211156124e257600080fd5b506124ef89828a016123a5565b9250506124fe60a088016123c5565b90509295509295509295565b60008060006060848603121561251f57600080fd5b612528846122d3565b9250612536602085016122d3565b9150604084013590509250925092565b60008060006060848603121561255b57600080fd5b612564846122d3565b925060208401359150604084013567ffffffffffffffff81111561258757600080fd5b8401601f8101861361259857600080fd5b6125a78682356020840161232f565b9150509250925092565b600080600080600080600060e0888a0312156125cc57600080fd5b6125d5886122d3565b96506125e3602089016122d3565b955060408801359450606088013593506125ff608089016123c5565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561262e57600080fd5b612637836122d3565b9150612645602084016122d3565b90509250929050565b600181811c9082168061266257607f821691505b60208210810361268257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526012908201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604082015260600190565b6020808252601690820152751858d8dbdd5b9d081a5cc8189b1858dadb1a5cdd195960521b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526017908201527f63616c6c6572206973206e6f7420746865206f776e6572000000000000000000604082015260600190565b6020808252600c908201526b4f4e4c595f4741544557415960a01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000828210156127b7576127b761278f565b500390565b600082198211156127cf576127cf61278f565b500190565b8281526040602082015260006127ed604083018461226c565b949350505050565b60018060a01b038416815282602082015260606040820152600061061e606083018461226c56fea264697066735822122066c21d9eacd40fcc6f43b4303fc3922a10e1bdd56f0f78f55e037fb6f6300b0264736f6c634300080d0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c80637ecebe001161011a578063a6f9dae1116100ad578063c2eeeebd1161007c578063c2eeeebd14610443578063d505accf14610456578063dd62ed3e14610469578063f9f92be4146104a2578063fe575a87146104b557600080fd5b8063a6f9dae1146103f9578063a9059cbb1461040c578063ad38bf221461041f578063bd1024301461043257600080fd5b80638da5cb5b116100e95780638da5cb5b146103bc57806395d89b41146103cd5780639fd0506d146103d5578063a457c2d7146103e657600080fd5b80637ecebe001461034d5780638456cb59146103765780638b851b951461037e5780638c2a993e146103a957600080fd5b8063313ce567116101925780634000aea0116101615780634000aea0146102ec5780635c975abb146102ff57806370a082311461031157806374f4f5471461033a57600080fd5b8063313ce567146102b45780633644e515146102c957806339509351146102d15780633f4ba83a146102e457600080fd5b80631a895266116101ce5780631a89526614610268578063238b4bc51461027b57806323b872dd1461028e5780632d88af4a146102a157600080fd5b806306fdde0314610200578063095ea7b31461021e5780631624f6c61461024157806318160ddd14610256575b600080fd5b6102086104e1565b60405161021591906122b9565b60405180910390f35b61023161022c3660046122ef565b610573565b6040519015158152602001610215565b61025461024f3660046123d6565b610627565b005b6035545b604051908152602001610215565b61025461027636600461244a565b6106c2565b610254610289366004612465565b610765565b61023161029c36600461250a565b6107b1565b6102546102af36600461244a565b61089a565b60385460405160ff9091168152602001610215565b61025a6108d0565b6102316102df3660046122ef565b6108df565b610254610981565b6102316102fa366004612546565b610a19565b60cf54600160a01b900460ff16610231565b61025a61031f36600461244a565b6001600160a01b031660009081526033602052604090205490565b6102546103483660046122ef565b610ac6565b61025a61035b36600461244a565b6001600160a01b031660009081526099602052604090205490565b610254610b64565b60cc54610391906001600160a01b031681565b6040516001600160a01b039091168152602001610215565b6102546103b73660046122ef565b610bfc565b60ce546001600160a01b0316610391565b610208610c95565b60cf546001600160a01b0316610391565b6102316103f43660046122ef565b610ca4565b61025461040736600461244a565b610d46565b61023161041a3660046122ef565b610d79565b61025461042d36600461244a565b610e1b565b60d0546001600160a01b0316610391565b60cd54610391906001600160a01b031681565b6102546104643660046125b1565b610ef1565b61025a61047736600461261b565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b6102546104b036600461244a565b610fdc565b6102316104c336600461244a565b6001600160a01b0316600090815260d1602052604090205460ff1690565b6060603680546104f09061264e565b80601f016020809104026020016040519081016040528092919081815260200182805461051c9061264e565b80156105695780601f1061053e57610100808354040283529160200191610569565b820191906000526020600020905b81548152906001019060200180831161054c57829003601f168201915b5050505050905090565b60cf54600090600160a01b900460ff16156105a95760405162461bcd60e51b81526004016105a090612688565b60405180910390fd5b33600081815260d1602052604090205460ff16156105d95760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038416600090815260d16020526040902054849060ff16156106145760405162461bcd60e51b81526004016105a0906126b4565b61061e8585611082565b95945050505050565b600054610100900460ff168061063c5750303b155b8061064a575060005460ff16155b6106665760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff16158015610688576000805461ffff19166101011790555b61069184611098565b61069b8484611142565b6038805460ff191660ff841617905580156106bc576000805461ff00191690555b50505050565b60d0546001600160a01b0316331461071c5760405162461bcd60e51b815260206004820152601d60248201527f63616c6c6572206973206e6f742074686520626c61636b6c697374657200000060448201526064016105a0565b6001600160a01b038116600081815260d16020526040808220805460ff19169055517f117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e9190a250565b60cc80546001600160a01b038089166001600160a01b03199283161790925560cd80549288169290911691909117905561079e846111cb565b6107a9838383610627565b505050505050565b60cf54600090600160a01b900460ff16156107de5760405162461bcd60e51b81526004016105a090612688565b33600081815260d1602052604090205460ff161561080e5760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038516600090815260d16020526040902054859060ff16156108495760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038516600090815260d16020526040902054859060ff16156108845760405162461bcd60e51b81526004016105a0906126b4565b61088f8787876112d5565b979650505050505050565b60ce546001600160a01b031633146108c45760405162461bcd60e51b81526004016105a090612732565b6108cd816113ad565b50565b60006108da611409565b905090565b60cf54600090600160a01b900460ff161561090c5760405162461bcd60e51b81526004016105a090612688565b33600081815260d1602052604090205460ff161561093c5760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038416600090815260d16020526040902054849060ff16156109775760405162461bcd60e51b81526004016105a0906126b4565b61061e8585611485565b60cf546001600160a01b031633146109d65760405162461bcd60e51b815260206004820152601860248201527731b0b63632b91034b9903737ba103a3432903830bab9b2b960411b60448201526064016105a0565b60cf805460ff60a01b191690556040513381527f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa906020015b60405180910390a1565b60cf54600090600160a01b900460ff1615610a465760405162461bcd60e51b81526004016105a090612688565b33600081815260d1602052604090205460ff1615610a765760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038516600090815260d16020526040902054859060ff1615610ab15760405162461bcd60e51b81526004016105a0906126b4565b610abc8686866114bc565b9695505050505050565b60cc546001600160a01b03163314610af05760405162461bcd60e51b81526004016105a090612769565b60cf54600160a01b900460ff1615610b1a5760405162461bcd60e51b81526004016105a090612688565b6001600160a01b038216600090815260d16020526040902054829060ff1615610b555760405162461bcd60e51b81526004016105a0906126b4565b610b5f8383611532565b505050565b60cf546001600160a01b03163314610bb95760405162461bcd60e51b815260206004820152601860248201527731b0b63632b91034b9903737ba103a3432903830bab9b2b960411b60448201526064016105a0565b60cf805460ff60a01b1916600160a01b1790556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602001610a0f565b60cc546001600160a01b03163314610c265760405162461bcd60e51b81526004016105a090612769565b60cf54600160a01b900460ff1615610c505760405162461bcd60e51b81526004016105a090612688565b6001600160a01b038216600090815260d16020526040902054829060ff1615610c8b5760405162461bcd60e51b81526004016105a0906126b4565b610b5f8383611566565b6060603780546104f09061264e565b60cf54600090600160a01b900460ff1615610cd15760405162461bcd60e51b81526004016105a090612688565b33600081815260d1602052604090205460ff1615610d015760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038416600090815260d16020526040902054849060ff1615610d3c5760405162461bcd60e51b81526004016105a0906126b4565b61061e858561159a565b60ce546001600160a01b03163314610d705760405162461bcd60e51b81526004016105a090612732565b6108cd816111cb565b60cf54600090600160a01b900460ff1615610da65760405162461bcd60e51b81526004016105a090612688565b33600081815260d1602052604090205460ff1615610dd65760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038416600090815260d16020526040902054849060ff1615610e115760405162461bcd60e51b81526004016105a0906126b4565b61061e8585611652565b60ce546001600160a01b03163314610e455760405162461bcd60e51b81526004016105a090612732565b6001600160a01b038116610ea75760405162461bcd60e51b815260206004820152602360248201527f6e657720626c61636b6c697374657220697320746865207a65726f206164647260448201526265737360e81b60648201526084016105a0565b60d080546001600160a01b0319166001600160a01b0383169081179091556040517fc67398012c111ce95ecb7429b933096c977380ee6c421175a71a4a4c6c88c06e90600090a250565b60cf54600160a01b900460ff1615610f1b5760405162461bcd60e51b81526004016105a090612688565b33600081815260d1602052604090205460ff1615610f4b5760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038816600090815260d16020526040902054889060ff1615610f865760405162461bcd60e51b81526004016105a0906126b4565b6001600160a01b038816600090815260d16020526040902054889060ff1615610fc15760405162461bcd60e51b81526004016105a0906126b4565b610fd08a8a8a8a8a8a8a61165f565b50505050505050505050565b60d0546001600160a01b031633146110365760405162461bcd60e51b815260206004820152601d60248201527f63616c6c6572206973206e6f742074686520626c61636b6c697374657200000060448201526064016105a0565b6001600160a01b038116600081815260d16020526040808220805460ff19166001179055517fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b8559190a250565b600061108f3384846117ca565b50600192915050565b600054610100900460ff16806110ad5750303b155b806110bb575060005460ff16155b6110d75760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff161580156110f9576000805461ffff19166101011790555b6111016118ef565b61112482604051806040016040528060018152602001603160f81b815250611964565b61112c6119f8565b801561113e576000805461ff00191690555b5050565b600054610100900460ff16806111575750303b155b80611165575060005460ff16155b6111815760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff161580156111a3576000805461ffff19166101011790555b6111ab6118ef565b6111b58383611a91565b8015610b5f576000805461ff0019169055505050565b6001600160a01b0381166112215760405162461bcd60e51b815260206004820152601b60248201527f6163636f756e7420697320746865207a65726f2061646472657373000000000060448201526064016105a0565b306001600160a01b038216036112795760405162461bcd60e51b815260206004820152601860248201527f6163636f756e74206973207468697320636f6e7472616374000000000000000060448201526064016105a0565b60ce546040516001600160a01b038084169216907fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c90600090a360ce80546001600160a01b0319166001600160a01b0392909216919091179055565b60006112e2848484611b3d565b6001600160a01b0384166000908152603460209081526040808320338452909152902054828110156113675760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016105a0565b6001600160a01b0385166000908152603460209081526040808320338085529252909120546113a291879161139d9087906127a5565b6117ca565b506001949350505050565b60cf546040516001600160a01b038084169216907f95bb211a5a393c4d30c3edc9a745825fba4e6ad3e3bb949e6bf8ccdfe431a81190600090a360cf80546001600160a01b0319166001600160a01b0392909216919091179055565b60006108da7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f61143860655490565b606654600083838346604080516020810195909552840192909252606083015260808201523060a082015260c0016040516020818303038152906040528051906020012090509392505050565b3360008181526034602090815260408083206001600160a01b0387168452909152812054909161108f91859061139d9086906127bc565b60006114c88484611652565b50836001600160a01b0316336001600160a01b03167fe19260aff97b920c7df27010903aeb9c8d2be5d310a2c67824cf3f15396e4c16858560405161150e9291906127d4565b60405180910390a3833b1561152857611528848484611d22565b5060019392505050565b60cc546001600160a01b0316331461155c5760405162461bcd60e51b81526004016105a090612769565b61113e8282611d8c565b60cc546001600160a01b031633146115905760405162461bcd60e51b81526004016105a090612769565b61113e8282611ef3565b3360009081526034602090815260408083206001600160a01b03861684529091528120548281101561161c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105a0565b3360008181526034602090815260408083206001600160a01b03891684529091529020546115289190869061139d9087906127a5565b600061108f338484611b3d565b834211156116af5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016105a0565b609a546001600160a01b0388166000908152609960205260408120549091908990899089906040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061172f82611fcf565b9050600061173f82878787612016565b9050896001600160a01b0316816001600160a01b0316146117a25760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016105a0565b6001600160a01b038a1660009081526099602052604090206117c3906121b6565b610fd08a8a8a5b6001600160a01b03831661182c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105a0565b6001600160a01b03821661188d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105a0565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600054610100900460ff16806119045750303b155b80611912575060005460ff16155b61192e5760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff16158015611950576000805461ffff19166101011790555b80156108cd576000805461ff001916905550565b600054610100900460ff16806119795750303b155b80611987575060005460ff16155b6119a35760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff161580156119c5576000805461ffff19166101011790555b82516020808501919091208351918401919091206065919091556066558015610b5f576000805461ff0019169055505050565b600054610100900460ff1680611a0d5750303b155b80611a1b575060005460ff16155b611a375760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff16158015611a59576000805461ffff19166101011790555b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9609a5580156108cd576000805461ff001916905550565b600054610100900460ff1680611aa65750303b155b80611ab4575060005460ff16155b611ad05760405162461bcd60e51b81526004016105a0906126e4565b600054610100900460ff16158015611af2576000805461ffff19166101011790555b8251611b059060369060208601906121d3565b508151611b199060379060208501906121d3565b506038805460ff191660121790558015610b5f576000805461ff0019169055505050565b6001600160a01b038316611ba15760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105a0565b6001600160a01b038216611c035760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105a0565b6001600160a01b038316600090815260336020526040902054811115611c7a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105a0565b6001600160a01b038316600090815260336020526040902054611c9e9082906127a5565b6001600160a01b038085166000908152603360205260408082209390935590841681522054611cce9082906127bc565b6001600160a01b0380841660008181526033602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906118e29085815260200190565b604051635260769b60e11b815283906001600160a01b0382169063a4c0ed3690611d54903390879087906004016127f5565b600060405180830381600087803b158015611d6e57600080fd5b505af1158015611d82573d6000803e3d6000fd5b5050505050505050565b6001600160a01b038216611dec5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105a0565b6001600160a01b038216600090815260336020526040902054811115611e5f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105a0565b6001600160a01b038216600090815260336020526040902054611e839082906127a5565b6001600160a01b038316600090815260336020526040902055603554611eaa9082906127a5565b6035556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6001600160a01b038216611f495760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105a0565b80603554611f5791906127bc565b6035556001600160a01b038216600090815260336020526040902054611f7e9082906127bc565b6001600160a01b0383166000818152603360205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611ee79085815260200190565b6000611fd9611409565b60405161190160f01b6020820152602281019190915260428101839052606201604051602081830303815290604052805190602001209050919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156120935760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105a0565b8360ff16601b14806120a857508360ff16601c145b6120ff5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105a0565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015612153573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661061e5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105a0565b60018160000160008282546121cb91906127bc565b909155505050565b8280546121df9061264e565b90600052602060002090601f0160209004810192826122015760008555612247565b82601f1061221a57805160ff1916838001178555612247565b82800160010185558215612247579182015b8281111561224757825182559160200191906001019061222c565b50612253929150612257565b5090565b5b808211156122535760008155600101612258565b6000815180845260005b8181101561229257602081850181015186830182015201612276565b818111156122a4576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006122cc602083018461226c565b9392505050565b80356001600160a01b03811681146122ea57600080fd5b919050565b6000806040838503121561230257600080fd5b61230b836122d3565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561234a5761234a612319565b604051601f8501601f19908116603f0116810190828211818310171561237257612372612319565b8160405280935085815286868601111561238b57600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126123b657600080fd5b6122cc8383356020850161232f565b803560ff811681146122ea57600080fd5b6000806000606084860312156123eb57600080fd5b833567ffffffffffffffff8082111561240357600080fd5b61240f878388016123a5565b9450602086013591508082111561242557600080fd5b50612432868287016123a5565b925050612441604085016123c5565b90509250925092565b60006020828403121561245c57600080fd5b6122cc826122d3565b60008060008060008060c0878903121561247e57600080fd5b612487876122d3565b9550612495602088016122d3565b94506124a3604088016122d3565b9350606087013567ffffffffffffffff808211156124c057600080fd5b6124cc8a838b016123a5565b945060808901359150808211156124e257600080fd5b506124ef89828a016123a5565b9250506124fe60a088016123c5565b90509295509295509295565b60008060006060848603121561251f57600080fd5b612528846122d3565b9250612536602085016122d3565b9150604084013590509250925092565b60008060006060848603121561255b57600080fd5b612564846122d3565b925060208401359150604084013567ffffffffffffffff81111561258757600080fd5b8401601f8101861361259857600080fd5b6125a78682356020840161232f565b9150509250925092565b600080600080600080600060e0888a0312156125cc57600080fd5b6125d5886122d3565b96506125e3602089016122d3565b955060408801359450606088013593506125ff608089016123c5565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561262e57600080fd5b612637836122d3565b9150612645602084016122d3565b90509250929050565b600181811c9082168061266257607f821691505b60208210810361268257634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526012908201527118dbdb9d1c9858dd081a5cc81c185d5cd95960721b604082015260600190565b6020808252601690820152751858d8dbdd5b9d081a5cc8189b1858dadb1a5cdd195960521b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526017908201527f63616c6c6572206973206e6f7420746865206f776e6572000000000000000000604082015260600190565b6020808252600c908201526b4f4e4c595f4741544557415960a01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000828210156127b7576127b761278f565b500390565b600082198211156127cf576127cf61278f565b500190565b8281526040602082015260006127ed604083018461226c565b949350505050565b60018060a01b038416815282602082015260606040820152600061061e606083018461226c56fea264697066735822122066c21d9eacd40fcc6f43b4303fc3922a10e1bdd56f0f78f55e037fb6f6300b0264736f6c634300080d0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.