ETH Price: $2,944.95 (-1.88%)

Contract

0x983C1fAfe2769f495ff41D222FF6F733b5017cFB

Overview

ETH Balance

Linea Mainnet LogoLinea Mainnet LogoLinea Mainnet Logo0 ETH

ETH Value

$0.00

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Approve272599312025-12-31 8:39:1628 days ago1767170356IN
0x983C1fAf...3b5017cFB
0 ETH0.000000960.04023411
Approve272588162025-12-31 7:58:5428 days ago1767167934IN
0x983C1fAf...3b5017cFB
0 ETH0.000000960.04023411
Approve248583402025-10-24 8:13:1996 days ago1761293599IN
0x983C1fAf...3b5017cFB
0 ETH0.000001970.04257618
Approve221215612025-08-16 17:03:57165 days ago1755363837IN
0x983C1fAf...3b5017cFB
0 ETH0.00000130.05424276
Approve194661062025-05-29 9:00:34244 days ago1748509234IN
0x983C1fAf...3b5017cFB
0 ETH0.000001690.07048709
Approve192540132025-05-22 18:15:53251 days ago1747937753IN
0x983C1fAf...3b5017cFB
0 ETH0.000001610.06706474
Approve185955382025-05-02 5:30:22271 days ago1746163822IN
0x983C1fAf...3b5017cFB
0 ETH0.000017530.3785368
Approve175599992025-03-31 9:23:44303 days ago1743413024IN
0x983C1fAf...3b5017cFB
0 ETH0.000002440.05287418
Approve175588472025-03-31 8:42:56303 days ago1743410576IN
0x983C1fAf...3b5017cFB
0 ETH0.000003150.06811927
Approve170900242025-03-18 14:20:51316 days ago1742307651IN
0x983C1fAf...3b5017cFB
0 ETH0.000002520.0544347
Approve166165392025-03-06 12:36:34328 days ago1741264594IN
0x983C1fAf...3b5017cFB
0 ETH0.000001680.0700295
Approve156449122025-02-10 7:18:23352 days ago1739171903IN
0x983C1fAf...3b5017cFB
0 ETH0.000004970.10742857
Approve150402312025-01-25 23:11:09368 days ago1737846669IN
0x983C1fAf...3b5017cFB
0 ETH0.000002580.05588508
Approve145096062025-01-12 21:52:43381 days ago1736718763IN
0x983C1fAf...3b5017cFB
0 ETH0.000001630.06793832
Approve143232232025-01-08 9:09:10385 days ago1736327350IN
0x983C1fAf...3b5017cFB
0 ETH0.000001710.07117347
Approve142715702025-01-07 3:02:04387 days ago1736218924IN
0x983C1fAf...3b5017cFB
0 ETH0.000001710.07127415
Approve142710702025-01-07 2:44:56387 days ago1736217896IN
0x983C1fAf...3b5017cFB
0 ETH0.000006170.13410904
Approve138145712024-12-26 18:20:52398 days ago1735237252IN
0x983C1fAf...3b5017cFB
0 ETH0.000018720.40408505
Approve131033542024-12-09 18:33:02415 days ago1733769182IN
0x983C1fAf...3b5017cFB
0 ETH0.000006290.13595413
Approve128468662024-12-03 10:59:19421 days ago1733223559IN
0x983C1fAf...3b5017cFB
0 ETH0.000003990.08626338
Approve125769452024-11-26 23:04:21428 days ago1732662261IN
0x983C1fAf...3b5017cFB
0 ETH0.000017960.39
Approve125410882024-11-26 2:42:36429 days ago1732588956IN
0x983C1fAf...3b5017cFB
0 ETH0.000005010.20852316
Approve125406252024-11-26 2:26:42429 days ago1732588002IN
0x983C1fAf...3b5017cFB
0 ETH0.000006270.13633801
Approve125031212024-11-25 4:06:37429 days ago1732507597IN
0x983C1fAf...3b5017cFB
0 ETH0.000010550.43900079
Approve125028812024-11-25 3:58:37429 days ago1732507117IN
0x983C1fAf...3b5017cFB
0 ETH0.000041290.89657171
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
251147712025-10-31 10:51:1089 days ago1761907870
0x983C1fAf...3b5017cFB
0 ETH
251147712025-10-31 10:51:1089 days ago1761907870
0x983C1fAf...3b5017cFB
0 ETH
251147712025-10-31 10:51:1089 days ago1761907870
0x983C1fAf...3b5017cFB
0 ETH
251147712025-10-31 10:51:1089 days ago1761907870
0x983C1fAf...3b5017cFB
0 ETH
251147712025-10-31 10:51:1089 days ago1761907870
0x983C1fAf...3b5017cFB
0 ETH
248583502025-10-24 8:13:3996 days ago1761293619
0x983C1fAf...3b5017cFB
0 ETH
248583502025-10-24 8:13:3996 days ago1761293619
0x983C1fAf...3b5017cFB
0 ETH
248583502025-10-24 8:13:3996 days ago1761293619
0x983C1fAf...3b5017cFB
0 ETH
248583502025-10-24 8:13:3996 days ago1761293619
0x983C1fAf...3b5017cFB
0 ETH
248583502025-10-24 8:13:3996 days ago1761293619
0x983C1fAf...3b5017cFB
0 ETH
194305442025-05-28 6:32:05245 days ago1748413925
0x983C1fAf...3b5017cFB
0 ETH
194305442025-05-28 6:32:05245 days ago1748413925
0x983C1fAf...3b5017cFB
0 ETH
194305442025-05-28 6:32:05245 days ago1748413925
0x983C1fAf...3b5017cFB
0 ETH
185955432025-05-02 5:30:42271 days ago1746163842
0x983C1fAf...3b5017cFB
0 ETH
185955432025-05-02 5:30:42271 days ago1746163842
0x983C1fAf...3b5017cFB
0 ETH
185955432025-05-02 5:30:42271 days ago1746163842
0x983C1fAf...3b5017cFB
0 ETH
185955432025-05-02 5:30:42271 days ago1746163842
0x983C1fAf...3b5017cFB
0 ETH
185955432025-05-02 5:30:42271 days ago1746163842
0x983C1fAf...3b5017cFB
0 ETH
175600102025-03-31 9:24:06303 days ago1743413046
0x983C1fAf...3b5017cFB
0 ETH
175600102025-03-31 9:24:06303 days ago1743413046
0x983C1fAf...3b5017cFB
0 ETH
175600102025-03-31 9:24:06303 days ago1743413046
0x983C1fAf...3b5017cFB
0 ETH
175600102025-03-31 9:24:06303 days ago1743413046
0x983C1fAf...3b5017cFB
0 ETH
175600102025-03-31 9:24:06303 days ago1743413046
0x983C1fAf...3b5017cFB
0 ETH
175588522025-03-31 8:43:07303 days ago1743410587
0x983C1fAf...3b5017cFB
0 ETH
175588522025-03-31 8:43:07303 days ago1743410587
0x983C1fAf...3b5017cFB
0 ETH
View All Internal Transactions
Cross-Chain Transactions
Loading...
Loading

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

Contract Name:
PoolToken

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "../interfaces/IPoolToken.sol";

import "../libraries/Roleable.sol";

contract PoolToken is IPoolToken, Roleable, ERC20 {
    address public indexToken;
    address public stableToken;

    mapping(address => bool) public miners;

    constructor(
        IAddressesProvider addressProvider,
        address _indexToken,
        address _stableToken,
        address _miner,
        string memory name_,
        string memory symbol_
    ) ERC20(name_, symbol_) Roleable(addressProvider) {
        indexToken = _indexToken;
        stableToken = _stableToken;
        miners[_miner] = true;
    }

    modifier onlyMiner() {
        require(miners[msg.sender], "miner forbidden");
        _;
    }

    function mint(address to, uint256 amount) external onlyMiner {
        _mint(to, amount);
    }

    function burn(uint256 amount) external {
        _burn(msg.sender, amount);
    }

    function setMiner(address account, bool enable) external {
        require(msg.sender == ADDRESS_PROVIDER.timelock(), "onlyTimelock");
        miners[account] = enable;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;

interface IAddressesProvider {
    event AddressSet(bytes32 indexed id, address indexed oldAddress, address indexed newAddress);

    function WETH() external view returns (address);

    function timelock() external view returns (address);

    function priceOracle() external view returns (address);

    function indexPriceOracle() external view returns (address);

    function fundingRate() external view returns (address);

    function executionLogic() external view returns (address);

    function liquidationLogic() external view returns (address);

    function roleManager() external view returns (address);

    function backtracker() external view returns (address);
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

interface IPoolToken {
    function mint(address to, uint256 amount) external;

    function burn(uint256 amount) external;
}

// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;

interface IRoleManager {
    function setRoleAdmin(bytes32 role, bytes32 adminRole) external;

    function isAdmin(address) external view returns (bool);

    function isPoolAdmin(address poolAdmin) external view returns (bool);

    function isOperator(address operator) external view returns (bool);

    function isTreasurer(address treasurer) external view returns (bool);

    function isKeeper(address) external view returns (bool);

    function isBlackList(address account) external view returns (bool);
}

File 9 of 9 : Roleable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../interfaces/IAddressesProvider.sol";
import "../interfaces/IRoleManager.sol";

abstract contract Roleable {
    IAddressesProvider public immutable ADDRESS_PROVIDER;

    constructor(IAddressesProvider _addressProvider) {
        ADDRESS_PROVIDER = _addressProvider;
    }

    modifier onlyAdmin() {
        require(IRoleManager(ADDRESS_PROVIDER.roleManager()).isAdmin(msg.sender), "onlyAdmin");
        _;
    }

    modifier onlyPoolAdmin() {
        require(
            IRoleManager(ADDRESS_PROVIDER.roleManager()).isPoolAdmin(msg.sender),
            "onlyPoolAdmin"
        );
        _;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IAddressesProvider","name":"addressProvider","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"address","name":"_stableToken","type":"address"},{"internalType":"address","name":"_miner","type":"address"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"ADDRESS_PROVIDER","outputs":[{"internalType":"contract IAddressesProvider","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":[{"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":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"indexToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"miners","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"enable","type":"bool"}],"name":"setMiner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stableToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

0x60a060405234620003bb57620011b1803803806200001d81620003c0565b928339810160c082820312620003bb5781516001600160a01b038082168203620003bb5760209162000051838601620003e6565b6200005f60408701620003e6565b6200006d60608801620003e6565b60808801516001600160401b039891949190898111620003bb578862000095918301620003fb565b9760a08201518a8111620003bb57620000af9201620003fb565b90608052865197808911620002b2576003988954906001998a83811c93168015620003b0575b8a8410146200039a578190601f9384811162000344575b508a90848311600114620002d457600092620002c8575b5050600019828d1b1c1916908a1b178a555b8251918211620002b25760049283548a81811c91168015620002a7575b8a821014620002925782811162000247575b5088918311600114620001d557916007999a819289969594600093620001c9575b5050828c1b92600019911b1c19161790555b8160018060a01b0319931683600554161760055516906006541617600655166000525260406000209060ff19825416179055604051610d4390816200046e82396080518181816103aa015261085f0152f35b01519150388062000165565b9099601f1983169184600052896000209260005b818110620002315750918b9c60079c9492868c999897951062000216575b50505050811b01905562000177565b01519060f884600019921b161c191690553880808062000207565b8d83015185559c8b019c938c01938b01620001e9565b84600052896000208380860160051c8201928c871062000288575b0160051c01908b905b8281106200027b57505062000144565b60008155018b906200026b565b9250819262000262565b602285634e487b7160e01b6000525260246000fd5b90607f169062000132565b634e487b7160e01b600052604160045260246000fd5b01519050388062000103565b60008e81528c81208e9550929190601f198516908e5b8282106200032357505084116200030a575b505050811b018a5562000115565b0151600019838f1b60f8161c19169055388080620002fc565b91929395968291958786015181550195019301908e95949392918e620002ea565b9091508c6000528a6000208480850160051c8201928d861062000390575b918e91869594930160051c01915b82811062000380575050620000ec565b600081558594508e910162000370565b9250819262000362565b634e487b7160e01b600052602260045260246000fd5b92607f1692620000d5565b600080fd5b6040519190601f01601f191682016001600160401b03811183821017620002b257604052565b51906001600160a01b0382168203620003bb57565b919080601f84011215620003bb5782516001600160401b038111620002b25760209062000431601f8201601f19168301620003c0565b92818452828287010111620003bb5760005b8181106200045957508260009394955001015290565b85810183015184820184015282016200044356fe608060408181526004918236101561001657600080fd5b600092833560e01c91826306fdde03146108d757508163095ea7b3146108ad57816318160ddd1461088e5781631848effa1461084a57816323b872dd14610780578163313ce56714610764578163395093511461071457816340c10f191461060c57816342966c68146104f9578163648ec7b9146104bb57816370a082311461048457816378b0bac41461036157816395d89b411461025e578163a457c2d7146101b657508063a9059cbb14610186578063a9d75b2b1461015e578063dd62ed3e146101165763e7d015f2146100eb57600080fd5b3461011257816003193601126101125760055490516001600160a01b039091168152602090f35b5080fd5b503461011257806003193601126101125780602092610133610a11565b61013b610a2c565b6001600160a01b0391821683526001865283832091168252845220549051908152f35b503461011257816003193601126101125760065490516001600160a01b039091168152602090f35b50346101125780600319360112610112576020906101af6101a5610a11565b6024359033610a9d565b5160018152f35b9050823461025b578260031936011261025b576101d1610a11565b918360243592338152600160205281812060018060a01b038616825260205220549082821061020a576020856101af8585038733610c0b565b608490602086519162461bcd60e51b8352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152fd5b80fd5b838334610112578160031936011261011257805191809380549160019083821c92828516948515610357575b60209586861081146103445785895290811561032057506001146102c8575b6102c487876102ba828c0383610a42565b51918291826109c8565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061030d57505050826102c4946102ba928201019486806102a9565b80548685018801529286019281016102ef565b60ff19168887015250505050151560051b83010192506102ba826102c486806102a9565b634e487b7160e01b845260228352602484fd5b93607f169361028a565b9190503461048057806003193601126104805761037c610a11565b916024359283151580940361047c5782516334cc866d60e21b81526020926001600160a01b039291848183817f000000000000000000000000000000000000000000000000000000000000000088165afa908115610472579084918991610434575b50163303610402575090600792911685525282209060ff8019835416911617905580f35b845162461bcd60e51b8152908101849052600c60248201526b6f6e6c7954696d656c6f636b60a01b6044820152606490fd5b809250868092503d831161046b575b61044d8183610a42565b8101031261046757518381168103610467578390386103de565b8780fd5b503d610443565b86513d8a823e3d90fd5b8480fd5b8280fd5b5050346101125760203660031901126101125760209181906001600160a01b036104ac610a11565b16815280845220549051908152f35b5050346101125760203660031901126101125760209160ff9082906001600160a01b036104e6610a11565b1681526007855220541690519015158152f35b9190503461048057602090816003193601126106085782359233156105bd57338552848352818520549084821061056f5750917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef918486959433875286845203818620558360025403600255519283523392a380f35b825162461bcd60e51b8152908101849052602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b82608492519162461bcd60e51b8352820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152fd5b8380fd5b91905034610480578060031936011261048057610627610a11565b9060243591338552600760205260ff8286205416156106df576001600160a01b031692831561069d57506020827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926106838795600254610a7a565b60025585855284835280852082815401905551908152a380f35b6020606492519162461bcd60e51b8352820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152fd5b815162461bcd60e51b8152602081860152600f60248201526e36b4b732b9103337b93134b23232b760891b6044820152606490fd5b5050346101125780600319360112610112576101af60209261075d610737610a11565b338352600186528483206001600160a01b03821684528652918490205460243590610a7a565b9033610c0b565b5050346101125781600319360112610112576020905160128152f35b839150346101125760603660031901126101125761079c610a11565b6107a4610a2c565b91846044359460018060a01b0384168152600160205281812033825260205220549060001982036107de575b6020866101af878787610a9d565b84821061080757509183916107fc602096956101af95033383610c0b565b9193948193506107d0565b606490602087519162461bcd60e51b8352820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b505034610112578160031936011261011257517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b5050346101125781600319360112610112576020906002549051908152f35b5050346101125780600319360112610112576020906101af6108cd610a11565b6024359033610c0b565b92915034610608578360031936011261060857600354600181811c91869082811680156109be575b60209586861082146109ab57508488529081156109895750600114610930575b6102c486866102ba828b0383610a42565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b82841061097657505050826102c4946102ba92820101943861091f565b8054868501880152928601928101610959565b60ff191687860152505050151560051b83010192506102ba826102c43861091f565b634e487b7160e01b845260229052602483fd5b93607f16936108ff565b6020808252825181830181905290939260005b8281106109fd57505060409293506000838284010152601f8019910116010190565b8181018601518482016040015285016109db565b600435906001600160a01b0382168203610a2757565b600080fd5b602435906001600160a01b0382168203610a2757565b90601f8019910116810190811067ffffffffffffffff821117610a6457604052565b634e487b7160e01b600052604160045260246000fd5b91908201809211610a8757565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03908116918215610bb85716918215610b6757600082815280602052604081205491808310610b1357604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b6001600160a01b03908116918215610cbc5716918215610c6c5760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fdfea2646970667358221220881d0771860724e14da5b37d7c48f0b94cd5c3e9360bf7abf04c269721d9db7f64736f6c6343000813003300000000000000000000000034df93f37f327757684ae502b47c787c384650370000000000000000000000003aab6a75bef8ec5a974cd5440b0aa6c68f3804f0000000000000000000000000176211869ca2b568f2a7d4ee941e073a821ee1ff00000000000000000000000003f61a185efeeefdd3ba032afa8a0259337ced6400000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000154d5958204c696e656120534f4c2d555344432d6c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000136d79784c696e6561534f4c2d555344432d6c7000000000000000000000000000

Deployed Bytecode

0x608060408181526004918236101561001657600080fd5b600092833560e01c91826306fdde03146108d757508163095ea7b3146108ad57816318160ddd1461088e5781631848effa1461084a57816323b872dd14610780578163313ce56714610764578163395093511461071457816340c10f191461060c57816342966c68146104f9578163648ec7b9146104bb57816370a082311461048457816378b0bac41461036157816395d89b411461025e578163a457c2d7146101b657508063a9059cbb14610186578063a9d75b2b1461015e578063dd62ed3e146101165763e7d015f2146100eb57600080fd5b3461011257816003193601126101125760055490516001600160a01b039091168152602090f35b5080fd5b503461011257806003193601126101125780602092610133610a11565b61013b610a2c565b6001600160a01b0391821683526001865283832091168252845220549051908152f35b503461011257816003193601126101125760065490516001600160a01b039091168152602090f35b50346101125780600319360112610112576020906101af6101a5610a11565b6024359033610a9d565b5160018152f35b9050823461025b578260031936011261025b576101d1610a11565b918360243592338152600160205281812060018060a01b038616825260205220549082821061020a576020856101af8585038733610c0b565b608490602086519162461bcd60e51b8352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152fd5b80fd5b838334610112578160031936011261011257805191809380549160019083821c92828516948515610357575b60209586861081146103445785895290811561032057506001146102c8575b6102c487876102ba828c0383610a42565b51918291826109c8565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061030d57505050826102c4946102ba928201019486806102a9565b80548685018801529286019281016102ef565b60ff19168887015250505050151560051b83010192506102ba826102c486806102a9565b634e487b7160e01b845260228352602484fd5b93607f169361028a565b9190503461048057806003193601126104805761037c610a11565b916024359283151580940361047c5782516334cc866d60e21b81526020926001600160a01b039291848183817f00000000000000000000000034df93f37f327757684ae502b47c787c3846503788165afa908115610472579084918991610434575b50163303610402575090600792911685525282209060ff8019835416911617905580f35b845162461bcd60e51b8152908101849052600c60248201526b6f6e6c7954696d656c6f636b60a01b6044820152606490fd5b809250868092503d831161046b575b61044d8183610a42565b8101031261046757518381168103610467578390386103de565b8780fd5b503d610443565b86513d8a823e3d90fd5b8480fd5b8280fd5b5050346101125760203660031901126101125760209181906001600160a01b036104ac610a11565b16815280845220549051908152f35b5050346101125760203660031901126101125760209160ff9082906001600160a01b036104e6610a11565b1681526007855220541690519015158152f35b9190503461048057602090816003193601126106085782359233156105bd57338552848352818520549084821061056f5750917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef918486959433875286845203818620558360025403600255519283523392a380f35b825162461bcd60e51b8152908101849052602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b82608492519162461bcd60e51b8352820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152fd5b8380fd5b91905034610480578060031936011261048057610627610a11565b9060243591338552600760205260ff8286205416156106df576001600160a01b031692831561069d57506020827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926106838795600254610a7a565b60025585855284835280852082815401905551908152a380f35b6020606492519162461bcd60e51b8352820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152fd5b815162461bcd60e51b8152602081860152600f60248201526e36b4b732b9103337b93134b23232b760891b6044820152606490fd5b5050346101125780600319360112610112576101af60209261075d610737610a11565b338352600186528483206001600160a01b03821684528652918490205460243590610a7a565b9033610c0b565b5050346101125781600319360112610112576020905160128152f35b839150346101125760603660031901126101125761079c610a11565b6107a4610a2c565b91846044359460018060a01b0384168152600160205281812033825260205220549060001982036107de575b6020866101af878787610a9d565b84821061080757509183916107fc602096956101af95033383610c0b565b9193948193506107d0565b606490602087519162461bcd60e51b8352820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b505034610112578160031936011261011257517f00000000000000000000000034df93f37f327757684ae502b47c787c384650376001600160a01b03168152602090f35b5050346101125781600319360112610112576020906002549051908152f35b5050346101125780600319360112610112576020906101af6108cd610a11565b6024359033610c0b565b92915034610608578360031936011261060857600354600181811c91869082811680156109be575b60209586861082146109ab57508488529081156109895750600114610930575b6102c486866102ba828b0383610a42565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b82841061097657505050826102c4946102ba92820101943861091f565b8054868501880152928601928101610959565b60ff191687860152505050151560051b83010192506102ba826102c43861091f565b634e487b7160e01b845260229052602483fd5b93607f16936108ff565b6020808252825181830181905290939260005b8281106109fd57505060409293506000838284010152601f8019910116010190565b8181018601518482016040015285016109db565b600435906001600160a01b0382168203610a2757565b600080fd5b602435906001600160a01b0382168203610a2757565b90601f8019910116810190811067ffffffffffffffff821117610a6457604052565b634e487b7160e01b600052604160045260246000fd5b91908201809211610a8757565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03908116918215610bb85716918215610b6757600082815280602052604081205491808310610b1357604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b6001600160a01b03908116918215610cbc5716918215610c6c5760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fdfea2646970667358221220881d0771860724e14da5b37d7c48f0b94cd5c3e9360bf7abf04c269721d9db7f64736f6c63430008130033

Block Transaction Gas Used Reward
view all blocks sequenced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ 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.