ETH Price: $2,730.80 (-3.16%)

Contract

0x836aED3b0E0ee44C77e0b6Db34D170AbCCe9BaAC
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Approve281537402025-12-07 14:21:3554 days ago1765117295IN
0x836aED3b...bCCe9BaAC
0 ETH00.00002949
Approve240879572025-09-04 11:35:29148 days ago1756985729IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000120.00110513
Approve240879522025-09-04 11:35:19148 days ago1756985719IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000120.00110513
Approve234312382025-08-20 6:44:51163 days ago1755672291IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000020.00020041
Approve225447652025-07-30 18:15:45183 days ago1753899345IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000120.00111188
Approve224873432025-07-29 10:21:41185 days ago1753784501IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000110.0011102
Transfer215692662025-07-08 4:19:07206 days ago1751948347IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000120.00089709
Approve204092582025-06-11 7:52:11233 days ago1749628331IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000140.00110183
Approve186480212025-05-01 13:24:17274 days ago1746105857IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000690.00000054
Approve186478042025-05-01 13:17:03274 days ago1746105423IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000710.00000042
Approve163278662025-03-08 20:25:47327 days ago1741465547IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000010.00009219
Approve159807112025-02-28 19:33:57335 days ago1740771237IN
0x836aED3b...bCCe9BaAC
0 ETH0.000001290.01072527
Approve159471122025-02-28 0:53:59336 days ago1740704039IN
0x836aED3b...bCCe9BaAC
0 ETH0.000001920.0149685
Approve154365722025-02-16 5:15:59348 days ago1739682959IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000780.0060669
Approve153224382025-02-13 13:51:31351 days ago1739454691IN
0x836aED3b...bCCe9BaAC
0 ETH0.000003430.00058392
Approve140534592025-01-15 4:52:13380 days ago1736916733IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000290.00131456
Transfer138544772025-01-10 14:19:29385 days ago1736518769IN
0x836aED3b...bCCe9BaAC
0 ETH0.00000340.00017534
Approve137413162025-01-07 23:27:27387 days ago1736292447IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000180.00027177
Approve137167122025-01-07 9:47:19388 days ago1736243239IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000150.00118454
Approve134611952025-01-01 11:50:05394 days ago1735732205IN
0x836aED3b...bCCe9BaAC
0 ETH0.00000030.00210161
Approve133755162024-12-30 12:14:07396 days ago1735560847IN
0x836aED3b...bCCe9BaAC
0 ETH0.000001030.0002625
Approve130244602024-12-22 9:12:15404 days ago1734858735IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000080.00053605
Approve128805712024-12-19 1:15:57407 days ago1734570957IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000810.00164383
Approve121714992024-12-02 15:20:13423 days ago1733152813IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000990.00067969
Approve121714972024-12-02 15:20:09423 days ago1733152809IN
0x836aED3b...bCCe9BaAC
0 ETH0.000000930.00067449
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x5A7651Dd...3DFb4122d
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
MarginToken

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "../interfaces/IBlast.sol";
import "../interfaces/IProtocolSettings.sol";
import "../settings/ProtocolOwner.sol";

contract MarginToken is ProtocolOwner, ERC20, ReentrancyGuard {
  using SafeMath for uint256;

  IProtocolSettings public immutable settings;

  address public vault;

  constructor(address _wandProtocol, address _settings, string memory _name, string memory _symbol) ProtocolOwner(_wandProtocol) ERC20(_name, _symbol) {
    settings = IProtocolSettings(_settings);
  }

  /* ================= IERC20 Functions ================ */

  function transfer(address to, uint256 amount) public override nonReentrant onUserAction returns (bool) {
    return super.transfer(to, amount);
  }

  function transferFrom(address from, address to, uint256 amount) public override nonReentrant onUserAction returns (bool) {
    return super.transferFrom(from, to, amount);
  }

  function approve(address spender, uint256 amount) public override nonReentrant onUserAction returns (bool) {
    return super.approve(spender, amount);
  }

  function increaseAllowance(address spender, uint256 addedValue) public override nonReentrant onUserAction returns (bool) {
    return super.increaseAllowance(spender, addedValue);
  }

  function decreaseAllowance(address spender, uint256 subtractedValue) public override nonReentrant onUserAction returns (bool) {
    return super.decreaseAllowance(spender, subtractedValue);
  }

  /* ========== RESTRICTED FUNCTIONS ========== */

  function configureBlastYieldsAndGas() external nonReentrant onlyVault {
    address blastAddress = wandProtocol.blastAddress();
    if (blastAddress != address(0)) {
      IBlast blast = IBlast(wandProtocol.blastAddress());
      blast.configureClaimableGas();
    }
  }

  function mint(address to, uint256 amount) public nonReentrant onlyVault {
    _mint(to, amount);
  }

  function burn(address account, uint256 amount) public nonReentrant onlyVault {
    _burn(account, amount);
  }

  function setVault(address _vault) external nonReentrant onlyOwner {
    require(vault == address(0), "Vault already set");
    require(_vault != address(0), "Zero address detected");

    vault = _vault;
    emit SetVault(vault);
  }

  /* ============== MODIFIERS =============== */

  modifier onlyVault() {
    require(vault != address(0), "Vault not set");
    require(vault == _msgSender(), "Caller is not Vault");
    _;
  }

  modifier onUserAction() {
    _;

    address blastAddress = wandProtocol.blastAddress();
    if (blastAddress != address(0)) {
      IBlast blast = IBlast(blastAddress);
      (uint256 etherSeconds, uint256 etherBalance, ,) = blast.readGasParams(address(this));
      if (etherSeconds > 0 && etherBalance > 0) {
        blast.claimAllGas(address(this), settings.treasury());
      }
    }
  }

  /* =============== EVENTS ============= */

  event SetVault(address indexed vault);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/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.
 *
 * 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.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.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.
 *
 * 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}.
     *
     * 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 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 override returns (uint8) {
        return 18;
    }

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

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

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

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface 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);
}

// SPDX-License-Identifier: MIT
// 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;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

enum YieldMode {
  AUTOMATIC,
  VOID,
  CLAIMABLE
}

enum GasMode {
  VOID,
  CLAIMABLE 
}

interface IBlast{
  // 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);
}

// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

interface IProtocolSettings {

  function treasury() external view returns (address);

  function decimals() external view returns (uint256);

  function isValidParam(bytes32 param, uint256 value) external view returns (bool);

  function paramDefaultValue(bytes32 param) external view returns (uint256);

  function vaultParamValue(address vault, bytes32 param) external view returns (uint256);
}

// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

interface IWandProtocol {

  function protocolOwner() external view returns (address);

  function usbToken() external view returns (address);

  function blastAddress() external view returns (address);
  
  function blastPointsAddress() external view returns (address);

  function blastPointsOperator() external view returns (address);

  function isVault(address vaultAddress) external view returns (bool);

  function isVaultAsset(address assetToken) external view returns (bool);
}

File 12 of 12 : ProtocolOwner.sol
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;

import "@openzeppelin/contracts/utils/Context.sol";
import "../interfaces/IWandProtocol.sol";

abstract contract ProtocolOwner is Context {
  IWandProtocol public immutable wandProtocol;

  constructor(address _wandProtocol_) {
    require(_wandProtocol_ != address(0), "Zero address detected");
    wandProtocol = IWandProtocol(_wandProtocol_);
  }

  modifier onlyProtocol() {
    require(_msgSender() == address(wandProtocol), "Ownable: caller is not the protocol");
    _;
  }

  modifier onlyOwner() {
    require(_msgSender() == IWandProtocol(wandProtocol).protocolOwner(), "Ownable: caller is not the owner");
    _;
  }

  function owner() public view returns(address) {
    return IWandProtocol(wandProtocol).protocolOwner();
  }
}

Settings
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "optimizer": {
    "enabled": true,
    "runs": 100,
    "details": {
      "yulDetails": {
        "optimizerSteps": "u"
      }
    }
  },
  "viaIR": true,
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_wandProtocol","type":"address"},{"internalType":"address","name":"_settings","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"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":true,"internalType":"address","name":"vault","type":"address"}],"name":"SetVault","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":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"configureBlastYieldsAndGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":[],"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":"address","name":"_vault","type":"address"}],"name":"setVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"settings","outputs":[{"internalType":"contract IProtocolSettings","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":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wandProtocol","outputs":[{"internalType":"contract IWandProtocol","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

0x60c06040523462000069576200002262000018620001fa565b929190916200024f565b60405161182f6200058f823960805181818161039b015281816107b30152818161092201528181611262015261163e015260a0518181816105440152610a23015261182f90f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b90601f01601f191681019081106001600160401b03821117620000a657604052565b6200006e565b90620000c3620000bb60405190565b928362000084565b565b6001600160a01b031690565b90565b6001600160a01b038116036200006957565b90505190620000c382620000d4565b6001600160401b038111620000a657602090601f01601f19160190565b60005b838110620001265750506000910152565b818101518382015260200162000115565b90929192620001506200014a82620000f5565b620000ac565b938185526020850190828401116200006957620000c39262000112565b9080601f8301121562000069578151620000d19260200162000137565b906080828203126200006957620001a28183620000e6565b92620001b28260208501620000e6565b60408401519093906001600160401b038111620000695783620001d79183016200016d565b60608201519093906001600160401b0381116200006957620000d192016200016d565b6200021d62001dbe803803806200021181620000ac565b9283398101906200018a565b90919293565b620000d190620000c5906001600160a01b031682565b620000d19062000223565b620000d19062000239565b6200026693620002609293620002b7565b62000244565b60a052565b620000d1620000d1620000d19290565b620000d160016200026b565b90600019905b9181191691161790565b90620002ab620000d1620002b3926200026b565b825462000287565b9055565b90620002c49291620004c2565b620000c3620002d26200027b565b600562000297565b634e487b7160e01b600052602260045260246000fd5b906001600283049216801562000313575b60208310146200030d57565b620002da565b91607f169162000301565b9160001960089290920291821b911b6200028d565b919062000348620000d1620002b3936200026b565b9083546200031e565b620000c39160009162000333565b8181106200036b575050565b806200037b600060019362000351565b016200035f565b9190601f81116200039257505050565b620003a6620000c393600052602060002090565b906020601f840181900483019310620003ca575b6020601f9091010401906200035f565b9091508190620003ba565b90620003df815190565b906001600160401b038211620000a6576200040782620004008554620002f0565b8562000382565b602090601f83116001146200044657620002b39291600091836200043a575b5050600019600883021c1916906002021790565b01519050388062000426565b601f198316916200045c85600052602060002090565b9260005b8181106200049d5750916002939185600196941062000483575b50505002019055565b01516000196008601f8516021c191690553880806200047a565b9193602060018192878701518155019501920162000460565b90620000c391620003d5565b620004de90620004d6620000c394620004e6565b6003620004b6565b6004620004b6565b620000c390620000c3906200055e565b620000c5620000d1620000d19290565b620000d190620004f6565b156200051957565b60405162461bcd60e51b815260206004820152601560248201527f5a65726f206164647265737320646574656374656400000000000000000000006044820152606490fd5b62000589906200026062000577620000c5600062000506565b6001600160a01b038316141562000511565b60805256fe6080604052600436101561001257600080fd5b60003560e01c806306fdde0314610142578063095ea7b31461013d57806318160ddd1461013857806323b872dd14610133578063313ce5671461012e57806339509351146101295780633fef6dc11461012457806340c10f191461011f5780634e29a3331461011a5780636817031b1461011557806370a08231146101105780638da5cb5b1461010b57806395d89b41146101065780639dc29fac14610101578063a457c2d7146100fc578063a9059cbb146100f7578063dd62ed3e146100f2578063e06174e4146100ed5763fbfa77cf036101525761058c565b61052f565b610513565b6104d4565b6104b8565b61049f565b610484565b61045d565b610429565b610411565b6103e5565b6103c7565b610386565b61032b565b6102fc565b6102e0565b610284565b610256565b6101c6565b600091031261015257565b600080fd5b60005b83811061016a5750506000910152565b818101518382015260200161015a565b61019b6101a46020936101ae9361018f815190565b80835293849260200190565b95869101610157565b601f01601f191690565b0190565b60208082526101c39291019061017a565b90565b34610152576101d6366004610147565b6101ed6101e16106dc565b604051918291826101b2565b0390f35b6001600160a01b031690565b610206816101f1565b0361015257565b9050359061021a826101fd565b565b80610206565b9050359061021a8261021c565b9190604083820312610152576101c390610249818561020d565b93602001610222565b9052565b34610152576101ed61027261026c36600461022f565b90611046565b60405191829182901515815260200190565b3461015257610294366004610147565b6101ed61029f61071e565b6040515b9182918290815260200190565b9091606082840312610152576101c36102c9848461020d565b936102d7816020860161020d565b93604001610222565b34610152576101ed6102726102f63660046102b0565b91610e54565b346101525761030c366004610147565b6101ed610317610703565b6040519182918260ff909116815260200190565b34610152576101ed61027261034136600461022f565b90611079565b6101c3906101f1906001600160a01b031682565b6101c390610347565b6101c39061035b565b61025290610364565b60208101929161021a919061036d565b3461015257610396366004610147565b6101ed7f00000000000000000000000000000000000000000000000000000000000000005b60405191829182610376565b34610152576103e06103da36600461022f565b906113e3565b604051005b34610152576103f5366004610147565b6103e06113a5565b90602082820312610152576101c39161020d565b34610152576103e06104243660046103fd565b6117f0565b34610152576101ed61029f61043f3660046103fd565b610740565b610252906101f1565b60208101929161021a9190610444565b346101525761046d366004610147565b6101ed6104786107a9565b6040519182918261044d565b3461015257610494366004610147565b6101ed6101e16106e6565b34610152576103e06104b236600461022f565b906114b6565b34610152576101ed6102726104ce36600461022f565b906110e2565b34610152576101ed6102726104ea36600461022f565b90610b76565b9190604083820312610152576101c39061050a818561020d565b9360200161020d565b34610152576101ed61029f6105293660046104f0565b9061075c565b346101525761053f366004610147565b6101ed7f00000000000000000000000000000000000000000000000000000000000000006103bb565b6101c3916008021c6101f1565b906101c39154610568565b6101c360006006610575565b346101525761059c366004610147565b6101ed610478610580565b634e487b7160e01b600052602260045260246000fd5b90600160028304921680156105dd575b60208310146105d857565b6105a7565b91607f16916105cd565b805460009392916106046105fa836105bd565b8085529360200190565b9160018116908115610656575060011461061d57505050565b6106309192939450600052602060002090565b916000925b8184106106425750500190565b805484840152602090930192600101610635565b92949550505060ff1916825215156020020190565b906101c3916105e7565b634e487b7160e01b600052604160045260246000fd5b90601f01601f1916810190811067ffffffffffffffff8211176106ad57604052565b610675565b9061021a6106cc926106c360405190565b9384809261066b565b038361068b565b6101c3906106b2565b6101c360036106d3565b6101c360046106d3565b6106fd6101c36101c39290565b60ff1690565b6101c360126106f0565b6101c39081565b6101c3905461070d565b6101c36002610714565b9061073290610364565b600052602052604060002090565b6107576101c39161074f600090565b506000610728565b610714565b6101c3916107776107579261076f600090565b506001610728565b610728565b9050519061021a826101fd565b90602082820312610152576101c39161077c565b6040513d6000823e3d90fd5b6107ef60206107d77f0000000000000000000000000000000000000000000000000000000000000000610364565b63c1d6ba69906107e660405190565b93849260e01b90565b825260049082905afa9081156108325760009161080a575090565b6101c3915060203d811161082b575b610823818361068b565b810190610789565b503d610819565b61079d565b9061084a9291610845610c07565b61090c565b9061021a610c39565b6101f16101c36101c39290565b6101c390610853565b9050519061021a8261021c565b6002111561015257565b9050519061021a82610876565b608081830312610152576108a18282610869565b926101c36108b28460208501610869565b936108c08160408601610869565b93606001610880565b6101c36101c36101c39290565b90602082820312610152576101c391610869565b91602061021a92949361090560408201966000830190610444565b0190610444565b906109179291610b6b565b9061095560206109467f0000000000000000000000000000000000000000000000000000000000000000610364565b6349d3d5e1906107e660405190565b825260049082905afa90811561083257600091610b4d575b5060009061098261097d83610860565b6101f1565b61098b826101f1565b03610994575050565b6109a06109a591610364565b610364565b63dde798a46109b330610364565b906109c76109c060405190565b9160e01b90565b8152608081806109da856004830161044d565b0381865afa8015610832576000918291610b1a575b50610a006109fc866108c9565b9190565b119081610b05575b50610a1257505050565b610a5f9163954fa5ee936020610a477f0000000000000000000000000000000000000000000000000000000000000000610364565b6361d027b390610a5660405190565b96879260e01b90565b825260049082905afa93841561083257600094610adf575b50610a999060209495610aa4610a8c60405190565b9788968795869460e01b90565b8452600484016108ea565b03925af1801561083257610ab55750565b610ad59060203d8111610ad8575b610acd818361068b565b8101906108d6565b50565b503d610ac3565b6020945090610afd610a9992863d811161082b57610823818361068b565b945090610a77565b9050610b136109fc856108c9565b1138610a08565b9050610b3d915060803d8111610b46575b610b35818361068b565b81019061088d565b509190916109ef565b503d610b2b565b610b65915060203d811161082b57610823818361068b565b3861096d565b506101c39190610c44565b6101c391906000610837565b6101c360026108c9565b15610b9357565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b0390fd5b90600019905b9181191691161790565b90610bfc6101c3610c03926108c9565b8254610bdc565b9055565b61021a610c146005610714565b610c28610c1f610b82565b91821415610b8c565b6005610bec565b6101c360016108c9565b61021a610c28610c2f565b610c54919033610d66565b610d66565b600190565b15610c6057565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b15610cba57565b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b15610d1257565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b610df0610ddd836000610daa610d9a610d7e83610860565b61097d610d8a826101f1565b610d938a6101f1565b1415610c59565b610da3846101f1565b1415610cb3565b610777610dce88610dbe6107578986610728565b610dca82821015610d0b565b0390565b610dd88784610728565b610bec565b610dea856101ae83610714565b90610bec565b610e30610e26610e207fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef93610364565b93610364565b936102a360405190565b0390a3565b9061084a939291610e44610c07565b50610917926101c3929091610e61565b6101c39291906000610e35565b610c54929190610c4f833383610ebe565b15610e7957565b60405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b90610ec9818361075c565b6000198103610ed9575b50505050565b610ef393610eed91610dca82821015610e72565b91610fab565b38808080610ed3565b15610f0357565b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b15610f5b57565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b610fe7610fd7610fbb6000610860565b61097d610fc7826101f1565b610fd0866101f1565b1415610efc565b610fe0846101f1565b1415610f54565b610ffa83610dd884610777856001610728565b610e30610e26610e207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92593610364565b9061084a9291611038610c07565b50610917916101c391611052565b6101c39190600061102a565b610c54919033610fab565b9061084a929161106b610c07565b50610917916101c3916110ad565b6101c39190600061105d565b634e487b7160e01b600052601160045260246000fd5b919082018092116110a857565b611085565b610c549190610eed33926110c1838561075c565b61109b565b9061084a92916110d4610c07565b50610917916101c391611148565b6101c3919060006110c6565b156110f557565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b610c549190610eed339261115c838561075c565b610dca828210156110ee565b611170610c07565b611178611211565b61021a610c39565b6101c3906101f1565b6101c39054611180565b1561119a57565b60405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d081b9bdd081cd95d609a1b6044820152606490fd5b156111d657565b60405162461bcd60e51b815260206004820152601360248201527210d85b1b195c881a5cc81b9bdd0815985d5b1d606a1b6044820152606490fd5b61123b61121e6006611189565b61123461122e61097d6000610860565b916101f1565b1415611193565b61125a6112486006611189565b61125461122e336101f1565b146111cf565b61021a6112867f0000000000000000000000000000000000000000000000000000000000000000610364565b6349d3d5e161129460405190565b9161129f8260e01b90565b8352602083600481845afa92831561083257600093611385575b506000926112cc61122e61097d86610860565b036112d657505050565b6112e6916020916107e660405190565b825260049082905afa9081156108325761130c916109a091600091611367575b50610364565b634e606c4790803b15610152576113289183916107e660405190565b8252600490829084905af1801561083257611341575050565b8161021a92903d10611360575b611358818361068b565b810190610147565b503d61134e565b61137f915060203d811161082b57610823818361068b565b38611306565b61139e91935060203d811161082b57610823818361068b565b91386112b9565b61021a611168565b90611178916113ba610c07565b9061021a916113cc61121e6006611189565b6113d96112486006611189565b9061021a91611439565b9061021a916113ad565b156113f457565b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b6000610df0610ddd8361144b84610860565b93611468611458866101f1565b611461846101f1565b14156113ed565b610777611479886110c16002610714565b6002610bec565b906111789161148d610c07565b9061021a9161149f61121e6006611189565b6114ac6112486006611189565b9061021a9161156d565b9061021a91611480565b156114c757565b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b1561151d57565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b6000906115c061157c83610860565b92611599611589856101f1565b611592856101f1565b14156114c0565b610dd8836115ba876115ae6107578487610728565b610dca82821015611516565b92610728565b610df061147984610dca6002610714565b611178906115dd610c07565b611632565b156115e957565b60405162461bcd60e51b815280610bd8600482016020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b339061166260206107d77f0000000000000000000000000000000000000000000000000000000000000000610364565b825260049082905afa9283156108325761168e61122e61021a9561169494600091611699575b506101f1565b146115e2565b611761565b6116b1915060203d811161082b57610823818361068b565b38611688565b156116be57565b60405162461bcd60e51b815260206004820152601160248201527015985d5b1d08185b1c9958591e481cd95d607a1b6044820152606490fd5b156116fe57565b60405162461bcd60e51b815260206004820152601560248201527416995c9bc81859191c995cdcc819195d1958dd1959605a1b6044820152606490fd5b906001600160a01b0390610be2565b9061175a6101c3610c0392610364565b825461173b565b6117ac906117a56117956117756006611189565b61097d6117826000610860565b9161178f61122e846101f1565b146116b7565b61179e836101f1565b14156116f7565b600661174a565b6117b66006611189565b6117e07fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f3091610364565b906117ea60405190565b600090a2565b61021a906115d156fea26469706673582212205b9d5a21af9e75761ae9428dc20e933cc2086d8f89e33459a3a69d3fb044c70764736f6c6343000812003300000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b0000000000000000000000007449dc43a03e70050c4acd3f8a6acab9a7f87933000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000a57616e642055534442780000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055553444278000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436101561001257600080fd5b60003560e01c806306fdde0314610142578063095ea7b31461013d57806318160ddd1461013857806323b872dd14610133578063313ce5671461012e57806339509351146101295780633fef6dc11461012457806340c10f191461011f5780634e29a3331461011a5780636817031b1461011557806370a08231146101105780638da5cb5b1461010b57806395d89b41146101065780639dc29fac14610101578063a457c2d7146100fc578063a9059cbb146100f7578063dd62ed3e146100f2578063e06174e4146100ed5763fbfa77cf036101525761058c565b61052f565b610513565b6104d4565b6104b8565b61049f565b610484565b61045d565b610429565b610411565b6103e5565b6103c7565b610386565b61032b565b6102fc565b6102e0565b610284565b610256565b6101c6565b600091031261015257565b600080fd5b60005b83811061016a5750506000910152565b818101518382015260200161015a565b61019b6101a46020936101ae9361018f815190565b80835293849260200190565b95869101610157565b601f01601f191690565b0190565b60208082526101c39291019061017a565b90565b34610152576101d6366004610147565b6101ed6101e16106dc565b604051918291826101b2565b0390f35b6001600160a01b031690565b610206816101f1565b0361015257565b9050359061021a826101fd565b565b80610206565b9050359061021a8261021c565b9190604083820312610152576101c390610249818561020d565b93602001610222565b9052565b34610152576101ed61027261026c36600461022f565b90611046565b60405191829182901515815260200190565b3461015257610294366004610147565b6101ed61029f61071e565b6040515b9182918290815260200190565b9091606082840312610152576101c36102c9848461020d565b936102d7816020860161020d565b93604001610222565b34610152576101ed6102726102f63660046102b0565b91610e54565b346101525761030c366004610147565b6101ed610317610703565b6040519182918260ff909116815260200190565b34610152576101ed61027261034136600461022f565b90611079565b6101c3906101f1906001600160a01b031682565b6101c390610347565b6101c39061035b565b61025290610364565b60208101929161021a919061036d565b3461015257610396366004610147565b6101ed7f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b5b60405191829182610376565b34610152576103e06103da36600461022f565b906113e3565b604051005b34610152576103f5366004610147565b6103e06113a5565b90602082820312610152576101c39161020d565b34610152576103e06104243660046103fd565b6117f0565b34610152576101ed61029f61043f3660046103fd565b610740565b610252906101f1565b60208101929161021a9190610444565b346101525761046d366004610147565b6101ed6104786107a9565b6040519182918261044d565b3461015257610494366004610147565b6101ed6101e16106e6565b34610152576103e06104b236600461022f565b906114b6565b34610152576101ed6102726104ce36600461022f565b906110e2565b34610152576101ed6102726104ea36600461022f565b90610b76565b9190604083820312610152576101c39061050a818561020d565b9360200161020d565b34610152576101ed61029f6105293660046104f0565b9061075c565b346101525761053f366004610147565b6101ed7f0000000000000000000000007449dc43a03e70050c4acd3f8a6acab9a7f879336103bb565b6101c3916008021c6101f1565b906101c39154610568565b6101c360006006610575565b346101525761059c366004610147565b6101ed610478610580565b634e487b7160e01b600052602260045260246000fd5b90600160028304921680156105dd575b60208310146105d857565b6105a7565b91607f16916105cd565b805460009392916106046105fa836105bd565b8085529360200190565b9160018116908115610656575060011461061d57505050565b6106309192939450600052602060002090565b916000925b8184106106425750500190565b805484840152602090930192600101610635565b92949550505060ff1916825215156020020190565b906101c3916105e7565b634e487b7160e01b600052604160045260246000fd5b90601f01601f1916810190811067ffffffffffffffff8211176106ad57604052565b610675565b9061021a6106cc926106c360405190565b9384809261066b565b038361068b565b6101c3906106b2565b6101c360036106d3565b6101c360046106d3565b6106fd6101c36101c39290565b60ff1690565b6101c360126106f0565b6101c39081565b6101c3905461070d565b6101c36002610714565b9061073290610364565b600052602052604060002090565b6107576101c39161074f600090565b506000610728565b610714565b6101c3916107776107579261076f600090565b506001610728565b610728565b9050519061021a826101fd565b90602082820312610152576101c39161077c565b6040513d6000823e3d90fd5b6107ef60206107d77f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b610364565b63c1d6ba69906107e660405190565b93849260e01b90565b825260049082905afa9081156108325760009161080a575090565b6101c3915060203d811161082b575b610823818361068b565b810190610789565b503d610819565b61079d565b9061084a9291610845610c07565b61090c565b9061021a610c39565b6101f16101c36101c39290565b6101c390610853565b9050519061021a8261021c565b6002111561015257565b9050519061021a82610876565b608081830312610152576108a18282610869565b926101c36108b28460208501610869565b936108c08160408601610869565b93606001610880565b6101c36101c36101c39290565b90602082820312610152576101c391610869565b91602061021a92949361090560408201966000830190610444565b0190610444565b906109179291610b6b565b9061095560206109467f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b610364565b6349d3d5e1906107e660405190565b825260049082905afa90811561083257600091610b4d575b5060009061098261097d83610860565b6101f1565b61098b826101f1565b03610994575050565b6109a06109a591610364565b610364565b63dde798a46109b330610364565b906109c76109c060405190565b9160e01b90565b8152608081806109da856004830161044d565b0381865afa8015610832576000918291610b1a575b50610a006109fc866108c9565b9190565b119081610b05575b50610a1257505050565b610a5f9163954fa5ee936020610a477f0000000000000000000000007449dc43a03e70050c4acd3f8a6acab9a7f87933610364565b6361d027b390610a5660405190565b96879260e01b90565b825260049082905afa93841561083257600094610adf575b50610a999060209495610aa4610a8c60405190565b9788968795869460e01b90565b8452600484016108ea565b03925af1801561083257610ab55750565b610ad59060203d8111610ad8575b610acd818361068b565b8101906108d6565b50565b503d610ac3565b6020945090610afd610a9992863d811161082b57610823818361068b565b945090610a77565b9050610b136109fc856108c9565b1138610a08565b9050610b3d915060803d8111610b46575b610b35818361068b565b81019061088d565b509190916109ef565b503d610b2b565b610b65915060203d811161082b57610823818361068b565b3861096d565b506101c39190610c44565b6101c391906000610837565b6101c360026108c9565b15610b9357565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b0390fd5b90600019905b9181191691161790565b90610bfc6101c3610c03926108c9565b8254610bdc565b9055565b61021a610c146005610714565b610c28610c1f610b82565b91821415610b8c565b6005610bec565b6101c360016108c9565b61021a610c28610c2f565b610c54919033610d66565b610d66565b600190565b15610c6057565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b15610cba57565b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b15610d1257565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b610df0610ddd836000610daa610d9a610d7e83610860565b61097d610d8a826101f1565b610d938a6101f1565b1415610c59565b610da3846101f1565b1415610cb3565b610777610dce88610dbe6107578986610728565b610dca82821015610d0b565b0390565b610dd88784610728565b610bec565b610dea856101ae83610714565b90610bec565b610e30610e26610e207fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef93610364565b93610364565b936102a360405190565b0390a3565b9061084a939291610e44610c07565b50610917926101c3929091610e61565b6101c39291906000610e35565b610c54929190610c4f833383610ebe565b15610e7957565b60405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606490fd5b90610ec9818361075c565b6000198103610ed9575b50505050565b610ef393610eed91610dca82821015610e72565b91610fab565b38808080610ed3565b15610f0357565b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b15610f5b57565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b610fe7610fd7610fbb6000610860565b61097d610fc7826101f1565b610fd0866101f1565b1415610efc565b610fe0846101f1565b1415610f54565b610ffa83610dd884610777856001610728565b610e30610e26610e207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92593610364565b9061084a9291611038610c07565b50610917916101c391611052565b6101c39190600061102a565b610c54919033610fab565b9061084a929161106b610c07565b50610917916101c3916110ad565b6101c39190600061105d565b634e487b7160e01b600052601160045260246000fd5b919082018092116110a857565b611085565b610c549190610eed33926110c1838561075c565b61109b565b9061084a92916110d4610c07565b50610917916101c391611148565b6101c3919060006110c6565b156110f557565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608490fd5b610c549190610eed339261115c838561075c565b610dca828210156110ee565b611170610c07565b611178611211565b61021a610c39565b6101c3906101f1565b6101c39054611180565b1561119a57565b60405162461bcd60e51b815260206004820152600d60248201526c15985d5b1d081b9bdd081cd95d609a1b6044820152606490fd5b156111d657565b60405162461bcd60e51b815260206004820152601360248201527210d85b1b195c881a5cc81b9bdd0815985d5b1d606a1b6044820152606490fd5b61123b61121e6006611189565b61123461122e61097d6000610860565b916101f1565b1415611193565b61125a6112486006611189565b61125461122e336101f1565b146111cf565b61021a6112867f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b610364565b6349d3d5e161129460405190565b9161129f8260e01b90565b8352602083600481845afa92831561083257600093611385575b506000926112cc61122e61097d86610860565b036112d657505050565b6112e6916020916107e660405190565b825260049082905afa9081156108325761130c916109a091600091611367575b50610364565b634e606c4790803b15610152576113289183916107e660405190565b8252600490829084905af1801561083257611341575050565b8161021a92903d10611360575b611358818361068b565b810190610147565b503d61134e565b61137f915060203d811161082b57610823818361068b565b38611306565b61139e91935060203d811161082b57610823818361068b565b91386112b9565b61021a611168565b90611178916113ba610c07565b9061021a916113cc61121e6006611189565b6113d96112486006611189565b9061021a91611439565b9061021a916113ad565b156113f457565b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b6000610df0610ddd8361144b84610860565b93611468611458866101f1565b611461846101f1565b14156113ed565b610777611479886110c16002610714565b6002610bec565b906111789161148d610c07565b9061021a9161149f61121e6006611189565b6114ac6112486006611189565b9061021a9161156d565b9061021a91611480565b156114c757565b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b1561151d57565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b6000906115c061157c83610860565b92611599611589856101f1565b611592856101f1565b14156114c0565b610dd8836115ba876115ae6107578487610728565b610dca82821015611516565b92610728565b610df061147984610dca6002610714565b611178906115dd610c07565b611632565b156115e957565b60405162461bcd60e51b815280610bd8600482016020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b339061166260206107d77f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b610364565b825260049082905afa9283156108325761168e61122e61021a9561169494600091611699575b506101f1565b146115e2565b611761565b6116b1915060203d811161082b57610823818361068b565b38611688565b156116be57565b60405162461bcd60e51b815260206004820152601160248201527015985d5b1d08185b1c9958591e481cd95d607a1b6044820152606490fd5b156116fe57565b60405162461bcd60e51b815260206004820152601560248201527416995c9bc81859191c995cdcc819195d1958dd1959605a1b6044820152606490fd5b906001600160a01b0390610be2565b9061175a6101c3610c0392610364565b825461173b565b6117ac906117a56117956117756006611189565b61097d6117826000610860565b9161178f61122e846101f1565b146116b7565b61179e836101f1565b14156116f7565b600661174a565b6117b66006611189565b6117e07fd459c7242e23d490831b5676a611c4342d899d28f342d89ae80793e56a930f3091610364565b906117ea60405190565b600090a2565b61021a906115d156fea26469706673582212205b9d5a21af9e75761ae9428dc20e933cc2086d8f89e33459a3a69d3fb044c70764736f6c63430008120033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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