Contract 0xE5009Dd5912a68B0D7C6F874cD0b4492C9F0e5cD 3

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x99062742c5a87261ea2093dc3e8b9624f9cab6c437060f79ecee70e7f9fd5fb6Stake484389132022-10-05 1:47:031 day 5 hrs ago0x8f8b37d01fe99e50e50478a241a5953c2f7a5f91 IN  Based Finance: Acropolis0 FTM0.000379465164
0x3247c1a725e6f463c922dd4fef84c59523b2558491ad0d2473f8a2b8baf01adfStake484257162022-10-04 21:43:441 day 9 hrs ago0x4b7aa330bc25e7e527f6a638c03a02001803e735 IN  Based Finance: Acropolis0 FTM0.005631436
0x83e3a508e94d1e5a1e4fecf54e230c2a152dd2a61ad3e0c047e66d467c1b9204Stake484013222022-10-04 14:09:301 day 17 hrs ago0xd13911d2eeb1d02bc9f4a358fc4c660aa60a9adc IN  Based Finance: Acropolis0 FTM0.258674137852
0x2262f14880d0f6f727ccdb49769d7af3c07a08067365ecbd054279478c87a767Stake483976362022-10-04 12:55:391 day 18 hrs ago0xd13911d2eeb1d02bc9f4a358fc4c660aa60a9adc IN  Based Finance: Acropolis0 FTM0.001191382004
0xa1146502876ac7a1a832c02e55bdd8d37338ccf3566e7a99643714a08b56fd66Exit483031312022-10-03 7:37:283 days 1 min ago0x1d450fc119117ab4cca516ea2f043a05ecb1615f IN  Based Finance: Acropolis0 FTM0.000351
0x38439c6cd3968c76fcdab7050db52dd0a9265244d4a2cc5ecc1670d33c967536Exit482277892022-10-02 7:42:493 days 23 hrs ago0xe6714d7deef5604cefa50b1fbb6810f101b445ad IN  Based Finance: Acropolis0 FTM0.0002603125
0x0372a7ecd77afa5820e0f78317c8a69763ea0bb6d09b7ab48be4ecb6b7f959c1Claim Reward482193222022-10-02 5:07:034 days 2 hrs ago0x536858ba11f675aba923bad01716129415256d30 IN  Based Finance: Acropolis0 FTM0.0002563075
0x9ad59ba215542b19a67bd439a554b4c7a54ff37a5430778d2c2966c1c108c426Withdraw481981802022-10-01 22:26:254 days 9 hrs ago0x63d99bd6d88d9b835a3b74a615f4ab22c3f5ec23 IN  Based Finance: Acropolis0 FTM0.000312790426
0x6a347e2a736d0da758b903368fb9cadc980e341cdf495d69ad032d2a37f0fe1fExit481677602022-10-01 12:57:184 days 18 hrs ago0xf7cdffd811c6e928705f2b57fe1fdfc683fe8872 IN  Based Finance: Acropolis0 FTM0.04233540675
0x84e60ce0e1480c12c745c8910453008a2d971816ade8ad632b5564ff293c4c7cExit481435552022-10-01 5:40:245 days 1 hr ago0x960d80997d5089b81afbf6c0d6e14c4ea0949a0f IN  Based Finance: Acropolis0 FTM0.000396
0x0a1387e10a8c879ec5e14946e74eae0c897394a83f07089642bce6146a7670b1Exit480336712022-09-29 19:26:366 days 12 hrs ago0xf4fadc92025fc38d54d2a89c009d95be67040e34 IN  Based Finance: Acropolis0 FTM0.00035325
0x569fc8417edf7ddbb42f107bb6abe3557165acc0f2eae060e4873a99debf20c9Exit480088162022-09-29 10:58:266 days 20 hrs ago0x1b3d37da85ff2e9b469315d9d05e6d2e7edc97c5 IN  Based Finance: Acropolis0 FTM0.000312894139
0x786e9f26e6ccfd11b771ca0e0de4c07a4d96d05f30b2753d5747c04ea52c0787Stake479958982022-09-29 6:53:057 days 45 mins ago0xe6714d7deef5604cefa50b1fbb6810f101b445ad IN  Based Finance: Acropolis0 FTM0.0004307
0xaaa37a56c24508a65c3eaf4117a6e6f34c2afe447b24335f3338839e4e62245eClaim Reward479065062022-09-28 2:03:518 days 5 hrs ago0x3e1ff895fd5a1d9c284060e8866d9a647f55ac55 IN  Based Finance: Acropolis0 FTM0.004791603339
0x14460fbc06ed80102947627376bd928a6dfef24c4fa72b676beb134908d79dd7Withdraw478930612022-09-27 21:59:518 days 9 hrs ago0x00aef0ee2953def7eca09eba378d36ca23b34160 IN  Based Finance: Acropolis0 FTM0.00026008
0x4e431b6b02c7387700b1072748104724c926efc11ceabaab97b5e5a19af4489aStake478694612022-09-27 14:11:328 days 17 hrs ago0xcf455ba6cf3ff81f04344660c2c0a9d3bdd8b6b6 IN  Based Finance: Acropolis0 FTM0.000435031316
0x9b883f28bef45c9380b8dd1f65a9b5108955f50a00dabd9cd1ac982a3909baddExit478581202022-09-27 10:22:418 days 21 hrs ago0x75334f073e11add13c93408c01725618c644a1e8 IN  Based Finance: Acropolis0 FTM0.0002603125
0xa19afa4453e40851623ca4462d5dc226453e4f15538ae04ea48d9970b873724cExit478185972022-09-26 21:48:099 days 9 hrs ago0xbf2573b96488b99713593bf8f64b89fa89bf8527 IN  Based Finance: Acropolis0 FTM0.0002603125
0xbf4641d4a3d6c697c6f3daa18d0dc5767504499c50b28d8d9c564ef0b9a43286Claim Reward478070772022-09-26 18:12:129 days 13 hrs ago0x238b09948671da680738abd14801282c554307b8 IN  Based Finance: Acropolis0 FTM0.000246209199
0xd8024123fd4cae68403f2f32dc6eb0c59090802cb47ccccbc7657536771b5ad3Exit477881832022-09-26 12:01:599 days 19 hrs ago0x47be39c48ff065ccc68403225dd3e89618468cc1 IN  Based Finance: Acropolis0 FTM0.002535622738
0x2b033379efaa1b9f09c17747e9cf3aa1aeb7d762d03a8a8ad4c6573cd972dc56Claim Reward477881552022-09-26 12:01:219 days 19 hrs ago0x807e6d0ea5207ad0bd9bb7bb4ef9770203cd2e15 IN  Based Finance: Acropolis0 FTM0.000256510147
0xc7445a742c051404c833722987dea4e511b27d52d109e4c4100b7954a7eb98afWithdraw477659172022-09-26 4:48:4010 days 2 hrs ago0x2baf8bd8441a0372cafc3fc4e61b99cde2bc498b IN  Based Finance: Acropolis0 FTM0.000126506628
0x50d99684efccf5987f53267ad1b32b672832b6ce47b4e120b8316e752ea88344Withdraw477626172022-09-26 3:45:1010 days 3 hrs ago0xa067c7192b6055b3f88e28dffd250bef10600cae IN  Based Finance: Acropolis0 FTM0.00030283
0x25b28ae75b81701ec412dd70173af51d42ae2648684fb6a41c2f6dfb26f156b1Withdraw477316672022-09-25 18:19:2810 days 13 hrs ago0x625a506c409f8a9d0e8500f780bde5399f616953 IN  Based Finance: Acropolis0 FTM0.000279236273
0x83f1250cf163cf2f805502a364ca6cca71505692b7bbfbce2596b74efdbb65d9Claim Reward476611042022-09-24 20:23:4511 days 11 hrs ago0xeb912cd4577fc62a51413971f803134286a4406d IN  Based Finance: Acropolis0 FTM0.0002085575
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x644a2ccd0a02cb959585a78019328cbb53ed4c931968dd7a590084c462af28da303254032022-02-08 3:12:34240 days 4 hrs ago Based Finance: Deployer  Contract Creation0 FTM
[ Download CSV Export 
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
Acropolis

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 50 runs

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

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "./utils/ContractGuard.sol";
import "./interfaces/IBasisAsset.sol";
import "./interfaces/ITreasury.sol";

contract ShareWrapper {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 public share;

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    function stake(uint256 amount) public virtual {
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        share.safeTransferFrom(msg.sender, address(this), amount);
    }

    function withdraw(uint256 amount) public virtual {
        uint256 andrasShare = _balances[msg.sender];
        require(andrasShare >= amount, "Acropolis: withdraw request greater than staked amount");
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = andrasShare.sub(amount);
        share.safeTransfer(msg.sender, amount);
    }
}

/*
__________                             .___   ___________.__
\______   \_____     ______  ____    __| _/   \_   _____/|__|  ____  _____     ____    ____   ____
 |    |  _/\__  \   /  ___/_/ __ \  / __ |     |    __)  |  | /    \ \__  \   /    \ _/ ___\_/ __ \
 |    |   \ / __ \_ \___ \ \  ___/ / /_/ |     |     \   |  ||   |  \ / __ \_|   |  \\  \___\  ___/
 |______  /(____  //____  > \___  >\____ |     \___  /   |__||___|  /(____  /|___|  / \___  >\___  >
        \/      \/      \/      \/      \/         \/             \/      \/      \/      \/     \/
*/
contract Acropolis is ShareWrapper, ContractGuard {
    using SafeERC20 for IERC20;
    using Address for address;
    using SafeMath for uint256;

    /* ========== DATA STRUCTURES ========== */

    struct Ecclesiaseat {
        uint256 lastSnapshotIndex;
        uint256 rewardEarned;
        uint256 epochTimerStart;
    }

    struct AcropolisSnapshot {
        uint256 time;
        uint256 rewardReceived;
        uint256 rewardPerShare;
    }

    /* ========== STATE VARIABLES ========== */

    // governance
    address public operator;

    // flags
    bool public initialized = false;

    IERC20 public based;
    ITreasury public treasury;

    mapping(address => Ecclesiaseat) public demos;
    AcropolisSnapshot[] public acropolisHistory;

    uint256 public withdrawLockupEpochs;
    uint256 public rewardLockupEpochs;

    /* ========== EVENTS ========== */

    event Initialized(address indexed executor, uint256 at);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event RewardAdded(address indexed user, uint256 reward);

    /* ========== Modifiers =============== */

    modifier onlyOperator() {
        require(operator == msg.sender, "Acropolis: caller is not the operator");
        _;
    }

    modifier andrasExists {
        require(balanceOf(msg.sender) > 0, "Acropolis: The andras does not exist");
        _;
    }

    modifier updateReward(address andras) {
        if (andras != address(0)) {
            Ecclesiaseat memory seat = demos[andras];
            seat.rewardEarned = earned(andras);
            seat.lastSnapshotIndex = latestSnapshotIndex();
            demos[andras] = seat;
        }
        _;
    }

    modifier notInitialized {
        require(!initialized, "Acropolis: already initialized");
        _;
    }

    /* ========== GOVERNANCE ========== */

    function initialize(
        IERC20 _based,
        IERC20 _share,
        ITreasury _treasury
    ) public notInitialized {
        based = _based;
        share = _share;
        treasury = _treasury;

        AcropolisSnapshot memory genesisSnapshot = AcropolisSnapshot({time : block.number, rewardReceived : 0, rewardPerShare : 0});
        acropolisHistory.push(genesisSnapshot);

        withdrawLockupEpochs = 4; // Lock for 6 epochs (36h) before release withdraw
        rewardLockupEpochs = 2; // Lock for 3 epochs (18h) before release claimReward    !!! THIS IS ALTERED TO SMALLER PERIODS

        initialized = true;
        operator = msg.sender;
        emit Initialized(msg.sender, block.number);
    }

    function setOperator(address _operator) external onlyOperator {
        operator = _operator;
    }

    function setLockUp(uint256 _withdrawLockupEpochs, uint256 _rewardLockupEpochs) external onlyOperator {
        require(_withdrawLockupEpochs >= _rewardLockupEpochs && _withdrawLockupEpochs <= 56, "_withdrawLockupEpochs: out of range"); // <= 2 week
        withdrawLockupEpochs = _withdrawLockupEpochs;
        rewardLockupEpochs = _rewardLockupEpochs;
    }

    /* ========== VIEW FUNCTIONS ========== */

    // =========== Snapshot getters =========== //

    function latestSnapshotIndex() public view returns (uint256) {
        return acropolisHistory.length.sub(1);
    }

    function getLatestSnapshot() internal view returns (AcropolisSnapshot memory) {
        return acropolisHistory[latestSnapshotIndex()];
    }

    function getLastSnapshotIndexOf(address andras) public view returns (uint256) {
        return demos[andras].lastSnapshotIndex;
    }

    function getLastSnapshotOf(address andras) internal view returns (AcropolisSnapshot memory) {
        return acropolisHistory[getLastSnapshotIndexOf(andras)];
    }

    function canWithdraw(address andras) external view returns (bool) {
        return demos[andras].epochTimerStart.add(withdrawLockupEpochs) <= treasury.epoch();
    }

    function canClaimReward(address andras) external view returns (bool) {
        return demos[andras].epochTimerStart.add(rewardLockupEpochs) <= treasury.epoch();
    }

    function epoch() external view returns (uint256) {
        return treasury.epoch();
    }

    function nextEpochPoint() external view returns (uint256) {
        return treasury.nextEpochPoint();
    }

    function getBasedPrice() external view returns (uint256) {
        return treasury.getBasedPrice();
    }

    // =========== Andras getters =========== //

    function rewardPerShare() public view returns (uint256) {
        return getLatestSnapshot().rewardPerShare;
    }

    function earned(address andras) public view returns (uint256) {
        uint256 latestRPS = getLatestSnapshot().rewardPerShare;
        uint256 storedRPS = getLastSnapshotOf(andras).rewardPerShare;

        return balanceOf(andras).mul(latestRPS.sub(storedRPS)).div(1e18).add(demos[andras].rewardEarned);
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    function stake(uint256 amount) public override onlyOneBlock updateReward(msg.sender) {
        require(amount > 0, "Acropolis: Cannot stake 0");
        super.stake(amount);
        demos[msg.sender].epochTimerStart = treasury.epoch(); // reset timer
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public override onlyOneBlock andrasExists updateReward(msg.sender) {
        require(amount > 0, "Acropolis: Cannot withdraw 0");
        require(demos[msg.sender].epochTimerStart.add(withdrawLockupEpochs) <= treasury.epoch(), "Acropolis: still in withdraw lockup");
        claimReward();
        super.withdraw(amount);
        emit Withdrawn(msg.sender, amount);
    }

    function exit() external {
        withdraw(balanceOf(msg.sender));
    }

    function claimReward() public updateReward(msg.sender) {
        uint256 reward = demos[msg.sender].rewardEarned;
        if (reward > 0) {
            require(demos[msg.sender].epochTimerStart.add(rewardLockupEpochs) <= treasury.epoch(), "Acropolis: still in reward lockup");
            demos[msg.sender].epochTimerStart = treasury.epoch(); // reset timer
            demos[msg.sender].rewardEarned = 0;
            based.safeTransfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    function allocateSeigniorage(uint256 amount) external onlyOneBlock onlyOperator {
        require(amount > 0, "Acropolis: Cannot allocate 0");
        require(totalSupply() > 0, "Acropolis: Cannot allocate when totalSupply is 0");

        // Create & add new snapshot
        uint256 prevRPS = getLatestSnapshot().rewardPerShare;
        uint256 nextRPS = prevRPS.add(amount.mul(1e18).div(totalSupply()));

        AcropolisSnapshot memory newSnapshot = AcropolisSnapshot({
            time: block.number,
            rewardReceived: amount,
            rewardPerShare: nextRPS
        });
        acropolisHistory.push(newSnapshot);

        based.safeTransferFrom(msg.sender, address(this), amount);
        emit RewardAdded(msg.sender, amount);
    }

    function governanceRecoverUnsupported(IERC20 _token, uint256 _amount, address _to) external onlyOperator {
        // do not allow to drain core tokens
        require(address(_token) != address(based), "based");
        require(address(_token) != address(share), "share");
        _token.safeTransfer(_to, _amount);
    }
}

File 2 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 3 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 8 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 5 of 8 : ContractGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

contract ContractGuard {
    mapping(uint256 => mapping(address => bool)) private _status;

    function checkSameOriginReentranted() internal view returns (bool) {
        return _status[block.number][tx.origin];
    }

    function checkSameSenderReentranted() internal view returns (bool) {
        return _status[block.number][msg.sender];
    }

    modifier onlyOneBlock() {
        require(!checkSameOriginReentranted(), "ContractGuard: one block, one function");
        require(!checkSameSenderReentranted(), "ContractGuard: one block, one function");

        _;

        _status[block.number][tx.origin] = true;
        _status[block.number][msg.sender] = true;
    }
}

File 6 of 8 : IBasisAsset.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IBasisAsset {
    function mint(address recipient, uint256 amount) external returns (bool);

    function burn(uint256 amount) external;

    function burnFrom(address from, uint256 amount) external;

    function isOperator() external returns (bool);

    function operator() external view returns (address);

    function transferOperator(address newOperator_) external;
}

File 7 of 8 : ITreasury.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface ITreasury {
    function epoch() external view returns (uint256);

    function nextEpochPoint() external view returns (uint256);

    function getBasedPrice() external view returns (uint256);

    function buyBonds(uint256 amount, uint256 targetPrice) external;

    function redeemBonds(uint256 amount, uint256 targetPrice) external;
}

File 8 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"executor","type":"address"},{"indexed":false,"internalType":"uint256","name":"at","type":"uint256"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"acropolisHistory","outputs":[{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"uint256","name":"rewardReceived","type":"uint256"},{"internalType":"uint256","name":"rewardPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"allocateSeigniorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"based","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"andras","type":"address"}],"name":"canClaimReward","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"andras","type":"address"}],"name":"canWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"demos","outputs":[{"internalType":"uint256","name":"lastSnapshotIndex","type":"uint256"},{"internalType":"uint256","name":"rewardEarned","type":"uint256"},{"internalType":"uint256","name":"epochTimerStart","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"andras","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBasedPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"andras","type":"address"}],"name":"getLastSnapshotIndexOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_based","type":"address"},{"internalType":"contract IERC20","name":"_share","type":"address"},{"internalType":"contract ITreasury","name":"_treasury","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestSnapshotIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextEpochPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardLockupEpochs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawLockupEpochs","type":"uint256"},{"internalType":"uint256","name":"_rewardLockupEpochs","type":"uint256"}],"name":"setLockUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"share","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"contract ITreasury","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawLockupEpochs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526004805460ff60a01b1916905534801561001d57600080fd5b50611cc38061002d6000396000f3fe608060405234801561001057600080fd5b506004361061016e5760003560e01c80635ab673b1116100d45780635ab673b11461027b57806361d027b31461028e57806370a08231146102a1578063714b4658146102b4578063900cf0cf146102c757806397ffe1d7146102cf578063a694fc3a146102e2578063a8d5fd65146102f5578063b3ab15fb14610308578063b88a802f1461031b578063c0c53b8b14610323578063c5967c2614610336578063e39114f41461033e578063e9fad8ee14610388578063eb23ce711461039057600080fd5b80628cc26214610173578063022ba18d14610199578063046335d0146101a2578063158ef93e146101c557806318160ddd146101d957806319262d30146101e15780631e85cd65146101f45780632e1a7d4d146101fd5780632ffaaa09146102125780633f9e3f0414610225578063446a2ec81461022d57806344e032ef1461023557806354575af41461023d578063570ca73514610250575b600080fd5b6101866101813660046119c1565b6103a3565b6040519081526020015b60405180910390f35b610186600a5481565b6101b56101b03660046119c1565b610424565b6040519015158152602001610190565b6004546101b590600160a01b900460ff1681565b600154610186565b6101b56101ef3660046119c1565b6104d1565b61018660095481565b61021061020b366004611a82565b610576565b005b610210610220366004611ab4565b610893565b610186610931565b610186610947565b61018661095a565b61021061024b366004611a4b565b6109d7565b600454610263906001600160a01b031681565b6040516001600160a01b039091168152602001610190565b600554610263906001600160a01b031681565b600654610263906001600160a01b031681565b6101866102af3660046119c1565b610aa6565b6101866102c23660046119c1565b610ac1565b610186610adc565b6102106102dd366004611a82565b610b21565b6102106102f0366004611a82565b610dc7565b600054610263906001600160a01b031681565b6102106103163660046119c1565b610fc6565b610210611012565b610210610331366004611a00565b6112b2565b61018661144b565b61036d61034c3660046119c1565b60076020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610190565b610210611490565b61036d61039e366004611a82565b61149e565b6000806103ae6114d1565b60400151905060006103bf8461152f565b6040908101516001600160a01b03861660009081526007602052919091206001015490915061041c90610416670de0b6b3a76400006104106104018787611590565b61040a8a610aa6565b906115a3565b906115af565b906115bb565b949350505050565b6006546040805163900cf0cf60e01b815290516000926001600160a01b03169163900cf0cf916004808301926020929190829003018186803b15801561046957600080fd5b505afa15801561047d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104a19190611a9b565b600a546001600160a01b0384166000908152600760205260409020600201546104c9916115bb565b111592915050565b6006546040805163900cf0cf60e01b815290516000926001600160a01b03169163900cf0cf916004808301926020929190829003018186803b15801561051657600080fd5b505afa15801561052a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054e9190611a9b565b6009546001600160a01b0384166000908152600760205260409020600201546104c9916115bb565b61057e6115c7565b156105a45760405162461bcd60e51b815260040161059b90611b6a565b60405180910390fd5b6105ac6115e8565b156105c95760405162461bcd60e51b815260040161059b90611b6a565b60006105d433610aa6565b1161062d5760405162461bcd60e51b8152602060048201526024808201527f4163726f706f6c69733a2054686520616e6472617320646f6573206e6f7420656044820152631e1a5cdd60e21b606482015260840161059b565b3380156106be576001600160a01b038116600090815260076020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915261067c826103a3565b6020820152610689610931565b81526001600160a01b038216600090815260076020908152604091829020835181559083015160018201559101516002909101555b6000821161070e5760405162461bcd60e51b815260206004820152601c60248201527f4163726f706f6c69733a2043616e6e6f74207769746864726177203000000000604482015260640161059b565b600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561075c57600080fd5b505afa158015610770573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107949190611a9b565b600954336000908152600760205260409020600201546107b3916115bb565b111561080d5760405162461bcd60e51b815260206004820152602360248201527f4163726f706f6c69733a207374696c6c20696e207769746864726177206c6f6360448201526206b75760ec1b606482015260840161059b565b610815611012565b61081e82611609565b60405182815233907f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5906020015b60405180910390a250504360009081526003602090815260408083203284529091528082208054600160ff1991821681179092553384529190922080549091169091179055565b6004546001600160a01b031633146108bd5760405162461bcd60e51b815260040161059b90611b25565b8082101580156108ce575060388211155b6109265760405162461bcd60e51b815260206004820152602360248201527f5f77697468647261774c6f636b757045706f6368733a206f7574206f662072616044820152626e676560e81b606482015260840161059b565b600991909155600a55565b600854600090610942906001611590565b905090565b60006109516114d1565b60400151905090565b600654604080516344e032ef60e01b815290516000926001600160a01b0316916344e032ef916004808301926020929190829003018186803b15801561099f57600080fd5b505afa1580156109b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109429190611a9b565b6004546001600160a01b03163314610a015760405162461bcd60e51b815260040161059b90611b25565b6005546001600160a01b0384811691161415610a475760405162461bcd60e51b815260206004820152600560248201526418985cd95960da1b604482015260640161059b565b6000546001600160a01b0384811691161415610a8d5760405162461bcd60e51b8152602060048201526005602482015264736861726560d81b604482015260640161059b565b610aa16001600160a01b03841682846116c9565b505050565b6001600160a01b031660009081526002602052604090205490565b6001600160a01b031660009081526007602052604090205490565b6006546040805163900cf0cf60e01b815290516000926001600160a01b03169163900cf0cf916004808301926020929190829003018186803b15801561099f57600080fd5b610b296115c7565b15610b465760405162461bcd60e51b815260040161059b90611b6a565b610b4e6115e8565b15610b6b5760405162461bcd60e51b815260040161059b90611b6a565b6004546001600160a01b03163314610b955760405162461bcd60e51b815260040161059b90611b25565b60008111610be55760405162461bcd60e51b815260206004820152601c60248201527f4163726f706f6c69733a2043616e6e6f7420616c6c6f63617465203000000000604482015260640161059b565b6000610bf060015490565b11610c565760405162461bcd60e51b815260206004820152603060248201527f4163726f706f6c69733a2043616e6e6f7420616c6c6f63617465207768656e2060448201526f0746f74616c537570706c7920697320360841b606482015260840161059b565b6000610c606114d1565b6040015190506000610c90610c89610c7760015490565b61041086670de0b6b3a76400006115a3565b83906115bb565b60408051606081018252438152602081018681529181018381526008805460018101825560009190915282517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee360039092029182015592517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4840155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee59092019190915560055491925090610d51906001600160a01b031633308761172c565b60405184815233907fac24935fd910bc682b5ccb1a07b718cadf8cf2f6d1404c4f3ddc3662dae40e299060200160405180910390a250504360009081526003602090815260408083203284529091528082208054600160ff19918216811790925533845291909220805490911690911790555050565b610dcf6115c7565b15610dec5760405162461bcd60e51b815260040161059b90611b6a565b610df46115e8565b15610e115760405162461bcd60e51b815260040161059b90611b6a565b338015610ea2576001600160a01b0381166000908152600760209081526040918290208251606081018452815481526001820154928101929092526002015491810191909152610e60826103a3565b6020820152610e6d610931565b81526001600160a01b038216600090815260076020908152604091829020835181559083015160018201559101516002909101555b60008211610eee5760405162461bcd60e51b815260206004820152601960248201527804163726f706f6c69733a2043616e6e6f74207374616b65203603c1b604482015260640161059b565b610ef78261176a565b600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f4557600080fd5b505afa158015610f59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7d9190611a9b565b33600081815260076020526040908190206002019290925590517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9061084c9085815260200190565b6004546001600160a01b03163314610ff05760405162461bcd60e51b815260040161059b90611b25565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b3380156110a3576001600160a01b0381166000908152600760209081526040918290208251606081018452815481526001820154928101929092526002015491810191909152611061826103a3565b602082015261106e610931565b81526001600160a01b038216600090815260076020908152604091829020835181559083015160018201559101516002909101555b3360009081526007602052604090206001015480156112ae57600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561110a57600080fd5b505afa15801561111e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111429190611a9b565b600a5433600090815260076020526040902060020154611161916115bb565b11156111b95760405162461bcd60e51b815260206004820152602160248201527f4163726f706f6c69733a207374696c6c20696e20726577617264206c6f636b756044820152600760fc1b606482015260840161059b565b600660009054906101000a90046001600160a01b03166001600160a01b031663900cf0cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561120757600080fd5b505afa15801561121b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123f9190611a9b565b3360008181526007602052604081206002810193909355600190920191909155600554611278916001600160a01b0390911690836116c9565b60405181815233907fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04869060200160405180910390a25b5050565b600454600160a01b900460ff161561130c5760405162461bcd60e51b815260206004820152601e60248201527f4163726f706f6c69733a20616c726561647920696e697469616c697a65640000604482015260640161059b565b600580546001600160a01b03199081166001600160a01b0386811691909117909255600080548216858416178155600680549092169284169290921790556040805160608101825243808252602080830185815283850186815260088054600181018255975284517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee360039098029788015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4870155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee590950194909455600460098190556002600a558054600160a01b336001600160a81b0319909216821717909155925190815290927f25ff68dd81b34665b5ba7e553ee5511bf6812e12adb4a7e2c0d9e26b3099ce79910160405180910390a250505050565b600654604080516362cb3e1360e11b815290516000926001600160a01b03169163c5967c26916004808301926020929190829003018186803b15801561099f57600080fd5b61149c61020b33610aa6565b565b600881815481106114ae57600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b6114d96119a0565b60086114e3610931565b815481106114f3576114f3611c62565b90600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050905090565b6115376119a0565b600861154283610ac1565b8154811061155257611552611c62565b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820154815250509050919050565b600061159c8284611c09565b9392505050565b600061159c8284611bea565b600061159c8284611bc8565b600061159c8284611bb0565b43600090815260036020908152604080832032845290915290205460ff1690565b43600090815260036020908152604080832033845290915290205460ff1690565b33600090815260026020526040902054818110156116885760405162461bcd60e51b815260206004820152603660248201527f4163726f706f6c69733a207769746864726177207265717565737420677265616044820152751d195c881d1a185b881cdd185ad95908185b5bdd5b9d60521b606482015260840161059b565b6001546116959083611590565b6001556116a28183611590565b3360008181526002602052604081209290925590546112ae916001600160a01b0390911690845b6040516001600160a01b038316602482015260448101829052610aa190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526117c3565b6040516001600160a01b03808516602483015283166044820152606481018290526117649085906323b872dd60e01b906084016116f5565b50505050565b60015461177790826115bb565b6001553360009081526002602052604090205461179490826115bb565b3360008181526002602052604081209290925590546117c0916001600160a01b0390911690308461172c565b50565b6000611818826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118959092919063ffffffff16565b805190915015610aa1578080602001905181019061183691906119de565b610aa15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161059b565b606061041c848460008585843b6118ee5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161059b565b600080866001600160a01b0316858760405161190a9190611ad6565b60006040518083038185875af1925050503d8060008114611947576040519150601f19603f3d011682016040523d82523d6000602084013e61194c565b606091505b509150915061195c828286611967565b979650505050505050565b6060831561197657508161159c565b8251156119865782518084602001fd5b8160405162461bcd60e51b815260040161059b9190611af2565b60405180606001604052806000815260200160008152602001600081525090565b6000602082840312156119d357600080fd5b813561159c81611c78565b6000602082840312156119f057600080fd5b8151801515811461159c57600080fd5b600080600060608486031215611a1557600080fd5b8335611a2081611c78565b92506020840135611a3081611c78565b91506040840135611a4081611c78565b809150509250925092565b600080600060608486031215611a6057600080fd5b8335611a6b81611c78565b9250602084013591506040840135611a4081611c78565b600060208284031215611a9457600080fd5b5035919050565b600060208284031215611aad57600080fd5b5051919050565b60008060408385031215611ac757600080fd5b50508035926020909101359150565b60008251611ae8818460208701611c20565b9190910192915050565b6020815260008251806020840152611b11816040850160208701611c20565b601f01601f19169190910160400192915050565b60208082526025908201527f4163726f706f6c69733a2063616c6c6572206973206e6f7420746865206f70656040820152643930ba37b960d91b606082015260800190565b60208082526026908201527f436f6e747261637447756172643a206f6e6520626c6f636b2c206f6e652066756040820152653731ba34b7b760d11b606082015260800190565b60008219821115611bc357611bc3611c4c565b500190565b600082611be557634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611c0457611c04611c4c565b500290565b600082821015611c1b57611c1b611c4c565b500390565b60005b83811015611c3b578181015183820152602001611c23565b838111156117645750506000910152565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03811681146117c057600080fdfea26469706673582212206c703a0bc7de43e782a57aa038617f0004c563c70bf7413ae0f79cb65e38bc8f64736f6c63430008070033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.