ETH Price: $2,286.98 (-4.07%)

Contract

0xd52f94DF742a6F4B4C8b033369fE13A41782Bf44
Transaction Hash
Method
Block
From
To
Approve1254344022024-09-16 6:19:4110 hrs ago1726467581IN
Layer2DAO: L2DAO Token
0 ETH0.0000002641220.00167251
Approve1252775072024-09-12 15:09:514 days ago1726153791IN
Layer2DAO: L2DAO Token
0 ETH0.0000006450610.01095045
Approve1252632062024-09-12 7:13:094 days ago1726125189IN
Layer2DAO: L2DAO Token
0 ETH0.0000000338270.00023734
Approve1252627612024-09-12 6:58:194 days ago1726124299IN
Layer2DAO: L2DAO Token
0 ETH0.0000000434170.00113923
Approve1249818552024-09-05 18:54:4710 days ago1725562487IN
Layer2DAO: L2DAO Token
0 ETH0.0000002267350.00441957
Approve1248459492024-09-02 15:24:3514 days ago1725290675IN
Layer2DAO: L2DAO Token
0 ETH0.000000146050.0019848
Approve1248459472024-09-02 15:24:3114 days ago1725290671IN
Layer2DAO: L2DAO Token
0 ETH0.0000001438790.0019848
Approve1248345362024-09-02 9:04:0914 days ago1725267849IN
Layer2DAO: L2DAO Token
0 ETH0.0000000941670.001441
Approve1247668312024-08-31 19:27:1915 days ago1725132439IN
Layer2DAO: L2DAO Token
0 ETH0.0000000330730.0011148
Approve1247668262024-08-31 19:27:0915 days ago1725132429IN
Layer2DAO: L2DAO Token
0 ETH0.0000000324090.0011148
Approve1247668212024-08-31 19:26:5915 days ago1725132419IN
Layer2DAO: L2DAO Token
0 ETH0.0000000323560.0011148
Approve1247660192024-08-31 19:00:1515 days ago1725130815IN
Layer2DAO: L2DAO Token
0 ETH0.0000000170510.00023794
Approve1246116632024-08-28 5:15:0319 days ago1724822103IN
Layer2DAO: L2DAO Token
0 ETH0.0000000565260.00109174
Approve1245616282024-08-27 1:27:1320 days ago1724722033IN
Layer2DAO: L2DAO Token
0 ETH0.0000000809280.00159212
Approve1243101132024-08-21 5:43:2326 days ago1724219003IN
Layer2DAO: L2DAO Token
0 ETH0.0000000547670.00104769
Approve1242858472024-08-20 16:14:3127 days ago1724170471IN
Layer2DAO: L2DAO Token
0 ETH0.0000002974490.01192722
Approve1242858422024-08-20 16:14:2127 days ago1724170461IN
Layer2DAO: L2DAO Token
0 ETH0.0000002954680.01184569
Approve1242584822024-08-20 1:02:2127 days ago1724115741IN
Layer2DAO: L2DAO Token
0 ETH0.0000000378870.00056226
Approve1241671652024-08-17 22:18:2729 days ago1723933107IN
Layer2DAO: L2DAO Token
0 ETH0.000000033010.0010507
Approve1241671602024-08-17 22:18:1729 days ago1723933097IN
Layer2DAO: L2DAO Token
0 ETH0.0000000334310.0010507
Approve1240413232024-08-15 0:23:4332 days ago1723681423IN
Layer2DAO: L2DAO Token
0 ETH0.0000000620190.00105287
Approve1239268082024-08-12 8:46:3335 days ago1723452393IN
Layer2DAO: L2DAO Token
0 ETH0.0000000915550.0011296
Approve1237499592024-08-08 6:31:3539 days ago1723098695IN
Layer2DAO: L2DAO Token
0 ETH0.0000000718850.00134914
Approve1237006932024-08-07 3:09:2340 days ago1723000163IN
Layer2DAO: L2DAO Token
0 ETH0.0000000512890.00132222
Approve1233329072024-07-29 14:49:5149 days ago1722264591IN
Layer2DAO: L2DAO Token
0 ETH0.0000001048050.00140581
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1075487202023-07-30 5:50:17414 days ago1690696217
Layer2DAO: L2DAO Token
0 ETH
1075487202023-07-30 5:50:17414 days ago1690696217
Layer2DAO: L2DAO Token
0 ETH
1075487202023-07-30 5:50:17414 days ago1690696217
Layer2DAO: L2DAO Token
0 ETH
1075487202023-07-30 5:50:17414 days ago1690696217
Layer2DAO: L2DAO Token
0 ETH
1075479242023-07-30 5:23:45414 days ago1690694625
Layer2DAO: L2DAO Token
0 ETH
1075479242023-07-30 5:23:45414 days ago1690694625
Layer2DAO: L2DAO Token
0 ETH
1075479242023-07-30 5:23:45414 days ago1690694625
Layer2DAO: L2DAO Token
0 ETH
1075479242023-07-30 5:23:45414 days ago1690694625
Layer2DAO: L2DAO Token
0 ETH
1075477342023-07-30 5:17:25414 days ago1690694245
Layer2DAO: L2DAO Token
0 ETH
1075477342023-07-30 5:17:25414 days ago1690694245
Layer2DAO: L2DAO Token
0 ETH
1075477342023-07-30 5:17:25414 days ago1690694245
Layer2DAO: L2DAO Token
0 ETH
1075477342023-07-30 5:17:25414 days ago1690694245
Layer2DAO: L2DAO Token
0 ETH
1075457102023-07-30 4:09:57414 days ago1690690197
Layer2DAO: L2DAO Token
0 ETH
1075457102023-07-30 4:09:57414 days ago1690690197
Layer2DAO: L2DAO Token
0 ETH
1075457102023-07-30 4:09:57414 days ago1690690197
Layer2DAO: L2DAO Token
0 ETH
1075457102023-07-30 4:09:57414 days ago1690690197
Layer2DAO: L2DAO Token
0 ETH
1075451752023-07-30 3:52:07414 days ago1690689127
Layer2DAO: L2DAO Token
0 ETH
1075451752023-07-30 3:52:07414 days ago1690689127
Layer2DAO: L2DAO Token
0 ETH
1075451752023-07-30 3:52:07414 days ago1690689127
Layer2DAO: L2DAO Token
0 ETH
1075451752023-07-30 3:52:07414 days ago1690689127
Layer2DAO: L2DAO Token
0 ETH
1075449412023-07-30 3:44:19414 days ago1690688659
Layer2DAO: L2DAO Token
0 ETH
1075449412023-07-30 3:44:19414 days ago1690688659
Layer2DAO: L2DAO Token
0 ETH
1075449412023-07-30 3:44:19414 days ago1690688659
Layer2DAO: L2DAO Token
0 ETH
1075449412023-07-30 3:44:19414 days ago1690688659
Layer2DAO: L2DAO Token
0 ETH
1075449242023-07-30 3:43:45414 days ago1690688625
Layer2DAO: L2DAO Token
0 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
L2DAOTokenMultichain

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at optimistic.etherscan.io on 2022-06-21
*/

// File: OwnableCelerMultichain.sol



pragma solidity ^0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 *
 * This adds a normal func that setOwner if _owner is address(0). So we can't allow
 * renounceOwnership. So we can support Proxy based upgradable contract
 */
abstract contract Ownable {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(msg.sender);
    }

    /**
     * @dev Only to be called by inherit contracts, in their init func called by Proxy
     * we require _owner == address(0), which is only possible when it's a delegateCall
     * because constructor sets _owner in contract state.
     */
    function initOwner() internal {
        require(_owner == address(0), "owner already set");
        _setOwner(msg.sender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == msg.sender, "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @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 Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: L2DAOTokenMultichain.sol



pragma solidity ^0.8.0;



/**
 * @title L2DAO Multi-Bridge Pegged ERC20 token
 */
contract L2DAOTokenMultichain is ERC20, Ownable {
    struct Supply {
        uint256 cap;
        uint256 total;
    }
    mapping(address => Supply) public bridges; // bridge address -> supply

    uint8 private immutable _decimals;

    event BridgeSupplyCapUpdated(address bridge, uint256 supplyCap);

    constructor(
        string memory name_,
        string memory symbol_,
        uint8 decimals_
    ) ERC20(name_, symbol_) {
        _decimals = decimals_;
    }

    /**
     * @notice Mints tokens to an address. Increases total amount minted by the calling bridge.
     * @param _to The address to mint tokens to.
     * @param _amount The amount to mint.
     */
    function mint(address _to, uint256 _amount) external returns (bool) {
        Supply storage b = bridges[msg.sender];
        require(b.cap > 0, "invalid caller");
        b.total += _amount;
        require(b.total <= b.cap, "exceeds bridge supply cap");
        _mint(_to, _amount);
        return true;
    }

    /**
     * @notice Burns tokens for msg.sender.
     * @param _amount The amount to burn.
     */
    function burn(uint256 _amount) external returns (bool) {
        _burn(msg.sender, _amount);
        return true;
    }

    /**
     * @notice Burns tokens from an address. Decreases total amount minted if called by a bridge.
     * Alternative to {burnFrom} for compatibility with some bridge implementations.
     * See {_burnFrom}.
     * @param _from The address to burn tokens from.
     * @param _amount The amount to burn.
     */
    function burn(address _from, uint256 _amount) external returns (bool) {
        return _burnFrom(_from, _amount);
    }

    /**
     * @notice Burns tokens from an address. Decreases total amount minted if called by a bridge.
     * See {_burnFrom}.
     * @param _from The address to burn tokens from.
     * @param _amount The amount to burn.
     */
    function burnFrom(address _from, uint256 _amount) external returns (bool) {
        return _burnFrom(_from, _amount);
    }

    /**
     * @dev Burns tokens from an address, deducting from the caller's allowance.
     *      Decreases total amount minted if called by a bridge.
     * @param _from The address to burn tokens from.
     * @param _amount The amount to burn.
     */
    function _burnFrom(address _from, uint256 _amount) internal returns (bool) {
        Supply storage b = bridges[msg.sender];
        if (b.cap > 0 || b.total > 0) {
            // set cap to 1 would effectively disable a deprecated bridge's ability to burn
            require(b.total >= _amount, "exceeds bridge minted amount");
            unchecked {
                b.total -= _amount;
            }
        }
        _spendAllowance(_from, msg.sender, _amount);
        _burn(_from, _amount);
        return true;
    }

    /**
     * @notice Returns the decimals of the token.
     */
    function decimals() public view virtual override returns (uint8) {
        return _decimals;
    }

    /**
     * @notice Updates the supply cap for a bridge.
     * @param _bridge The bridge address.
     * @param _cap The new supply cap.
     */
    function updateBridgeSupplyCap(address _bridge, uint256 _cap) external onlyOwner {
        // cap == 0 means revoking bridge role
        bridges[_bridge].cap = _cap;
        emit BridgeSupplyCapUpdated(_bridge, _cap);
    }

    /**
     * @notice Returns the owner address. Required by BEP20.
     */
    function getOwner() external view returns (address) {
        return owner();
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"bridge","type":"address"},{"indexed":false,"internalType":"uint256","name":"supplyCap","type":"uint256"}],"name":"BridgeSupplyCapUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":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"},{"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":"","type":"address"}],"name":"bridges","outputs":[{"internalType":"uint256","name":"cap","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burnFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"getOwner","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":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"},{"internalType":"uint256","name":"_cap","type":"uint256"}],"name":"updateBridgeSupplyCap","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b506040516200132e3803806200132e833981016040819052620000349162000257565b8251839083906200004d906003906020850190620000fa565b50805162000063906004906020840190620000fa565b5050506200007733620000a860201b60201c565b60f81b7fff0000000000000000000000000000000000000000000000000000000000000016608052506200032f9050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200010890620002dc565b90600052602060002090601f0160209004810192826200012c576000855562000177565b82601f106200014757805160ff191683800117855562000177565b8280016001018555821562000177579182015b82811115620001775782518255916020019190600101906200015a565b506200018592915062000189565b5090565b5b808211156200018557600081556001016200018a565b600082601f830112620001b257600080fd5b81516001600160401b0380821115620001cf57620001cf62000319565b604051601f8301601f19908116603f01168101908282118183101715620001fa57620001fa62000319565b816040528381526020925086838588010111156200021757600080fd5b600091505b838210156200023b57858201830151818301840152908201906200021c565b838211156200024d5760008385830101525b9695505050505050565b6000806000606084860312156200026d57600080fd5b83516001600160401b03808211156200028557600080fd5b6200029387838801620001a0565b94506020860151915080821115620002aa57600080fd5b50620002b986828701620001a0565b925050604084015160ff81168114620002d157600080fd5b809150509250925092565b600181811c90821680620002f157607f821691505b602082108114156200031357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160f81c610fe06200034e600039600061019e0152610fe06000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806379cc6790116100ad578063a457c2d711610071578063a457c2d71461028b578063a9059cbb1461029e578063ced67f0c146102b1578063dd62ed3e146102ed578063f2fde38b1461030057600080fd5b806379cc67901461023f578063893d20e8146102525780638da5cb5b1461027257806395d89b41146102835780639dc29fac1461023f57600080fd5b806339509351116100f457806339509351146101c857806340c10f19146101db57806342966c68146101ee5780634ce2f71a1461020157806370a082311461021657600080fd5b806306fdde0314610131578063095ea7b31461014f57806318160ddd1461017257806323b872dd14610184578063313ce56714610197575b600080fd5b610139610313565b6040516101469190610ed5565b60405180910390f35b61016261015d366004610e92565b6103a5565b6040519015158152602001610146565b6002545b604051908152602001610146565b610162610192366004610e56565b6103bd565b60405160ff7f0000000000000000000000000000000000000000000000000000000000000000168152602001610146565b6101626101d6366004610e92565b6103e1565b6101626101e9366004610e92565b610403565b6101626101fc366004610ebc565b6104ce565b61021461020f366004610e92565b6104e2565b005b610176610224366004610e08565b6001600160a01b031660009081526020819052604090205490565b61016261024d366004610e92565b6105a3565b61025a6105b6565b6040516001600160a01b039091168152602001610146565b6005546001600160a01b031661025a565b6101396105cf565b610162610299366004610e92565b6105de565b6101626102ac366004610e92565b610659565b6102d86102bf366004610e08565b6006602052600090815260409020805460019091015482565b60408051928352602083019190915201610146565b6101766102fb366004610e23565b610667565b61021461030e366004610e08565b610692565b60606003805461032290610f59565b80601f016020809104026020016040519081016040528092919081815260200182805461034e90610f59565b801561039b5780601f106103705761010080835404028352916020019161039b565b820191906000526020600020905b81548152906001019060200180831161037e57829003601f168201915b5050505050905090565b6000336103b381858561076c565b5060019392505050565b6000336103cb858285610891565b6103d685858561090b565b506001949350505050565b6000336103b38185856103f48383610667565b6103fe9190610f2a565b61076c565b33600090815260066020526040812080546104565760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21031b0b63632b960911b60448201526064015b60405180910390fd5b8281600101600082825461046a9190610f2a565b90915550508054600182015411156104c45760405162461bcd60e51b815260206004820152601960248201527f657863656564732062726964676520737570706c792063617000000000000000604482015260640161044d565b6103b38484610ad9565b60006104da3383610bb8565b506001919050565b336104f56005546001600160a01b031690565b6001600160a01b03161461054b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161044d565b6001600160a01b038216600081815260066020908152604091829020849055815192835282018390527f59e1e4348943de408b89af8ab71e502ea722dd41efd1ff4a3548c60e83e91c60910160405180910390a15050565b60006105af8383610cfe565b9392505050565b60006105ca6005546001600160a01b031690565b905090565b60606004805461032290610f59565b600033816105ec8286610667565b90508381101561064c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161044d565b6103d6828686840361076c565b6000336103b381858561090b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b336106a56005546001600160a01b031690565b6001600160a01b0316146106fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161044d565b6001600160a01b0381166107605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161044d565b61076981610d9a565b50565b6001600160a01b0383166107ce5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161044d565b6001600160a01b03821661082f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161044d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600061089d8484610667565b9050600019811461090557818110156108f85760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161044d565b610905848484840361076c565b50505050565b6001600160a01b03831661096f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161044d565b6001600160a01b0382166109d15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161044d565b6001600160a01b03831660009081526020819052604090205481811015610a495760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161044d565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610a80908490610f2a565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610acc91815260200190565b60405180910390a3610905565b6001600160a01b038216610b2f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161044d565b8060026000828254610b419190610f2a565b90915550506001600160a01b03821660009081526020819052604081208054839290610b6e908490610f2a565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610c185760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161044d565b6001600160a01b03821660009081526020819052604090205481811015610c8c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161044d565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610cbb908490610f42565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610884565b3360009081526006602052604081208054151580610d20575060008160010154115b15610d85578281600101541015610d795760405162461bcd60e51b815260206004820152601c60248201527f6578636565647320627269646765206d696e74656420616d6f756e7400000000604482015260640161044d565b60018101805484900390555b610d90843385610891565b6103b38484610bb8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80356001600160a01b0381168114610e0357600080fd5b919050565b600060208284031215610e1a57600080fd5b6105af82610dec565b60008060408385031215610e3657600080fd5b610e3f83610dec565b9150610e4d60208401610dec565b90509250929050565b600080600060608486031215610e6b57600080fd5b610e7484610dec565b9250610e8260208501610dec565b9150604084013590509250925092565b60008060408385031215610ea557600080fd5b610eae83610dec565b946020939093013593505050565b600060208284031215610ece57600080fd5b5035919050565b600060208083528351808285015260005b81811015610f0257858101830151858201604001528201610ee6565b81811115610f14576000604083870101525b50601f01601f1916929092016040019392505050565b60008219821115610f3d57610f3d610f94565b500190565b600082821015610f5457610f54610f94565b500390565b600181811c90821680610f6d57607f821691505b60208210811415610f8e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220caa7af5d8b58d82cc5d13a116cf3dd9329a5c6e19d42820dc5c9f2ff2d7b6f7c64736f6c63430008070033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000094c617965723244414f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054c3244414f000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061012c5760003560e01c806379cc6790116100ad578063a457c2d711610071578063a457c2d71461028b578063a9059cbb1461029e578063ced67f0c146102b1578063dd62ed3e146102ed578063f2fde38b1461030057600080fd5b806379cc67901461023f578063893d20e8146102525780638da5cb5b1461027257806395d89b41146102835780639dc29fac1461023f57600080fd5b806339509351116100f457806339509351146101c857806340c10f19146101db57806342966c68146101ee5780634ce2f71a1461020157806370a082311461021657600080fd5b806306fdde0314610131578063095ea7b31461014f57806318160ddd1461017257806323b872dd14610184578063313ce56714610197575b600080fd5b610139610313565b6040516101469190610ed5565b60405180910390f35b61016261015d366004610e92565b6103a5565b6040519015158152602001610146565b6002545b604051908152602001610146565b610162610192366004610e56565b6103bd565b60405160ff7f0000000000000000000000000000000000000000000000000000000000000012168152602001610146565b6101626101d6366004610e92565b6103e1565b6101626101e9366004610e92565b610403565b6101626101fc366004610ebc565b6104ce565b61021461020f366004610e92565b6104e2565b005b610176610224366004610e08565b6001600160a01b031660009081526020819052604090205490565b61016261024d366004610e92565b6105a3565b61025a6105b6565b6040516001600160a01b039091168152602001610146565b6005546001600160a01b031661025a565b6101396105cf565b610162610299366004610e92565b6105de565b6101626102ac366004610e92565b610659565b6102d86102bf366004610e08565b6006602052600090815260409020805460019091015482565b60408051928352602083019190915201610146565b6101766102fb366004610e23565b610667565b61021461030e366004610e08565b610692565b60606003805461032290610f59565b80601f016020809104026020016040519081016040528092919081815260200182805461034e90610f59565b801561039b5780601f106103705761010080835404028352916020019161039b565b820191906000526020600020905b81548152906001019060200180831161037e57829003601f168201915b5050505050905090565b6000336103b381858561076c565b5060019392505050565b6000336103cb858285610891565b6103d685858561090b565b506001949350505050565b6000336103b38185856103f48383610667565b6103fe9190610f2a565b61076c565b33600090815260066020526040812080546104565760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21031b0b63632b960911b60448201526064015b60405180910390fd5b8281600101600082825461046a9190610f2a565b90915550508054600182015411156104c45760405162461bcd60e51b815260206004820152601960248201527f657863656564732062726964676520737570706c792063617000000000000000604482015260640161044d565b6103b38484610ad9565b60006104da3383610bb8565b506001919050565b336104f56005546001600160a01b031690565b6001600160a01b03161461054b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161044d565b6001600160a01b038216600081815260066020908152604091829020849055815192835282018390527f59e1e4348943de408b89af8ab71e502ea722dd41efd1ff4a3548c60e83e91c60910160405180910390a15050565b60006105af8383610cfe565b9392505050565b60006105ca6005546001600160a01b031690565b905090565b60606004805461032290610f59565b600033816105ec8286610667565b90508381101561064c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161044d565b6103d6828686840361076c565b6000336103b381858561090b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b336106a56005546001600160a01b031690565b6001600160a01b0316146106fb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161044d565b6001600160a01b0381166107605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161044d565b61076981610d9a565b50565b6001600160a01b0383166107ce5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161044d565b6001600160a01b03821661082f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161044d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600061089d8484610667565b9050600019811461090557818110156108f85760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161044d565b610905848484840361076c565b50505050565b6001600160a01b03831661096f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161044d565b6001600160a01b0382166109d15760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161044d565b6001600160a01b03831660009081526020819052604090205481811015610a495760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161044d565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610a80908490610f2a565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610acc91815260200190565b60405180910390a3610905565b6001600160a01b038216610b2f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161044d565b8060026000828254610b419190610f2a565b90915550506001600160a01b03821660009081526020819052604081208054839290610b6e908490610f2a565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610c185760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161044d565b6001600160a01b03821660009081526020819052604090205481811015610c8c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161044d565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610cbb908490610f42565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610884565b3360009081526006602052604081208054151580610d20575060008160010154115b15610d85578281600101541015610d795760405162461bcd60e51b815260206004820152601c60248201527f6578636565647320627269646765206d696e74656420616d6f756e7400000000604482015260640161044d565b60018101805484900390555b610d90843385610891565b6103b38484610bb8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80356001600160a01b0381168114610e0357600080fd5b919050565b600060208284031215610e1a57600080fd5b6105af82610dec565b60008060408385031215610e3657600080fd5b610e3f83610dec565b9150610e4d60208401610dec565b90509250929050565b600080600060608486031215610e6b57600080fd5b610e7484610dec565b9250610e8260208501610dec565b9150604084013590509250925092565b60008060408385031215610ea557600080fd5b610eae83610dec565b946020939093013593505050565b600060208284031215610ece57600080fd5b5035919050565b600060208083528351808285015260005b81811015610f0257858101830151858201604001528201610ee6565b81811115610f14576000604083870101525b50601f01601f1916929092016040019392505050565b60008219821115610f3d57610f3d610f94565b500190565b600082821015610f5457610f54610f94565b500390565b600181811c90821680610f6d57607f821691505b60208210811415610f8e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220caa7af5d8b58d82cc5d13a116cf3dd9329a5c6e19d42820dc5c9f2ff2d7b6f7c64736f6c63430008070033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000094c617965723244414f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054c3244414f000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Layer2DAO
Arg [1] : symbol_ (string): L2DAO
Arg [2] : decimals_ (uint8): 18

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [4] : 4c617965723244414f0000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [6] : 4c3244414f000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

19932:3636:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9006:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;11357:201;;;;;;:::i;:::-;;:::i;:::-;;;2077:14:1;;2070:22;2052:41;;2040:2;2025:18;11357:201:0;1912:187:1;10126:108:0;10214:12;;10126:108;;;8628:25:1;;;8616:2;8601:18;10126:108:0;8482:177:1;12138:295:0;;;;;;:::i;:::-;;:::i;22902:100::-;;;9089:4:1;22985:9:0;9077:17:1;9059:36;;9047:2;9032:18;22902:100:0;8917:184:1;12842:238:0;;;;;;:::i;:::-;;:::i;20638:318::-;;;;;;:::i;:::-;;:::i;21070:122::-;;;;;;:::i;:::-;;:::i;23164:228::-;;;;;;:::i;:::-;;:::i;:::-;;10297:127;;;;;;:::i;:::-;-1:-1:-1;;;;;10398:18:0;10371:7;10398:18;;;;;;;;;;;;10297:127;21893:125;;;;;;:::i;:::-;;:::i;23480:85::-;;;:::i;:::-;;;-1:-1:-1;;;;;1589:32:1;;;1571:51;;1559:2;1544:18;23480:85:0;1425:203:1;1522:87:0;1595:6;;-1:-1:-1;;;;;1595:6:0;1522:87;;9225:104;;;:::i;13583:436::-;;;;;;:::i;:::-;;:::i;10630:193::-;;;;;;:::i;:::-;;:::i;20061:41::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;8838:25:1;;;8894:2;8879:18;;8872:34;;;;8811:18;20061:41:0;8664:248:1;10886:151:0;;;;;;:::i;:::-;;:::i;1975:192::-;;;;;;:::i;:::-;;:::i;9006:100::-;9060:13;9093:5;9086:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9006:100;:::o;11357:201::-;11440:4;3112:10;11496:32;3112:10;11512:7;11521:6;11496:8;:32::i;:::-;-1:-1:-1;11546:4:0;;11357:201;-1:-1:-1;;;11357:201:0:o;12138:295::-;12269:4;3112:10;12327:38;12343:4;3112:10;12358:6;12327:15;:38::i;:::-;12376:27;12386:4;12392:2;12396:6;12376:9;:27::i;:::-;-1:-1:-1;12421:4:0;;12138:295;-1:-1:-1;;;;12138:295:0:o;12842:238::-;12930:4;3112:10;12986:64;3112:10;13002:7;13039:10;13011:25;3112:10;13002:7;13011:9;:25::i;:::-;:38;;;;:::i;:::-;12986:8;:64::i;20638:318::-;20744:10;20700:4;20736:19;;;:7;:19;;;;;20774:5;;20766:36;;;;-1:-1:-1;;;20766:36:0;;5236:2:1;20766:36:0;;;5218:21:1;5275:2;5255:18;;;5248:30;-1:-1:-1;;;5294:18:1;;;5287:44;5348:18;;20766:36:0;;;;;;;;;20824:7;20813:1;:7;;;:18;;;;;;;:::i;:::-;;;;-1:-1:-1;;20861:5:0;;20850:7;;;;:16;;20842:54;;;;-1:-1:-1;;;20842:54:0;;3669:2:1;20842:54:0;;;3651:21:1;3708:2;3688:18;;;3681:30;3747:27;3727:18;;;3720:55;3792:18;;20842:54:0;3467:349:1;20842:54:0;20907:19;20913:3;20918:7;20907:5;:19::i;21070:122::-;21119:4;21136:26;21142:10;21154:7;21136:5;:26::i;:::-;-1:-1:-1;21180:4:0;;21070:122;-1:-1:-1;21070:122:0:o;23164:228::-;1753:10;1742:7;1595:6;;-1:-1:-1;;;;;1595:6:0;;1522:87;1742:7;-1:-1:-1;;;;;1742:21:0;;1734:66;;;;-1:-1:-1;;;1734:66:0;;6344:2:1;1734:66:0;;;6326:21:1;;;6363:18;;;6356:30;6422:34;6402:18;;;6395:62;6474:18;;1734:66:0;6142:356:1;1734:66:0;-1:-1:-1;;;;;23304:16:0;::::1;;::::0;;;:7:::1;:16;::::0;;;;;;;;:27;;;23347:37;;1807:51:1;;;1874:18;;1867:34;;;23347:37:0::1;::::0;1780:18:1;23347:37:0::1;;;;;;;23164:228:::0;;:::o;21893:125::-;21961:4;21985:25;21995:5;22002:7;21985:9;:25::i;:::-;21978:32;21893:125;-1:-1:-1;;;21893:125:0:o;23480:85::-;23523:7;23550;1595:6;;-1:-1:-1;;;;;1595:6:0;;1522:87;23550:7;23543:14;;23480:85;:::o;9225:104::-;9281:13;9314:7;9307:14;;;;;:::i;13583:436::-;13676:4;3112:10;13676:4;13759:25;3112:10;13776:7;13759:9;:25::i;:::-;13732:52;;13823:15;13803:16;:35;;13795:85;;;;-1:-1:-1;;;13795:85:0;;7918:2:1;13795:85:0;;;7900:21:1;7957:2;7937:18;;;7930:30;7996:34;7976:18;;;7969:62;-1:-1:-1;;;8047:18:1;;;8040:35;8092:19;;13795:85:0;7716:401:1;13795:85:0;13916:60;13925:5;13932:7;13960:15;13941:16;:34;13916:8;:60::i;10630:193::-;10709:4;3112:10;10765:28;3112:10;10782:2;10786:6;10765:9;:28::i;10886:151::-;-1:-1:-1;;;;;11002:18:0;;;10975:7;11002:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;10886:151::o;1975:192::-;1753:10;1742:7;1595:6;;-1:-1:-1;;;;;1595:6:0;;1522:87;1742:7;-1:-1:-1;;;;;1742:21:0;;1734:66;;;;-1:-1:-1;;;1734:66:0;;6344:2:1;1734:66:0;;;6326:21:1;;;6363:18;;;6356:30;6422:34;6402:18;;;6395:62;6474:18;;1734:66:0;6142:356:1;1734:66:0;-1:-1:-1;;;;;2064:22:0;::::1;2056:73;;;::::0;-1:-1:-1;;;2056:73:0;;4426:2:1;2056:73:0::1;::::0;::::1;4408:21:1::0;4465:2;4445:18;;;4438:30;4504:34;4484:18;;;4477:62;-1:-1:-1;;;4555:18:1;;;4548:36;4601:19;;2056:73:0::1;4224:402:1::0;2056:73:0::1;2140:19;2150:8;2140:9;:19::i;:::-;1975:192:::0;:::o;17217:380::-;-1:-1:-1;;;;;17353:19:0;;17345:68;;;;-1:-1:-1;;;17345:68:0;;7513:2:1;17345:68:0;;;7495:21:1;7552:2;7532:18;;;7525:30;7591:34;7571:18;;;7564:62;-1:-1:-1;;;7642:18:1;;;7635:34;7686:19;;17345:68:0;7311:400:1;17345:68:0;-1:-1:-1;;;;;17432:21:0;;17424:68;;;;-1:-1:-1;;;17424:68:0;;4833:2:1;17424:68:0;;;4815:21:1;4872:2;4852:18;;;4845:30;4911:34;4891:18;;;4884:62;-1:-1:-1;;;4962:18:1;;;4955:32;5004:19;;17424:68:0;4631:398:1;17424:68:0;-1:-1:-1;;;;;17505:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;17557:32;;8628:25:1;;;17557:32:0;;8601:18:1;17557:32:0;;;;;;;;17217:380;;;:::o;17888:453::-;18023:24;18050:25;18060:5;18067:7;18050:9;:25::i;:::-;18023:52;;-1:-1:-1;;18090:16:0;:37;18086:248;;18172:6;18152:16;:26;;18144:68;;;;-1:-1:-1;;;18144:68:0;;5579:2:1;18144:68:0;;;5561:21:1;5618:2;5598:18;;;5591:30;5657:31;5637:18;;;5630:59;5706:18;;18144:68:0;5377:353:1;18144:68:0;18256:51;18265:5;18272:7;18300:6;18281:16;:25;18256:8;:51::i;:::-;18012:329;17888:453;;;:::o;14498:671::-;-1:-1:-1;;;;;14629:18:0;;14621:68;;;;-1:-1:-1;;;14621:68:0;;7107:2:1;14621:68:0;;;7089:21:1;7146:2;7126:18;;;7119:30;7185:34;7165:18;;;7158:62;-1:-1:-1;;;7236:18:1;;;7229:35;7281:19;;14621:68:0;6905:401:1;14621:68:0;-1:-1:-1;;;;;14708:16:0;;14700:64;;;;-1:-1:-1;;;14700:64:0;;2908:2:1;14700:64:0;;;2890:21:1;2947:2;2927:18;;;2920:30;2986:34;2966:18;;;2959:62;-1:-1:-1;;;3037:18:1;;;3030:33;3080:19;;14700:64:0;2706:399:1;14700:64:0;-1:-1:-1;;;;;14850:15:0;;14828:19;14850:15;;;;;;;;;;;14884:21;;;;14876:72;;;;-1:-1:-1;;;14876:72:0;;5937:2:1;14876:72:0;;;5919:21:1;5976:2;5956:18;;;5949:30;6015:34;5995:18;;;5988:62;-1:-1:-1;;;6066:18:1;;;6059:36;6112:19;;14876:72:0;5735:402:1;14876:72:0;-1:-1:-1;;;;;14984:15:0;;;:9;:15;;;;;;;;;;;15002:20;;;14984:38;;15044:13;;;;;;;;:23;;15016:6;;14984:9;15044:23;;15016:6;;15044:23;:::i;:::-;;;;;;;;15100:2;-1:-1:-1;;;;;15085:26:0;15094:4;-1:-1:-1;;;;;15085:26:0;;15104:6;15085:26;;;;8628:25:1;;8616:2;8601:18;;8482:177;15085:26:0;;;;;;;;15124:37;16188:591;15456:399;-1:-1:-1;;;;;15540:21:0;;15532:65;;;;-1:-1:-1;;;15532:65:0;;8324:2:1;15532:65:0;;;8306:21:1;8363:2;8343:18;;;8336:30;8402:33;8382:18;;;8375:61;8453:18;;15532:65:0;8122:355:1;15532:65:0;15688:6;15672:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;15705:18:0;;:9;:18;;;;;;;;;;:28;;15727:6;;15705:9;:28;;15727:6;;15705:28;:::i;:::-;;;;-1:-1:-1;;15749:37:0;;8628:25:1;;;-1:-1:-1;;;;;15749:37:0;;;15766:1;;15749:37;;8616:2:1;8601:18;15749:37:0;;;;;;;15456:399;;:::o;16188:591::-;-1:-1:-1;;;;;16272:21:0;;16264:67;;;;-1:-1:-1;;;16264:67:0;;6705:2:1;16264:67:0;;;6687:21:1;6744:2;6724:18;;;6717:30;6783:34;6763:18;;;6756:62;-1:-1:-1;;;6834:18:1;;;6827:31;6875:19;;16264:67:0;6503:397:1;16264:67:0;-1:-1:-1;;;;;16431:18:0;;16406:22;16431:18;;;;;;;;;;;16468:24;;;;16460:71;;;;-1:-1:-1;;;16460:71:0;;4023:2:1;16460:71:0;;;4005:21:1;4062:2;4042:18;;;4035:30;4101:34;4081:18;;;4074:62;-1:-1:-1;;;4152:18:1;;;4145:32;4194:19;;16460:71:0;3821:398:1;16460:71:0;-1:-1:-1;;;;;16567:18:0;;:9;:18;;;;;;;;;;16588:23;;;16567:44;;16633:12;:22;;16605:6;;16567:9;16633:22;;16605:6;;16633:22;:::i;:::-;;;;-1:-1:-1;;16673:37:0;;8628:25:1;;;16699:1:0;;-1:-1:-1;;;;;16673:37:0;;;;;8616:2:1;8601:18;16673:37:0;8482:177:1;22289:536:0;22402:10;22358:4;22394:19;;;:7;:19;;;;;22428:5;;:9;;;:24;;;22451:1;22441;:7;;;:11;22428:24;22424:286;;;22581:7;22570:1;:7;;;:18;;22562:59;;;;-1:-1:-1;;;22562:59:0;;3312:2:1;22562:59:0;;;3294:21:1;3351:2;3331:18;;;3324:30;3390;3370:18;;;3363:58;3438:18;;22562:59:0;3110:352:1;22562:59:0;22665:7;;;:18;;;;;;;22424:286;22720:43;22736:5;22743:10;22755:7;22720:15;:43::i;:::-;22774:21;22780:5;22787:7;22774:5;:21::i;2175:173::-;2250:6;;;-1:-1:-1;;;;;2267:17:0;;;-1:-1:-1;;;;;;2267:17:0;;;;;;;2300:40;;2250:6;;;2267:17;2250:6;;2300:40;;2231:16;;2300:40;2220:128;2175:173;:::o;14::1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;383:260::-;451:6;459;512:2;500:9;491:7;487:23;483:32;480:52;;;528:1;525;518:12;480:52;551:29;570:9;551:29;:::i;:::-;541:39;;599:38;633:2;622:9;618:18;599:38;:::i;:::-;589:48;;383:260;;;;;:::o;648:328::-;725:6;733;741;794:2;782:9;773:7;769:23;765:32;762:52;;;810:1;807;800:12;762:52;833:29;852:9;833:29;:::i;:::-;823:39;;881:38;915:2;904:9;900:18;881:38;:::i;:::-;871:48;;966:2;955:9;951:18;938:32;928:42;;648:328;;;;;:::o;981:254::-;1049:6;1057;1110:2;1098:9;1089:7;1085:23;1081:32;1078:52;;;1126:1;1123;1116:12;1078:52;1149:29;1168:9;1149:29;:::i;:::-;1139:39;1225:2;1210:18;;;;1197:32;;-1:-1:-1;;;981:254:1:o;1240:180::-;1299:6;1352:2;1340:9;1331:7;1327:23;1323:32;1320:52;;;1368:1;1365;1358:12;1320:52;-1:-1:-1;1391:23:1;;1240:180;-1:-1:-1;1240:180:1:o;2104:597::-;2216:4;2245:2;2274;2263:9;2256:21;2306:6;2300:13;2349:6;2344:2;2333:9;2329:18;2322:34;2374:1;2384:140;2398:6;2395:1;2392:13;2384:140;;;2493:14;;;2489:23;;2483:30;2459:17;;;2478:2;2455:26;2448:66;2413:10;;2384:140;;;2542:6;2539:1;2536:13;2533:91;;;2612:1;2607:2;2598:6;2587:9;2583:22;2579:31;2572:42;2533:91;-1:-1:-1;2685:2:1;2664:15;-1:-1:-1;;2660:29:1;2645:45;;;;2692:2;2641:54;;2104:597;-1:-1:-1;;;2104:597:1:o;9106:128::-;9146:3;9177:1;9173:6;9170:1;9167:13;9164:39;;;9183:18;;:::i;:::-;-1:-1:-1;9219:9:1;;9106:128::o;9239:125::-;9279:4;9307:1;9304;9301:8;9298:34;;;9312:18;;:::i;:::-;-1:-1:-1;9349:9:1;;9239:125::o;9369:380::-;9448:1;9444:12;;;;9491;;;9512:61;;9566:4;9558:6;9554:17;9544:27;;9512:61;9619:2;9611:6;9608:14;9588:18;9585:38;9582:161;;;9665:10;9660:3;9656:20;9653:1;9646:31;9700:4;9697:1;9690:15;9728:4;9725:1;9718:15;9582:161;;9369:380;;;:::o;9754:127::-;9815:10;9810:3;9806:20;9803:1;9796:31;9846:4;9843:1;9836:15;9870:4;9867:1;9860:15

Swarm Source

ipfs://caa7af5d8b58d82cc5d13a116cf3dd9329a5c6e19d42820dc5c9f2ff2d7b6f7c

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading

OVERVIEW

Layer2DAO is expanding the Ethereum L2 ecosystem and investing in L2 ecosystem projects.

Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.