ETH Price: $3,566.91 (-3.96%)

Token

Duo ETH (DETH)
 

Overview

Max Total Supply

23,589.985899599200426408 DETH

Holders

24,266

Market

Price

$0.00 @ 0.000000 ETH

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0.000000000000000001 DETH

Value
$0.00
0xca63f155EaD7b40e2E67Dc5f7E8cA50BFB283FD0
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Duo Exchange is an interest rate swap protocol that allows LPs to boost yield or airdrop points.

Contract Source Code Verified (Exact Match)

Contract Name:
DuoAssetToken

Compiler Version
v0.8.23+commit.f704f362

Optimization Enabled:
Yes with 2000 runs

Other Settings:
paris EvmVersion
File 1 of 14 : DuoAssetToken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {ERC20} from "../../lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol";
import {ERC20Burnable} from "../../lib/openzeppelin-contracts/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import {CoreRef} from "../core/CoreRef.sol";
import {BlastManager} from "../libraries/BlastManager.sol";
import {IDuoAssetToken} from "../interfaces/IDuoAssetToken.sol";

contract DuoAssetToken is IDuoAssetToken, ERC20Burnable, CoreRef, BlastManager {
    // solhint-disable-next-line var-name-mixedcase
    bytes32 public DOMAIN_SEPARATOR;
    // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
    bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
    mapping(address => uint256) public nonces;

    constructor(string memory name_, string memory symbol_, address core_) ERC20(name_, symbol_) CoreRef(core_) {
        uint256 chainId;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            chainId := chainid()
        }
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                keccak256(bytes(name())),
                keccak256(bytes("1")),
                chainId,
                address(this)
            )
        );
    }

    /**
     * @notice mint new tokens
     * @param account the address of the destination account
     * @param amount the number of tokens to be minted
     */
    function mint(address account, uint256 amount) external override onlyMinter {
        _mint(account, amount);
        emit Minting(account, msg.sender, amount);
    }

    /**
     * @notice burn Duo asset tokens from caller
     * @param amount the amount to burn
     */
    function burn(uint256 amount) public override(IDuoAssetToken, ERC20Burnable) {
        super.burn(amount);
        emit Burning(msg.sender, msg.sender, amount);
    }

    /**
     * @notice burn Duo asset tokens from specified account
     * @param account the account to burn from
     * @param amount the amount to burn
     */
    function burnFrom(address account, uint256 amount) public override(IDuoAssetToken, ERC20Burnable) onlyBurner {
        _burn(account, amount);
        emit Burning(account, msg.sender, amount);
    }

    /**
     * @notice triggers an approval from owner to spends
     * @param owner the address to approve from
     * @param spender the address to be approved
     * @param value the number of tokens that are approved (2^256-1 means infinite)
     * @param deadline the time at which to expire the signature
     * @param v the recovery byte of the signature
     * @param r half of the ECDSA signature pair
     * @param s half of the ECDSA signature pair
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external override {
        require(deadline >= block.timestamp, "Duo: EXPIRED");
        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                DOMAIN_SEPARATOR,
                keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))
            )
        );
        address recoveredAddress = ecrecover(digest, v, r, s);
        require(recoveredAddress != address(0) && recoveredAddress == owner, "Duo: INVALID_SIGNATURE");
        _approve(owner, spender, value);
    }
}

File 2 of 14 : 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 3 of 14 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../utils/Context.sol";

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

File 4 of 14 : CoreRef.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {ICore} from "../core/ICore.sol";
import {ICoreRef} from "./ICoreRef.sol";

/// @title A Reference to Core
/// @notice defines some modifiers and utilities around interacting with Core
abstract contract CoreRef is ICoreRef {
    ICore private _core;

    // solhint-disable-next-line var-name-mixedcase
    bool public EMERGENCY;

    /// @notice CoreRef constructor
    /// @param coreAddress Few Core to reference
    constructor(address coreAddress) {
        _core = ICore(coreAddress);
    }

    modifier onlyMinter() {
        require(_core.isMinter(msg.sender), "CoreRef: Caller is not a minter");
        _;
    }

    modifier onlyBurner() {
        require(_core.isBurner(msg.sender), "CoreRef: Caller is not a burner");
        _;
    }

    modifier onlyGovernor() {
        require(_core.isGovernor(msg.sender), "CoreRef: Caller is not a governor");
        _;
    }

    modifier onlyGuardianOrGovernor() {
        require(
            _core.isGovernor(msg.sender) || _core.isGuardian(msg.sender),
            "CoreRef: Caller is not a guardian or governor"
        );
        _;
    }

    /// @notice set new Core reference address
    /// @param coreAddress the new core address
    function setCore(address coreAddress) external override onlyGovernor {
        _core = ICore(coreAddress);
        emit CoreUpdate(coreAddress);
    }

    function emergency() external view override returns (bool) {
        return EMERGENCY;
    }

    function startEmergency() external override onlyGuardianOrGovernor {
        EMERGENCY = true;
        emit EmergencyUpdate(true);
    }

    function stopEmergency() external override onlyGuardianOrGovernor {
        EMERGENCY = false;
        emit EmergencyUpdate(false);
    }

    /// @notice address of the Core contract referenced
    /// @return ICore implementation address
    function core() public view override returns (ICore) {
        return _core;
    }
}

File 5 of 14 : BlastManager.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {IBlast} from "../interfaces/IBlast.sol";
import {IBlastPoints} from "../interfaces/IBlastPoints.sol";

contract BlastManager {
    IBlast public constant BLAST = IBlast(0x4300000000000000000000000000000000000002);
    address public manager;

    modifier onlyManager() {
        require(msg.sender == manager, "Blast: not manager");
        _;
    }

    constructor() {
        manager = msg.sender;
        BLAST.configureClaimableGas();
    }

    function claimGas(address recipient, bool isMax) external onlyManager returns (uint256) {
        if (isMax) {
            return BLAST.claimMaxGas(address(this), recipient);
        } else {
            return BLAST.claimAllGas(address(this), recipient);
        }
    }

    function setManager(address _manager) external onlyManager {
        manager = _manager;
    }

    function setGasMode(address blastGas) external onlyManager {
        IBlast(blastGas).configureClaimableGas();
    }

    function setPointsOperator(address blastPoints, address operator) external onlyManager {
        IBlastPoints(blastPoints).configurePointsOperator(operator);
    }
}

File 6 of 14 : IDuoAssetToken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {IERC20} from "../../lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";

interface IDuoAssetToken is IERC20 {
    event Minting(address indexed _to, address indexed _minter, uint256 _amount);
    event Burning(address indexed _to, address indexed _burner, uint256 _amount);

    function burn(uint256 amount) external;

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    function burnFrom(address account, uint256 amount) external;

    function mint(address account, uint256 amount) external;
}

File 7 of 14 : 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 8 of 14 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 9 of 14 : 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 10 of 14 : ICore.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

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

/// @title Core Interface
interface ICore is IPermissions {
    function init() external;
}

File 11 of 14 : ICoreRef.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {ICore} from "../core/ICore.sol";

/// @title CoreRef interface
interface ICoreRef {
    event CoreUpdate(address indexed _core);
    event EmergencyUpdate(bool _emergency);
    event MinterUpdate(address indexed _minter, bool _status);
    event BurnerUpdate(address indexed _burner, bool _status);

    function emergency() external view returns (bool);

    function startEmergency() external;

    function stopEmergency() external;

    function setCore(address coreAddress) external;

    function core() external view returns (ICore);
}

File 12 of 14 : IBlast.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

enum YieldMode {
    AUTOMATIC,
    DISABLED,
    CLAIMABLE
}

enum GasMode {
    VOID,
    CLAIMABLE
}

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

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

    // base configuration options
    function configureClaimableYield() external;

    function configureClaimableYieldOnBehalf(address contractAddress) external;

    function configureAutomaticYield() external;

    function configureAutomaticYieldOnBehalf(address contractAddress) external;

    function configureVoidYield() external;

    function configureVoidYieldOnBehalf(address contractAddress) external;

    function configureClaimableGas() external;

    function configureClaimableGasOnBehalf(address contractAddress) external;

    function configureVoidGas() external;

    function configureVoidGasOnBehalf(address contractAddress) external;

    function configureGovernor(address _governor) external;

    function configureGovernorOnBehalf(
        address _newGovernor,
        address contractAddress
    ) external;

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

    function claimAllYield(
        address contractAddress,
        address recipientOfYield
    ) external returns (uint256);

    // claim gas
    function claimAllGas(
        address contractAddress,
        address recipientOfGas
    ) external returns (uint256);

    function claimGasAtMinClaimRate(
        address contractAddress,
        address recipientOfGas,
        uint256 minClaimRateBips
    ) external returns (uint256);

    function claimMaxGas(
        address contractAddress,
        address recipientOfGas
    ) external returns (uint256);

    function claimGas(
        address contractAddress,
        address recipientOfGas,
        uint256 gasToClaim,
        uint256 gasSecondsToConsume
    ) external returns (uint256);

    // read functions
    function readClaimableYield(
        address contractAddress
    ) external view returns (uint256);

    function readYieldConfiguration(
        address contractAddress
    ) external view returns (uint8);

    function readGasParams(
        address contractAddress
    )
        external
        view
        returns (
            uint256 etherSeconds,
            uint256 etherBalance,
            uint256 lastUpdated,
            GasMode
        );
}

File 13 of 14 : IBlastPoints.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

interface IBlastPoints {
    /**
     * @notice Blast standard: configure for blast point operator address
     * @param operator the blast points operator address
     */
    function configurePointsOperator(address operator) external;
}

File 14 of 14 : IPermissions.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

/// @title Permissions interface
interface IPermissions {
    // ----------- Governor only state changing api -----------

    function createRole(bytes32 role, bytes32 adminRole) external;

    function grantGovernor(address governor) external;

    function grantGuardian(address guardian) external;

    function grantMinter(address minter) external;

    function grantBurner(address burner) external;

    function revokeGovernor(address governor) external;

    function revokeGuardian(address guardian) external;

    function revokeMinter(address minter) external;

    function revokeBurner(address burner) external;

    // ----------- Revoker only state changing api -----------

    function revokeOverride(bytes32 role, address account) external;

    // ----------- Getters -----------

    function isGovernor(address _address) external view returns (bool);

    function isGuardian(address _address) external view returns (bool);

    function isMinter(address _address) external view returns (bool);

    function isBurner(address _address) external view returns (bool);
}

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"address","name":"core_","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":true,"internalType":"address","name":"_burner","type":"address"},{"indexed":false,"internalType":"bool","name":"_status","type":"bool"}],"name":"BurnerUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"address","name":"_burner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Burning","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_core","type":"address"}],"name":"CoreUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"_emergency","type":"bool"}],"name":"EmergencyUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_minter","type":"address"},{"indexed":false,"internalType":"bool","name":"_status","type":"bool"}],"name":"MinterUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"address","name":"_minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Minting","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":"BLAST","outputs":[{"internalType":"contract IBlast","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EMERGENCY","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"bool","name":"isMax","type":"bool"}],"name":"claimGas","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"core","outputs":[{"internalType":"contract ICore","name":"","type":"address"}],"stateMutability":"view","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":"emergency","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"manager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"coreAddress","type":"address"}],"name":"setCore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"blastGas","type":"address"}],"name":"setGasMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"blastPoints","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"setPointsOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startEmergency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopEmergency","outputs":[],"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":"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"}]

60806040523480156200001157600080fd5b506040516200219c3803806200219c833981016040819052620000349162000301565b80838360036200004583826200041f565b5060046200005482826200041f565b5050600580546001600160a01b039093166001600160a01b031993841617905550600680549091163317905560408051634e606c4760e01b8152905173430000000000000000000000000000000000000291634e606c4791600480830192600092919082900301818387803b158015620000cd57600080fd5b505af1158015620000e2573d6000803e3d6000fd5b504692507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f91506200011590506200019f565b805160209182012060408051808201825260018152603160f81b90840152805192830193909352918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060820152608081018290523060a082015260c0016040516020818303038152906040528051906020012060078190555050505050620004eb565b606060038054620001b0906200038e565b80601f0160208091040260200160405190810160405280929190818152602001828054620001de906200038e565b80156200022f5780601f1062000203576101008083540402835291602001916200022f565b820191906000526020600020905b8154815290600101906020018083116200021157829003601f168201915b5050505050905090565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200026157600080fd5b81516001600160401b03808211156200027e576200027e62000239565b604051601f8301601f19908116603f01168101908282118183101715620002a957620002a962000239565b8160405283815260209250866020858801011115620002c757600080fd5b600091505b83821015620002eb5785820183015181830184015290820190620002cc565b6000602085830101528094505050505092915050565b6000806000606084860312156200031757600080fd5b83516001600160401b03808211156200032f57600080fd5b6200033d878388016200024f565b945060208601519150808211156200035457600080fd5b5062000363868287016200024f565b604086015190935090506001600160a01b03811681146200038357600080fd5b809150509250925092565b600181811c90821680620003a357607f821691505b602082108103620003c457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200041a576000816000526020600020601f850160051c81016020861015620003f55750805b601f850160051c820191505b81811015620004165782815560010162000401565b5050505b505050565b81516001600160401b038111156200043b576200043b62000239565b62000453816200044c84546200038e565b84620003ca565b602080601f8311600181146200048b5760008415620004725750858301515b600019600386901b1c1916600185901b17855562000416565b600085815260208120601f198616915b82811015620004bc578886015182559484019460019091019084016200049b565b5085821015620004db5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611ca180620004fb6000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80637ecebe0011610104578063a9359d92116100a2578063d505accf11610071578063d505accf14610433578063dd62ed3e14610446578063e220831d1461047f578063f2f4eb261461049257600080fd5b8063a9359d92146103c5578063c8b11dfe146103ea578063caa6fea4146103fd578063d0ebdbe71461042057600080fd5b806397d75776116100de57806397d757761461037c57806397db7edb14610397578063a457c2d71461039f578063a9059cbb146103b257600080fd5b80637ecebe0014610341578063800096301461036157806395d89b411461037457600080fd5b8063313ce5671161017c57806342966c681161014b57806342966c68146102c7578063481c6a75146102da57806370a082311461030557806379cc67901461032e57600080fd5b8063313ce567146102895780633644e5151461029857806339509351146102a157806340c10f19146102b457600080fd5b806318160ddd116101b857806318160ddd1461022a57806323b872dd1461023c5780632d195bd21461024f57806330adf81f1461026257600080fd5b806306fdde03146101df578063095ea7b3146101fd5780630fb7e60214610220575b600080fd5b6101e76104a3565b6040516101f4919061198f565b60405180910390f35b61021061020b3660046119fa565b610535565b60405190151581526020016101f4565b61022861054f565b005b6002545b6040519081526020016101f4565b61021061024a366004611a24565b610733565b61022861025d366004611a60565b610757565b61022e7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b604051601281526020016101f4565b61022e60075481565b6102106102af3660046119fa565b610807565b6102286102c23660046119fa565b610846565b6102286102d5366004611a82565b610966565b6006546102ed906001600160a01b031681565b6040516001600160a01b0390911681526020016101f4565b61022e610313366004611a60565b6001600160a01b031660009081526020819052604090205490565b61022861033c3660046119fa565b6109a9565b61022e61034f366004611a60565b60086020526000908152604090205481565b61022861036f366004611a60565b610ac1565b6101e7610c01565b6102ed73430000000000000000000000000000000000000281565b610228610c10565b6102106103ad3660046119fa565b610dd2565b6102106103c03660046119fa565b610e7c565b6005546102109074010000000000000000000000000000000000000000900460ff1681565b61022e6103f8366004611aa9565b610e8a565b60055474010000000000000000000000000000000000000000900460ff16610210565b61022861042e366004611a60565b610ff1565b610228610441366004611ae0565b611085565b61022e610454366004611b53565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61022861048d366004611b53565b6112bf565b6005546001600160a01b03166102ed565b6060600380546104b290611b86565b80601f01602080910402602001604051908101604052809291908181526020018280546104de90611b86565b801561052b5780601f106105005761010080835404028352916020019161052b565b820191906000526020600020905b81548152906001019060200180831161050e57829003601f168201915b5050505050905090565b600033610543818585611391565b60019150505b92915050565b600554604051631c86b03760e31b81523360048201526001600160a01b039091169063e43581b890602401602060405180830381865afa158015610597573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105bb9190611bd9565b8061064657506005546040517f0c68ba210000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690630c68ba2190602401602060405180830381865afa158015610622573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106469190611bd9565b6106bd5760405162461bcd60e51b815260206004820152602d60248201527f436f72655265663a2043616c6c6572206973206e6f742061206775617264696160448201527f6e206f7220676f7665726e6f720000000000000000000000000000000000000060648201526084015b60405180910390fd5b600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055604051600181527ffb42c1145c310d3034571b76a56346cc592d8c24144acd44c3bb098ef0f9aed8906020015b60405180910390a1565b6000336107418582856114ea565b61074c85858561157c565b506001949350505050565b6006546001600160a01b031633146107b15760405162461bcd60e51b815260206004820152601260248201527f426c6173743a206e6f74206d616e61676572000000000000000000000000000060448201526064016106b4565b806001600160a01b0316634e606c476040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156107ec57600080fd5b505af1158015610800573d6000803e3d6000fd5b5050505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906105439082908690610841908790611c25565b611391565b6005546040517faa271e1a0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063aa271e1a90602401602060405180830381865afa1580156108a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108cb9190611bd9565b6109175760405162461bcd60e51b815260206004820152601f60248201527f436f72655265663a2043616c6c6572206973206e6f742061206d696e7465720060448201526064016106b4565b6109218282611769565b60405181815233906001600160a01b038416907fb1233017d63154bc561d57c16f7b6a55e2e1acd7fcac94045a9f35fb31a850ca906020015b60405180910390a35050565b61096f81611821565b604051818152339081907f227fb4b3aae8331f21af5167739c291fefe3afd3c2e08cea44f499e564f486ef9060200160405180910390a350565b6005546040517f4334614a0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690634334614a90602401602060405180830381865afa158015610a0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2e9190611bd9565b610a7a5760405162461bcd60e51b815260206004820152601f60248201527f436f72655265663a2043616c6c6572206973206e6f742061206275726e65720060448201526064016106b4565b610a84828261182e565b60405181815233906001600160a01b038416907f227fb4b3aae8331f21af5167739c291fefe3afd3c2e08cea44f499e564f486ef9060200161095a565b600554604051631c86b03760e31b81523360048201526001600160a01b039091169063e43581b890602401602060405180830381865afa158015610b09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2d9190611bd9565b610b9f5760405162461bcd60e51b815260206004820152602160248201527f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f60448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016106b4565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040517fad9400e618eb1344fde53db22397a1b82c765527ecbba3a5c86bcac15090828b90600090a250565b6060600480546104b290611b86565b600554604051631c86b03760e31b81523360048201526001600160a01b039091169063e43581b890602401602060405180830381865afa158015610c58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7c9190611bd9565b80610d0757506005546040517f0c68ba210000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690630c68ba2190602401602060405180830381865afa158015610ce3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d079190611bd9565b610d795760405162461bcd60e51b815260206004820152602d60248201527f436f72655265663a2043616c6c6572206973206e6f742061206775617264696160448201527f6e206f7220676f7665726e6f720000000000000000000000000000000000000060648201526084016106b4565b600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055604051600081527ffb42c1145c310d3034571b76a56346cc592d8c24144acd44c3bb098ef0f9aed890602001610729565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610e6f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016106b4565b61074c8286868403611391565b60003361054381858561157c565b6006546000906001600160a01b03163314610ee75760405162461bcd60e51b815260206004820152601260248201527f426c6173743a206e6f74206d616e61676572000000000000000000000000000060448201526064016106b4565b8115610f92576040517f662aa11d0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03841660248201527343000000000000000000000000000000000000029063662aa11d906044015b6020604051808303816000875af1158015610f67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8b9190611c38565b9050610549565b6040517f954fa5ee0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03841660248201527343000000000000000000000000000000000000029063954fa5ee90604401610f48565b6006546001600160a01b0316331461104b5760405162461bcd60e51b815260206004820152601260248201527f426c6173743a206e6f74206d616e61676572000000000000000000000000000060448201526064016106b4565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b428410156110d55760405162461bcd60e51b815260206004820152600c60248201527f44756f3a2045585049524544000000000000000000000000000000000000000060448201526064016106b4565b6007546001600160a01b038816600090815260086020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b91908761112883611c51565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e001604051602081830303815290604052805190602001206040516020016111bc9291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa158015611227573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381161580159061125d5750886001600160a01b0316816001600160a01b0316145b6112a95760405162461bcd60e51b815260206004820152601660248201527f44756f3a20494e56414c49445f5349474e41545552450000000000000000000060448201526064016106b4565b6112b4898989611391565b505050505050505050565b6006546001600160a01b031633146113195760405162461bcd60e51b815260206004820152601260248201527f426c6173743a206e6f74206d616e61676572000000000000000000000000000060448201526064016106b4565b6040517f36b91f2b0000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301528316906336b91f2b90602401600060405180830381600087803b15801561137557600080fd5b505af1158015611389573d6000803e3d6000fd5b505050505050565b6001600160a01b03831661140c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b0382166114885760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461157657818110156115695760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106b4565b6115768484848403611391565b50505050565b6001600160a01b0383166115f85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b0382166116745760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b038316600090815260208190526040902054818110156117035760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611576565b6001600160a01b0382166117bf5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106b4565b80600260008282546117d19190611c25565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161095a565b61182b338261182e565b50565b6001600160a01b0382166118aa5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b038216600090815260208190526040902054818110156119395760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016114dd565b60006020808352835180602085015260005b818110156119bd578581018301518582016040015282016119a1565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146119f557600080fd5b919050565b60008060408385031215611a0d57600080fd5b611a16836119de565b946020939093013593505050565b600080600060608486031215611a3957600080fd5b611a42846119de565b9250611a50602085016119de565b9150604084013590509250925092565b600060208284031215611a7257600080fd5b611a7b826119de565b9392505050565b600060208284031215611a9457600080fd5b5035919050565b801515811461182b57600080fd5b60008060408385031215611abc57600080fd5b611ac5836119de565b91506020830135611ad581611a9b565b809150509250929050565b600080600080600080600060e0888a031215611afb57600080fd5b611b04886119de565b9650611b12602089016119de565b95506040880135945060608801359350608088013560ff81168114611b3657600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611b6657600080fd5b611b6f836119de565b9150611b7d602084016119de565b90509250929050565b600181811c90821680611b9a57607f821691505b602082108103611bd3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600060208284031215611beb57600080fd5b8151611a7b81611a9b565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561054957610549611bf6565b600060208284031215611c4a57600080fd5b5051919050565b60006000198203611c6457611c64611bf6565b506001019056fea26469706673582212208064e533118a88183179cf9304c0b0a238bf18044de5b1988736539a19db888064736f6c63430008170033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000004230da5d79d7503a080684564ba30dd9f0f74020000000000000000000000000000000000000000000000000000000000000000744756f204554480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044445544800000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101da5760003560e01c80637ecebe0011610104578063a9359d92116100a2578063d505accf11610071578063d505accf14610433578063dd62ed3e14610446578063e220831d1461047f578063f2f4eb261461049257600080fd5b8063a9359d92146103c5578063c8b11dfe146103ea578063caa6fea4146103fd578063d0ebdbe71461042057600080fd5b806397d75776116100de57806397d757761461037c57806397db7edb14610397578063a457c2d71461039f578063a9059cbb146103b257600080fd5b80637ecebe0014610341578063800096301461036157806395d89b411461037457600080fd5b8063313ce5671161017c57806342966c681161014b57806342966c68146102c7578063481c6a75146102da57806370a082311461030557806379cc67901461032e57600080fd5b8063313ce567146102895780633644e5151461029857806339509351146102a157806340c10f19146102b457600080fd5b806318160ddd116101b857806318160ddd1461022a57806323b872dd1461023c5780632d195bd21461024f57806330adf81f1461026257600080fd5b806306fdde03146101df578063095ea7b3146101fd5780630fb7e60214610220575b600080fd5b6101e76104a3565b6040516101f4919061198f565b60405180910390f35b61021061020b3660046119fa565b610535565b60405190151581526020016101f4565b61022861054f565b005b6002545b6040519081526020016101f4565b61021061024a366004611a24565b610733565b61022861025d366004611a60565b610757565b61022e7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b604051601281526020016101f4565b61022e60075481565b6102106102af3660046119fa565b610807565b6102286102c23660046119fa565b610846565b6102286102d5366004611a82565b610966565b6006546102ed906001600160a01b031681565b6040516001600160a01b0390911681526020016101f4565b61022e610313366004611a60565b6001600160a01b031660009081526020819052604090205490565b61022861033c3660046119fa565b6109a9565b61022e61034f366004611a60565b60086020526000908152604090205481565b61022861036f366004611a60565b610ac1565b6101e7610c01565b6102ed73430000000000000000000000000000000000000281565b610228610c10565b6102106103ad3660046119fa565b610dd2565b6102106103c03660046119fa565b610e7c565b6005546102109074010000000000000000000000000000000000000000900460ff1681565b61022e6103f8366004611aa9565b610e8a565b60055474010000000000000000000000000000000000000000900460ff16610210565b61022861042e366004611a60565b610ff1565b610228610441366004611ae0565b611085565b61022e610454366004611b53565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61022861048d366004611b53565b6112bf565b6005546001600160a01b03166102ed565b6060600380546104b290611b86565b80601f01602080910402602001604051908101604052809291908181526020018280546104de90611b86565b801561052b5780601f106105005761010080835404028352916020019161052b565b820191906000526020600020905b81548152906001019060200180831161050e57829003601f168201915b5050505050905090565b600033610543818585611391565b60019150505b92915050565b600554604051631c86b03760e31b81523360048201526001600160a01b039091169063e43581b890602401602060405180830381865afa158015610597573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105bb9190611bd9565b8061064657506005546040517f0c68ba210000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690630c68ba2190602401602060405180830381865afa158015610622573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106469190611bd9565b6106bd5760405162461bcd60e51b815260206004820152602d60248201527f436f72655265663a2043616c6c6572206973206e6f742061206775617264696160448201527f6e206f7220676f7665726e6f720000000000000000000000000000000000000060648201526084015b60405180910390fd5b600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055604051600181527ffb42c1145c310d3034571b76a56346cc592d8c24144acd44c3bb098ef0f9aed8906020015b60405180910390a1565b6000336107418582856114ea565b61074c85858561157c565b506001949350505050565b6006546001600160a01b031633146107b15760405162461bcd60e51b815260206004820152601260248201527f426c6173743a206e6f74206d616e61676572000000000000000000000000000060448201526064016106b4565b806001600160a01b0316634e606c476040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156107ec57600080fd5b505af1158015610800573d6000803e3d6000fd5b5050505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906105439082908690610841908790611c25565b611391565b6005546040517faa271e1a0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039091169063aa271e1a90602401602060405180830381865afa1580156108a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108cb9190611bd9565b6109175760405162461bcd60e51b815260206004820152601f60248201527f436f72655265663a2043616c6c6572206973206e6f742061206d696e7465720060448201526064016106b4565b6109218282611769565b60405181815233906001600160a01b038416907fb1233017d63154bc561d57c16f7b6a55e2e1acd7fcac94045a9f35fb31a850ca906020015b60405180910390a35050565b61096f81611821565b604051818152339081907f227fb4b3aae8331f21af5167739c291fefe3afd3c2e08cea44f499e564f486ef9060200160405180910390a350565b6005546040517f4334614a0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690634334614a90602401602060405180830381865afa158015610a0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2e9190611bd9565b610a7a5760405162461bcd60e51b815260206004820152601f60248201527f436f72655265663a2043616c6c6572206973206e6f742061206275726e65720060448201526064016106b4565b610a84828261182e565b60405181815233906001600160a01b038416907f227fb4b3aae8331f21af5167739c291fefe3afd3c2e08cea44f499e564f486ef9060200161095a565b600554604051631c86b03760e31b81523360048201526001600160a01b039091169063e43581b890602401602060405180830381865afa158015610b09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2d9190611bd9565b610b9f5760405162461bcd60e51b815260206004820152602160248201527f436f72655265663a2043616c6c6572206973206e6f74206120676f7665726e6f60448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016106b4565b600580547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040517fad9400e618eb1344fde53db22397a1b82c765527ecbba3a5c86bcac15090828b90600090a250565b6060600480546104b290611b86565b600554604051631c86b03760e31b81523360048201526001600160a01b039091169063e43581b890602401602060405180830381865afa158015610c58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7c9190611bd9565b80610d0757506005546040517f0c68ba210000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0390911690630c68ba2190602401602060405180830381865afa158015610ce3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d079190611bd9565b610d795760405162461bcd60e51b815260206004820152602d60248201527f436f72655265663a2043616c6c6572206973206e6f742061206775617264696160448201527f6e206f7220676f7665726e6f720000000000000000000000000000000000000060648201526084016106b4565b600580547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055604051600081527ffb42c1145c310d3034571b76a56346cc592d8c24144acd44c3bb098ef0f9aed890602001610729565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610e6f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016106b4565b61074c8286868403611391565b60003361054381858561157c565b6006546000906001600160a01b03163314610ee75760405162461bcd60e51b815260206004820152601260248201527f426c6173743a206e6f74206d616e61676572000000000000000000000000000060448201526064016106b4565b8115610f92576040517f662aa11d0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03841660248201527343000000000000000000000000000000000000029063662aa11d906044015b6020604051808303816000875af1158015610f67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f8b9190611c38565b9050610549565b6040517f954fa5ee0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03841660248201527343000000000000000000000000000000000000029063954fa5ee90604401610f48565b6006546001600160a01b0316331461104b5760405162461bcd60e51b815260206004820152601260248201527f426c6173743a206e6f74206d616e61676572000000000000000000000000000060448201526064016106b4565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b428410156110d55760405162461bcd60e51b815260206004820152600c60248201527f44756f3a2045585049524544000000000000000000000000000000000000000060448201526064016106b4565b6007546001600160a01b038816600090815260086020526040812080549192917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b91908761112883611c51565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e001604051602081830303815290604052805190602001206040516020016111bc9291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa158015611227573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381161580159061125d5750886001600160a01b0316816001600160a01b0316145b6112a95760405162461bcd60e51b815260206004820152601660248201527f44756f3a20494e56414c49445f5349474e41545552450000000000000000000060448201526064016106b4565b6112b4898989611391565b505050505050505050565b6006546001600160a01b031633146113195760405162461bcd60e51b815260206004820152601260248201527f426c6173743a206e6f74206d616e61676572000000000000000000000000000060448201526064016106b4565b6040517f36b91f2b0000000000000000000000000000000000000000000000000000000081526001600160a01b0382811660048301528316906336b91f2b90602401600060405180830381600087803b15801561137557600080fd5b505af1158015611389573d6000803e3d6000fd5b505050505050565b6001600160a01b03831661140c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b0382166114885760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461157657818110156115695760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106b4565b6115768484848403611391565b50505050565b6001600160a01b0383166115f85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b0382166116745760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b038316600090815260208190526040902054818110156117035760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611576565b6001600160a01b0382166117bf5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106b4565b80600260008282546117d19190611c25565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161095a565b61182b338261182e565b50565b6001600160a01b0382166118aa5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b038216600090815260208190526040902054818110156119395760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016106b4565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91016114dd565b60006020808352835180602085015260005b818110156119bd578581018301518582016040015282016119a1565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146119f557600080fd5b919050565b60008060408385031215611a0d57600080fd5b611a16836119de565b946020939093013593505050565b600080600060608486031215611a3957600080fd5b611a42846119de565b9250611a50602085016119de565b9150604084013590509250925092565b600060208284031215611a7257600080fd5b611a7b826119de565b9392505050565b600060208284031215611a9457600080fd5b5035919050565b801515811461182b57600080fd5b60008060408385031215611abc57600080fd5b611ac5836119de565b91506020830135611ad581611a9b565b809150509250929050565b600080600080600080600060e0888a031215611afb57600080fd5b611b04886119de565b9650611b12602089016119de565b95506040880135945060608801359350608088013560ff81168114611b3657600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611b6657600080fd5b611b6f836119de565b9150611b7d602084016119de565b90509250929050565b600181811c90821680611b9a57607f821691505b602082108103611bd3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600060208284031215611beb57600080fd5b8151611a7b81611a9b565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561054957610549611bf6565b600060208284031215611c4a57600080fd5b5051919050565b60006000198203611c6457611c64611bf6565b506001019056fea26469706673582212208064e533118a88183179cf9304c0b0a238bf18044de5b1988736539a19db888064736f6c63430008170033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000004230da5d79d7503a080684564ba30dd9f0f74020000000000000000000000000000000000000000000000000000000000000000744756f204554480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044445544800000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Duo ETH
Arg [1] : symbol_ (string): DETH
Arg [2] : core_ (address): 0x4230da5d79D7503a080684564BA30dD9f0F74020

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000004230da5d79d7503a080684564ba30dd9f0f74020
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [4] : 44756f2045544800000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 4445544800000000000000000000000000000000000000000000000000000000


[ Download: CSV Export  ]
[ Download: CSV Export  ]

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