ETH Price: $4,010.40 (+3.02%)

Token

Bag (BAG)
 

Overview

Max Total Supply

1,851,466,714.724380016678070916 BAG

Holders

29,626 ( -0.010%)

Total Transfers

-

Market

Price

$0.0013 @ 0.000000 ETH (+3.93%)

Onchain Market Cap

$2,336,902.77

Circulating Supply Market Cap

$7,306,147.00

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

BAG: The metaverse coin of the people. Aligning builders and hosts to become the #1 Metaverse community in the world.

Market

Volume (24H):$8,997.61
Market Capitalization:$7,306,147.00
Circulating Supply:5,797,825,475.00 BAG
Market Data Source: Coinmarketcap

Contract Source Code Verified (Exact Match)

Contract Name:
BlastBAG

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 2 of 11: BlastBAG.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.21;

import {ERC20} from "./ERC20.sol";
import {IOptimismMintableERC20, IERC165} from "./IOptimismMintableERC20.sol";
import {BlastAdapter} from "./BlastAdapter.sol";

contract BlastBAG is IOptimismMintableERC20, ERC20, BlastAdapter {
    /// @notice Address of the corresponding version of this token on the remote chain.
    address public immutable REMOTE_TOKEN;

    /// @notice Address of the StandardBridge on this network.
    address public immutable BRIDGE;

    bool public l2BridgePaused;

    error PausedL2Bridge();

    /// @notice Emitted whenever tokens are minted for an account.
    /// @param account Address of the account tokens are being minted for.
    /// @param amount  Amount of tokens minted.
    event Mint(address indexed account, uint256 amount);

    /// @notice Emitted whenever tokens are burned from an account.
    /// @param account Address of the account tokens are being burned from.
    /// @param amount  Amount of tokens burned.
    event Burn(address indexed account, uint256 amount);

    /// @notice A modifier that only allows the bridge to call.
    modifier onlyBridge() {
        require(msg.sender == BRIDGE, "only bridge can mint and burn");
        _;
    }

    /// @param _bridge      Address of the L2 standard bridge.
    /// @param _remoteToken Address of the corresponding L1 token.
    /// @param _name        ERC20 name.
    /// @param _symbol      ERC20 symbol.
    constructor(address _bridge, address _remoteToken, string memory _name, string memory _symbol) ERC20(_name, _symbol) {
        REMOTE_TOKEN = _remoteToken;
        BRIDGE = _bridge;
    }

    /// @custom:legacy
    /// @notice Legacy getter for REMOTE_TOKEN.
    function remoteToken() external view override returns (address) {
        return REMOTE_TOKEN;
    }

    /// @custom:legacy
    /// @notice Legacy getter for BRIDGE.
    function bridge() external view override returns (address) {
        return BRIDGE;
    }

    /// @notice ERC165 interface check function.
    /// @param _interfaceId Interface ID to check.
    /// @return Whether or not the interface is supported by this contract.
    function supportsInterface(bytes4 _interfaceId) external pure override returns (bool) {
        bytes4 iface1 = type(IERC165).interfaceId;
        // Interface corresponding to the updated OptimismMintableERC20 (this contract).
        bytes4 iface2 = type(IOptimismMintableERC20).interfaceId;
        return _interfaceId == iface1 || _interfaceId == iface2;
    }

    /// @notice Allows the StandardBridge on this network to mint tokens.
    /// @param _to     Address to mint tokens to.
    /// @param _amount Amount of tokens to mint.
    function mint(address _to, uint256 _amount) external override(IOptimismMintableERC20) onlyBridge {
        if (l2BridgePaused) revert PausedL2Bridge();
        _mint(_to, _amount);
        emit Mint(_to, _amount);
    }

    function burn(address account, uint256 _amount) external override(IOptimismMintableERC20) onlyBridge {
        if (l2BridgePaused) revert PausedL2Bridge();
        _burn(account, _amount);
        emit Burn(account, _amount);
    }

    function pauseL2Bridge(bool pause) external onlyOwner {
        l2BridgePaused = pause;
    }
}

File 1 of 11: BlastAdapter.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import {Ownable} from "./Ownable.sol";
import {IBlast} from "./IBlast.sol";

contract BlastAdapter is Ownable {
    constructor() Ownable(_msgSender()) {}

    function enableClaimable(address gov) public onlyOwner {
        IBlast(0x4300000000000000000000000000000000000002).configure(IBlast.YieldMode.CLAIMABLE, IBlast.GasMode.CLAIMABLE, gov);
    }
}

File 3 of 11: Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

/**
 * @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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 4 of 11: draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 5 of 11: ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./IERC20Metadata.sol";
import {Context} from "./Context.sol";
import {IERC20Errors} from "./draft-IERC6093.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}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * 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.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * 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 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 default value returned by this function, unless
     * it's 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 returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual 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 `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` 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 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        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 `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` 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.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

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

File 6 of 11: IBlast.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.21;

interface IBlast {
    enum YieldMode {
        AUTOMATIC,
        VOID,
        CLAIMABLE
    }

    enum GasMode {
        VOID,
        CLAIMABLE
    }

    // configure
    function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external;
    function configure(YieldMode _yield, GasMode gasMode, address governor) external;

    // base configuration options
    function configureClaimableYield() external;
    function configureClaimableYieldOnBehalf(address contractAddress) external;
    function configureAutomaticYield() external;
    function configureAutomaticYieldOnBehalf(address contractAddress) external;
    function configureVoidYield() external;
    function configureVoidYieldOnBehalf(address contractAddress) external;
    function configureClaimableGas() external;
    function configureClaimableGasOnBehalf(address contractAddress) external;
    function configureVoidGas() external;
    function configureVoidGasOnBehalf(address contractAddress) external;
    function configureGovernor(address _governor) external;
    function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external;

    // claim yield
    function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256);
    function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256);

    // claim gas
    function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256);
    function claimGasAtMinClaimRate(address contractAddress, address recipientOfGas, uint256 minClaimRateBips) external returns (uint256);
    function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256);
    function claimGas(address contractAddress, address recipientOfGas, uint256 gasToClaim, uint256 gasSecondsToConsume) external returns (uint256);

    // read functions
    function readClaimableYield(address contractAddress) external view returns (uint256);
    function readYieldConfiguration(address contractAddress) external view returns (uint8);
    function readGasParams(address contractAddress) external view returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode);
}

File 7 of 11: IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 8 of 11: IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

File 9 of 11: IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
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 10 of 11: IOptimismMintableERC20.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.21;

import {IERC165} from "./IERC165.sol";

interface IOptimismMintableERC20 is IERC165 {
    function remoteToken() external view returns (address);

    function bridge() external returns (address);

    function mint(address _to, uint256 _amount) external;

    function burn(address _from, uint256 _amount) external;
}

File 11 of 11: Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "./Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. 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.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_bridge","type":"address"},{"internalType":"address","name":"_remoteToken","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"PausedL2Bridge","type":"error"},{"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"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","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":[],"name":"BRIDGE","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REMOTE_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"value","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":[],"name":"bridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"gov","type":"address"}],"name":"enableClaimable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"l2BridgePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"pause","type":"bool"}],"name":"pauseL2Bridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"remoteToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","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":"value","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":"value","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"}]

60c060405234801562000010575f80fd5b5060405162001167380380620011678339810160408190526200003391620001d5565b3382826003620000448382620002ec565b506004620000538282620002ec565b5050506001600160a01b0381166200008457604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6200008f81620000aa565b5050506001600160a01b039081166080521660a052620003b4565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b80516001600160a01b038116811462000112575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f8301126200013b575f80fd5b81516001600160401b038082111562000158576200015862000117565b604051601f8301601f19908116603f0116810190828211818310171562000183576200018362000117565b816040528381526020925086838588010111156200019f575f80fd5b5f91505b83821015620001c25785820183015181830184015290820190620001a3565b5f93810190920192909252949350505050565b5f805f8060808587031215620001e9575f80fd5b620001f485620000fb565b93506200020460208601620000fb565b60408601519093506001600160401b038082111562000221575f80fd5b6200022f888389016200012b565b9350606087015191508082111562000245575f80fd5b5062000254878288016200012b565b91505092959194509250565b600181811c908216806200027557607f821691505b6020821081036200029457634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620002e7575f81815260208120601f850160051c81016020861015620002c25750805b601f850160051c820191505b81811015620002e357828155600101620002ce565b5050505b505050565b81516001600160401b0381111562000308576200030862000117565b620003208162000319845462000260565b846200029a565b602080601f83116001811462000356575f84156200033e5750858301515b5f19600386901b1c1916600185901b178555620002e3565b5f85815260208120601f198616915b82811015620003865788860151825594840194600190910190840162000365565b5085821015620003a457878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a051610d75620003f25f395f81816103220152818161034b0152818161049401526105af01525f818161016e01526102c40152610d755ff3fe608060405234801561000f575f80fd5b506004361061013d575f3560e01c80638da5cb5b116100b4578063c6c0d6f611610079578063c6c0d6f6146102af578063d6c0b2c4146102c2578063dd62ed3e146102e8578063e78cea9214610320578063ee9a31a214610346578063f2fde38b1461036d575f80fd5b80638da5cb5b1461025d57806395d89b411461026e5780639dc29fac14610276578063a9059cbb14610289578063be4d0ae71461029c575f80fd5b806323b872dd1161010557806323b872dd146101e2578063313ce567146101f557806340c10f191461020457806347fe15031461021957806370a082311461022d578063715018a614610255575f80fd5b806301ffc9a714610141578063033964be1461016957806306fdde03146101a8578063095ea7b3146101bd57806318160ddd146101d0575b5f80fd5b61015461014f366004610b30565b610380565b60405190151581526020015b60405180910390f35b6101907f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610160565b6101b06103bd565b6040516101609190610b5e565b6101546101cb366004610bc4565b61044d565b6002545b604051908152602001610160565b6101546101f0366004610bec565b610466565b60405160128152602001610160565b610217610212366004610bc4565b610489565b005b60055461015490600160a01b900460ff1681565b6101d461023b366004610c25565b6001600160a01b03165f9081526020819052604090205490565b610217610582565b6005546001600160a01b0316610190565b6101b0610595565b610217610284366004610bc4565b6105a4565b610154610297366004610bc4565b61068c565b6102176102aa366004610c25565b610699565b6102176102bd366004610c3e565b610701565b7f0000000000000000000000000000000000000000000000000000000000000000610190565b6101d46102f6366004610c5d565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b7f0000000000000000000000000000000000000000000000000000000000000000610190565b6101907f000000000000000000000000000000000000000000000000000000000000000081565b61021761037b366004610c25565b610727565b5f6301ffc9a760e01b63ec4fc8e360e01b6001600160e01b031984168214806103b557506001600160e01b0319848116908216145b949350505050565b6060600380546103cc90610c8e565b80601f01602080910402602001604051908101604052809291908181526020018280546103f890610c8e565b80156104435780601f1061041a57610100808354040283529160200191610443565b820191905f5260205f20905b81548152906001019060200180831161042657829003601f168201915b5050505050905090565b5f3361045a818585610764565b60019150505b92915050565b5f33610473858285610776565b61047e8585856107f1565b506001949350505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105065760405162461bcd60e51b815260206004820152601d60248201527f6f6e6c79206272696467652063616e206d696e7420616e64206275726e00000060448201526064015b60405180910390fd5b600554600160a01b900460ff161561053157604051630c21334360e01b815260040160405180910390fd5b61053b828261084e565b816001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858260405161057691815260200190565b60405180910390a25050565b61058a610886565b6105935f6108b3565b565b6060600480546103cc90610c8e565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461061c5760405162461bcd60e51b815260206004820152601d60248201527f6f6e6c79206272696467652063616e206d696e7420616e64206275726e00000060448201526064016104fd565b600554600160a01b900460ff161561064757604051630c21334360e01b815260040160405180910390fd5b6106518282610904565b816001600160a01b03167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58260405161057691815260200190565b5f3361045a8185856107f1565b6106a1610886565b60405163c8992e6160e01b81526002604360981b019063c8992e61906106d1906002906001908690600401610cda565b5f604051808303815f87803b1580156106e8575f80fd5b505af11580156106fa573d5f803e3d5ffd5b5050505050565b610709610886565b60058054911515600160a01b0260ff60a01b19909216919091179055565b61072f610886565b6001600160a01b03811661075857604051631e4fbdf760e01b81525f60048201526024016104fd565b610761816108b3565b50565b6107718383836001610938565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146107eb57818110156107dd57604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016104fd565b6107eb84848484035f610938565b50505050565b6001600160a01b03831661081a57604051634b637e8f60e11b81525f60048201526024016104fd565b6001600160a01b0382166108435760405163ec442f0560e01b81525f60048201526024016104fd565b610771838383610a0a565b6001600160a01b0382166108775760405163ec442f0560e01b81525f60048201526024016104fd565b6108825f8383610a0a565b5050565b6005546001600160a01b031633146105935760405163118cdaa760e01b81523360048201526024016104fd565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b03821661092d57604051634b637e8f60e11b81525f60048201526024016104fd565b610882825f83610a0a565b6001600160a01b0384166109615760405163e602df0560e01b81525f60048201526024016104fd565b6001600160a01b03831661098a57604051634a1406b160e11b81525f60048201526024016104fd565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156107eb57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516109fc91815260200190565b60405180910390a350505050565b6001600160a01b038316610a34578060025f828254610a299190610d20565b90915550610aa49050565b6001600160a01b0383165f9081526020819052604090205481811015610a865760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016104fd565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610ac057600280548290039055610ade565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610b2391815260200190565b60405180910390a3505050565b5f60208284031215610b40575f80fd5b81356001600160e01b031981168114610b57575f80fd5b9392505050565b5f6020808352835180828501525f5b81811015610b8957858101830151858201604001528201610b6d565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610bbf575f80fd5b919050565b5f8060408385031215610bd5575f80fd5b610bde83610ba9565b946020939093013593505050565b5f805f60608486031215610bfe575f80fd5b610c0784610ba9565b9250610c1560208501610ba9565b9150604084013590509250925092565b5f60208284031215610c35575f80fd5b610b5782610ba9565b5f60208284031215610c4e575f80fd5b81358015158114610b57575f80fd5b5f8060408385031215610c6e575f80fd5b610c7783610ba9565b9150610c8560208401610ba9565b90509250929050565b600181811c90821680610ca257607f821691505b602082108103610cc057634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52602160045260245ffd5b6060810160038510610cee57610cee610cc6565b84825260028410610d0157610d01610cc6565b60208201939093526001600160a01b0391909116604090910152919050565b8082018082111561046057634e487b7160e01b5f52601160045260245ffdfea2646970667358221220f1ffbf9ae583722a34db12fc13b619213bf33686baf85691f75efdad0eee406064736f6c634300081500330000000000000000000000004200000000000000000000000000000000000010000000000000000000000000808688c820ab080a6ff1019f03e5ec227d9b522b000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000003426167000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034241470000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561000f575f80fd5b506004361061013d575f3560e01c80638da5cb5b116100b4578063c6c0d6f611610079578063c6c0d6f6146102af578063d6c0b2c4146102c2578063dd62ed3e146102e8578063e78cea9214610320578063ee9a31a214610346578063f2fde38b1461036d575f80fd5b80638da5cb5b1461025d57806395d89b411461026e5780639dc29fac14610276578063a9059cbb14610289578063be4d0ae71461029c575f80fd5b806323b872dd1161010557806323b872dd146101e2578063313ce567146101f557806340c10f191461020457806347fe15031461021957806370a082311461022d578063715018a614610255575f80fd5b806301ffc9a714610141578063033964be1461016957806306fdde03146101a8578063095ea7b3146101bd57806318160ddd146101d0575b5f80fd5b61015461014f366004610b30565b610380565b60405190151581526020015b60405180910390f35b6101907f000000000000000000000000808688c820ab080a6ff1019f03e5ec227d9b522b81565b6040516001600160a01b039091168152602001610160565b6101b06103bd565b6040516101609190610b5e565b6101546101cb366004610bc4565b61044d565b6002545b604051908152602001610160565b6101546101f0366004610bec565b610466565b60405160128152602001610160565b610217610212366004610bc4565b610489565b005b60055461015490600160a01b900460ff1681565b6101d461023b366004610c25565b6001600160a01b03165f9081526020819052604090205490565b610217610582565b6005546001600160a01b0316610190565b6101b0610595565b610217610284366004610bc4565b6105a4565b610154610297366004610bc4565b61068c565b6102176102aa366004610c25565b610699565b6102176102bd366004610c3e565b610701565b7f000000000000000000000000808688c820ab080a6ff1019f03e5ec227d9b522b610190565b6101d46102f6366004610c5d565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b7f0000000000000000000000004200000000000000000000000000000000000010610190565b6101907f000000000000000000000000420000000000000000000000000000000000001081565b61021761037b366004610c25565b610727565b5f6301ffc9a760e01b63ec4fc8e360e01b6001600160e01b031984168214806103b557506001600160e01b0319848116908216145b949350505050565b6060600380546103cc90610c8e565b80601f01602080910402602001604051908101604052809291908181526020018280546103f890610c8e565b80156104435780601f1061041a57610100808354040283529160200191610443565b820191905f5260205f20905b81548152906001019060200180831161042657829003601f168201915b5050505050905090565b5f3361045a818585610764565b60019150505b92915050565b5f33610473858285610776565b61047e8585856107f1565b506001949350505050565b336001600160a01b037f000000000000000000000000420000000000000000000000000000000000001016146105065760405162461bcd60e51b815260206004820152601d60248201527f6f6e6c79206272696467652063616e206d696e7420616e64206275726e00000060448201526064015b60405180910390fd5b600554600160a01b900460ff161561053157604051630c21334360e01b815260040160405180910390fd5b61053b828261084e565b816001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858260405161057691815260200190565b60405180910390a25050565b61058a610886565b6105935f6108b3565b565b6060600480546103cc90610c8e565b336001600160a01b037f0000000000000000000000004200000000000000000000000000000000000010161461061c5760405162461bcd60e51b815260206004820152601d60248201527f6f6e6c79206272696467652063616e206d696e7420616e64206275726e00000060448201526064016104fd565b600554600160a01b900460ff161561064757604051630c21334360e01b815260040160405180910390fd5b6106518282610904565b816001600160a01b03167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58260405161057691815260200190565b5f3361045a8185856107f1565b6106a1610886565b60405163c8992e6160e01b81526002604360981b019063c8992e61906106d1906002906001908690600401610cda565b5f604051808303815f87803b1580156106e8575f80fd5b505af11580156106fa573d5f803e3d5ffd5b5050505050565b610709610886565b60058054911515600160a01b0260ff60a01b19909216919091179055565b61072f610886565b6001600160a01b03811661075857604051631e4fbdf760e01b81525f60048201526024016104fd565b610761816108b3565b50565b6107718383836001610938565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146107eb57818110156107dd57604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016104fd565b6107eb84848484035f610938565b50505050565b6001600160a01b03831661081a57604051634b637e8f60e11b81525f60048201526024016104fd565b6001600160a01b0382166108435760405163ec442f0560e01b81525f60048201526024016104fd565b610771838383610a0a565b6001600160a01b0382166108775760405163ec442f0560e01b81525f60048201526024016104fd565b6108825f8383610a0a565b5050565b6005546001600160a01b031633146105935760405163118cdaa760e01b81523360048201526024016104fd565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b03821661092d57604051634b637e8f60e11b81525f60048201526024016104fd565b610882825f83610a0a565b6001600160a01b0384166109615760405163e602df0560e01b81525f60048201526024016104fd565b6001600160a01b03831661098a57604051634a1406b160e11b81525f60048201526024016104fd565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156107eb57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516109fc91815260200190565b60405180910390a350505050565b6001600160a01b038316610a34578060025f828254610a299190610d20565b90915550610aa49050565b6001600160a01b0383165f9081526020819052604090205481811015610a865760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016104fd565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610ac057600280548290039055610ade565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610b2391815260200190565b60405180910390a3505050565b5f60208284031215610b40575f80fd5b81356001600160e01b031981168114610b57575f80fd5b9392505050565b5f6020808352835180828501525f5b81811015610b8957858101830151858201604001528201610b6d565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610bbf575f80fd5b919050565b5f8060408385031215610bd5575f80fd5b610bde83610ba9565b946020939093013593505050565b5f805f60608486031215610bfe575f80fd5b610c0784610ba9565b9250610c1560208501610ba9565b9150604084013590509250925092565b5f60208284031215610c35575f80fd5b610b5782610ba9565b5f60208284031215610c4e575f80fd5b81358015158114610b57575f80fd5b5f8060408385031215610c6e575f80fd5b610c7783610ba9565b9150610c8560208401610ba9565b90509250929050565b600181811c90821680610ca257607f821691505b602082108103610cc057634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52602160045260245ffd5b6060810160038510610cee57610cee610cc6565b84825260028410610d0157610d01610cc6565b60208201939093526001600160a01b0391909116604090910152919050565b8082018082111561046057634e487b7160e01b5f52601160045260245ffdfea2646970667358221220f1ffbf9ae583722a34db12fc13b619213bf33686baf85691f75efdad0eee406064736f6c63430008150033

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

0000000000000000000000004200000000000000000000000000000000000010000000000000000000000000808688c820ab080a6ff1019f03e5ec227d9b522b000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000003426167000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034241470000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _bridge (address): 0x4200000000000000000000000000000000000010
Arg [1] : _remoteToken (address): 0x808688c820AB080A6Ff1019F03E5EC227D9b522B
Arg [2] : _name (string): Bag
Arg [3] : _symbol (string): BAG

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000004200000000000000000000000000000000000010
Arg [1] : 000000000000000000000000808688c820ab080a6ff1019f03e5ec227d9b522b
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 4261670000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 4241470000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

227:3064:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2191:364;;;;;;:::i;:::-;;:::i;:::-;;;470:14:11;;463:22;445:41;;433:2;418:18;2191:364:1;;;;;;;;386:37;;;;;;;;-1:-1:-1;;;;;661:32:11;;;643:51;;631:2;616:18;386:37:1;497:203:11;2038:89:3;;;:::i;:::-;;;;;;;:::i;4257:186::-;;;;;;:::i;:::-;;:::i;3108:97::-;3186:12;;3108:97;;;1841:25:11;;;1829:2;1814:18;3108:97:3;1695:177:11;5003:244:3;;;;;;:::i;:::-;;:::i;2966:82::-;;;3039:2;2352:36:11;;2340:2;2325:18;2966:82:3;2210:184:11;2734:219:1;;;;;;:::i;:::-;;:::i;:::-;;531:26;;;;;-1:-1:-1;;;531:26:1;;;;;;3263:116:3;;;;;;:::i;:::-;-1:-1:-1;;;;;3354:18:3;3328:7;3354:18;;;;;;;;;;;;3263:116;2286:101:9;;;:::i;1631:85::-;1703:6;;-1:-1:-1;;;;;1703:6:9;1631:85;;2240:93:3;;;:::i;2959:231:1:-;;;;;;:::i;:::-;;:::i;3574:178:3:-;;;;;;:::i;:::-;;:::i;224:191:0:-;;;;;;:::i;:::-;;:::i;3196:93:1:-;;;;;;:::i;:::-;;:::i;1749:100::-;1830:12;1749:100;;3810:140:3;;;;;;:::i;:::-;-1:-1:-1;;;;;3916:18:3;;;3890:7;3916:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;3810:140;1920:89:1;1996:6;1920:89;;493:31;;;;;2536:215:9;;;;;;:::i;:::-;;:::i;2191:364:1:-;2271:4;-1:-1:-1;;;;;;;;;;;;2500:22:1;;;;;:48;;-1:-1:-1;;;;;;;2526:22:1;;;;;;;2500:48;2493:55;2191:364;-1:-1:-1;;;;2191:364:1:o;2038:89:3:-;2083:13;2115:5;2108:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2038:89;:::o;4257:186::-;4330:4;735:10:2;4384:31:3;735:10:2;4400:7:3;4409:5;4384:8;:31::i;:::-;4432:4;4425:11;;;4257:186;;;;;:::o;5003:244::-;5090:4;735:10:2;5146:37:3;5162:4;735:10:2;5177:5:3;5146:15;:37::i;:::-;5193:26;5203:4;5209:2;5213:5;5193:9;:26::i;:::-;-1:-1:-1;5236:4:3;;5003:244;-1:-1:-1;;;;5003:244:3:o;2734:219:1:-;1195:10;-1:-1:-1;;;;;1209:6:1;1195:20;;1187:62;;;;-1:-1:-1;;;1187:62:1;;3720:2:11;1187:62:1;;;3702:21:11;3759:2;3739:18;;;3732:30;3798:31;3778:18;;;3771:59;3847:18;;1187:62:1;;;;;;;;;2845:14:::1;::::0;-1:-1:-1;;;2845:14:1;::::1;;;2841:43;;;2868:16;;-1:-1:-1::0;;;2868:16:1::1;;;;;;;;;;;2841:43;2894:19;2900:3;2905:7;2894:5;:19::i;:::-;2933:3;-1:-1:-1::0;;;;;2928:18:1::1;;2938:7;2928:18;;;;1841:25:11::0;;1829:2;1814:18;;1695:177;2928:18:1::1;;;;;;;;2734:219:::0;;:::o;2286:101:9:-;1524:13;:11;:13::i;:::-;2350:30:::1;2377:1;2350:18;:30::i;:::-;2286:101::o:0;2240:93:3:-;2287:13;2319:7;2312:14;;;;;:::i;2959:231:1:-;1195:10;-1:-1:-1;;;;;1209:6:1;1195:20;;1187:62;;;;-1:-1:-1;;;1187:62:1;;3720:2:11;1187:62:1;;;3702:21:11;3759:2;3739:18;;;3732:30;3798:31;3778:18;;;3771:59;3847:18;;1187:62:1;3518:353:11;1187:62:1;3074:14:::1;::::0;-1:-1:-1;;;3074:14:1;::::1;;;3070:43;;;3097:16;;-1:-1:-1::0;;;3097:16:1::1;;;;;;;;;;;3070:43;3123:23;3129:7;3138;3123:5;:23::i;:::-;3166:7;-1:-1:-1::0;;;;;3161:22:1::1;;3175:7;3161:22;;;;1841:25:11::0;;1829:2;1814:18;;1695:177;3574:178:3;3643:4;735:10:2;3697:27:3;735:10:2;3714:2:3;3718:5;3697:9;:27::i;224:191:0:-;1524:13:9;:11;:13::i;:::-;289:119:0::1;::::0;-1:-1:-1;;;289:119:0;;-1:-1:-1;;;;;296:42:0;289:60:::1;::::0;:119:::1;::::0;350:26:::1;::::0;378:24:::1;::::0;404:3;;289:119:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;224:191:::0;:::o;3196:93:1:-;1524:13:9;:11;:13::i;:::-;3260:14:1::1;:22:::0;;;::::1;;-1:-1:-1::0;;;3260:22:1::1;-1:-1:-1::0;;;;3260:22:1;;::::1;::::0;;;::::1;::::0;;3196:93::o;2536:215:9:-;1524:13;:11;:13::i;:::-;-1:-1:-1;;;;;2620:22:9;::::1;2616:91;;2665:31;::::0;-1:-1:-1;;;2665:31:9;;2693:1:::1;2665:31;::::0;::::1;643:51:11::0;616:18;;2665:31:9::1;497:203:11::0;2616:91:9::1;2716:28;2735:8;2716:18;:28::i;:::-;2536:215:::0;:::o;8953:128:3:-;9037:37;9046:5;9053:7;9062:5;9069:4;9037:8;:37::i;:::-;8953:128;;;:::o;10627:477::-;-1:-1:-1;;;;;3916:18:3;;;10726:24;3916:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;10792:37:3;;10788:310;;10868:5;10849:16;:24;10845:130;;;10900:60;;-1:-1:-1;;;10900:60:3;;-1:-1:-1;;;;;4710:32:11;;10900:60:3;;;4692:51:11;4759:18;;;4752:34;;;4802:18;;;4795:34;;;4665:18;;10900:60:3;4490:345:11;10845:130:3;11016:57;11025:5;11032:7;11060:5;11041:16;:24;11067:5;11016:8;:57::i;:::-;10716:388;10627:477;;;:::o;5620:300::-;-1:-1:-1;;;;;5703:18:3;;5699:86;;5744:30;;-1:-1:-1;;;5744:30:3;;5771:1;5744:30;;;643:51:11;616:18;;5744:30:3;497:203:11;5699:86:3;-1:-1:-1;;;;;5798:16:3;;5794:86;;5837:32;;-1:-1:-1;;;5837:32:3;;5866:1;5837:32;;;643:51:11;616:18;;5837:32:3;497:203:11;5794:86:3;5889:24;5897:4;5903:2;5907:5;5889:7;:24::i;7685:208::-;-1:-1:-1;;;;;7755:21:3;;7751:91;;7799:32;;-1:-1:-1;;;7799:32:3;;7828:1;7799:32;;;643:51:11;616:18;;7799:32:3;497:203:11;7751:91:3;7851:35;7867:1;7871:7;7880:5;7851:7;:35::i;:::-;7685:208;;:::o;1789:162:9:-;1703:6;;-1:-1:-1;;;;;1703:6:9;735:10:2;1848:23:9;1844:101;;1894:40;;-1:-1:-1;;;1894:40:9;;735:10:2;1894:40:9;;;643:51:11;616:18;;1894:40:9;497:203:11;2905:187:9;2997:6;;;-1:-1:-1;;;;;3013:17:9;;;-1:-1:-1;;;;;;3013:17:9;;;;;;;3045:40;;2997:6;;;3013:17;2997:6;;3045:40;;2978:16;;3045:40;2968:124;2905:187;:::o;8211:206:3:-;-1:-1:-1;;;;;8281:21:3;;8277:89;;8325:30;;-1:-1:-1;;;8325:30:3;;8352:1;8325:30;;;643:51:11;616:18;;8325:30:3;497:203:11;8277:89:3;8375:35;8383:7;8400:1;8404:5;8375:7;:35::i;9913:432::-;-1:-1:-1;;;;;10025:19:3;;10021:89;;10067:32;;-1:-1:-1;;;10067:32:3;;10096:1;10067:32;;;643:51:11;616:18;;10067:32:3;497:203:11;10021:89:3;-1:-1:-1;;;;;10123:21:3;;10119:90;;10167:31;;-1:-1:-1;;;10167:31:3;;10195:1;10167:31;;;643:51:11;616:18;;10167:31:3;497:203:11;10119:90:3;-1:-1:-1;;;;;10218:18:3;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;:35;;;10263:76;;;;10313:7;-1:-1:-1;;;;;10297:31:3;10306:5;-1:-1:-1;;;;;10297:31:3;;10322:5;10297:31;;;;1841:25:11;;1829:2;1814:18;;1695:177;10297:31:3;;;;;;;;9913:432;;;;:::o;6235:1107::-;-1:-1:-1;;;;;6324:18:3;;6320:540;;6476:5;6460:12;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;6320:540:3;;-1:-1:-1;6320:540:3;;-1:-1:-1;;;;;6534:15:3;;6512:19;6534:15;;;;;;;;;;;6567:19;;;6563:115;;;6613:50;;-1:-1:-1;;;6613:50:3;;-1:-1:-1;;;;;4710:32:11;;6613:50:3;;;4692:51:11;4759:18;;;4752:34;;;4802:18;;;4795:34;;;4665:18;;6613:50:3;4490:345:11;6563:115:3;-1:-1:-1;;;;;6798:15:3;;:9;:15;;;;;;;;;;6816:19;;;;6798:37;;6320:540;-1:-1:-1;;;;;6874:16:3;;6870:425;;7037:12;:21;;;;;;;6870:425;;;-1:-1:-1;;;;;7248:13:3;;:9;:13;;;;;;;;;;:22;;;;;;6870:425;7325:2;-1:-1:-1;;;;;7310:25:3;7319:4;-1:-1:-1;;;;;7310:25:3;;7329:5;7310:25;;;;1841::11;;1829:2;1814:18;;1695:177;7310:25:3;;;;;;;;6235:1107;;;:::o;14:286:11:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:11;;209:43;;199:71;;266:1;263;256:12;199:71;289:5;14:286;-1:-1:-1;;;14:286:11:o;705:548::-;817:4;846:2;875;864:9;857:21;907:6;901:13;950:6;945:2;934:9;930:18;923:34;975:1;985:140;999:6;996:1;993:13;985:140;;;1094:14;;;1090:23;;1084:30;1060:17;;;1079:2;1056:26;1049:66;1014:10;;985:140;;;989:3;1174:1;1169:2;1160:6;1149:9;1145:22;1141:31;1134:42;1244:2;1237;1233:7;1228:2;1220:6;1216:15;1212:29;1201:9;1197:45;1193:54;1185:62;;;;705:548;;;;:::o;1258:173::-;1326:20;;-1:-1:-1;;;;;1375:31:11;;1365:42;;1355:70;;1421:1;1418;1411:12;1355:70;1258:173;;;:::o;1436:254::-;1504:6;1512;1565:2;1553:9;1544:7;1540:23;1536:32;1533:52;;;1581:1;1578;1571:12;1533:52;1604:29;1623:9;1604:29;:::i;:::-;1594:39;1680:2;1665:18;;;;1652:32;;-1:-1:-1;;;1436:254:11:o;1877:328::-;1954:6;1962;1970;2023:2;2011:9;2002:7;1998:23;1994:32;1991:52;;;2039:1;2036;2029:12;1991:52;2062:29;2081:9;2062:29;:::i;:::-;2052:39;;2110:38;2144:2;2133:9;2129:18;2110:38;:::i;:::-;2100:48;;2195:2;2184:9;2180:18;2167:32;2157:42;;1877:328;;;;;:::o;2399:186::-;2458:6;2511:2;2499:9;2490:7;2486:23;2482:32;2479:52;;;2527:1;2524;2517:12;2479:52;2550:29;2569:9;2550:29;:::i;2590:273::-;2646:6;2699:2;2687:9;2678:7;2674:23;2670:32;2667:52;;;2715:1;2712;2705:12;2667:52;2754:9;2741:23;2807:5;2800:13;2793:21;2786:5;2783:32;2773:60;;2829:1;2826;2819:12;2868:260;2936:6;2944;2997:2;2985:9;2976:7;2972:23;2968:32;2965:52;;;3013:1;3010;3003:12;2965:52;3036:29;3055:9;3036:29;:::i;:::-;3026:39;;3084:38;3118:2;3107:9;3103:18;3084:38;:::i;:::-;3074:48;;2868:260;;;;;:::o;3133:380::-;3212:1;3208:12;;;;3255;;;3276:61;;3330:4;3322:6;3318:17;3308:27;;3276:61;3383:2;3375:6;3372:14;3352:18;3349:38;3346:161;;3429:10;3424:3;3420:20;3417:1;3410:31;3464:4;3461:1;3454:15;3492:4;3489:1;3482:15;3346:161;;3133:380;;;:::o;3876:127::-;3937:10;3932:3;3928:20;3925:1;3918:31;3968:4;3965:1;3958:15;3992:4;3989:1;3982:15;4008:477;4218:2;4203:18;;4251:1;4240:13;;4230:47;;4257:18;;:::i;:::-;4304:6;4293:9;4286:25;4341:1;4333:6;4330:13;4320:47;;4347:18;;:::i;:::-;4398:2;4383:18;;4376:34;;;;-1:-1:-1;;;;;4446:32:11;;;;4441:2;4426:18;;;4419:60;4008:477;;-1:-1:-1;4008:477:11:o;4840:222::-;4905:9;;;4926:10;;;4923:133;;;4978:10;4973:3;4969:20;4966:1;4959:31;5013:4;5010:1;5003:15;5041:4;5038:1;5031:15

Swarm Source

ipfs://f1ffbf9ae583722a34db12fc13b619213bf33686baf85691f75efdad0eee4060
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.