false
true
0

Contract Address Details

0xd0Ce0DAd23eDB6f81150481eA68f484E5Bc9e90A

Contract Name
QuarterlyBurner
Creator
0x6f5e8b–11d74b at 0x812c81–cf3399
Balance
0 tPLS
Tokens
Fetching tokens...
Transactions
Fetching transactions...
Transfers
Fetching transfers...
Gas Used
Fetching gas used...
Last Balance Update
25393873
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
QuarterlyBurner




Optimization enabled
false
Compiler version
v0.8.20+commit.a1b79de6




EVM Version




Verified at
2026-09-14T19:05:59.719326Z

Constructor Arguments

000000000000000000000000489577615c4f0e269c7bf0b270961c810a86526e

Arg [0] (address) : 0x489577615c4f0e269c7bf0b270961c810a86526e

              

contracts/core/QuarterlyBurner.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";

import {IBBACoin} from "../interfaces/IBBACoin.sol";

/// @title QuarterlyBurner
/// @notice Lightweight autonomous timelock: once every 90 days, anyone can
///         call `executeBurn` to burn exactly 3.69% of BBA's current
///         circulating supply out of the treasury. The contract enforces its
///         own cadence on-chain, so no off-chain scheduler or admin trigger
///         is required.
/// @dev Needs `BURNER_ROLE` on BBACoin, and the treasury must keep BBACoin
///      approved for at least the next burn amount - see BBACoin.burnSupply's
///      two-key (role + allowance) gating. If the treasury is under-approved
///      or under-funded when a quarter rolls over, `executeBurn` simply
///      reverts and can be retried once the treasury is topped up; the 90-day
///      clock does not advance on a revert.
contract QuarterlyBurner is AccessControl {
    // --- State ---

    IBBACoin public bbaToken;

    uint256 public constant BURN_INTERVAL = 90 days;
    uint256 public constant BURN_RATE_BPS = 369; // 3.69%
    uint256 private constant BPS_DENOMINATOR = 10000;

    // 0 at deployment, so the first burn is available immediately; every
    // burn after that is locked out until BURN_INTERVAL has elapsed.
    uint256 public lastBurnTimestamp;

    // --- Events ---

    event BbaTokenUpdated(address indexed previous, address indexed current);
    event QuarterlyBurnExecuted(
        uint256 indexed timestamp,
        uint256 circulatingSupply,
        uint256 amountBurned
    );

    constructor(address _bbaToken) {
        require(_bbaToken != address(0), "Burner: token is zero");
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        bbaToken = IBBACoin(_bbaToken);
    }

    // --- Execution ---

    /// @notice Burn 3.69% of BBA's current circulating supply. Permissionless,
    ///         but only once every 90 days.
    function executeBurn() external {
        require(
            block.timestamp >= lastBurnTimestamp + BURN_INTERVAL,
            "Burner: too soon"
        );

        // Effects before the external call, so the window can't be re-entered.
        lastBurnTimestamp = block.timestamp;

        uint256 circulatingSupply = bbaToken.totalSupply();
        uint256 burnAmount = (circulatingSupply * BURN_RATE_BPS) / BPS_DENOMINATOR;
        require(burnAmount > 0, "Burner: nothing to burn");

        bbaToken.burnSupply(burnAmount);

        emit QuarterlyBurnExecuted(block.timestamp, circulatingSupply, burnAmount);
    }

    // --- Views ---

    /// @notice Timestamp at which the next `executeBurn` call will succeed.
    function nextBurnAvailableAt() external view returns (uint256) {
        return lastBurnTimestamp + BURN_INTERVAL;
    }

    // --- Admin ---

    function setBbaToken(address _bbaToken) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(_bbaToken != address(0), "Burner: token is zero");
        emit BbaTokenUpdated(address(bbaToken), _bbaToken);
        bbaToken = IBBACoin(_bbaToken);
    }
}
        

@openzeppelin/contracts/token/ERC20/IERC20.sol

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

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}
          

@openzeppelin/contracts/utils/Context.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
          

@openzeppelin/contracts/utils/introspection/ERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /// @inheritdoc IERC165
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}
          

@openzeppelin/contracts/utils/introspection/IERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
          

contracts/interfaces/IBBACoin.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

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

/// @title IBBACoin
/// @notice Minimal interface the rest of the ecosystem needs against BBACoin:
///         BidToken mints BBA rewards, QuarterlyBurner reads supply and burns
///         it out of the treasury.
interface IBBACoin is IERC20 {
    function mint(address to, uint256 amount) external;
    function burnSupply(uint256 amount) external;
}
          

@openzeppelin/contracts/access/AccessControl.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.6.0) (access/AccessControl.sol)

pragma solidity ^0.8.20;

import {IAccessControl} from "./IAccessControl.sol";
import {Context} from "../utils/Context.sol";
import {ERC165} from "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```solidity
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```solidity
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
 * to enforce additional security measures for this role.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address account => bool) hasRole;
        bytes32 adminRole;
    }

    mapping(bytes32 role => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with an {AccessControlUnauthorizedAccount} error including the required role.
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /// @inheritdoc ERC165
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual returns (bool) {
        return _roles[role].hasRole[account];
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
     * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
     * is missing `role`.
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert AccessControlUnauthorizedAccount(account, role);
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `callerConfirmation`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address callerConfirmation) public virtual {
        if (callerConfirmation != _msgSender()) {
            revert AccessControlBadConfirmation();
        }

        _revokeRole(role, callerConfirmation);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
        if (!hasRole(role, account)) {
            _roles[role].hasRole[account] = true;
            emit RoleGranted(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Attempts to revoke `role` from `account` and returns a boolean indicating if `role` was revoked.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
        if (hasRole(role, account)) {
            _roles[role].hasRole[account] = false;
            emit RoleRevoked(role, account, _msgSender());
            return true;
        } else {
            return false;
        }
    }
}
          

@openzeppelin/contracts/access/IAccessControl.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (access/IAccessControl.sol)

pragma solidity >=0.8.4;

/**
 * @dev External interface of AccessControl declared to support ERC-165 detection.
 */
interface IAccessControl {
    /**
     * @dev The `account` is missing a role.
     */
    error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);

    /**
     * @dev The caller of a function is not the expected one.
     *
     * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
     */
    error AccessControlBadConfirmation();

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted to signal this.
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call. This account bears the admin role (for the granted role).
     * Expected in cases where the role was granted using the internal {AccessControl-_grantRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `callerConfirmation`.
     */
    function renounceRole(bytes32 role, address callerConfirmation) external;
}
          

Compiler Settings

{"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"],"":["ast"]}},"optimizer":{"runs":200,"enabled":true},"libraries":{},"evmVersion":"paris"}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_bbaToken","internalType":"address"}]},{"type":"error","name":"AccessControlBadConfirmation","inputs":[]},{"type":"error","name":"AccessControlUnauthorizedAccount","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"bytes32","name":"neededRole","internalType":"bytes32"}]},{"type":"event","name":"BbaTokenUpdated","inputs":[{"type":"address","name":"previous","internalType":"address","indexed":true},{"type":"address","name":"current","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"QuarterlyBurnExecuted","inputs":[{"type":"uint256","name":"timestamp","internalType":"uint256","indexed":true},{"type":"uint256","name":"circulatingSupply","internalType":"uint256","indexed":false},{"type":"uint256","name":"amountBurned","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RoleAdminChanged","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"previousAdminRole","internalType":"bytes32","indexed":true},{"type":"bytes32","name":"newAdminRole","internalType":"bytes32","indexed":true}],"anonymous":false},{"type":"event","name":"RoleGranted","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RoleRevoked","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32","indexed":true},{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"sender","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"BURN_INTERVAL","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"BURN_RATE_BPS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DEFAULT_ADMIN_ROLE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IBBACoin"}],"name":"bbaToken","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"executeBurn","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getRoleAdmin","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"grantRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lastBurnTimestamp","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nextBurnAvailableAt","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"callerConfirmation","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeRole","inputs":[{"type":"bytes32","name":"role","internalType":"bytes32"},{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBbaToken","inputs":[{"type":"address","name":"_bbaToken","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]}]
              

Contract Creation Code

0x608060405234801561001057600080fd5b506040516109de3803806109de83398101604081905261002f91610166565b6001600160a01b0381166100895760405162461bcd60e51b815260206004820152601560248201527f4275726e65723a20746f6b656e206973207a65726f0000000000000000000000604482015260640160405180910390fd5b6100946000336100ba565b50600180546001600160a01b0319166001600160a01b0392909216919091179055610196565b6000828152602081815260408083206001600160a01b038516845290915281205460ff1661015c576000838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556101143390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610160565b5060005b92915050565b60006020828403121561017857600080fd5b81516001600160a01b038116811461018f57600080fd5b9392505050565b610839806101a56000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80633d3d937d1161008c578063a217fddf11610066578063a217fddf146101af578063a6683c65146101b7578063d547741f146101ca578063fbe93b78146101dd57600080fd5b80633d3d937d146101895780637b1648e21461019257806391d148541461019c57600080fd5b8063248a9ca3116100c8578063248a9ca314610138578063271839791461015b5780632f2ff15d1461016357806336568abe1461017657600080fd5b806301ffc9a7146100ef5780631eec9035146101175780632300f41014610121575b600080fd5b6101026100fd3660046106db565b610208565b60405190151581526020015b60405180910390f35b61011f61023f565b005b61012a61017181565b60405190815260200161010e565b61012a61014636600461070c565b60009081526020819052604090206001015490565b61012a610415565b61011f610171366004610741565b61042d565b61011f610184366004610741565b610458565b61012a60025481565b61012a6276a70081565b6101026101aa366004610741565b610490565b61012a600081565b61011f6101c536600461076d565b6104b9565b61011f6101d8366004610741565b61056f565b6001546101f0906001600160a01b031681565b6040516001600160a01b03909116815260200161010e565b60006001600160e01b03198216637965db0b60e01b148061023957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6276a700600254610250919061079e565b4210156102975760405162461bcd60e51b815260206004820152601060248201526f213ab93732b91d103a37b79039b7b7b760811b60448201526064015b60405180910390fd5b42600255600154604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa1580156102e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061030991906107b1565b9050600061271061031c610171846107ca565b61032691906107e1565b9050600081116103785760405162461bcd60e51b815260206004820152601760248201527f4275726e65723a206e6f7468696e6720746f206275726e000000000000000000604482015260640161028e565b60015460405163d595c33160e01b8152600481018390526001600160a01b039091169063d595c33190602401600060405180830381600087803b1580156103be57600080fd5b505af11580156103d2573d6000803e3d6000fd5b505060408051858152602081018590524293507f5e792fc22596140e157e4cac2cbf34342fd93fb1fa1ccaa7781a4f4a6ceb08cd92500160405180910390a25050565b60006276a700600254610428919061079e565b905090565b60008281526020819052604090206001015461044881610594565b61045283836105a1565b50505050565b6001600160a01b03811633146104815760405163334bd91960e11b815260040160405180910390fd5b61048b8282610633565b505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60006104c481610594565b6001600160a01b0382166105125760405162461bcd60e51b81526020600482015260156024820152744275726e65723a20746f6b656e206973207a65726f60581b604482015260640161028e565b6001546040516001600160a01b038085169216907fbf98f1ee7301f79fde742c95d928a6cee1cb5b1145b8b630ae0013c7fe508ac490600090a350600180546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526020819052604090206001015461058a81610594565b6104528383610633565b61059e813361069e565b50565b60006105ad8383610490565b61062b576000838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556105e33390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610239565b506000610239565b600061063f8383610490565b1561062b576000838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610239565b6106a88282610490565b6106d75760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440161028e565b5050565b6000602082840312156106ed57600080fd5b81356001600160e01b03198116811461070557600080fd5b9392505050565b60006020828403121561071e57600080fd5b5035919050565b80356001600160a01b038116811461073c57600080fd5b919050565b6000806040838503121561075457600080fd5b8235915061076460208401610725565b90509250929050565b60006020828403121561077f57600080fd5b61070582610725565b634e487b7160e01b600052601160045260246000fd5b8082018082111561023957610239610788565b6000602082840312156107c357600080fd5b5051919050565b808202811582820484141761023957610239610788565b6000826107fe57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220b8a845ea02b519a525d8615e41f5d875a173525ce5d6b167c469f5f24e8d417e64736f6c63430008140033000000000000000000000000489577615c4f0e269c7bf0b270961c810a86526e

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c80633d3d937d1161008c578063a217fddf11610066578063a217fddf146101af578063a6683c65146101b7578063d547741f146101ca578063fbe93b78146101dd57600080fd5b80633d3d937d146101895780637b1648e21461019257806391d148541461019c57600080fd5b8063248a9ca3116100c8578063248a9ca314610138578063271839791461015b5780632f2ff15d1461016357806336568abe1461017657600080fd5b806301ffc9a7146100ef5780631eec9035146101175780632300f41014610121575b600080fd5b6101026100fd3660046106db565b610208565b60405190151581526020015b60405180910390f35b61011f61023f565b005b61012a61017181565b60405190815260200161010e565b61012a61014636600461070c565b60009081526020819052604090206001015490565b61012a610415565b61011f610171366004610741565b61042d565b61011f610184366004610741565b610458565b61012a60025481565b61012a6276a70081565b6101026101aa366004610741565b610490565b61012a600081565b61011f6101c536600461076d565b6104b9565b61011f6101d8366004610741565b61056f565b6001546101f0906001600160a01b031681565b6040516001600160a01b03909116815260200161010e565b60006001600160e01b03198216637965db0b60e01b148061023957506301ffc9a760e01b6001600160e01b03198316145b92915050565b6276a700600254610250919061079e565b4210156102975760405162461bcd60e51b815260206004820152601060248201526f213ab93732b91d103a37b79039b7b7b760811b60448201526064015b60405180910390fd5b42600255600154604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa1580156102e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061030991906107b1565b9050600061271061031c610171846107ca565b61032691906107e1565b9050600081116103785760405162461bcd60e51b815260206004820152601760248201527f4275726e65723a206e6f7468696e6720746f206275726e000000000000000000604482015260640161028e565b60015460405163d595c33160e01b8152600481018390526001600160a01b039091169063d595c33190602401600060405180830381600087803b1580156103be57600080fd5b505af11580156103d2573d6000803e3d6000fd5b505060408051858152602081018590524293507f5e792fc22596140e157e4cac2cbf34342fd93fb1fa1ccaa7781a4f4a6ceb08cd92500160405180910390a25050565b60006276a700600254610428919061079e565b905090565b60008281526020819052604090206001015461044881610594565b61045283836105a1565b50505050565b6001600160a01b03811633146104815760405163334bd91960e11b815260040160405180910390fd5b61048b8282610633565b505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60006104c481610594565b6001600160a01b0382166105125760405162461bcd60e51b81526020600482015260156024820152744275726e65723a20746f6b656e206973207a65726f60581b604482015260640161028e565b6001546040516001600160a01b038085169216907fbf98f1ee7301f79fde742c95d928a6cee1cb5b1145b8b630ae0013c7fe508ac490600090a350600180546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526020819052604090206001015461058a81610594565b6104528383610633565b61059e813361069e565b50565b60006105ad8383610490565b61062b576000838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556105e33390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610239565b506000610239565b600061063f8383610490565b1561062b576000838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610239565b6106a88282610490565b6106d75760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440161028e565b5050565b6000602082840312156106ed57600080fd5b81356001600160e01b03198116811461070557600080fd5b9392505050565b60006020828403121561071e57600080fd5b5035919050565b80356001600160a01b038116811461073c57600080fd5b919050565b6000806040838503121561075457600080fd5b8235915061076460208401610725565b90509250929050565b60006020828403121561077f57600080fd5b61070582610725565b634e487b7160e01b600052601160045260246000fd5b8082018082111561023957610239610788565b6000602082840312156107c357600080fd5b5051919050565b808202811582820484141761023957610239610788565b6000826107fe57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220b8a845ea02b519a525d8615e41f5d875a173525ce5d6b167c469f5f24e8d417e64736f6c63430008140033