ETH Price: $1,902.00 (-0.54%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Burn184417932023-10-27 13:18:47507 days ago1698412727IN
SG-FORGE: Old EUR CoinVertible
0 ETH0.0006100819.7856223
Validate Transfe...184417872023-10-27 13:17:35507 days ago1698412655IN
SG-FORGE: Old EUR CoinVertible
0 ETH0.0013663620.47965001
Transfer184417782023-10-27 13:15:47507 days ago1698412547IN
SG-FORGE: Old EUR CoinVertible
0 ETH0.0034878721.04843124
Mint170671482023-04-17 14:40:59700 days ago1681742459IN
SG-FORGE: Old EUR CoinVertible
0 ETH0.0014472537.46255802
Mint169966962023-04-07 12:45:59710 days ago1680871559IN
SG-FORGE: Old EUR CoinVertible
0 ETH0.0014358119.72059571
Add Address To W...169259772023-03-28 12:57:47720 days ago1680008267IN
SG-FORGE: Old EUR CoinVertible
0 ETH0.0013210327.78151521
Add Address To W...169259592023-03-28 12:54:11720 days ago1680008051IN
SG-FORGE: Old EUR CoinVertible
0 ETH0.0012569426.42701322

Advanced mode:
Parent Transaction Hash Method Block
From
To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SmartCoin

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : SmartCoin.sol
pragma solidity 0.8.17;

import "./Whitelist.sol";
import "./ISmartCoin.sol";
import "../openzepplin/ERC20.sol";
import "../libraries/EncodingUtils.sol";

contract SmartCoin is Whitelist, ERC20, ISmartCoin {
    mapping(bytes32 => TransferRequest) private _transfers;
    uint256 private _requestCounter;

    mapping(address => mapping(address => bool)) private _hasOngoingApprove;
    mapping(bytes32 => ApproveRequest) private _approves;

    mapping(address => uint256) private _engagedAmount; // _engagedAmount amount in transfer or approve

    constructor(address registrar)
        ERC20("EUR Coinvertible", "EURCV")
        Whitelist(registrar)
    {}

    function validateTransfer(bytes32 transferHash)
        external
        onlyRegistrar
        returns (bool)
    {
        TransferRequest memory _transferRequest = _transfers[transferHash];
        if (_transferRequest.isTransferFrom) {
            if(!whitelist[_transferRequest.spender]){
                revert("Whitelist: address must be whitelisted");
            }
        }
        require(
            _transferRequest.status != TransferStatus.Undefined,
            "SmartCoin: transferHash does not exist"
        );
        require(
            _transferRequest.status == TransferStatus.Created,
            "SmartCoin: Invalid transfer status"
        );
        _transfers[transferHash].status = TransferStatus.Validated;
        unchecked {
            _engagedAmount[_transferRequest.from] -= _transferRequest.value;
        }
        _safeTransfer(
            _transferRequest.from,
            _transferRequest.to,
            _transferRequest.value
        );
        emit TransferValidated(transferHash);
        return true;
    }

    function _safeApprove(
        address _from,
        address _to,
        uint256 _value
    ) internal onlyWhitelisted(_from) onlyWhitelisted(_to) {
        super._approve(_from, _to, _value);
    }

    function _safeTransfer(
        address _from,
        address _to,
        uint256 _value
    ) internal onlyWhitelisted(_from) onlyWhitelisted(_to) {
        super._transfer(_from, _to, _value);
    }

    function rejectTransfer(bytes32 transferHash)
        external
        onlyRegistrar
        returns (bool)
    {
        TransferRequest memory transferRequest = _transfers[transferHash];
        if (transferRequest.isTransferFrom) {

            uint256 allowance = allowance(
                transferRequest.from,
                transferRequest.to
            );
            if (allowance != type(uint256).max) {
                _approve(
                    transferRequest.from,
                    transferRequest.to,
                    allowance + transferRequest.value
                );
            }
        }
        _engagedAmount[transferRequest.from] -= transferRequest.value;
        _transfers[transferHash].status = TransferStatus.Rejected;
        emit TransferRejected(transferHash);
        return true;
    }

    function approve(address _to, uint256 _value)
        public
        override(ERC20, ISmartCoin)
        onlyWhitelisted(_msgSender())
        onlyWhitelisted(_to)
        returns (bool)
    {
        
        require(
            _to != address(0),
            "SmartCoin:  approve spender is the zero address"
        );
        require(
            !_hasOngoingApprove[_msgSender()][_to],
            "SmartCoin: owner has ongoing approve request"
        );
        uint256 currentAllowedAmount = super.allowance(_msgSender(), _to);
        if (currentAllowedAmount > 0) super._approve(_msgSender(), _to, 0);
        bytes32 approveHash = EncodingUtils.encodeRequest(
            _msgSender(),
            _to,
            _value,
            _requestCounter
        );
        _approves[approveHash] = ApproveRequest(
            _msgSender(),
            _to,
            _value,
            ApproveStatus.Created
        );
        _hasOngoingApprove[_msgSender()][_to] = true;
        _requestCounter += 1;
        emit ApproveRequested(approveHash, _msgSender(), _to, _value);
        return true;
    }

    function validateApprove(bytes32 approveHash)
        external
        onlyRegistrar
        returns (bool)
    {
        ApproveRequest memory _approveRequest = _approves[approveHash];
        require(
            _approveRequest.status != ApproveStatus.Undefined,
            "SmartCoin: approveHash does not exist"
        );
        require(
            _approveRequest.status == ApproveStatus.Created,
            "SmartCoin: Invalid approve status"
        );
        _safeApprove(
            _approveRequest.from,
            _approveRequest.to,
            _approveRequest.value
        );
        _hasOngoingApprove[_approveRequest.from][_approveRequest.to] = false;
        _approves[approveHash].status = ApproveStatus.Validated;
        emit ApproveValidated(approveHash);
        return true;
    }

    function transferFrom(
        address _from,
        address _to,
        uint256 _value
    )
        public
        override(ERC20, ISmartCoin)
        onlyWhitelisted(_msgSender())
        onlyWhitelisted(_from)
        onlyWhitelisted(_to)
        returns (bool)
    {
        unchecked {
            super._spendAllowance(_from, _msgSender(), _value); // we know that allowance is bigger then _value
        }
        _initiateTransfer(
            _from,
            _to,
            _value,
            true, // isTransferFrom
            _msgSender()
        );
        return true;
    }

    function rejectApprove(bytes32 _approveHash)
        external
        onlyRegistrar
        returns (bool)
    {
        ApproveRequest memory approveRequest = _approves[_approveHash];
        require(
            approveRequest.status != ApproveStatus.Undefined,
            "SmartCoin: approveHash does not exist"
        );
        require(
            approveRequest.status == ApproveStatus.Created,
            "SmartCoin: Invalid approve status"
        );
        _hasOngoingApprove[approveRequest.from][approveRequest.to] = false;
        _approves[_approveHash].status = ApproveStatus.Rejected;
        emit ApproveRejected(_approveHash);
        return true;
    }

    function transfer(address _to, uint256 _value)
        public
        override(ISmartCoin, ERC20)
        onlyWhitelisted(_msgSender())
        onlyWhitelisted(_to)
        returns (bool)
    {
        _initiateTransfer(_msgSender(), _to, _value, false, address(0));
        return true;
    }

    function _initiateTransfer(
        address _from,
        address _to,
        uint256 _value,
        bool _isTransferFrom,
        address _spender
    ) internal {
        require(
            _from != address(0),
            "SmartCoin: transfer from the zero address"
        );
        require(_to != address(0), "SmartCoin: transfer to the zero address");
        require(
            _availableBalance(_from) >= _value,
            "SmartCoin: Insufficient balance"
        );
        unchecked {
            _engagedAmount[_from] += _value; // Overflow not possible, engagedAmount amount <= balance
        }
        bytes32 transferHash = EncodingUtils.encodeRequest(
            _from,
            _to,
            _value,
            _requestCounter
        );
        _transfers[transferHash] = TransferRequest(
            _from,
            _to,
            _value,
            TransferStatus.Created,
            _isTransferFrom,
            _spender
        );
        _requestCounter += 1;
        emit TransferRequested(transferHash, _from, _to, _spender, _value);
    }

    function recall(address _from, uint256 _amount)
        external
        override
        onlyRegistrar
        returns (bool)
    {
        require(
            _availableBalance(_from) >= _amount, // _amount should not exceed balance minus engagedAmount amount
            "SmartCoin: transfer amount exceeds balance"
        );
        super._transfer(_from, registrar, _amount);
        return true;
    }

    function burn(uint256 _amount)
        external
        override
        onlyRegistrar
        returns (bool)
    {
        require(
            _availableBalance(registrar) >= _amount, // _amount should not exceed balance minus engagedAmount amount
            "SmartCoin: burn amount exceeds balance"
        );
        super._burn(registrar, _amount);
        return true;
    }

    function mint(address _to, uint256 _amount)
        external
        override
        onlyRegistrar
        onlyWhitelisted(_to)
        returns (bool)
    {
        super._mint(_to, _amount);
        return true;
    }

    function balanceOf(address _addr)
        public
        view
        override(ERC20, ISmartCoin)
        returns (uint256)
    {
        return _availableBalance(_addr); // Overflow not possible: balance >= engagedAmount amount.
    }

    function _availableBalance(address _addr) internal view returns (uint256) {
        unchecked {
            return super.balanceOf(_addr) - _engagedAmount[_addr];
        }
    }

    function engagedAmount(address _addr) public view returns (uint256) {
        return _engagedAmount[_addr];
    }
}

File 2 of 9 : Whitelist.sol
pragma solidity 0.8.17;

import "./IWhitelist.sol";

abstract contract Whitelist is IWhitelist {
    mapping(address => bool) public whitelist;
    address public registrar;

    constructor(address registrarAddress) {
        registrar = registrarAddress;
    }

    /**
     * @dev Throws if called by any account that's not whitelisted.
     */
    modifier onlyWhitelisted(address _addr) {
        require(whitelist[_addr], "Whitelist: address must be whitelisted");
        _;
    }
    /**
     * @dev Throws if called by any account other than the registrar.
     */
    modifier onlyRegistrar() {
        require(
            msg.sender == registrar,
            "Whitelist: Only registrar could perform that action"
        );
        _;
    }

    /**
     * @dev Allows the current registrar to transfer control of the contract to a newRegistrar.
     * @param _newRegistrar The address to transfer registrarship to.
     */
    function updateRegistrar(address _newRegistrar)
        external
        onlyRegistrar
        returns (bool)
    {
        require(
            _newRegistrar != address(0),
            "Whitelist: new registrar is the zero address"
        );
        return _transferRegistrarship(_newRegistrar);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newRegistrar`).
     * Internal function without access restriction.
     */
    function _transferRegistrarship(address _newRegistrar)
        internal
        virtual
        returns (bool)
    {
        address oldRegistrar = registrar;
        registrar = _newRegistrar;
        emit RegistrarUpdated(oldRegistrar, _newRegistrar);
        return true;
    }

    /**
     * @dev add an address to the whitelist
     * @param _addr address
     * @return true if the address was added to the whitelist, false if the address was already in the whitelist
     */
    function addAddressToWhitelist(address _addr)
        external
        onlyRegistrar
        returns (bool)
    {
        require(!whitelist[_addr], "Whitelist: Address already whitelisted");
        whitelist[_addr] = true;
        emit WhitelistedAddressAdded(_addr);
        return true;
    }

    /**
     * @dev remove an address from the whitelist
     * @param _addr address
     * @return true if the address was removed from the whitelist,
     * false if the address wasn't in the whitelist in the first place
     */
    function removeAddressFromWhitelist(address _addr)
        external
        onlyRegistrar
        returns (bool)
    {
        require(whitelist[_addr], "Whitelist: Address not whitelisted");
        whitelist[_addr] = false;
        emit WhitelistedAddressRemoved(_addr);
        return true;
    }
}

File 3 of 9 : IWhitelist.sol
pragma solidity 0.8.17;

interface IWhitelist {
    event WhitelistedAddressAdded(address addr);
    event WhitelistedAddressRemoved(address addr);
    event RegistrarUpdated(
        address indexed previousRegistrar,
        address indexed newRegistrar
    );

    function updateRegistrar(address newRegistrar) external returns (bool);

    function addAddressToWhitelist(address holder) external returns (bool);

    function removeAddressFromWhitelist(address holder) external returns (bool);
}

File 4 of 9 : ISmartCoin.sol
pragma solidity 0.8.17;

interface ISmartCoin {
    enum TransferStatus {
        Undefined,
        Created,
        Validated,
        Rejected
    }
    enum ApproveStatus {
        Undefined,
        Created,
        Validated,
        Rejected
    }
    struct TransferRequest {
        address from;
        address to;
        uint256 value;
        TransferStatus status;
        bool isTransferFrom;
        address spender;
    }
    struct ApproveRequest {
        address from;
        address to;
        uint256 value;
        ApproveStatus status;
    }

    event TransferRequested(
        bytes32 transferHash,
        address indexed from,
        address indexed to,
        address indexed spender,
        uint256 value
    );
    event TransferRejected(bytes32 transferHash);
    event TransferValidated(bytes32 transferHash);

    event ApproveRequested(
        bytes32 approveHash,
        address indexed from,
        address indexed to,
        uint256 value
    );
    event ApproveRejected(bytes32 approveHash);
    event ApproveValidated(bytes32 approveHash);

    function burn(uint256 amount) external returns (bool);

    function mint(address to, uint256 amount) external returns (bool);

    function recall(address from, uint256 amount) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function approve(address spender, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function validateTransfer(bytes32 transferHash) external returns (bool);

    function rejectTransfer(bytes32 transferHash) external returns (bool);

    function balanceOf(address) external view returns (uint256);

    function engagedAmount(address addr) external view returns (uint256);

    function validateApprove(bytes32 approveHash) external returns (bool);

    function rejectApprove(bytes32 approveHash) external returns (bool);

    /* start performed by openzepplin ERC20 
     * function allowance(address owner, address spender)                            
     *        external                                                               
     *        view                                                                   
     *        returns (uint256);                                                     
     * function balanceOf(address) external view returns (uint256);                  
     * function totalSupply(address) external view returns (uint256);                
     * event Transfer(address indexed from, address indexed to, uint256 value);      
     * event Approval(                                                               
     *   address indexed owner,                                                      
     *   address indexed spender,                                                    
     *   uint256 value                                                               
     * );                                                                            
    end performed by openzepplin ERC20 */
}

File 5 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity 0.8.17;

/**
 * @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 6 of 9 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity 0.8.17;

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 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity 0.8.17;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

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

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

pragma solidity 0.8.17;

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].
 *
 * 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 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 {}
}

File 9 of 9 : EncodingUtils.sol
pragma solidity 0.8.17;

library EncodingUtils {
    function encodeRequest(
        address _from,
        address _to,
        uint256 _value,
        uint256 counter
    ) internal view returns (bytes32) {
        return
            keccak256(abi.encode(block.timestamp, _from, _to, _value, counter));
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"registrar","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"approveHash","type":"bytes32"}],"name":"ApproveRejected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"approveHash","type":"bytes32"},{"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":"ApproveRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"approveHash","type":"bytes32"}],"name":"ApproveValidated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousRegistrar","type":"address"},{"indexed":true,"internalType":"address","name":"newRegistrar","type":"address"}],"name":"RegistrarUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"transferHash","type":"bytes32"}],"name":"TransferRejected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"transferHash","type":"bytes32"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"transferHash","type":"bytes32"}],"name":"TransferValidated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"WhitelistedAddressAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"}],"name":"WhitelistedAddressRemoved","type":"event"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"addAddressToWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"engagedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"registrar","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_approveHash","type":"bytes32"}],"name":"rejectApprove","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"transferHash","type":"bytes32"}],"name":"rejectTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"removeAddressFromWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRegistrar","type":"address"}],"name":"updateRegistrar","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"approveHash","type":"bytes32"}],"name":"validateApprove","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"transferHash","type":"bytes32"}],"name":"validateTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040516200239a3803806200239a8339810160408190526200003491620000be565b604080518082018252601081526f45555220436f696e7665727469626c6560801b602080830191909152825180840190935260058084526422aaa921ab60d91b91840191909152600180546001600160a01b0319166001600160a01b038616179055909190620000a5838262000195565b506006620000b4828262000195565b5050505062000261565b600060208284031215620000d157600080fd5b81516001600160a01b0381168114620000e957600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200011b57607f821691505b6020821081036200013c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200019057600081815260208120601f850160051c810160208610156200016b5750805b601f850160051c820191505b818110156200018c5782815560010162000177565b5050505b505050565b81516001600160401b03811115620001b157620001b1620000f0565b620001c981620001c2845462000106565b8462000142565b602080601f831160018114620002015760008415620001e85750858301515b600019600386901b1c1916600185901b1785556200018c565b600085815260208120601f198616915b82811015620002325788860151825594840194600190910190840162000211565b5085821015620002515787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61212980620002716000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806342966c68116100b85780637fbeb89c1161007c5780637fbeb89c146102bb57806395d89b41146102ce5780639b19251a146102d6578063a9059cbb146102f9578063dc9c8aa81461030c578063dd62ed3e1461031f57600080fd5b806342966c68146102465780634f4a35ab14610259578063592b700a1461028257806370a08231146102955780637b9417c8146102a857600080fd5b80631fce02201161010a5780631fce0220146101c057806323b872dd146101d3578063286dd3f5146101e65780632b20e397146101f9578063313ce5671461022457806340c10f191461023357600080fd5b806306fdde0314610147578063095ea7b3146101655780630a7207451461018857806318160ddd1461019b5780631f035c7a146101ad575b600080fd5b61014f610332565b60405161015c9190611e0f565b60405180910390f35b610178610173366004611e74565b6103c4565b604051901515815260200161015c565b610178610196366004611e9e565b6106c4565b6004545b60405190815260200161015c565b6101786101bb366004611e74565b610876565b6101786101ce366004611e9e565b610930565b6101786101e1366004611eb7565b610abc565b6101786101f4366004611ef3565b610b88565b60015461020c906001600160a01b031681565b6040516001600160a01b03909116815260200161015c565b6040516012815260200161015c565b610178610241366004611e74565b610c83565b610178610254366004611e9e565b610cfe565b61019f610267366004611ef3565b6001600160a01b03166000908152600b602052604090205490565b610178610290366004611ef3565b610dbd565b61019f6102a3366004611ef3565b610e5e565b6101786102b6366004611ef3565b610e69565b6101786102c9366004611e9e565b610f60565b61014f611101565b6101786102e4366004611ef3565b60006020819052908152604090205460ff1681565b610178610307366004611e74565b611110565b61017861031a366004611e9e565b611195565b61019f61032d366004611f15565b611411565b60606005805461034190611f48565b80601f016020809104026020016040519081016040528092919081815260200182805461036d90611f48565b80156103ba5780601f1061038f576101008083540402835291602001916103ba565b820191906000526020600020905b81548152906001019060200180831161039d57829003601f168201915b5050505050905090565b3360008181526020819052604081205490919060ff166103ff5760405162461bcd60e51b81526004016103f690611f82565b60405180910390fd5b6001600160a01b038416600090815260208190526040902054849060ff166104395760405162461bcd60e51b81526004016103f690611f82565b6001600160a01b0385166104a75760405162461bcd60e51b815260206004820152602f60248201527f536d617274436f696e3a2020617070726f7665207370656e646572206973207460448201526e6865207a65726f206164647265737360881b60648201526084016103f6565b3360009081526009602090815260408083206001600160a01b038916845290915290205460ff16156105305760405162461bcd60e51b815260206004820152602c60248201527f536d617274436f696e3a206f776e657220686173206f6e676f696e672061707060448201526b1c9bdd99481c995c5d595cdd60a21b60648201526084016103f6565b600061053c3387611411565b90508015610550576105503387600061143c565b6000610560338888600854611561565b905060405180608001604052806105743390565b6001600160a01b0390811682528916602082015260408101889052606001600190526000828152600a6020908152604091829020835181546001600160a01b039182166001600160a01b0319918216178355928501516001808401805492909316919094161790559183015160028301556060830151600380840180549293909260ff191691849081111561060b5761060b611fc8565b02179055509050506001600960006106203390565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292528120805460ff191692151592909217909155600880546001929061066c908490611ff4565b909155505060408051828152602081018890526001600160a01b0389169133917f863e26e81e45bc8ca1103675ab8a322a01e8275825956c8e7020705fd743da21910160405180910390a35060019695505050505050565b6001546000906001600160a01b031633146106f15760405162461bcd60e51b81526004016103f690612007565b6000828152600a60209081526040808320815160808101835281546001600160a01b03908116825260018301541693810193909352600281015491830191909152600380820154606084019160ff9091169081111561075257610752611fc8565b600381111561076357610763611fc8565b905250905060008160600151600381111561078057610780611fc8565b0361079d5760405162461bcd60e51b81526004016103f69061205a565b6001816060015160038111156107b5576107b5611fc8565b146107d25760405162461bcd60e51b81526004016103f69061209f565b6107e98160000151826020015183604001516115b1565b80516001600160a01b039081166000908152600960209081526040808320828601519094168352928152828220805460ff19908116909155868352600a825291839020600301805490921660021790915590518481527f1cd3564f5a2b43649814052b7428dc0ba155f5d18f8f5fcf50bd32cc88359fb491015b60405180910390a160019150505b919050565b6001546000906001600160a01b031633146108a35760405162461bcd60e51b81526004016103f690612007565b816108ad84611637565b101561090e5760405162461bcd60e51b815260206004820152602a60248201527f536d617274436f696e3a207472616e7366657220616d6f756e7420657863656560448201526964732062616c616e636560b01b60648201526084016103f6565b6001546109269084906001600160a01b03168461165f565b5060015b92915050565b6001546000906001600160a01b0316331461095d5760405162461bcd60e51b81526004016103f690612007565b6000828152600a60209081526040808320815160808101835281546001600160a01b03908116825260018301541693810193909352600281015491830191909152600380820154606084019160ff909116908111156109be576109be611fc8565b60038111156109cf576109cf611fc8565b90525090506000816060015160038111156109ec576109ec611fc8565b03610a095760405162461bcd60e51b81526004016103f69061205a565b600181606001516003811115610a2157610a21611fc8565b14610a3e5760405162461bcd60e51b81526004016103f69061209f565b80516001600160a01b039081166000908152600960209081526040808320828601519094168352928152828220805460ff19908116909155868352600a825291839020600390810180549093161790915590518481527f891e5cbb521c74b11f09b9a17b9f0fab0c8cdd158908914196b5d9f1e741dd759101610863565b3360008181526020819052604081205490919060ff16610aee5760405162461bcd60e51b81526004016103f690611f82565b6001600160a01b038516600090815260208190526040902054859060ff16610b285760405162461bcd60e51b81526004016103f690611f82565b6001600160a01b038516600090815260208190526040902054859060ff16610b625760405162461bcd60e51b81526004016103f690611f82565b610b6d87338761180c565b610b7b878787600133611880565b5060019695505050505050565b6001546000906001600160a01b03163314610bb55760405162461bcd60e51b81526004016103f690612007565b6001600160a01b03821660009081526020819052604090205460ff16610c285760405162461bcd60e51b815260206004820152602260248201527f57686974656c6973743a2041646472657373206e6f742077686974656c697374604482015261195960f21b60648201526084016103f6565b6001600160a01b03821660008181526020818152604091829020805460ff1916905590519182527ff1abf01a1043b7c244d128e8595cf0c1d10743b022b03a02dffd8ca3bf729f5a91015b60405180910390a1506001919050565b6001546000906001600160a01b03163314610cb05760405162461bcd60e51b81526004016103f690612007565b6001600160a01b038316600090815260208190526040902054839060ff16610cea5760405162461bcd60e51b81526004016103f690611f82565b610cf48484611b49565b5060019392505050565b6001546000906001600160a01b03163314610d2b5760405162461bcd60e51b81526004016103f690612007565b6001548290610d42906001600160a01b0316611637565b1015610d9f5760405162461bcd60e51b815260206004820152602660248201527f536d617274436f696e3a206275726e20616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103f6565b600154610db5906001600160a01b031683611c0a565b506001919050565b6001546000906001600160a01b03163314610dea5760405162461bcd60e51b81526004016103f690612007565b6001600160a01b038216610e555760405162461bcd60e51b815260206004820152602c60248201527f57686974656c6973743a206e657720726567697374726172206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016103f6565b61092a82611d36565b600061092a82611637565b6001546000906001600160a01b03163314610e965760405162461bcd60e51b81526004016103f690612007565b6001600160a01b03821660009081526020819052604090205460ff1615610f0e5760405162461bcd60e51b815260206004820152602660248201527f57686974656c6973743a204164647265737320616c72656164792077686974656044820152651b1a5cdd195960d21b60648201526084016103f6565b6001600160a01b03821660008181526020818152604091829020805460ff1916600117905590519182527fd1bba68c128cc3f427e5831b3c6f99f480b6efa6b9e80c757768f6124158cc3f9101610c73565b6001546000906001600160a01b03163314610f8d5760405162461bcd60e51b81526004016103f690612007565b6000828152600760209081526040808320815160c08101835281546001600160a01b03908116825260018301541693810193909352600281015491830191909152600380820154606084019160ff90911690811115610fee57610fee611fc8565b6003811115610fff57610fff611fc8565b815260039190910154610100810460ff16151560208301526201000090046001600160a01b031660409091015260808101519091501561107c57600061104d82600001518360200151611411565b9050600019811461107a5761107a826000015183602001518460400151846110759190611ff4565b61143c565b505b60408082015182516001600160a01b03166000908152600b6020529182208054919290916110ab9084906120e0565b909155505060008381526007602052604090206003908101805460ff191660018302179055506040518381527f6a9eda23525b3a9b3aa9326b05e25ca9af576996fa0ae91c62afbc835839b0cb90602001610863565b60606006805461034190611f48565b3360008181526020819052604081205490919060ff166111425760405162461bcd60e51b81526004016103f690611f82565b6001600160a01b038416600090815260208190526040902054849060ff1661117c5760405162461bcd60e51b81526004016103f690611f82565b61118a338686600080611880565b506001949350505050565b6001546000906001600160a01b031633146111c25760405162461bcd60e51b81526004016103f690612007565b6000828152600760209081526040808320815160c08101835281546001600160a01b03908116825260018301541693810193909352600281015491830191909152600380820154606084019160ff9091169081111561122357611223611fc8565b600381111561123457611234611fc8565b815260039190910154610100810460ff16151560208301526201000090046001600160a01b03166040909101526080810151909150156112aa5760a08101516001600160a01b031660009081526020819052604090205460ff166112aa5760405162461bcd60e51b81526004016103f690611f82565b6000816060015160038111156112c2576112c2611fc8565b0361131e5760405162461bcd60e51b815260206004820152602660248201527f536d617274436f696e3a207472616e736665724861736820646f6573206e6f7460448201526508195e1a5cdd60d21b60648201526084016103f6565b60018160600151600381111561133657611336611fc8565b1461138e5760405162461bcd60e51b815260206004820152602260248201527f536d617274436f696e3a20496e76616c6964207472616e736665722073746174604482015261757360f01b60648201526084016103f6565b6000838152600760209081526040808320600301805460ff19166002179055838101805185516001600160a01b03168552600b845291909320805491909103905582519083015191516113e19290611d90565b6040518381527ff293a19d8e1c857cb5b75138774de0ea944b21327ae79db4cb55296627b5237190602001610863565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6001600160a01b03831661149e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103f6565b6001600160a01b0382166114ff5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103f6565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60408051426020808301919091526001600160a01b0396871682840152949095166060860152608085019290925260a0808501919091528151808503909101815260c09093019052815191012090565b6001600160a01b038316600090815260208190526040902054839060ff166115eb5760405162461bcd60e51b81526004016103f690611f82565b6001600160a01b038316600090815260208190526040902054839060ff166116255760405162461bcd60e51b81526004016103f690611f82565b61163085858561143c565b5050505050565b6001600160a01b03166000908152600b60209081526040808320546002909252909120540390565b6001600160a01b0383166116c35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103f6565b6001600160a01b0382166117255760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103f6565b6001600160a01b0383166000908152600260205260409020548181101561179d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103f6565b6001600160a01b0380851660008181526002602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906117fd9086815260200190565b60405180910390a35b50505050565b60006118188484611411565b9050600019811461180657818110156118735760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103f6565b611806848484840361143c565b6001600160a01b0385166118e85760405162461bcd60e51b815260206004820152602960248201527f536d617274436f696e3a207472616e736665722066726f6d20746865207a65726044820152686f206164647265737360b81b60648201526084016103f6565b6001600160a01b03841661194e5760405162461bcd60e51b815260206004820152602760248201527f536d617274436f696e3a207472616e7366657220746f20746865207a65726f206044820152666164647265737360c81b60648201526084016103f6565b8261195886611637565b10156119a65760405162461bcd60e51b815260206004820152601f60248201527f536d617274436f696e3a20496e73756666696369656e742062616c616e63650060448201526064016103f6565b6001600160a01b0385166000908152600b602052604081208054850190556008546119d690879087908790611561565b6040805160c0810182526001600160a01b03808a1682528816602082015290810186905290915060608101600181528415156020808301919091526001600160a01b03808616604093840152600085815260078352839020845181549083166001600160a01b031991821617825592850151600180830180549290941691909416179091559183015160028301556060830151600380840180549293909260ff1916918490811115611a8a57611a8a611fc8565b021790555060808201516003909101805460a0909301516001600160a01b0316620100000262010000600160b01b03199215156101000292909216610100600160b01b0319909316929092171790556008805460019190600090611aef908490611ff4565b909155505060408051828152602081018690526001600160a01b038085169288821692918a16917fd7730c7dfba91a23076d4415dc9fc7ec0ade0cf7ce7db033ec68e8c58974fc43910160405180910390a4505050505050565b6001600160a01b038216611b9f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103f6565b8060046000828254611bb19190611ff4565b90915550506001600160a01b0382166000818152600260209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038216611c6a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103f6565b6001600160a01b03821660009081526002602052604090205481811015611cde5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103f6565b6001600160a01b03831660008181526002602090815260408083208686039055600480548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611554565b600180546001600160a01b038381166001600160a01b031983168117909355604051600093919092169182907f1e21b6e20d93937dbc9ef28854997425fe405db2c44e7dd2873918ca9455f839908590a350600192915050565b6001600160a01b038316600090815260208190526040902054839060ff16611dca5760405162461bcd60e51b81526004016103f690611f82565b6001600160a01b038316600090815260208190526040902054839060ff16611e045760405162461bcd60e51b81526004016103f690611f82565b61163085858561165f565b600060208083528351808285015260005b81811015611e3c57858101830151858201604001528201611e20565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461087157600080fd5b60008060408385031215611e8757600080fd5b611e9083611e5d565b946020939093013593505050565b600060208284031215611eb057600080fd5b5035919050565b600080600060608486031215611ecc57600080fd5b611ed584611e5d565b9250611ee360208501611e5d565b9150604084013590509250925092565b600060208284031215611f0557600080fd5b611f0e82611e5d565b9392505050565b60008060408385031215611f2857600080fd5b611f3183611e5d565b9150611f3f60208401611e5d565b90509250929050565b600181811c90821680611f5c57607f821691505b602082108103611f7c57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526026908201527f57686974656c6973743a2061646472657373206d7573742062652077686974656040820152651b1a5cdd195960d21b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561092a5761092a611fde565b60208082526033908201527f57686974656c6973743a204f6e6c792072656769737472617220636f756c64206040820152723832b93337b936903a3430ba1030b1ba34b7b760691b606082015260800190565b60208082526025908201527f536d617274436f696e3a20617070726f76654861736820646f6573206e6f7420604082015264195e1a5cdd60da1b606082015260800190565b60208082526021908201527f536d617274436f696e3a20496e76616c696420617070726f76652073746174756040820152607360f81b606082015260800190565b8181038181111561092a5761092a611fde56fea2646970667358221220e6c3747fbce6aa6371fe5981d012641ee937510497d52cac7e49f50d33f4b00064736f6c63430008110033000000000000000000000000baf6edd9a0ff8bfa4f6e5bb7aa97a32f7035f799

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c806342966c68116100b85780637fbeb89c1161007c5780637fbeb89c146102bb57806395d89b41146102ce5780639b19251a146102d6578063a9059cbb146102f9578063dc9c8aa81461030c578063dd62ed3e1461031f57600080fd5b806342966c68146102465780634f4a35ab14610259578063592b700a1461028257806370a08231146102955780637b9417c8146102a857600080fd5b80631fce02201161010a5780631fce0220146101c057806323b872dd146101d3578063286dd3f5146101e65780632b20e397146101f9578063313ce5671461022457806340c10f191461023357600080fd5b806306fdde0314610147578063095ea7b3146101655780630a7207451461018857806318160ddd1461019b5780631f035c7a146101ad575b600080fd5b61014f610332565b60405161015c9190611e0f565b60405180910390f35b610178610173366004611e74565b6103c4565b604051901515815260200161015c565b610178610196366004611e9e565b6106c4565b6004545b60405190815260200161015c565b6101786101bb366004611e74565b610876565b6101786101ce366004611e9e565b610930565b6101786101e1366004611eb7565b610abc565b6101786101f4366004611ef3565b610b88565b60015461020c906001600160a01b031681565b6040516001600160a01b03909116815260200161015c565b6040516012815260200161015c565b610178610241366004611e74565b610c83565b610178610254366004611e9e565b610cfe565b61019f610267366004611ef3565b6001600160a01b03166000908152600b602052604090205490565b610178610290366004611ef3565b610dbd565b61019f6102a3366004611ef3565b610e5e565b6101786102b6366004611ef3565b610e69565b6101786102c9366004611e9e565b610f60565b61014f611101565b6101786102e4366004611ef3565b60006020819052908152604090205460ff1681565b610178610307366004611e74565b611110565b61017861031a366004611e9e565b611195565b61019f61032d366004611f15565b611411565b60606005805461034190611f48565b80601f016020809104026020016040519081016040528092919081815260200182805461036d90611f48565b80156103ba5780601f1061038f576101008083540402835291602001916103ba565b820191906000526020600020905b81548152906001019060200180831161039d57829003601f168201915b5050505050905090565b3360008181526020819052604081205490919060ff166103ff5760405162461bcd60e51b81526004016103f690611f82565b60405180910390fd5b6001600160a01b038416600090815260208190526040902054849060ff166104395760405162461bcd60e51b81526004016103f690611f82565b6001600160a01b0385166104a75760405162461bcd60e51b815260206004820152602f60248201527f536d617274436f696e3a2020617070726f7665207370656e646572206973207460448201526e6865207a65726f206164647265737360881b60648201526084016103f6565b3360009081526009602090815260408083206001600160a01b038916845290915290205460ff16156105305760405162461bcd60e51b815260206004820152602c60248201527f536d617274436f696e3a206f776e657220686173206f6e676f696e672061707060448201526b1c9bdd99481c995c5d595cdd60a21b60648201526084016103f6565b600061053c3387611411565b90508015610550576105503387600061143c565b6000610560338888600854611561565b905060405180608001604052806105743390565b6001600160a01b0390811682528916602082015260408101889052606001600190526000828152600a6020908152604091829020835181546001600160a01b039182166001600160a01b0319918216178355928501516001808401805492909316919094161790559183015160028301556060830151600380840180549293909260ff191691849081111561060b5761060b611fc8565b02179055509050506001600960006106203390565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292528120805460ff191692151592909217909155600880546001929061066c908490611ff4565b909155505060408051828152602081018890526001600160a01b0389169133917f863e26e81e45bc8ca1103675ab8a322a01e8275825956c8e7020705fd743da21910160405180910390a35060019695505050505050565b6001546000906001600160a01b031633146106f15760405162461bcd60e51b81526004016103f690612007565b6000828152600a60209081526040808320815160808101835281546001600160a01b03908116825260018301541693810193909352600281015491830191909152600380820154606084019160ff9091169081111561075257610752611fc8565b600381111561076357610763611fc8565b905250905060008160600151600381111561078057610780611fc8565b0361079d5760405162461bcd60e51b81526004016103f69061205a565b6001816060015160038111156107b5576107b5611fc8565b146107d25760405162461bcd60e51b81526004016103f69061209f565b6107e98160000151826020015183604001516115b1565b80516001600160a01b039081166000908152600960209081526040808320828601519094168352928152828220805460ff19908116909155868352600a825291839020600301805490921660021790915590518481527f1cd3564f5a2b43649814052b7428dc0ba155f5d18f8f5fcf50bd32cc88359fb491015b60405180910390a160019150505b919050565b6001546000906001600160a01b031633146108a35760405162461bcd60e51b81526004016103f690612007565b816108ad84611637565b101561090e5760405162461bcd60e51b815260206004820152602a60248201527f536d617274436f696e3a207472616e7366657220616d6f756e7420657863656560448201526964732062616c616e636560b01b60648201526084016103f6565b6001546109269084906001600160a01b03168461165f565b5060015b92915050565b6001546000906001600160a01b0316331461095d5760405162461bcd60e51b81526004016103f690612007565b6000828152600a60209081526040808320815160808101835281546001600160a01b03908116825260018301541693810193909352600281015491830191909152600380820154606084019160ff909116908111156109be576109be611fc8565b60038111156109cf576109cf611fc8565b90525090506000816060015160038111156109ec576109ec611fc8565b03610a095760405162461bcd60e51b81526004016103f69061205a565b600181606001516003811115610a2157610a21611fc8565b14610a3e5760405162461bcd60e51b81526004016103f69061209f565b80516001600160a01b039081166000908152600960209081526040808320828601519094168352928152828220805460ff19908116909155868352600a825291839020600390810180549093161790915590518481527f891e5cbb521c74b11f09b9a17b9f0fab0c8cdd158908914196b5d9f1e741dd759101610863565b3360008181526020819052604081205490919060ff16610aee5760405162461bcd60e51b81526004016103f690611f82565b6001600160a01b038516600090815260208190526040902054859060ff16610b285760405162461bcd60e51b81526004016103f690611f82565b6001600160a01b038516600090815260208190526040902054859060ff16610b625760405162461bcd60e51b81526004016103f690611f82565b610b6d87338761180c565b610b7b878787600133611880565b5060019695505050505050565b6001546000906001600160a01b03163314610bb55760405162461bcd60e51b81526004016103f690612007565b6001600160a01b03821660009081526020819052604090205460ff16610c285760405162461bcd60e51b815260206004820152602260248201527f57686974656c6973743a2041646472657373206e6f742077686974656c697374604482015261195960f21b60648201526084016103f6565b6001600160a01b03821660008181526020818152604091829020805460ff1916905590519182527ff1abf01a1043b7c244d128e8595cf0c1d10743b022b03a02dffd8ca3bf729f5a91015b60405180910390a1506001919050565b6001546000906001600160a01b03163314610cb05760405162461bcd60e51b81526004016103f690612007565b6001600160a01b038316600090815260208190526040902054839060ff16610cea5760405162461bcd60e51b81526004016103f690611f82565b610cf48484611b49565b5060019392505050565b6001546000906001600160a01b03163314610d2b5760405162461bcd60e51b81526004016103f690612007565b6001548290610d42906001600160a01b0316611637565b1015610d9f5760405162461bcd60e51b815260206004820152602660248201527f536d617274436f696e3a206275726e20616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103f6565b600154610db5906001600160a01b031683611c0a565b506001919050565b6001546000906001600160a01b03163314610dea5760405162461bcd60e51b81526004016103f690612007565b6001600160a01b038216610e555760405162461bcd60e51b815260206004820152602c60248201527f57686974656c6973743a206e657720726567697374726172206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016103f6565b61092a82611d36565b600061092a82611637565b6001546000906001600160a01b03163314610e965760405162461bcd60e51b81526004016103f690612007565b6001600160a01b03821660009081526020819052604090205460ff1615610f0e5760405162461bcd60e51b815260206004820152602660248201527f57686974656c6973743a204164647265737320616c72656164792077686974656044820152651b1a5cdd195960d21b60648201526084016103f6565b6001600160a01b03821660008181526020818152604091829020805460ff1916600117905590519182527fd1bba68c128cc3f427e5831b3c6f99f480b6efa6b9e80c757768f6124158cc3f9101610c73565b6001546000906001600160a01b03163314610f8d5760405162461bcd60e51b81526004016103f690612007565b6000828152600760209081526040808320815160c08101835281546001600160a01b03908116825260018301541693810193909352600281015491830191909152600380820154606084019160ff90911690811115610fee57610fee611fc8565b6003811115610fff57610fff611fc8565b815260039190910154610100810460ff16151560208301526201000090046001600160a01b031660409091015260808101519091501561107c57600061104d82600001518360200151611411565b9050600019811461107a5761107a826000015183602001518460400151846110759190611ff4565b61143c565b505b60408082015182516001600160a01b03166000908152600b6020529182208054919290916110ab9084906120e0565b909155505060008381526007602052604090206003908101805460ff191660018302179055506040518381527f6a9eda23525b3a9b3aa9326b05e25ca9af576996fa0ae91c62afbc835839b0cb90602001610863565b60606006805461034190611f48565b3360008181526020819052604081205490919060ff166111425760405162461bcd60e51b81526004016103f690611f82565b6001600160a01b038416600090815260208190526040902054849060ff1661117c5760405162461bcd60e51b81526004016103f690611f82565b61118a338686600080611880565b506001949350505050565b6001546000906001600160a01b031633146111c25760405162461bcd60e51b81526004016103f690612007565b6000828152600760209081526040808320815160c08101835281546001600160a01b03908116825260018301541693810193909352600281015491830191909152600380820154606084019160ff9091169081111561122357611223611fc8565b600381111561123457611234611fc8565b815260039190910154610100810460ff16151560208301526201000090046001600160a01b03166040909101526080810151909150156112aa5760a08101516001600160a01b031660009081526020819052604090205460ff166112aa5760405162461bcd60e51b81526004016103f690611f82565b6000816060015160038111156112c2576112c2611fc8565b0361131e5760405162461bcd60e51b815260206004820152602660248201527f536d617274436f696e3a207472616e736665724861736820646f6573206e6f7460448201526508195e1a5cdd60d21b60648201526084016103f6565b60018160600151600381111561133657611336611fc8565b1461138e5760405162461bcd60e51b815260206004820152602260248201527f536d617274436f696e3a20496e76616c6964207472616e736665722073746174604482015261757360f01b60648201526084016103f6565b6000838152600760209081526040808320600301805460ff19166002179055838101805185516001600160a01b03168552600b845291909320805491909103905582519083015191516113e19290611d90565b6040518381527ff293a19d8e1c857cb5b75138774de0ea944b21327ae79db4cb55296627b5237190602001610863565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b6001600160a01b03831661149e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103f6565b6001600160a01b0382166114ff5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103f6565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b60408051426020808301919091526001600160a01b0396871682840152949095166060860152608085019290925260a0808501919091528151808503909101815260c09093019052815191012090565b6001600160a01b038316600090815260208190526040902054839060ff166115eb5760405162461bcd60e51b81526004016103f690611f82565b6001600160a01b038316600090815260208190526040902054839060ff166116255760405162461bcd60e51b81526004016103f690611f82565b61163085858561143c565b5050505050565b6001600160a01b03166000908152600b60209081526040808320546002909252909120540390565b6001600160a01b0383166116c35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103f6565b6001600160a01b0382166117255760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103f6565b6001600160a01b0383166000908152600260205260409020548181101561179d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103f6565b6001600160a01b0380851660008181526002602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906117fd9086815260200190565b60405180910390a35b50505050565b60006118188484611411565b9050600019811461180657818110156118735760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103f6565b611806848484840361143c565b6001600160a01b0385166118e85760405162461bcd60e51b815260206004820152602960248201527f536d617274436f696e3a207472616e736665722066726f6d20746865207a65726044820152686f206164647265737360b81b60648201526084016103f6565b6001600160a01b03841661194e5760405162461bcd60e51b815260206004820152602760248201527f536d617274436f696e3a207472616e7366657220746f20746865207a65726f206044820152666164647265737360c81b60648201526084016103f6565b8261195886611637565b10156119a65760405162461bcd60e51b815260206004820152601f60248201527f536d617274436f696e3a20496e73756666696369656e742062616c616e63650060448201526064016103f6565b6001600160a01b0385166000908152600b602052604081208054850190556008546119d690879087908790611561565b6040805160c0810182526001600160a01b03808a1682528816602082015290810186905290915060608101600181528415156020808301919091526001600160a01b03808616604093840152600085815260078352839020845181549083166001600160a01b031991821617825592850151600180830180549290941691909416179091559183015160028301556060830151600380840180549293909260ff1916918490811115611a8a57611a8a611fc8565b021790555060808201516003909101805460a0909301516001600160a01b0316620100000262010000600160b01b03199215156101000292909216610100600160b01b0319909316929092171790556008805460019190600090611aef908490611ff4565b909155505060408051828152602081018690526001600160a01b038085169288821692918a16917fd7730c7dfba91a23076d4415dc9fc7ec0ade0cf7ce7db033ec68e8c58974fc43910160405180910390a4505050505050565b6001600160a01b038216611b9f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103f6565b8060046000828254611bb19190611ff4565b90915550506001600160a01b0382166000818152600260209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038216611c6a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103f6565b6001600160a01b03821660009081526002602052604090205481811015611cde5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103f6565b6001600160a01b03831660008181526002602090815260408083208686039055600480548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611554565b600180546001600160a01b038381166001600160a01b031983168117909355604051600093919092169182907f1e21b6e20d93937dbc9ef28854997425fe405db2c44e7dd2873918ca9455f839908590a350600192915050565b6001600160a01b038316600090815260208190526040902054839060ff16611dca5760405162461bcd60e51b81526004016103f690611f82565b6001600160a01b038316600090815260208190526040902054839060ff16611e045760405162461bcd60e51b81526004016103f690611f82565b61163085858561165f565b600060208083528351808285015260005b81811015611e3c57858101830151858201604001528201611e20565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461087157600080fd5b60008060408385031215611e8757600080fd5b611e9083611e5d565b946020939093013593505050565b600060208284031215611eb057600080fd5b5035919050565b600080600060608486031215611ecc57600080fd5b611ed584611e5d565b9250611ee360208501611e5d565b9150604084013590509250925092565b600060208284031215611f0557600080fd5b611f0e82611e5d565b9392505050565b60008060408385031215611f2857600080fd5b611f3183611e5d565b9150611f3f60208401611e5d565b90509250929050565b600181811c90821680611f5c57607f821691505b602082108103611f7c57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526026908201527f57686974656c6973743a2061646472657373206d7573742062652077686974656040820152651b1a5cdd195960d21b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561092a5761092a611fde565b60208082526033908201527f57686974656c6973743a204f6e6c792072656769737472617220636f756c64206040820152723832b93337b936903a3430ba1030b1ba34b7b760691b606082015260800190565b60208082526025908201527f536d617274436f696e3a20617070726f76654861736820646f6573206e6f7420604082015264195e1a5cdd60da1b606082015260800190565b60208082526021908201527f536d617274436f696e3a20496e76616c696420617070726f76652073746174756040820152607360f81b606082015260800190565b8181038181111561092a5761092a611fde56fea2646970667358221220e6c3747fbce6aa6371fe5981d012641ee937510497d52cac7e49f50d33f4b00064736f6c63430008110033

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

000000000000000000000000baf6edd9a0ff8bfa4f6e5bb7aa97a32f7035f799

-----Decoded View---------------
Arg [0] : registrar (address): 0xBAf6eDd9A0fF8bfa4F6e5BB7AA97A32f7035f799

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


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

EUR Coinvertible token contract has migrated to a 0x5F7827FDeb7c20b443265Fc2F40845B715385Ff2.

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.