Amoy Testnet

Contract

0xD49682102648bBA424283879121ffF6a4ffe8705

Overview

POL Balance

Polygon PoS Chain Amoy LogoPolygon PoS Chain Amoy LogoPolygon PoS Chain Amoy Logo0 POL

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Deposit Tokens78307802024-06-03 18:26:51254 days ago1717439211IN
0xD4968210...a4ffe8705
0 POL0.000054822.35225001
Deposit Tokens77809092024-06-02 12:59:57256 days ago1717333197IN
0xD4968210...a4ffe8705
0 POL0.000035011.50000001
Deposit Tokens75213732024-05-26 18:46:21262 days ago1716749181IN
0xD4968210...a4ffe8705
0 POL0.000035011.50000001
Deposit Tokens75213022024-05-26 18:43:51262 days ago1716749031IN
0xD4968210...a4ffe8705
0 POL0.000035031.50000001
Whitelist Token71298392024-05-16 21:26:26272 days ago1715894786IN
0xD4968210...a4ffe8705
0 POL0.000073611.50000001

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BEscrowMeta

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 8 : BEscrowMeta.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@opengsn/contracts/src/BaseRelayRecipient.sol";

contract BEscrowMeta is BaseRelayRecipient, Ownable {
  // Mappings
  mapping(bytes32 => address) public whitelistedTokens;
  // accountBalances will be used by advertisers where the unused campaignBalance will be transferred back here after campaign is ended
  mapping(address => mapping(bytes32 => uint256)) public accountBalances;
  // earningBalances will be used by publishers
  mapping(address => mapping(bytes32 => uint256)) public earningBalances;
  // amount payed for campaign which will be locked until the campaign is done
  mapping(address => mapping(bytes32 => uint256)) public campaignBalances;

  // Events
  event DepositToken(address indexed _from, bytes32 _symbol, uint256 _value);
  event WithdrawToken(address indexed _to, bytes32 _symbol, uint256 _value, AccountType _accountType);
  event MoveTokenToAdvertiser(address indexed _to, bytes32 _symbol, uint256 _value);
  event SettleBalanceToPublisher(address indexed _from, address indexed _to, bytes32 _symbol, uint256 _value);

  constructor(address _trustedForwarder) {
    _setTrustedForwarder(_trustedForwarder);
  }

  string public override versionRecipient = "2.2.0";

  function _msgSender() internal view override(Context, BaseRelayRecipient)
      returns (address sender) {
      sender = BaseRelayRecipient._msgSender();
  }

  function _msgData() internal view override(Context, BaseRelayRecipient)
      returns (bytes calldata) {
      return BaseRelayRecipient._msgData();
  }

  // ACCOUNT - advertiser, EARNING - publisher, CAMPAIGN - campaign balance
  enum AccountType {
    WITHDRAWABLE,
    EARNING,
    CAMPAIGN
  }

  struct SettleAmount {
    uint256 amount;
    bytes32 symbol;
    address advertiser;
    address publisher;
  }

  /**
    * OPTIONAL
    * You should add one setTrustedForwarder(address _trustedForwarder)
    * method with onlyOwner modifier so you can change the trusted
    * forwarder address to switch to some other meta transaction protocol
    * if any better protocol comes tomorrow or current one is upgraded.
    */
  function setTrustForwarder(address _trustedForwarder) public onlyOwner {
      _setTrustedForwarder(_trustedForwarder);
  }

  /**
    * Override this function.
    * This version is to keep track of BaseRelayRecipient you are using
    * in your contract.
    */
  /* function versionRecipient() external pure override returns (string memory) {
      return "1";
  } */

  function whitelistToken(bytes32 symbol, address tokenAddress) external onlyOwner {
    whitelistedTokens[symbol] = tokenAddress;
  }

  function getWhitelistedTokenAddresses(bytes32 symbol) view external returns(address) {
    return whitelistedTokens[symbol];
  }

  function getAccountBalance(address walletaddress, bytes32 symbol, AccountType _accountType) view external returns(uint256) {
    if (_accountType == AccountType.WITHDRAWABLE) {
      return accountBalances[walletaddress][symbol];
    } else if (_accountType == AccountType.EARNING) {
      return earningBalances[walletaddress][symbol];
    } else {
      // uint(2) CAMPAIGN
      return campaignBalances[walletaddress][symbol];
    }
  }

  function depositTokens(uint256 amount, bytes32 symbol) external {
    require(whitelistedTokens[symbol] != address(0x0), 'Token is not whitelisted');
    // uint256 allowance = whitelistedTokens[symbol].allowance(_msgSender, address(this));
    ERC20(whitelistedTokens[symbol]).transferFrom(_msgSender(), address(this), amount);
    campaignBalances[_msgSender()][symbol] += amount;
    emit DepositToken(_msgSender(), symbol, amount);
  }

  function withdrawTokens(uint256 amount, bytes32 symbol, AccountType _accountType) external {
    if (_accountType == AccountType.EARNING) {
      require(amount >= uint256(100), 'Required 100 tokens atleast to withdraw');
      require(earningBalances[_msgSender()][symbol] >= amount, 'Insufficent earningBalance in escrow');

      earningBalances[_msgSender()][symbol] -= amount;
      ERC20(whitelistedTokens[symbol]).transfer(_msgSender(), amount);
      emit WithdrawToken(_msgSender(), symbol, amount, AccountType.EARNING);
    } else if (_accountType == AccountType.WITHDRAWABLE) {
      require(accountBalances[_msgSender()][symbol] >= amount, 'Insufficent accountBalance in escrow');

      accountBalances[_msgSender()][symbol] -= amount;
      ERC20(whitelistedTokens[symbol]).transfer(_msgSender(), amount);
      emit WithdrawToken(_msgSender(), symbol, amount, AccountType.WITHDRAWABLE);
    } else {
      revert("Invalid AccountType");
    }
  }

  function moveToWithdrawableAccount(address advertiser, uint256 amount, bytes32 symbol) external onlyOwner {
    require(campaignBalances[advertiser][symbol] >= amount, 'Insufficent funds in campaignBalances');
    campaignBalances[advertiser][symbol] -= amount;
    accountBalances[advertiser][symbol] += amount;
    emit MoveTokenToAdvertiser(advertiser, symbol, amount);
  }

  function settleBalances(SettleAmount[] memory _settleArray) external onlyOwner {
    for(uint i=0; i<_settleArray.length; i++) {
      if (campaignBalances[_settleArray[i].advertiser][_settleArray[i].symbol] >= _settleArray[i].amount) {
        campaignBalances[_settleArray[i].advertiser][_settleArray[i].symbol] -= _settleArray[i].amount;
        earningBalances[_settleArray[i].publisher][_settleArray[i].symbol] += _settleArray[i].amount;
        emit SettleBalanceToPublisher(_settleArray[i].advertiser, _settleArray[i].publisher, _settleArray[i].symbol, _settleArray[i].amount);
      }
    }
  }
}

File 2 of 8 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `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;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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);
    }
}

File 4 of 8 : BaseRelayRecipient.sol
// SPDX-License-Identifier: MIT
// solhint-disable no-inline-assembly
pragma solidity >=0.6.9;

import "./interfaces/IRelayRecipient.sol";

/**
 * A base contract to be inherited by any contract that want to receive relayed transactions
 * A subclass must use "_msgSender()" instead of "msg.sender"
 */
abstract contract BaseRelayRecipient is IRelayRecipient {

    /*
     * Forwarder singleton we accept calls from
     */
    address private _trustedForwarder;

    function trustedForwarder() public virtual view returns (address){
        return _trustedForwarder;
    }

    function _setTrustedForwarder(address _forwarder) internal {
        _trustedForwarder = _forwarder;
    }

    function isTrustedForwarder(address forwarder) public virtual override view returns(bool) {
        return forwarder == _trustedForwarder;
    }

    /**
     * return the sender of this call.
     * if the call came through our trusted forwarder, return the original sender.
     * otherwise, return `msg.sender`.
     * should be used in the contract anywhere instead of msg.sender
     */
    function _msgSender() internal override virtual view returns (address ret) {
        if (msg.data.length >= 20 && isTrustedForwarder(msg.sender)) {
            // At this point we know that the sender is a trusted forwarder,
            // so we trust that the last bytes of msg.data are the verified sender address.
            // extract sender address from the end of msg.data
            assembly {
                ret := shr(96,calldataload(sub(calldatasize(),20)))
            }
        } else {
            ret = msg.sender;
        }
    }

    /**
     * return the msg.data of this call.
     * if the call came through our trusted forwarder, then the real sender was appended as the last 20 bytes
     * of the msg.data - so this method will strip those 20 bytes off.
     * otherwise (if the call was made directly and not through the forwarder), return `msg.data`
     * should be used in the contract instead of msg.data, where this difference matters.
     */
    function _msgData() internal override virtual view returns (bytes calldata ret) {
        if (msg.data.length >= 20 && isTrustedForwarder(msg.sender)) {
            return msg.data[0:msg.data.length-20];
        } else {
            return msg.data;
        }
    }
}

File 5 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 6 of 8 : IERC20Metadata.sol
// 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);
}

File 7 of 8 : Context.sol
// 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;
    }
}

File 8 of 8 : IRelayRecipient.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0;

/**
 * a contract must implement this interface in order to support relayed transaction.
 * It is better to inherit the BaseRelayRecipient as its implementation.
 */
abstract contract IRelayRecipient {

    /**
     * return if the forwarder is trusted to forward relayed transactions to us.
     * the forwarder is required to verify the sender's signature, and verify
     * the call is not a replay.
     */
    function isTrustedForwarder(address forwarder) public virtual view returns(bool);

    /**
     * return the sender of this call.
     * if the call came through our trusted forwarder, then the real sender is appended as the last 20 bytes
     * of the msg.data.
     * otherwise, return `msg.sender`
     * should be used in the contract anywhere instead of msg.sender
     */
    function _msgSender() internal virtual view returns (address);

    /**
     * return the msg.data of this call.
     * if the call came through our trusted forwarder, then the real sender was appended as the last 20 bytes
     * of the msg.data - so this method will strip those 20 bytes off.
     * otherwise (if the call was made directly and not through the forwarder), return `msg.data`
     * should be used in the contract instead of msg.data, where this difference matters.
     */
    function _msgData() internal virtual view returns (bytes calldata);

    function versionRecipient() external virtual view returns (string memory);
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_trustedForwarder","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"bytes32","name":"_symbol","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"DepositToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"bytes32","name":"_symbol","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"MoveTokenToAdvertiser","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":"bytes32","name":"_symbol","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"SettleBalanceToPublisher","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"bytes32","name":"_symbol","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"},{"indexed":false,"internalType":"enum BEscrowMeta.AccountType","name":"_accountType","type":"uint8"}],"name":"WithdrawToken","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"accountBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"campaignBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"symbol","type":"bytes32"}],"name":"depositTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"earningBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"walletaddress","type":"address"},{"internalType":"bytes32","name":"symbol","type":"bytes32"},{"internalType":"enum BEscrowMeta.AccountType","name":"_accountType","type":"uint8"}],"name":"getAccountBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"symbol","type":"bytes32"}],"name":"getWhitelistedTokenAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"advertiser","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"symbol","type":"bytes32"}],"name":"moveToWithdrawableAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_trustedForwarder","type":"address"}],"name":"setTrustForwarder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"symbol","type":"bytes32"},{"internalType":"address","name":"advertiser","type":"address"},{"internalType":"address","name":"publisher","type":"address"}],"internalType":"struct BEscrowMeta.SettleAmount[]","name":"_settleArray","type":"tuple[]"}],"name":"settleBalances","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"trustedForwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"versionRecipient","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"symbol","type":"bytes32"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"whitelistToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"whitelistedTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"symbol","type":"bytes32"},{"internalType":"enum BEscrowMeta.AccountType","name":"_accountType","type":"uint8"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526040518060400160405280600581526020017f322e322e3000000000000000000000000000000000000000000000000000000081525060069080519060200190620000519291906200027d565b503480156200005f57600080fd5b506040516200284e3803806200284e833981810160405281019062000085919062000397565b620000a562000099620000bd60201b60201c565b620000d960201b60201c565b620000b6816200019f60201b60201c565b506200042d565b6000620000d4620001e260201b620014581760201c565b905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000601460003690501015801562000207575062000206336200022460201b60201c565b5b156200021d57601436033560601c905062000221565b3390505b90565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b8280546200028b90620003f8565b90600052602060002090601f016020900481019282620002af5760008555620002fb565b82601f10620002ca57805160ff1916838001178555620002fb565b82800160010185558215620002fb579182015b82811115620002fa578251825591602001919060010190620002dd565b5b5090506200030a91906200030e565b5090565b5b80821115620003295760008160009055506001016200030f565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200035f8262000332565b9050919050565b620003718162000352565b81146200037d57600080fd5b50565b600081519050620003918162000366565b92915050565b600060208284031215620003b057620003af6200032d565b5b6000620003c08482850162000380565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200041157607f821691505b602082108103620004275762000426620003c9565b5b50919050565b612411806200043d6000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063af6941dc116100a2578063ddf0b3da11610071578063ddf0b3da146102df578063e0aff6a0146102fb578063e64fe36614610317578063f2fde38b14610347578063f9d3e1141461036357610116565b8063af6941dc14610247578063bfd7d91514610277578063d15b223e14610293578063d15b71ea146102af57610116565b806364fb3234116100e957806364fb3234146101b5578063715018a6146101d15780637da0a877146101db5780638da5cb5b146101f9578063aa3d9a151461021757610116565b8063069fdaae1461011b5780633586932b14610137578063486ff0cd14610167578063572b6c0514610185575b600080fd5b610135600480360381019061013091906116cd565b610393565b005b610151600480360381019061014c919061170d565b6103f1565b60405161015e9190611749565b60405180910390f35b61016f61042e565b60405161017c91906117fd565b60405180910390f35b61019f600480360381019061019a919061181f565b6104bc565b6040516101ac9190611867565b60405180910390f35b6101cf60048036038101906101ca9190611a7d565b610515565b005b6101d9610853565b005b6101e3610867565b6040516101f09190611749565b60405180910390f35b610201610890565b60405161020e9190611749565b60405180910390f35b610231600480360381019061022c919061170d565b6108ba565b60405161023e9190611749565b60405180910390f35b610261600480360381019061025c9190611aeb565b6108ed565b60405161026e9190611b4d565b60405180910390f35b610291600480360381019061028c9190611b68565b610a51565b005b6102ad60048036038101906102a89190611bbb565b610c0f565b005b6102c960048036038101906102c49190611bfb565b610e35565b6040516102d69190611b4d565b60405180910390f35b6102f960048036038101906102f4919061181f565b610e5a565b005b61031560048036038101906103109190611c3b565b610e6e565b005b610331600480360381019061032c9190611bfb565b61138b565b60405161033e9190611b4d565b60405180910390f35b610361600480360381019061035c919061181f565b6113b0565b005b61037d60048036038101906103789190611bfb565b611433565b60405161038a9190611b4d565b60405180910390f35b61039b61148f565b806002600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6006805461043b90611cbd565b80601f016020809104026020016040519081016040528092919081815260200182805461046790611cbd565b80156104b45780601f10610489576101008083540402835291602001916104b4565b820191906000526020600020905b81548152906001019060200180831161049757829003601f168201915b505050505081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b61051d61148f565b60005b815181101561084f5781818151811061053c5761053b611cee565b5b6020026020010151600001516005600084848151811061055f5761055e611cee565b5b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008484815181106105ba576105b9611cee565b5b6020026020010151602001518152602001908152602001600020541061083c578181815181106105ed576105ec611cee565b5b602002602001015160000151600560008484815181106106105761060f611cee565b5b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084848151811061066b5761066a611cee565b5b602002602001015160200151815260200190815260200160002060008282546106949190611d4c565b925050819055508181815181106106ae576106ad611cee565b5b602002602001015160000151600460008484815181106106d1576106d0611cee565b5b60200260200101516060015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084848151811061072c5761072b611cee565b5b602002602001015160200151815260200190815260200160002060008282546107559190611d80565b9250508190555081818151811061076f5761076e611cee565b5b60200260200101516060015173ffffffffffffffffffffffffffffffffffffffff168282815181106107a4576107a3611cee565b5b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff167f5d0f2f8e946970cef27d6a328d0009c47b4136c02dda2803873fbc5247bf33628484815181106107fa576107f9611cee565b5b60200260200101516020015185858151811061081957610818611cee565b5b602002602001015160000151604051610833929190611de5565b60405180910390a35b808061084790611e0e565b915050610520565b5050565b61085b61148f565b610865600061150d565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60026020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600281111561090257610901611e56565b5b82600281111561091557610914611e56565b5b0361097257600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020549050610a4a565b6001600281111561098657610985611e56565b5b82600281111561099957610998611e56565b5b036109f657600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020549050610a4a565b600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000205490505b9392505050565b610a5961148f565b81600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020541015610aec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae390611ef7565b60405180910390fd5b81600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000828254610b4c9190611d4c565b9250508190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000828254610bb39190611d80565b925050819055508273ffffffffffffffffffffffffffffffffffffffff167f1382a54c071e73f4ae16cc846468f2ffe2b07b93daf6a318201bc25877554dc88284604051610c02929190611de5565b60405180910390a2505050565b600073ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610cb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca890611f63565b60405180910390fd5b6002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd610d086115d3565b30856040518463ffffffff1660e01b8152600401610d2893929190611f83565b6020604051808303816000875af1158015610d47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6b9190611fe6565b508160056000610d796115d3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000828254610dd39190611d80565b92505081905550610de26115d3565b73ffffffffffffffffffffffffffffffffffffffff167f5743426a08abdcf1c4ba763fc583cc728f85ca731843fca7b716ae79eea3d3618284604051610e29929190611de5565b60405180910390a25050565b6004602052816000526040600020602052806000526040600020600091509150505481565b610e6261148f565b610e6b816115e2565b50565b60016002811115610e8257610e81611e56565b5b816002811115610e9557610e94611e56565b5b036110fe576064831015610ede576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed590612085565b60405180910390fd5b8260046000610eeb6115d3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020541015610f78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6f90612117565b60405180910390fd5b8260046000610f856115d3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000206000828254610fdf9190611d4c565b925050819055506002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61103d6115d3565b856040518363ffffffff1660e01b815260040161105b929190612137565b6020604051808303816000875af115801561107a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109e9190611fe6565b506110a76115d3565b73ffffffffffffffffffffffffffffffffffffffff167fab85d5c64afa94fd0bab97348037726b3a71c7b53453fe963be345296648b456838560016040516110f1939291906121a8565b60405180910390a2611386565b6000600281111561111257611111611e56565b5b81600281111561112557611124611e56565b5b0361134a5782600360006111376115d3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000205410156111c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bb90612251565b60405180910390fd5b82600360006111d16115d3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020600082825461122b9190611d4c565b925050819055506002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6112896115d3565b856040518363ffffffff1660e01b81526004016112a7929190612137565b6020604051808303816000875af11580156112c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ea9190611fe6565b506112f36115d3565b73ffffffffffffffffffffffffffffffffffffffff167fab85d5c64afa94fd0bab97348037726b3a71c7b53453fe963be345296648b4568385600060405161133d939291906121a8565b60405180910390a2611385565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137c906122bd565b60405180910390fd5b5b505050565b6003602052816000526040600020602052806000526040600020600091509150505481565b6113b861148f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611427576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141e9061234f565b60405180910390fd5b6114308161150d565b50565b6005602052816000526040600020602052806000526040600020600091509150505481565b600060146000369050101580156114745750611473336104bc565b5b1561148857601436033560601c905061148c565b3390505b90565b6114976115d3565b73ffffffffffffffffffffffffffffffffffffffff166114b5610890565b73ffffffffffffffffffffffffffffffffffffffff161461150b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611502906123bb565b60405180910390fd5b565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006115dd611458565b905090565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b61164c81611639565b811461165757600080fd5b50565b60008135905061166981611643565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061169a8261166f565b9050919050565b6116aa8161168f565b81146116b557600080fd5b50565b6000813590506116c7816116a1565b92915050565b600080604083850312156116e4576116e361162f565b5b60006116f28582860161165a565b9250506020611703858286016116b8565b9150509250929050565b6000602082840312156117235761172261162f565b5b60006117318482850161165a565b91505092915050565b6117438161168f565b82525050565b600060208201905061175e600083018461173a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561179e578082015181840152602081019050611783565b838111156117ad576000848401525b50505050565b6000601f19601f8301169050919050565b60006117cf82611764565b6117d9818561176f565b93506117e9818560208601611780565b6117f2816117b3565b840191505092915050565b6000602082019050818103600083015261181781846117c4565b905092915050565b6000602082840312156118355761183461162f565b5b6000611843848285016116b8565b91505092915050565b60008115159050919050565b6118618161184c565b82525050565b600060208201905061187c6000830184611858565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6118bf826117b3565b810181811067ffffffffffffffff821117156118de576118dd611887565b5b80604052505050565b60006118f1611625565b90506118fd82826118b6565b919050565b600067ffffffffffffffff82111561191d5761191c611887565b5b602082029050602081019050919050565b600080fd5b600080fd5b6000819050919050565b61194b81611938565b811461195657600080fd5b50565b60008135905061196881611942565b92915050565b60006080828403121561198457611983611933565b5b61198e60806118e7565b9050600061199e84828501611959565b60008301525060206119b28482850161165a565b60208301525060406119c6848285016116b8565b60408301525060606119da848285016116b8565b60608301525092915050565b60006119f96119f484611902565b6118e7565b90508083825260208201905060808402830185811115611a1c57611a1b61192e565b5b835b81811015611a455780611a31888261196e565b845260208401935050608081019050611a1e565b5050509392505050565b600082601f830112611a6457611a63611882565b5b8135611a748482602086016119e6565b91505092915050565b600060208284031215611a9357611a9261162f565b5b600082013567ffffffffffffffff811115611ab157611ab0611634565b5b611abd84828501611a4f565b91505092915050565b60038110611ad357600080fd5b50565b600081359050611ae581611ac6565b92915050565b600080600060608486031215611b0457611b0361162f565b5b6000611b12868287016116b8565b9350506020611b238682870161165a565b9250506040611b3486828701611ad6565b9150509250925092565b611b4781611938565b82525050565b6000602082019050611b626000830184611b3e565b92915050565b600080600060608486031215611b8157611b8061162f565b5b6000611b8f868287016116b8565b9350506020611ba086828701611959565b9250506040611bb18682870161165a565b9150509250925092565b60008060408385031215611bd257611bd161162f565b5b6000611be085828601611959565b9250506020611bf18582860161165a565b9150509250929050565b60008060408385031215611c1257611c1161162f565b5b6000611c20858286016116b8565b9250506020611c318582860161165a565b9150509250929050565b600080600060608486031215611c5457611c5361162f565b5b6000611c6286828701611959565b9350506020611c738682870161165a565b9250506040611c8486828701611ad6565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611cd557607f821691505b602082108103611ce857611ce7611c8e565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611d5782611938565b9150611d6283611938565b925082821015611d7557611d74611d1d565b5b828203905092915050565b6000611d8b82611938565b9150611d9683611938565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611dcb57611dca611d1d565b5b828201905092915050565b611ddf81611639565b82525050565b6000604082019050611dfa6000830185611dd6565b611e076020830184611b3e565b9392505050565b6000611e1982611938565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611e4b57611e4a611d1d565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f496e737566666963656e742066756e647320696e2063616d706169676e42616c60008201527f616e636573000000000000000000000000000000000000000000000000000000602082015250565b6000611ee160258361176f565b9150611eec82611e85565b604082019050919050565b60006020820190508181036000830152611f1081611ed4565b9050919050565b7f546f6b656e206973206e6f742077686974656c69737465640000000000000000600082015250565b6000611f4d60188361176f565b9150611f5882611f17565b602082019050919050565b60006020820190508181036000830152611f7c81611f40565b9050919050565b6000606082019050611f98600083018661173a565b611fa5602083018561173a565b611fb26040830184611b3e565b949350505050565b611fc38161184c565b8114611fce57600080fd5b50565b600081519050611fe081611fba565b92915050565b600060208284031215611ffc57611ffb61162f565b5b600061200a84828501611fd1565b91505092915050565b7f52657175697265642031303020746f6b656e732061746c6561737420746f207760008201527f6974686472617700000000000000000000000000000000000000000000000000602082015250565b600061206f60278361176f565b915061207a82612013565b604082019050919050565b6000602082019050818103600083015261209e81612062565b9050919050565b7f496e737566666963656e74206561726e696e6742616c616e636520696e20657360008201527f63726f7700000000000000000000000000000000000000000000000000000000602082015250565b600061210160248361176f565b915061210c826120a5565b604082019050919050565b60006020820190508181036000830152612130816120f4565b9050919050565b600060408201905061214c600083018561173a565b6121596020830184611b3e565b9392505050565b6003811061217157612170611e56565b5b50565b600081905061218282612160565b919050565b600061219282612174565b9050919050565b6121a281612187565b82525050565b60006060820190506121bd6000830186611dd6565b6121ca6020830185611b3e565b6121d76040830184612199565b949350505050565b7f496e737566666963656e74206163636f756e7442616c616e636520696e20657360008201527f63726f7700000000000000000000000000000000000000000000000000000000602082015250565b600061223b60248361176f565b9150612246826121df565b604082019050919050565b6000602082019050818103600083015261226a8161222e565b9050919050565b7f496e76616c6964204163636f756e745479706500000000000000000000000000600082015250565b60006122a760138361176f565b91506122b282612271565b602082019050919050565b600060208201905081810360008301526122d68161229a565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061233960268361176f565b9150612344826122dd565b604082019050919050565b600060208201905081810360008301526123688161232c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006123a560208361176f565b91506123b08261236f565b602082019050919050565b600060208201905081810360008301526123d481612398565b905091905056fea2646970667358221220924996de5d55796e53af33a95b2302e4e771c81cf9e7bcb6f5db7460b4acc97264736f6c634300080e0033000000000000000000000000d240234dacd7ffdca7e4effcf6c7190885d7e2f0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063af6941dc116100a2578063ddf0b3da11610071578063ddf0b3da146102df578063e0aff6a0146102fb578063e64fe36614610317578063f2fde38b14610347578063f9d3e1141461036357610116565b8063af6941dc14610247578063bfd7d91514610277578063d15b223e14610293578063d15b71ea146102af57610116565b806364fb3234116100e957806364fb3234146101b5578063715018a6146101d15780637da0a877146101db5780638da5cb5b146101f9578063aa3d9a151461021757610116565b8063069fdaae1461011b5780633586932b14610137578063486ff0cd14610167578063572b6c0514610185575b600080fd5b610135600480360381019061013091906116cd565b610393565b005b610151600480360381019061014c919061170d565b6103f1565b60405161015e9190611749565b60405180910390f35b61016f61042e565b60405161017c91906117fd565b60405180910390f35b61019f600480360381019061019a919061181f565b6104bc565b6040516101ac9190611867565b60405180910390f35b6101cf60048036038101906101ca9190611a7d565b610515565b005b6101d9610853565b005b6101e3610867565b6040516101f09190611749565b60405180910390f35b610201610890565b60405161020e9190611749565b60405180910390f35b610231600480360381019061022c919061170d565b6108ba565b60405161023e9190611749565b60405180910390f35b610261600480360381019061025c9190611aeb565b6108ed565b60405161026e9190611b4d565b60405180910390f35b610291600480360381019061028c9190611b68565b610a51565b005b6102ad60048036038101906102a89190611bbb565b610c0f565b005b6102c960048036038101906102c49190611bfb565b610e35565b6040516102d69190611b4d565b60405180910390f35b6102f960048036038101906102f4919061181f565b610e5a565b005b61031560048036038101906103109190611c3b565b610e6e565b005b610331600480360381019061032c9190611bfb565b61138b565b60405161033e9190611b4d565b60405180910390f35b610361600480360381019061035c919061181f565b6113b0565b005b61037d60048036038101906103789190611bfb565b611433565b60405161038a9190611b4d565b60405180910390f35b61039b61148f565b806002600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6006805461043b90611cbd565b80601f016020809104026020016040519081016040528092919081815260200182805461046790611cbd565b80156104b45780601f10610489576101008083540402835291602001916104b4565b820191906000526020600020905b81548152906001019060200180831161049757829003601f168201915b505050505081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b61051d61148f565b60005b815181101561084f5781818151811061053c5761053b611cee565b5b6020026020010151600001516005600084848151811061055f5761055e611cee565b5b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008484815181106105ba576105b9611cee565b5b6020026020010151602001518152602001908152602001600020541061083c578181815181106105ed576105ec611cee565b5b602002602001015160000151600560008484815181106106105761060f611cee565b5b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084848151811061066b5761066a611cee565b5b602002602001015160200151815260200190815260200160002060008282546106949190611d4c565b925050819055508181815181106106ae576106ad611cee565b5b602002602001015160000151600460008484815181106106d1576106d0611cee565b5b60200260200101516060015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084848151811061072c5761072b611cee565b5b602002602001015160200151815260200190815260200160002060008282546107559190611d80565b9250508190555081818151811061076f5761076e611cee565b5b60200260200101516060015173ffffffffffffffffffffffffffffffffffffffff168282815181106107a4576107a3611cee565b5b60200260200101516040015173ffffffffffffffffffffffffffffffffffffffff167f5d0f2f8e946970cef27d6a328d0009c47b4136c02dda2803873fbc5247bf33628484815181106107fa576107f9611cee565b5b60200260200101516020015185858151811061081957610818611cee565b5b602002602001015160000151604051610833929190611de5565b60405180910390a35b808061084790611e0e565b915050610520565b5050565b61085b61148f565b610865600061150d565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60026020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600281111561090257610901611e56565b5b82600281111561091557610914611e56565b5b0361097257600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020549050610a4a565b6001600281111561098657610985611e56565b5b82600281111561099957610998611e56565b5b036109f657600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020549050610a4a565b600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000205490505b9392505050565b610a5961148f565b81600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020541015610aec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae390611ef7565b60405180910390fd5b81600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000828254610b4c9190611d4c565b9250508190555081600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000828254610bb39190611d80565b925050819055508273ffffffffffffffffffffffffffffffffffffffff167f1382a54c071e73f4ae16cc846468f2ffe2b07b93daf6a318201bc25877554dc88284604051610c02929190611de5565b60405180910390a2505050565b600073ffffffffffffffffffffffffffffffffffffffff166002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603610cb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca890611f63565b60405180910390fd5b6002600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd610d086115d3565b30856040518463ffffffff1660e01b8152600401610d2893929190611f83565b6020604051808303816000875af1158015610d47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6b9190611fe6565b508160056000610d796115d3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000828254610dd39190611d80565b92505081905550610de26115d3565b73ffffffffffffffffffffffffffffffffffffffff167f5743426a08abdcf1c4ba763fc583cc728f85ca731843fca7b716ae79eea3d3618284604051610e29929190611de5565b60405180910390a25050565b6004602052816000526040600020602052806000526040600020600091509150505481565b610e6261148f565b610e6b816115e2565b50565b60016002811115610e8257610e81611e56565b5b816002811115610e9557610e94611e56565b5b036110fe576064831015610ede576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed590612085565b60405180910390fd5b8260046000610eeb6115d3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020541015610f78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6f90612117565b60405180910390fd5b8260046000610f856115d3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000206000828254610fdf9190611d4c565b925050819055506002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb61103d6115d3565b856040518363ffffffff1660e01b815260040161105b929190612137565b6020604051808303816000875af115801561107a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061109e9190611fe6565b506110a76115d3565b73ffffffffffffffffffffffffffffffffffffffff167fab85d5c64afa94fd0bab97348037726b3a71c7b53453fe963be345296648b456838560016040516110f1939291906121a8565b60405180910390a2611386565b6000600281111561111257611111611e56565b5b81600281111561112557611124611e56565b5b0361134a5782600360006111376115d3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000205410156111c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bb90612251565b60405180910390fd5b82600360006111d16115d3565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000848152602001908152602001600020600082825461122b9190611d4c565b925050819055506002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6112896115d3565b856040518363ffffffff1660e01b81526004016112a7929190612137565b6020604051808303816000875af11580156112c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ea9190611fe6565b506112f36115d3565b73ffffffffffffffffffffffffffffffffffffffff167fab85d5c64afa94fd0bab97348037726b3a71c7b53453fe963be345296648b4568385600060405161133d939291906121a8565b60405180910390a2611385565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137c906122bd565b60405180910390fd5b5b505050565b6003602052816000526040600020602052806000526040600020600091509150505481565b6113b861148f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611427576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141e9061234f565b60405180910390fd5b6114308161150d565b50565b6005602052816000526040600020602052806000526040600020600091509150505481565b600060146000369050101580156114745750611473336104bc565b5b1561148857601436033560601c905061148c565b3390505b90565b6114976115d3565b73ffffffffffffffffffffffffffffffffffffffff166114b5610890565b73ffffffffffffffffffffffffffffffffffffffff161461150b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611502906123bb565b60405180910390fd5b565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006115dd611458565b905090565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b61164c81611639565b811461165757600080fd5b50565b60008135905061166981611643565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061169a8261166f565b9050919050565b6116aa8161168f565b81146116b557600080fd5b50565b6000813590506116c7816116a1565b92915050565b600080604083850312156116e4576116e361162f565b5b60006116f28582860161165a565b9250506020611703858286016116b8565b9150509250929050565b6000602082840312156117235761172261162f565b5b60006117318482850161165a565b91505092915050565b6117438161168f565b82525050565b600060208201905061175e600083018461173a565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561179e578082015181840152602081019050611783565b838111156117ad576000848401525b50505050565b6000601f19601f8301169050919050565b60006117cf82611764565b6117d9818561176f565b93506117e9818560208601611780565b6117f2816117b3565b840191505092915050565b6000602082019050818103600083015261181781846117c4565b905092915050565b6000602082840312156118355761183461162f565b5b6000611843848285016116b8565b91505092915050565b60008115159050919050565b6118618161184c565b82525050565b600060208201905061187c6000830184611858565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6118bf826117b3565b810181811067ffffffffffffffff821117156118de576118dd611887565b5b80604052505050565b60006118f1611625565b90506118fd82826118b6565b919050565b600067ffffffffffffffff82111561191d5761191c611887565b5b602082029050602081019050919050565b600080fd5b600080fd5b6000819050919050565b61194b81611938565b811461195657600080fd5b50565b60008135905061196881611942565b92915050565b60006080828403121561198457611983611933565b5b61198e60806118e7565b9050600061199e84828501611959565b60008301525060206119b28482850161165a565b60208301525060406119c6848285016116b8565b60408301525060606119da848285016116b8565b60608301525092915050565b60006119f96119f484611902565b6118e7565b90508083825260208201905060808402830185811115611a1c57611a1b61192e565b5b835b81811015611a455780611a31888261196e565b845260208401935050608081019050611a1e565b5050509392505050565b600082601f830112611a6457611a63611882565b5b8135611a748482602086016119e6565b91505092915050565b600060208284031215611a9357611a9261162f565b5b600082013567ffffffffffffffff811115611ab157611ab0611634565b5b611abd84828501611a4f565b91505092915050565b60038110611ad357600080fd5b50565b600081359050611ae581611ac6565b92915050565b600080600060608486031215611b0457611b0361162f565b5b6000611b12868287016116b8565b9350506020611b238682870161165a565b9250506040611b3486828701611ad6565b9150509250925092565b611b4781611938565b82525050565b6000602082019050611b626000830184611b3e565b92915050565b600080600060608486031215611b8157611b8061162f565b5b6000611b8f868287016116b8565b9350506020611ba086828701611959565b9250506040611bb18682870161165a565b9150509250925092565b60008060408385031215611bd257611bd161162f565b5b6000611be085828601611959565b9250506020611bf18582860161165a565b9150509250929050565b60008060408385031215611c1257611c1161162f565b5b6000611c20858286016116b8565b9250506020611c318582860161165a565b9150509250929050565b600080600060608486031215611c5457611c5361162f565b5b6000611c6286828701611959565b9350506020611c738682870161165a565b9250506040611c8486828701611ad6565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611cd557607f821691505b602082108103611ce857611ce7611c8e565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611d5782611938565b9150611d6283611938565b925082821015611d7557611d74611d1d565b5b828203905092915050565b6000611d8b82611938565b9150611d9683611938565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611dcb57611dca611d1d565b5b828201905092915050565b611ddf81611639565b82525050565b6000604082019050611dfa6000830185611dd6565b611e076020830184611b3e565b9392505050565b6000611e1982611938565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611e4b57611e4a611d1d565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f496e737566666963656e742066756e647320696e2063616d706169676e42616c60008201527f616e636573000000000000000000000000000000000000000000000000000000602082015250565b6000611ee160258361176f565b9150611eec82611e85565b604082019050919050565b60006020820190508181036000830152611f1081611ed4565b9050919050565b7f546f6b656e206973206e6f742077686974656c69737465640000000000000000600082015250565b6000611f4d60188361176f565b9150611f5882611f17565b602082019050919050565b60006020820190508181036000830152611f7c81611f40565b9050919050565b6000606082019050611f98600083018661173a565b611fa5602083018561173a565b611fb26040830184611b3e565b949350505050565b611fc38161184c565b8114611fce57600080fd5b50565b600081519050611fe081611fba565b92915050565b600060208284031215611ffc57611ffb61162f565b5b600061200a84828501611fd1565b91505092915050565b7f52657175697265642031303020746f6b656e732061746c6561737420746f207760008201527f6974686472617700000000000000000000000000000000000000000000000000602082015250565b600061206f60278361176f565b915061207a82612013565b604082019050919050565b6000602082019050818103600083015261209e81612062565b9050919050565b7f496e737566666963656e74206561726e696e6742616c616e636520696e20657360008201527f63726f7700000000000000000000000000000000000000000000000000000000602082015250565b600061210160248361176f565b915061210c826120a5565b604082019050919050565b60006020820190508181036000830152612130816120f4565b9050919050565b600060408201905061214c600083018561173a565b6121596020830184611b3e565b9392505050565b6003811061217157612170611e56565b5b50565b600081905061218282612160565b919050565b600061219282612174565b9050919050565b6121a281612187565b82525050565b60006060820190506121bd6000830186611dd6565b6121ca6020830185611b3e565b6121d76040830184612199565b949350505050565b7f496e737566666963656e74206163636f756e7442616c616e636520696e20657360008201527f63726f7700000000000000000000000000000000000000000000000000000000602082015250565b600061223b60248361176f565b9150612246826121df565b604082019050919050565b6000602082019050818103600083015261226a8161222e565b9050919050565b7f496e76616c6964204163636f756e745479706500000000000000000000000000600082015250565b60006122a760138361176f565b91506122b282612271565b602082019050919050565b600060208201905081810360008301526122d68161229a565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061233960268361176f565b9150612344826122dd565b604082019050919050565b600060208201905081810360008301526123688161232c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006123a560208361176f565b91506123b08261236f565b602082019050919050565b600060208201905081810360008301526123d481612398565b905091905056fea2646970667358221220924996de5d55796e53af33a95b2302e4e771c81cf9e7bcb6f5db7460b4acc97264736f6c634300080e0033

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

000000000000000000000000d240234dacd7ffdca7e4effcf6c7190885d7e2f0

-----Decoded View---------------
Arg [0] : _trustedForwarder (address): 0xD240234Dacd7fFdCa7E4EffCF6C7190885D7E2f0

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000d240234dacd7ffdca7e4effcf6c7190885d7e2f0


Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.