ETH Price: $2,525.05 (+0.03%)

Contract

0xc5a3b5b534A5404C72e75D803404aFD866A4EB24
 
Transaction Hash
Method
Block
From
To
Redeem198354392024-05-09 22:22:47113 days ago1715293367IN
0xc5a3b5b5...866A4EB24
0 ETH0.000324054.22479349
Redeem179963982023-08-26 4:13:59371 days ago1693023239IN
0xc5a3b5b5...866A4EB24
0 ETH0.0009539512.43507528
Redeem177360672023-07-20 18:08:59407 days ago1689876539IN
0xc5a3b5b5...866A4EB24
0 ETH0.0027149335.38434141
Redeem176449482023-07-07 22:39:35420 days ago1688769575IN
0xc5a3b5b5...866A4EB24
0 ETH0.0023732221.39448986
Approve176158072023-07-03 20:27:35424 days ago1688416055IN
0xc5a3b5b5...866A4EB24
0 ETH0.0006063720.7861953
Approve176158032023-07-03 20:26:47424 days ago1688416007IN
0xc5a3b5b5...866A4EB24
0 ETH0.0009676120.91152872
Mint176157492023-07-03 20:15:47424 days ago1688415347IN
0xc5a3b5b5...866A4EB24
0.00580085 ETH0.0021963920.78794908
Redeem176087032023-07-02 20:28:59425 days ago1688329739IN
0xc5a3b5b5...866A4EB24
0 ETH0.0014669219.12477298
Mint175589212023-06-25 20:40:11432 days ago1687725611IN
0xc5a3b5b5...866A4EB24
0.00580085 ETH0.0014694212.75045607
Mint175275262023-06-21 10:45:35437 days ago1687344335IN
0xc5a3b5b5...866A4EB24
0.00580085 ETH0.0016088715.22910924
Approve175257612023-06-21 4:48:47437 days ago1687322927IN
0xc5a3b5b5...866A4EB24
0 ETH0.0006125413.24133827
Mint175257542023-06-21 4:47:23437 days ago1687322843IN
0xc5a3b5b5...866A4EB24
0.00580085 ETH0.0015758213.67369972
Approve175244262023-06-21 0:19:47437 days ago1687306787IN
0xc5a3b5b5...866A4EB24
0 ETH0.0006992815.11649593
Mint175244192023-06-21 0:18:23437 days ago1687306703IN
0xc5a3b5b5...866A4EB24
0.00580085 ETH0.001774115.39423023
Approve175243032023-06-20 23:54:59437 days ago1687305299IN
0xc5a3b5b5...866A4EB24
0 ETH0.0006586314.23395503
Mint175242942023-06-20 23:53:11437 days ago1687305191IN
0xc5a3b5b5...866A4EB24
0.00580085 ETH0.0015662414.82382125
Mint175237382023-06-20 22:00:59437 days ago1687298459IN
0xc5a3b5b5...866A4EB24
0.00580085 ETH0.0017079415.46254569
Mint175228762023-06-20 19:06:23437 days ago1687287983IN
0xc5a3b5b5...866A4EB24
0.00580085 ETH0.0043021827.41208346
Redeem175228632023-06-20 19:03:47437 days ago1687287827IN
0xc5a3b5b5...866A4EB24
0 ETH0.002657827.54112492
Mint175228542023-06-20 19:01:59437 days ago1687287719IN
0xc5a3b5b5...866A4EB24
0.00580085 ETH0.0038430726.08216748
0x60806040175227742023-06-20 18:45:35437 days ago1687286735IN
 Create: HEXCombinator
0 ETH0.0270781420.73804937

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HEXCombinator

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : HexCombinator.sol
// SPDX-License-Identifier:MIT

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
/// HEX Combinator is a dual chain index token backed by an equal number of eHEX and pHEX.
/// CHEX is designed to track the combined value of eHEX and pHEX through a bi-directional, dual chain minting and redemption function.
/// Mint 1 CHEX on Ethereum by depositing 1 HEX (0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39) and 1 HEX bridged from PulseChain(0x46F6e9BbcCe8638b20EBBC83D33a2B5bfA9B7894)
/// Mint 1 CHEX on PulseChain by depositing 1 HEX (0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39) and 1 HEX bridged from Ethereum (0x57fde0a71132198BBeC939B98976993d8D89D225)
/// If CHEX on one chain becomes worth more than CHEX on the other chain, it creates an arbitrage opportunity...
/// ... to buy the lower priced one, redeem the HEX and bridged HEX, bridge them over, and remint on the other side. 
/// All HEX held in the HEX Combinator contract addresses simply sits there liquid.
///
/// An arbitrage throttle is set by the Combinator DAO to introduce a small fixed cost to minting the tokens, paid in ETH or PLS. 
/// The arbitrage throttle is designed to make users below some value threshold get a better deal buying CHEX instead of minting, which helps foster an active market.
/// The arbitrage is also a type of size bonus, where the more CHEX you mint, the smaller percent of the total the arbitrage throttle is.
contract HEXCombinator is ERC20, ReentrancyGuard{
    address public HEX_ADDRESS=0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39;
    address public HEX_FROM_E_ADDRESS=0x57fde0a71132198BBeC939B98976993d8D89D225; 
    address public HEX_FROM_P_ADDRESS=0x46F6e9BbcCe8638b20EBBC83D33a2B5bfA9B7894;
    address public COMBINATOR_DAO_ADDRESS;
    uint256 public arbitrage_throttle;
    uint256 public scheduled_arbitrage_throttle; 
    uint256 public scheduled_arbitrage_throttle_change_timestamp;
    event Minted(address indexed minter, uint256 amount);
    event Redeemed(address indexed redeemer, uint256 amount);
    event ChangeScheduled(uint256 current_throttle, uint256 new_throttle, uint256 timestamp);

    constructor() ERC20("HEX Combinator", "CHEX") ReentrancyGuard() {
        COMBINATOR_DAO_ADDRESS = msg.sender;
        if (block.chainid==1) {arbitrage_throttle=5800850000000000;} 
        else {arbitrage_throttle=100000*(10**18);} //set to be close to $10 USD at time of launch.
    }
    /// @notice Deposit HEX and bridged HEX on whichever network you are on to mint CHEX. 1 CHEX = 1 eHEX + 1 pHEX. You must grant this contract the appropriate approvals. Transaction must include the flat rate arbitrage throttle, paid in ETH or PLS.
    function mint(uint256 amount) external payable nonReentrant{
        require(msg.value == arbitrage_throttle, "Transaction must include the arbitrage throttle.");
        IERC20(HEX_ADDRESS).transferFrom(msg.sender, address(this), amount);
        IERC20(getAddress()).transferFrom(msg.sender, address(this), amount);
        _mint(msg.sender, amount);
        emit Minted(msg.sender, amount);
    }

    /// @notice Burn 1 CHEX and receive 1 eHEX and 1 pHEX
    function redeem(uint256 amount) public nonReentrant{
        _burn(msg.sender, amount);
        IERC20(HEX_ADDRESS).transfer(msg.sender, amount);
        IERC20(getAddress()).transfer(msg.sender, amount);
        emit Redeemed(msg.sender, amount);
    }
    /// @notice If you are on ethereum, returns the HEX bridged from Pulsechain address. If you are on PulseChain, returns the HEX bridged from Ethereum address.
    function getAddress() public view returns (address) {
        if (block.chainid==1) {return HEX_FROM_P_ADDRESS;}// if you are on ethereum, return HEX bridged from Pulsechain address  // if you are on pulsechain, return HEX bridged from Ethereum address
        else {return HEX_FROM_E_ADDRESS;}
        }
    /// @notice The Combinator DAO Address can schedule a change in the arbitrage throttle setting. After 24 hours, the change may go into effect. This is done entirely at the Combinator DAO's discretion.
    function scheduleArbitrageThrottleChange(uint256 arb_throttle) public nonReentrant{
        require(msg.sender==COMBINATOR_DAO_ADDRESS, "Only Combinator DAO Address can run this.");
        scheduled_arbitrage_throttle=arb_throttle;
        scheduled_arbitrage_throttle_change_timestamp = block.timestamp + 24 hours;
        emit ChangeScheduled(arbitrage_throttle, scheduled_arbitrage_throttle, scheduled_arbitrage_throttle_change_timestamp);
    }
    /// @notice Anyone can implement a previously scheduled arbitrage throttle setting once its eligible.
    function executeArbitrageThrottleChange() public nonReentrant{
        require(scheduled_arbitrage_throttle_change_timestamp>0, "An arbitrage throttle change must be scheduled");
        require(block.timestamp>scheduled_arbitrage_throttle_change_timestamp, "Not eligible to change yet."); 
        arbitrage_throttle=scheduled_arbitrage_throttle;
        scheduled_arbitrage_throttle_change_timestamp=0;
    }
    /// @notice The Combinator DAO Address can take posession of the ETH or PLS arbitrage throttle collected by the contract.
    function collectArbitrageThrottle() public nonReentrant {
        payable(COMBINATOR_DAO_ADDRESS).call{value: address(this).balance}(""); // send ETH or PLS to Combinator DAO
    }
    /// @notice The Combinator DAO Address can change the combinator DAO's own address.
    function changeCombinatorDaoAddress(address new_address) public nonReentrant{
        require(msg.sender==COMBINATOR_DAO_ADDRESS, "Only Combinator DAO Address can run this.");
        COMBINATOR_DAO_ADDRESS=new_address;
    }
    /// @notice Number of decimals in the contract, overwritten from the default of 18 to be 8 to match HEX.
    function decimals() public view virtual override returns (uint8) {
        return 8;
	}
    }

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 6 : 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 6 of 6 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"uint256","name":"current_throttle","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"new_throttle","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ChangeScheduled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Redeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"COMBINATOR_DAO_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HEX_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HEX_FROM_E_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HEX_FROM_P_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"arbitrage_throttle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"new_address","type":"address"}],"name":"changeCombinatorDaoAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectArbitrageThrottle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"executeArbitrageThrottleChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"arb_throttle","type":"uint256"}],"name":"scheduleArbitrageThrottleChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"scheduled_arbitrage_throttle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"scheduled_arbitrage_throttle_change_timestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

6080604052600680546001600160a01b0319908116732b591e99afe9f32eaa6214f7b7629768c40eeb39179091556007805482167357fde0a71132198bbec939b98976993d8d89d225179055600880549091167346f6e9bbcce8638b20ebbc83d33a2b5bfa9b78941790553480156200007757600080fd5b506040518060400160405280600e81526020016d2422ac1021b7b6b134b730ba37b960911b81525060405180604001604052806004815260200163086908ab60e31b8152508160039081620000cd9190620001cb565b506004620000dc8282620001cb565b505060016005819055600980546001600160a01b031916331790554690039050620001125766149bd7a3a53400600a5562000297565b69152d02c7e14af6800000600a5562000297565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200015157607f821691505b6020821081036200017257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001c657600081815260208120601f850160051c81016020861015620001a15750805b601f850160051c820191505b81811015620001c257828155600101620001ad565b5050505b505050565b81516001600160401b03811115620001e757620001e762000126565b620001ff81620001f884546200013c565b8462000178565b602080601f8311600181146200023757600084156200021e5750858301515b600019600386901b1c1916600185901b178555620001c2565b600085815260208120601f198616915b82811015620002685788860151825594840194600190910190840162000247565b5085821015620002875787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61134080620002a76000396000f3fe6080604052600436106101665760003560e01c806395d89b41116100d1578063b45300731161008a578063db006a7511610064578063db006a751461040e578063dd62ed3e1461042e578063f0eb7aec1461044e578063f42a33881461046457600080fd5b8063b4530073146103b8578063c877d86c146103d8578063d4af896c146103ee57600080fd5b806395d89b411461031b578063a0712d6814610330578063a457c2d714610343578063a4be29fe14610363578063a9059cbb14610378578063abe943b31461039857600080fd5b80633950935111610123578063395093511461024e578063475efa961461026e5780636f6ec2e21461028e57806370a08231146102ae57806375a8cf6c146102e457806391a786b2146102fb57600080fd5b806306fdde031461016b578063095ea7b31461019657806318160ddd146101c657806323b872dd146101e5578063313ce5671461020557806338cc483114610221575b600080fd5b34801561017757600080fd5b5061018061047a565b60405161018d9190611106565b60405180910390f35b3480156101a257600080fd5b506101b66101b1366004611170565b61050c565b604051901515815260200161018d565b3480156101d257600080fd5b506002545b60405190815260200161018d565b3480156101f157600080fd5b506101b661020036600461119a565b610526565b34801561021157600080fd5b506040516008815260200161018d565b34801561022d57600080fd5b5061023661054a565b6040516001600160a01b03909116815260200161018d565b34801561025a57600080fd5b506101b6610269366004611170565b610574565b34801561027a57600080fd5b50600854610236906001600160a01b031681565b34801561029a57600080fd5b50600754610236906001600160a01b031681565b3480156102ba57600080fd5b506101d76102c93660046111d6565b6001600160a01b031660009081526020819052604090205490565b3480156102f057600080fd5b506102f9610596565b005b34801561030757600080fd5b50600654610236906001600160a01b031681565b34801561032757600080fd5b50610180610674565b6102f961033e3660046111f8565b610683565b34801561034f57600080fd5b506101b661035e366004611170565b610840565b34801561036f57600080fd5b506102f96108bb565b34801561038457600080fd5b506101b6610393366004611170565b610922565b3480156103a457600080fd5b50600954610236906001600160a01b031681565b3480156103c457600080fd5b506102f96103d33660046111f8565b610930565b3480156103e457600080fd5b506101d7600a5481565b3480156103fa57600080fd5b506102f96104093660046111d6565b6109cb565b34801561041a57600080fd5b506102f96104293660046111f8565b610a20565b34801561043a57600080fd5b506101d7610449366004611211565b610b56565b34801561045a57600080fd5b506101d7600c5481565b34801561047057600080fd5b506101d7600b5481565b60606003805461048990611244565b80601f01602080910402602001604051908101604052809291908181526020018280546104b590611244565b80156105025780601f106104d757610100808354040283529160200191610502565b820191906000526020600020905b8154815290600101906020018083116104e557829003601f168201915b5050505050905090565b60003361051a818585610b81565b60019150505b92915050565b600033610534858285610ca6565b61053f858585610d20565b506001949350505050565b60004660010361056457506008546001600160a01b031690565b506007546001600160a01b031690565b60003361051a8185856105878383610b56565b610591919061127e565b610b81565b61059e610ec4565b6000600c541161060c5760405162461bcd60e51b815260206004820152602e60248201527f416e20617262697472616765207468726f74746c65206368616e6765206d757360448201526d1d081899481cd8da19591d5b195960921b60648201526084015b60405180910390fd5b600c54421161065d5760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656c696769626c6520746f206368616e6765207965742e00000000006044820152606401610603565b600b54600a556000600c556106726001600555565b565b60606004805461048990611244565b61068b610ec4565b600a5434146106f55760405162461bcd60e51b815260206004820152603060248201527f5472616e73616374696f6e206d75737420696e636c756465207468652061726260448201526f34ba3930b3b2903a343937ba3a36329760811b6064820152608401610603565b6006546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561074c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610770919061129f565b5061077961054a565b6040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b0391909116906323b872dd906064016020604051808303816000875af11580156107ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f2919061129f565b506107fd3382610f1d565b60405181815233907f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe906020015b60405180910390a261083d6001600555565b50565b6000338161084e8286610b56565b9050838110156108ae5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610603565b61053f8286868403610b81565b6108c3610ec4565b6009546040516001600160a01b03909116904790600081818185875af1925050503d8060008114610910576040519150601f19603f3d011682016040523d82523d6000602084013e610915565b606091505b5050506106726001600555565b60003361051a818585610d20565b610938610ec4565b6009546001600160a01b031633146109625760405162461bcd60e51b8152600401610603906112c1565b600b819055610974426201518061127e565b600c819055600a54600b546040805192835260208301919091528101919091527f4376111696c347c24da2ee1f444ad02b1507644c58aa67c36257c1e8555cc4ee9060600160405180910390a161083d6001600555565b6109d3610ec4565b6009546001600160a01b031633146109fd5760405162461bcd60e51b8152600401610603906112c1565b600980546001600160a01b0319166001600160a01b038316179055600160055550565b610a28610ec4565b610a323382610fdc565b60065460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610a83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa7919061129f565b50610ab061054a565b60405163a9059cbb60e01b8152336004820152602481018390526001600160a01b03919091169063a9059cbb906044016020604051808303816000875af1158015610aff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b23919061129f565b5060405181815233907f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b93699060200161082b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610be35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610603565b6001600160a01b038216610c445760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610603565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610cb28484610b56565b90506000198114610d1a5781811015610d0d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610603565b610d1a8484848403610b81565b50505050565b6001600160a01b038316610d845760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610603565b6001600160a01b038216610de65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610603565b6001600160a01b03831660009081526020819052604090205481811015610e5e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610603565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610d1a565b600260055403610f165760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610603565b6002600555565b6001600160a01b038216610f735760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610603565b8060026000828254610f85919061127e565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b03821661103c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610603565b6001600160a01b038216600090815260208190526040902054818110156110b05760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610603565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610c99565b600060208083528351808285015260005b8181101561113357858101830151858201604001528201611117565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461116b57600080fd5b919050565b6000806040838503121561118357600080fd5b61118c83611154565b946020939093013593505050565b6000806000606084860312156111af57600080fd5b6111b884611154565b92506111c660208501611154565b9150604084013590509250925092565b6000602082840312156111e857600080fd5b6111f182611154565b9392505050565b60006020828403121561120a57600080fd5b5035919050565b6000806040838503121561122457600080fd5b61122d83611154565b915061123b60208401611154565b90509250929050565b600181811c9082168061125857607f821691505b60208210810361127857634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561052057634e487b7160e01b600052601160045260246000fd5b6000602082840312156112b157600080fd5b815180151581146111f157600080fd5b60208082526029908201527f4f6e6c7920436f6d62696e61746f722044414f20416464726573732063616e20604082015268393ab7103a3434b99760b91b60608201526080019056fea26469706673582212202943357a1e2ea92d91f608f1be6e5f6bf79e6aab3c820b8c0a6001f182cc7d7064736f6c63430008120033

Deployed Bytecode

0x6080604052600436106101665760003560e01c806395d89b41116100d1578063b45300731161008a578063db006a7511610064578063db006a751461040e578063dd62ed3e1461042e578063f0eb7aec1461044e578063f42a33881461046457600080fd5b8063b4530073146103b8578063c877d86c146103d8578063d4af896c146103ee57600080fd5b806395d89b411461031b578063a0712d6814610330578063a457c2d714610343578063a4be29fe14610363578063a9059cbb14610378578063abe943b31461039857600080fd5b80633950935111610123578063395093511461024e578063475efa961461026e5780636f6ec2e21461028e57806370a08231146102ae57806375a8cf6c146102e457806391a786b2146102fb57600080fd5b806306fdde031461016b578063095ea7b31461019657806318160ddd146101c657806323b872dd146101e5578063313ce5671461020557806338cc483114610221575b600080fd5b34801561017757600080fd5b5061018061047a565b60405161018d9190611106565b60405180910390f35b3480156101a257600080fd5b506101b66101b1366004611170565b61050c565b604051901515815260200161018d565b3480156101d257600080fd5b506002545b60405190815260200161018d565b3480156101f157600080fd5b506101b661020036600461119a565b610526565b34801561021157600080fd5b506040516008815260200161018d565b34801561022d57600080fd5b5061023661054a565b6040516001600160a01b03909116815260200161018d565b34801561025a57600080fd5b506101b6610269366004611170565b610574565b34801561027a57600080fd5b50600854610236906001600160a01b031681565b34801561029a57600080fd5b50600754610236906001600160a01b031681565b3480156102ba57600080fd5b506101d76102c93660046111d6565b6001600160a01b031660009081526020819052604090205490565b3480156102f057600080fd5b506102f9610596565b005b34801561030757600080fd5b50600654610236906001600160a01b031681565b34801561032757600080fd5b50610180610674565b6102f961033e3660046111f8565b610683565b34801561034f57600080fd5b506101b661035e366004611170565b610840565b34801561036f57600080fd5b506102f96108bb565b34801561038457600080fd5b506101b6610393366004611170565b610922565b3480156103a457600080fd5b50600954610236906001600160a01b031681565b3480156103c457600080fd5b506102f96103d33660046111f8565b610930565b3480156103e457600080fd5b506101d7600a5481565b3480156103fa57600080fd5b506102f96104093660046111d6565b6109cb565b34801561041a57600080fd5b506102f96104293660046111f8565b610a20565b34801561043a57600080fd5b506101d7610449366004611211565b610b56565b34801561045a57600080fd5b506101d7600c5481565b34801561047057600080fd5b506101d7600b5481565b60606003805461048990611244565b80601f01602080910402602001604051908101604052809291908181526020018280546104b590611244565b80156105025780601f106104d757610100808354040283529160200191610502565b820191906000526020600020905b8154815290600101906020018083116104e557829003601f168201915b5050505050905090565b60003361051a818585610b81565b60019150505b92915050565b600033610534858285610ca6565b61053f858585610d20565b506001949350505050565b60004660010361056457506008546001600160a01b031690565b506007546001600160a01b031690565b60003361051a8185856105878383610b56565b610591919061127e565b610b81565b61059e610ec4565b6000600c541161060c5760405162461bcd60e51b815260206004820152602e60248201527f416e20617262697472616765207468726f74746c65206368616e6765206d757360448201526d1d081899481cd8da19591d5b195960921b60648201526084015b60405180910390fd5b600c54421161065d5760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656c696769626c6520746f206368616e6765207965742e00000000006044820152606401610603565b600b54600a556000600c556106726001600555565b565b60606004805461048990611244565b61068b610ec4565b600a5434146106f55760405162461bcd60e51b815260206004820152603060248201527f5472616e73616374696f6e206d75737420696e636c756465207468652061726260448201526f34ba3930b3b2903a343937ba3a36329760811b6064820152608401610603565b6006546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561074c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610770919061129f565b5061077961054a565b6040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b0391909116906323b872dd906064016020604051808303816000875af11580156107ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f2919061129f565b506107fd3382610f1d565b60405181815233907f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe906020015b60405180910390a261083d6001600555565b50565b6000338161084e8286610b56565b9050838110156108ae5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610603565b61053f8286868403610b81565b6108c3610ec4565b6009546040516001600160a01b03909116904790600081818185875af1925050503d8060008114610910576040519150601f19603f3d011682016040523d82523d6000602084013e610915565b606091505b5050506106726001600555565b60003361051a818585610d20565b610938610ec4565b6009546001600160a01b031633146109625760405162461bcd60e51b8152600401610603906112c1565b600b819055610974426201518061127e565b600c819055600a54600b546040805192835260208301919091528101919091527f4376111696c347c24da2ee1f444ad02b1507644c58aa67c36257c1e8555cc4ee9060600160405180910390a161083d6001600555565b6109d3610ec4565b6009546001600160a01b031633146109fd5760405162461bcd60e51b8152600401610603906112c1565b600980546001600160a01b0319166001600160a01b038316179055600160055550565b610a28610ec4565b610a323382610fdc565b60065460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af1158015610a83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa7919061129f565b50610ab061054a565b60405163a9059cbb60e01b8152336004820152602481018390526001600160a01b03919091169063a9059cbb906044016020604051808303816000875af1158015610aff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b23919061129f565b5060405181815233907f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b93699060200161082b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b038316610be35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610603565b6001600160a01b038216610c445760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610603565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6000610cb28484610b56565b90506000198114610d1a5781811015610d0d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610603565b610d1a8484848403610b81565b50505050565b6001600160a01b038316610d845760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610603565b6001600160a01b038216610de65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610603565b6001600160a01b03831660009081526020819052604090205481811015610e5e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610603565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610d1a565b600260055403610f165760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610603565b6002600555565b6001600160a01b038216610f735760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610603565b8060026000828254610f85919061127e565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b03821661103c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610603565b6001600160a01b038216600090815260208190526040902054818110156110b05760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610603565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610c99565b600060208083528351808285015260005b8181101561113357858101830151858201604001528201611117565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461116b57600080fd5b919050565b6000806040838503121561118357600080fd5b61118c83611154565b946020939093013593505050565b6000806000606084860312156111af57600080fd5b6111b884611154565b92506111c660208501611154565b9150604084013590509250925092565b6000602082840312156111e857600080fd5b6111f182611154565b9392505050565b60006020828403121561120a57600080fd5b5035919050565b6000806040838503121561122457600080fd5b61122d83611154565b915061123b60208401611154565b90509250929050565b600181811c9082168061125857607f821691505b60208210810361127857634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561052057634e487b7160e01b600052601160045260246000fd5b6000602082840312156112b157600080fd5b815180151581146111f157600080fd5b60208082526029908201527f4f6e6c7920436f6d62696e61746f722044414f20416464726573732063616e20604082015268393ab7103a3434b99760b91b60608201526080019056fea26469706673582212202943357a1e2ea92d91f608f1be6e5f6bf79e6aab3c820b8c0a6001f182cc7d7064736f6c63430008120033

Block Transaction Difficulty 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
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.