ETH Price: $3,329.86 (-1.60%)
Gas: 17 Gwei

Contract

0xDB6B004E34a7750E30e59e11281fCB0C73666990
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw203904692024-07-26 11:37:113 days ago1721993831IN
0xDB6B004E...C73666990
0 ETH0.000308992.63070451
Claim Rewards203904592024-07-26 11:35:113 days ago1721993711IN
0xDB6B004E...C73666990
0 ETH0.000297022.72688119
Deposit203893262024-07-26 7:47:234 days ago1721980043IN
0xDB6B004E...C73666990
0 ETH0.000398552.16640937
Deposit203661962024-07-23 2:17:597 days ago1721701079IN
0xDB6B004E...C73666990
0 ETH0.000510342.77323092
Withdraw203661642024-07-23 2:11:357 days ago1721700695IN
0xDB6B004E...C73666990
0 ETH0.000308992.31233692
Withdraw203661592024-07-23 2:10:357 days ago1721700635IN
0xDB6B004E...C73666990
0 ETH0.000381552.31200615
Withdraw203661562024-07-23 2:09:597 days ago1721700599IN
0xDB6B004E...C73666990
0 ETH0.000367152.22472123
Withdraw203661512024-07-23 2:08:597 days ago1721700539IN
0xDB6B004E...C73666990
0 ETH0.000400492.42674404
Claim Rewards203661372024-07-23 2:06:117 days ago1721700371IN
0xDB6B004E...C73666990
0 ETH0.00027422.3310412
Withdraw203157162024-07-16 1:14:5914 days ago1721092499IN
0xDB6B004E...C73666990
0 ETH0.000751347.91486964
Claim Rewards203156812024-07-16 1:07:5914 days ago1721092079IN
0xDB6B004E...C73666990
0 ETH0.00072667.56730708
Claim Rewards203104132024-07-15 7:26:5915 days ago1721028419IN
0xDB6B004E...C73666990
0 ETH0.000660385.05846321
Claim Rewards203104022024-07-15 7:24:4715 days ago1721028287IN
0xDB6B004E...C73666990
0 ETH0.000560054.29049602
Claim Rewards203103982024-07-15 7:23:5915 days ago1721028239IN
0xDB6B004E...C73666990
0 ETH0.000529774.0580172
Claim Rewards203103912024-07-15 7:22:3515 days ago1721028155IN
0xDB6B004E...C73666990
0 ETH0.000534284.09253359
Claim Rewards203103852024-07-15 7:21:2315 days ago1721028083IN
0xDB6B004E...C73666990
0 ETH0.00052224.00041218
Claim Rewards203001862024-07-13 21:11:3516 days ago1720905095IN
0xDB6B004E...C73666990
0 ETH0.000201642.10094215
Deposit202990672024-07-13 17:26:5916 days ago1720891619IN
0xDB6B004E...C73666990
0 ETH0.000357981.9458902
Withdraw202970202024-07-13 10:34:2316 days ago1720866863IN
0xDB6B004E...C73666990
0 ETH0.000268041.93430715
Claim Rewards202947282024-07-13 2:53:3517 days ago1720839215IN
0xDB6B004E...C73666990
0 ETH0.000228672.17602066
Claim Rewards202947252024-07-13 2:52:5917 days ago1720839179IN
0xDB6B004E...C73666990
0 ETH0.00026752.18907222
Withdraw202910912024-07-12 14:42:4717 days ago1720795367IN
0xDB6B004E...C73666990
0 ETH0.000794365.73156647
Withdraw202693392024-07-09 13:50:1120 days ago1720533011IN
0xDB6B004E...C73666990
0 ETH0.000668575.53535621
Withdraw202693362024-07-09 13:49:3520 days ago1720532975IN
0xDB6B004E...C73666990
0 ETH0.000688845.48572709
Claim Rewards202693332024-07-09 13:48:5920 days ago1720532939IN
0xDB6B004E...C73666990
0 ETH0.000606965.79437255
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StablzTokenStaking

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, Unlicense license
File 1 of 13 : StablzTokenStaking.sol
//SPDX-License-Identifier: Unlicense
pragma solidity = 0.8.9;

import "contracts/staking/common/StablzStaking.sol";
import "contracts/token/OperatingSystem.sol";

/// @title Stablz staking
contract StablzTokenStaking is StablzStaking {

    OperatingSystem public immutable receipt;

    /// @param _stablz Stablz token
    /// @param _operatingSystem Stablz governance token
    /// @param _totalRewards Total rewards allocated for the contract
    /// @param _minimumDeposit Minimum deposit amount
    /// @param _apr1Month APR for 1 month to 1 d.p. e.g. 80 = 8%
    /// @param _apr3Month APR for 3 month to 1 d.p. e.g. 120 = 12%
    /// @param _apr6Month APR for 6 month to 1 d.p. e.g. 200 = 20%
    /// @param _apr12Month APR for 12 month to 1 d.p. e.g. 365 = 36.5%
    constructor(
        address _stablz,
        address _operatingSystem,
        uint _totalRewards,
        uint _minimumDeposit,
        uint _apr1Month,
        uint _apr3Month,
        uint _apr6Month,
        uint _apr12Month
    ) StablzStaking(_stablz, _stablz, _totalRewards, _minimumDeposit, _apr1Month, _apr3Month, _apr6Month, _apr12Month) {
        require(_operatingSystem != address(0), "StablzTokenStaking: _operatingSystem cannot be the zero address");
        receipt = OperatingSystem(_operatingSystem);
    }

    /// @dev Calculate the rewards earned at the end of the lockup period for a given amount of LP
    function _calculateReward(uint _amount, uint _lockUpPeriodType) internal override view returns (uint reward) {
        uint period = getLockUpPeriod(_lockUpPeriodType);
        uint apr = getAPR(_lockUpPeriodType);
        return _amount * apr * period / (365 days * APR_DENOMINATOR);
    }

    function _giveReceipt(address _user, uint _amount) internal override {
        receipt.mint(_user, _amount);
    }

    function _takeReceipt(address _user, uint _amount) internal override {
        receipt.burnFrom(_user, _amount);
    }

}

File 2 of 13 : OperatingSystem.sol
//SPDX-License-Identifier: Unlicense
pragma solidity = 0.8.9;

/*
       ^PY??????????????????????????????YP^
      !G!                                !G!
     7BY7???????????????????????????????J?YB7
     5Y                                    Y5
     Y  G:?5YYYYYYYYYYYYYYYYYYYYYYY57:B7   YY
     Y  PJ5                          PJG   YY
     Y  GG7     .@@@@@.   .@@@@@@~   7GG   YY
     Y  GG7    G@#   &J@  #5         ?PG   YY
     Y  GG7    G@@   B@@  ~5??Y5~.   ?PG   YY
     Y  GG7    G@@   G@@        5#   ?PG   YY
     Y  GG7     55JJYP?   PYJJ5P?    7PG   YY
     Y  PPJ                          YPG   YY
     Y  G:YJ77777777777777777777777JY:G7   YY
     Y                            -  +  () Y5
    BJ??????????????????????????????????????JB
   5Y  ?::??::??::??::??::??::??::??::??::?  Y5
 !B.  ^YJ!:JJ7:?J?:7J?^~JJ~^?J7:?J?:7JJ:!JY^  .B!
:G~ :??~:??7.???.7??:~??^^??~:??7.???.7??:~??: ~G:
5P^^~~^~^~~~^~~~^~~~~~~^~^~~~^~~~^^~~^^^~~~^^~~^^P5
*/

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";

/// @title Stablz Operating System
contract OperatingSystem is ERC20Burnable, Ownable {

    /// @dev whitelist addresses for minting, burning and transferring to or from
    mapping(address => bool) public whitelist;

    modifier onlyWhitelisted() {
        require(whitelist[_msgSender()], "OperatingSystem: Only whitelisted addresses can call this function");
        _;
    }

    event WhitelistUpdated(address account, bool isWhitelisted);

    constructor() ERC20("Operating System", "OS") {
    }

    /// @notice Mint stakedStablz
    /// @param _account Address to mint tokens to
    /// @param _amount Number of tokens to mint
    function mint(address _account, uint _amount) external onlyWhitelisted {
        _mint(_account, _amount);
    }

    /// @notice Burn stakedStablz
    /// @param _amount Amount to burn
    function burn(uint _amount) public override onlyWhitelisted {
        super.burn(_amount);
    }

    /// @notice Burn stakedStablz from an address
    /// @param _account Address to burn from (caller has to be approved)
    /// @param _amount Amount to burn
    function burnFrom(address _account, uint _amount) public override onlyWhitelisted {
        super.burnFrom(_account, _amount);
    }

    /// @notice Update whitelist
    /// @param _account Account
    /// @param _whitelist true = add to whitelist, false = remove from whitelist
    function updateWhitelist(address _account, bool _whitelist) external onlyOwner {
        whitelist[_account] = _whitelist;
        emit WhitelistUpdated(_account, _whitelist);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        super._beforeTokenTransfer(from, to, amount);
        if (from != address(0) && to != address(0)) {
            /// @dev tokens can only be transferred to or from whitelisted address
            require(whitelist[from] || whitelist[to], "OperatingSystem: Can only transfer to or from whitelisted addresses");
        }
    }
}

File 3 of 13 : StablzStaking.sol
//SPDX-License-Identifier: Unlicense
pragma solidity = 0.8.9;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

/// @title Stablz staking
abstract contract StablzStaking is Ownable, ReentrancyGuard {

    using SafeERC20 for IERC20;

    address public immutable stakingToken;
    address public immutable rewardToken;
    uint public immutable totalRewards;
    uint public totalAvailable;
    bool public initialized;
    bool public isDepositingEnabled;

    uint public minimumDeposit;

    uint public immutable apr1Month;
    uint public immutable apr3Month;
    uint public immutable apr6Month;
    uint public immutable apr12Month;
    uint internal constant APR_DENOMINATOR = 1000;

    struct Stake {
        uint lockUpPeriodType;
        uint stakedAt;
        uint amount;
        uint amountWithdrawn;
        uint allocatedRewards;
        uint claimedRewards;
    }

    mapping(address => Stake[]) private _userStakes;

    /// @param _lockUpPeriodType Lock up period type
    modifier onlyValidLockPeriod(uint _lockUpPeriodType) {
        require(_lockUpPeriodType <= 3, "StablzStaking: Invalid lock period");
        _;
    }

    /// @param _user User address
    /// @param _stakeId Stake ID
    modifier onlyValidStakeId(address _user, uint _stakeId) {
        Stake[] memory stakes = _userStakes[_user];
        require(_stakeId < stakes.length && stakes[_stakeId].amount != 0, "StablzStaking: Invalid stake ID");
        _;
    }

    modifier onlyIfInitialized() {
        require(initialized, "StablzStaking: Contract not initialized");
        _;
    }

    event Deposit(address user, uint stakeId, uint amount, uint lockUpPeriodType);
    event Withdraw(address user, uint stakeId, uint amount);
    event RewardsClaimed(address user, uint stakeId, uint rewards);
    event Initialized();
    event DepositingEnabled();
    event DepositingDisabled();
    event MinimumDepositUpdated(uint minimumDeposit);

    /// @param _stakingToken Token used for staking
    /// @param _rewardToken Token used for rewards
    /// @param _totalRewards Total rewards allocated for the contract
    /// @param _minimumDeposit Minimum deposit amount
    /// @param _apr1Month APR for 1 month to 1 d.p. e.g. 80 = 8%
    /// @param _apr3Month APR for 3 month to 1 d.p. e.g. 120 = 12%
    /// @param _apr6Month APR for 6 month to 1 d.p. e.g. 200 = 20%
    /// @param _apr12Month APR for 12 month to 1 d.p. e.g. 365 = 36.5%
    constructor(address _stakingToken, address _rewardToken, uint _totalRewards, uint _minimumDeposit, uint _apr1Month, uint _apr3Month, uint _apr6Month, uint _apr12Month) {
        require(_stakingToken != address(0), "StablzStaking: _stakingToken cannot be the zero address");
        require(_rewardToken != address(0), "StablzStaking: _rewardToken cannot be the zero address");
        stakingToken = _stakingToken;
        rewardToken = _rewardToken;
        totalRewards = _totalRewards;
        minimumDeposit = _minimumDeposit;
        apr1Month = _apr1Month;
        apr3Month = _apr3Month;
        apr6Month = _apr6Month;
        apr12Month = _apr12Month;
    }

    /// @notice Initialize the contract by funding it with rewards, requires approval prior to calling
    function initialize() external onlyOwner {
        require(!initialized, "StablzStaking: Already initialized");
        initialized = true;
        totalAvailable = totalRewards;
        uint rewardBalance = IERC20(rewardToken).balanceOf(address(this));
        if (rewardBalance < totalRewards) {
            IERC20(rewardToken).safeTransferFrom(_msgSender(), address(this), totalRewards - rewardBalance);
        }
        emit Initialized();
    }

    /// @notice Enable depositing
    function enableDepositing() external onlyOwner onlyIfInitialized {
        isDepositingEnabled = true;
        emit DepositingEnabled();
    }

    /// @notice Disable depositing
    function disableDepositing() external onlyOwner onlyIfInitialized {
        isDepositingEnabled = false;
        emit DepositingDisabled();
    }

    /// @notice Set minimum deposit
    /// @param _minimumDeposit Minimum deposit amount
    function setMinimumDeposit(uint _minimumDeposit) external onlyOwner {
        minimumDeposit = _minimumDeposit;
        emit MinimumDepositUpdated(_minimumDeposit);
    }

    /// @notice Stake tokens for a given lock up period
    /// @param _amount Amount to stake
    /// @param _lockUpPeriodType Lock up period (0 = 30 days, 1 = 90 days, 2 = 180 days, 3 = 365 days)
    function deposit(uint _amount, uint _lockUpPeriodType) external nonReentrant onlyIfInitialized onlyValidLockPeriod(_lockUpPeriodType) {
        require(isDepositingEnabled, "StablzStaking: Depositing is not allowed at this time");
        require(_amount >= minimumDeposit && _amount > 0, "StablzStaking: Amount is not valid");
        uint forecastRewards = _calculateReward(_amount, _lockUpPeriodType);
        require(forecastRewards <= totalAvailable, "StablzStaking: Forecast rewards exceeds available rewards");
        totalAvailable -= forecastRewards;
        uint stakeId = _userStakes[_msgSender()].length;
        _userStakes[_msgSender()].push(
            Stake(
                _lockUpPeriodType,
                block.timestamp,
                _amount,
                0,
                forecastRewards,
                0
            )
        );
        IERC20(stakingToken).safeTransferFrom(_msgSender(), address(this), _amount);
        _giveReceipt(_msgSender(), _amount);
        emit Deposit(_msgSender(), stakeId, _amount, _lockUpPeriodType);
    }

    /// @notice Withdraws specific stake only after the lock up period and claims any unclaimed rewards
    /// @param _stakeId Stake ID
    /// @param _amount Amount of tokens to withdraw
    function withdraw(uint _stakeId, uint _amount) external nonReentrant onlyValidStakeId(_msgSender(), _stakeId) {
        Stake storage stake = _userStakes[_msgSender()][_stakeId];
        uint period = getLockUpPeriod(stake.lockUpPeriodType);
        require(block.timestamp >= stake.stakedAt + period, "StablzStaking: You cannot unstake before the lock up period");
        require(_amount > 0, "StablzStaking: You cannot withdraw zero tokens");
        require(stake.amountWithdrawn < stake.amount, "StablzStaking: Already withdrawn full amount");
        require(_amount <= stake.amount - stake.amountWithdrawn, "StablzStaking: Insufficient stake balance");

        stake.amountWithdrawn += _amount;

        if (stake.claimedRewards < stake.allocatedRewards) {
            uint unclaimedRewards = stake.allocatedRewards - stake.claimedRewards;
            stake.claimedRewards = stake.allocatedRewards;
            IERC20(rewardToken).safeTransfer(_msgSender(), unclaimedRewards);
            emit RewardsClaimed(_msgSender(), _stakeId, unclaimedRewards);
        }
        _takeReceipt(_msgSender(), _amount);
        IERC20(stakingToken).safeTransfer(_msgSender(), _amount);
        emit Withdraw(_msgSender(), _stakeId, _amount);
    }

    /// @notice Claim rewards for a given stake, can be called before or after lockup period ends as long as there are unclaimed rewards
    /// @param _stakeId Stake ID
    function claimRewards(uint _stakeId) external nonReentrant onlyValidStakeId(_msgSender(), _stakeId) {
        Stake storage stake = _userStakes[_msgSender()][_stakeId];
        require(stake.claimedRewards < stake.allocatedRewards, "StablzStaking: You have already claimed your rewards");
        uint period = getLockUpPeriod(stake.lockUpPeriodType);
        uint rewards;
        if (block.timestamp >= stake.stakedAt + period) {
            rewards = stake.allocatedRewards - stake.claimedRewards;
        } else {
            uint timeDifference = block.timestamp - stake.stakedAt;
            uint rewardsToDate = stake.allocatedRewards * timeDifference / period;
            rewards = rewardsToDate - stake.claimedRewards;
        }
        stake.claimedRewards += rewards;
        IERC20(rewardToken).safeTransfer(_msgSender(), rewards);
        emit RewardsClaimed(_msgSender(), _stakeId, rewards);
    }

    /// @notice Get a list of a given user's stakes between two indexes
    /// @param _user User address
    /// @param _startIndex Start index
    /// @param _endIndex End index
    /// @return list Page of user stakes
    function getUserStakes(address _user, uint _startIndex, uint _endIndex) external view returns (Stake[] memory list) {
        uint totalUserStakes = getTotalUserStakes(_user);

        require(_startIndex <= _endIndex, "StablzStaking: Start index must be less than or equal to end index");
        require(_startIndex < totalUserStakes, "StablzStaking: Invalid start index");
        require(_endIndex < totalUserStakes, "StablzStaking: Invalid end index");

        list = new Stake[](_endIndex - _startIndex + 1);
        uint listIndex;
        for (uint stakeId = _startIndex; stakeId <= _endIndex; stakeId++) {
            list[listIndex] = _userStakes[_user][stakeId];
            listIndex++;
        }
        return list;
    }

    /// @notice Get total number of user stakes
    /// @param _user User address
    /// @return uint Total number of user stakes
    function getTotalUserStakes(address _user) public view returns (uint) {
        return _userStakes[_user].length;
    }

    /// @notice Calculate the rewards earned at the end of the lockup period for a given amount
    /// @param _amount Amount to stake
    /// @param _lockUpPeriodType Lock up period (0-3)
    /// @return reward Calculated reward
    function calculateReward(uint _amount, uint _lockUpPeriodType) external view onlyValidLockPeriod(_lockUpPeriodType) returns (uint reward) {
        return _calculateReward(_amount, _lockUpPeriodType);
    }

    /// @notice Get APR for a given lock up period
    /// @param _lockUpPeriodType Lock up period (0-3)
    /// @return apr APR to 1 d.p.
    function getAPR(uint _lockUpPeriodType) public view onlyValidLockPeriod(_lockUpPeriodType) returns (uint apr) {
        if (_lockUpPeriodType == 0) {
            apr = apr1Month;
        } else if (_lockUpPeriodType == 1) {
            apr = apr3Month;
        } else if (_lockUpPeriodType == 2) {
            apr = apr6Month;
        } else {
            apr = apr12Month;
        }
    }

    /// @notice Get the length of a lock up period in seconds
    /// @param _lockUpPeriodType Lock up period (0-3)
    /// @return time Lock up period in seconds
    function getLockUpPeriod(uint _lockUpPeriodType) public pure onlyValidLockPeriod(_lockUpPeriodType) returns (uint time) {
        if (_lockUpPeriodType == 0) {
            time = 30 days;
        } else if (_lockUpPeriodType == 1) {
            time = 90 days;
        } else if (_lockUpPeriodType == 2) {
            time = 180 days;
        } else {
            time = 365 days;
        }
    }

    function _giveReceipt(address _user, uint _amount) internal virtual;

    function _takeReceipt(address _user, uint _amount) internal virtual;

    function _calculateReward(uint _amount, uint _lockPeriodType) internal virtual view returns (uint reward);
}

File 4 of 13 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

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

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

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

File 5 of 13 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

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

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

        return true;
    }

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

        _beforeTokenTransfer(from, to, amount);

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

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 7 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.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));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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 8 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 9 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

File 10 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 11 of 13 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stablz","type":"address"},{"internalType":"address","name":"_operatingSystem","type":"address"},{"internalType":"uint256","name":"_totalRewards","type":"uint256"},{"internalType":"uint256","name":"_minimumDeposit","type":"uint256"},{"internalType":"uint256","name":"_apr1Month","type":"uint256"},{"internalType":"uint256","name":"_apr3Month","type":"uint256"},{"internalType":"uint256","name":"_apr6Month","type":"uint256"},{"internalType":"uint256","name":"_apr12Month","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakeId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockUpPeriodType","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[],"name":"DepositingDisabled","type":"event"},{"anonymous":false,"inputs":[],"name":"DepositingEnabled","type":"event"},{"anonymous":false,"inputs":[],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"minimumDeposit","type":"uint256"}],"name":"MinimumDepositUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakeId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewards","type":"uint256"}],"name":"RewardsClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakeId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"apr12Month","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"apr1Month","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"apr3Month","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"apr6Month","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_lockUpPeriodType","type":"uint256"}],"name":"calculateReward","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakeId","type":"uint256"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_lockUpPeriodType","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableDepositing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableDepositing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lockUpPeriodType","type":"uint256"}],"name":"getAPR","outputs":[{"internalType":"uint256","name":"apr","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lockUpPeriodType","type":"uint256"}],"name":"getLockUpPeriod","outputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getTotalUserStakes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_startIndex","type":"uint256"},{"internalType":"uint256","name":"_endIndex","type":"uint256"}],"name":"getUserStakes","outputs":[{"components":[{"internalType":"uint256","name":"lockUpPeriodType","type":"uint256"},{"internalType":"uint256","name":"stakedAt","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"amountWithdrawn","type":"uint256"},{"internalType":"uint256","name":"allocatedRewards","type":"uint256"},{"internalType":"uint256","name":"claimedRewards","type":"uint256"}],"internalType":"struct StablzStaking.Stake[]","name":"list","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isDepositingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"receipt","outputs":[{"internalType":"contract OperatingSystem","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minimumDeposit","type":"uint256"}],"name":"setMinimumDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAvailable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_stakeId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101806040523480156200001257600080fd5b50604051620024c1380380620024c183398101604081905262000035916200027b565b878087878787878762000048336200020e565b600180556001600160a01b038816620000ce5760405162461bcd60e51b815260206004820152603760248201527f537461626c7a5374616b696e673a205f7374616b696e67546f6b656e2063616e60448201527f6e6f7420626520746865207a65726f206164647265737300000000000000000060648201526084015b60405180910390fd5b6001600160a01b0387166200014c5760405162461bcd60e51b815260206004820152603660248201527f537461626c7a5374616b696e673a205f726577617264546f6b656e2063616e6e60448201527f6f7420626520746865207a65726f2061646472657373000000000000000000006064820152608401620000c5565b6001600160a01b0397881660805295871660a05260c09490945260049290925560e0526101005261012052610140528716620001f15760405162461bcd60e51b815260206004820152603f60248201527f537461626c7a546f6b656e5374616b696e673a205f6f7065726174696e67537960448201527f7374656d2063616e6e6f7420626520746865207a65726f2061646472657373006064820152608401620000c5565b5050506001600160a01b039093166101605250620002ec92505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200027657600080fd5b919050565b600080600080600080600080610100898b0312156200029957600080fd5b620002a4896200025e565b9750620002b460208a016200025e565b60408a015160608b015160808c015160a08d015160c08e015160e0909e01519c9f949e50929c919b909a509198509650945092505050565b60805160a05160c05160e0516101005161012051610140516101605161210d620003b4600039600081816103e201528181611a9d0152611bfc0152600081816102970152610a230152600081816101e001526109fa0152600081816102d101526109c9015260008181610301015261099801526000818161022d015281816112310152818161130a015261133b015260008181610454015281816107a30152818161128c015261136901526000818161035001528181610e51015261174c015261210d6000f3fe608060405234801561001057600080fd5b50600436106101b95760003560e01c80636a6c8d8b116100f9578063d85d7f5b11610097578063e78ec42e11610071578063e78ec42e14610417578063ec81532a1461042a578063f2fde38b1461043c578063f7c618c11461044f57600080fd5b8063d85d7f5b146103d4578063e1e6b898146103dd578063e2bbb1581461040457600080fd5b80638129fc1c116100d35780638129fc1c1461038a57806387433976146103925780638da5cb5b146103bb578063a5d87d6c146103cc57600080fd5b80636a6c8d8b14610323578063715018a61461034357806372f702f31461034b57600080fd5b8063158ef93e11610166578063441a3e7011610140578063441a3e70146102b95780635b1ac3aa146102cc578063636bfbab146102f3578063655d9647146102fc57600080fd5b8063158ef93e146102625780631fc038121461027f5780631ff41a551461029257600080fd5b80630da319a2116101975780630da319a2146102155780630e15561a1461022857806313ed08461461024f57600080fd5b806304d7ba15146101be5780630962ef79146101c85780630d58dca3146101db575b600080fd5b6101c6610476565b005b6101c66101d6366004611e30565b61051f565b6102027f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b610202610223366004611e30565b61081c565b6102027f000000000000000000000000000000000000000000000000000000000000000081565b61020261025d366004611e49565b6108c1565b60035461026f9060ff1681565b604051901515815260200161020c565b61020261028d366004611e30565b610932565b6102027f000000000000000000000000000000000000000000000000000000000000000081565b6101c66102c7366004611e49565b610a48565b6102027f000000000000000000000000000000000000000000000000000000000000000081565b61020260045481565b6102027f000000000000000000000000000000000000000000000000000000000000000081565b610336610331366004611e87565b610ed2565b60405161020c9190611eba565b6101c661118d565b6103727f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161020c565b6101c66111a1565b6102026103a0366004611f32565b6001600160a01b031660009081526005602052604090205490565b6000546001600160a01b0316610372565b6101c66113bd565b61020260025481565b6103727f000000000000000000000000000000000000000000000000000000000000000081565b6101c6610412366004611e49565b61145d565b6101c6610425366004611e30565b6117d9565b60035461026f90610100900460ff1681565b6101c661044a366004611f32565b61181c565b6103727f000000000000000000000000000000000000000000000000000000000000000081565b61047e6118a9565b60035460ff166104e55760405162461bcd60e51b815260206004820152602760248201527f537461626c7a5374616b696e673a20436f6e7472616374206e6f7420696e69746044820152661a585b1a5e995960ca1b60648201526084015b60405180910390fd5b6003805461ff0019166101001790556040517f8d8235615e2606a7fbb90e968cf1f1d51deafcb5ec8e6c339883b812cf5e0c0c90600090a1565b610527611903565b3360008181526005602090815260408083208054825181850281018501909352808352869493849084015b828210156105c057838290600052602060002090600602016040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505081526020019060010190610552565b5050505090508051821080156105f457508082815181106105e3576105e3611f54565b602002602001015160400151600014155b6106405760405162461bcd60e51b815260206004820152601f60248201527f537461626c7a5374616b696e673a20496e76616c6964207374616b652049440060448201526064016104dc565b33600090815260056020526040812080548690811061066157610661611f54565b9060005260206000209060060201905080600401548160050154106106ee5760405162461bcd60e51b815260206004820152603460248201527f537461626c7a5374616b696e673a20596f75206861766520616c72656164792060448201527f636c61696d656420796f7572207265776172647300000000000000000000000060648201526084016104dc565b60006106fd826000015461081c565b905060008183600101546107119190611f80565b4210610732578260050154836004015461072b9190611f98565b905061077a565b60008360010154426107449190611f98565b90506000838286600401546107599190611faf565b6107639190611fce565b90508460050154816107759190611f98565b925050505b8083600501600082825461078e9190611f80565b909155506107ca9050335b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016908361195d565b604080513381526020810189905280820183905290517fdacbdde355ba930696a362ea6738feb9f8bd52dfb3d81947558fd3217e23e3259181900360600190a150505050505061081960018055565b50565b600081600381111561087b5760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20496e76616c6964206c6f636b20706572696044820152611bd960f21b60648201526084016104dc565b8261088b5762278d0091506108bb565b826001141561089f576276a70091506108bb565b82600214156108b35762ed4e0091506108bb565b6301e1338091505b50919050565b60008160038111156109205760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20496e76616c6964206c6f636b20706572696044820152611bd960f21b60648201526084016104dc565b61092a8484611a0b565b949350505050565b60008160038111156109915760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20496e76616c6964206c6f636b20706572696044820152611bd960f21b60648201526084016104dc565b826109be577f000000000000000000000000000000000000000000000000000000000000000091506108bb565b82600114156109ef577f000000000000000000000000000000000000000000000000000000000000000091506108bb565b8260021415610a20577f000000000000000000000000000000000000000000000000000000000000000091506108bb565b507f000000000000000000000000000000000000000000000000000000000000000092915050565b610a50611903565b3360008181526005602090815260408083208054825181850281018501909352808352879493849084015b82821015610ae957838290600052602060002090600602016040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505081526020019060010190610a7b565b505050509050805182108015610b1d5750808281518110610b0c57610b0c611f54565b602002602001015160400151600014155b610b695760405162461bcd60e51b815260206004820152601f60248201527f537461626c7a5374616b696e673a20496e76616c6964207374616b652049440060448201526064016104dc565b336000908152600560205260408120805487908110610b8a57610b8a611f54565b906000526020600020906006020190506000610ba9826000015461081c565b9050808260010154610bbb9190611f80565b421015610c305760405162461bcd60e51b815260206004820152603b60248201527f537461626c7a5374616b696e673a20596f752063616e6e6f7420756e7374616b60448201527f65206265666f726520746865206c6f636b20757020706572696f64000000000060648201526084016104dc565b60008611610ca65760405162461bcd60e51b815260206004820152602e60248201527f537461626c7a5374616b696e673a20596f752063616e6e6f742077697468647260448201527f6177207a65726f20746f6b656e7300000000000000000000000000000000000060648201526084016104dc565b8160020154826003015410610d235760405162461bcd60e51b815260206004820152602c60248201527f537461626c7a5374616b696e673a20416c72656164792077697468647261776e60448201527f2066756c6c20616d6f756e74000000000000000000000000000000000000000060648201526084016104dc565b81600301548260020154610d379190611f98565b861115610dac5760405162461bcd60e51b815260206004820152602960248201527f537461626c7a5374616b696e673a20496e73756666696369656e74207374616b60448201527f652062616c616e6365000000000000000000000000000000000000000000000060648201526084016104dc565b85826003016000828254610dc09190611f80565b9091555050600482015460058301541015610e4257600082600501548360040154610deb9190611f98565b600484015460058501559050610e0033610799565b60408051338152602081018a905280820183905290517fdacbdde355ba930696a362ea6738feb9f8bd52dfb3d81947558fd3217e23e3259181900360600190a1505b610e4c3387611a5e565b610e807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316338861195d565b604080513381526020810189905280820188905290517ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360600190a15050505050610ece60018055565b5050565b60606000610ef5856001600160a01b031660009081526005602052604090205490565b905082841115610f785760405162461bcd60e51b815260206004820152604260248201527f537461626c7a5374616b696e673a20537461727420696e646578206d7573742060448201527f6265206c657373207468616e206f7220657175616c20746f20656e6420696e646064820152610caf60f31b608482015260a4016104dc565b808410610fd25760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20496e76616c696420737461727420696e646044820152610caf60f31b60648201526084016104dc565b8083106110215760405162461bcd60e51b815260206004820181905260248201527f537461626c7a5374616b696e673a20496e76616c696420656e6420696e64657860448201526064016104dc565b61102b8484611f98565b611036906001611f80565b67ffffffffffffffff81111561104e5761104e611ff0565b6040519080825280602002602001820160405280156110b857816020015b6110a56040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b81526020019060019003908161106c5790505b5091506000845b848111611183576001600160a01b03871660009081526005602052604090208054829081106110f0576110f0611f54565b90600052602060002090600602016040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505084838151811061115757611157611f54565b6020026020010181905250818061116d90612006565b925050808061117b90612006565b9150506110bf565b5050509392505050565b6111956118a9565b61119f6000611afe565b565b6111a96118a9565b60035460ff16156112225760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20416c726561647920696e697469616c697a60448201527f656400000000000000000000000000000000000000000000000000000000000060648201526084016104dc565b6003805460ff191660011790557f00000000000000000000000000000000000000000000000000000000000000006002556040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b1580156112ce57600080fd5b505afa1580156112e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113069190612021565b90507f000000000000000000000000000000000000000000000000000000000000000081101561139157611391333061135f847f0000000000000000000000000000000000000000000000000000000000000000611f98565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016929190611b66565b6040517f5daa87a0e9463431830481fd4b6e3403442dfb9a12b9c07597e9f61d50b633c890600090a150565b6113c56118a9565b60035460ff166114275760405162461bcd60e51b815260206004820152602760248201527f537461626c7a5374616b696e673a20436f6e7472616374206e6f7420696e69746044820152661a585b1a5e995960ca1b60648201526084016104dc565b6003805461ff00191690556040517f1d2df1f82541c9ce547cfbcb99cb9ea10d959f53ca0c7b47e17640932dadc42090600090a1565b611465611903565b60035460ff166114c75760405162461bcd60e51b815260206004820152602760248201527f537461626c7a5374616b696e673a20436f6e7472616374206e6f7420696e69746044820152661a585b1a5e995960ca1b60648201526084016104dc565b8060038111156115245760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20496e76616c6964206c6f636b20706572696044820152611bd960f21b60648201526084016104dc565b600354610100900460ff166115a15760405162461bcd60e51b815260206004820152603560248201527f537461626c7a5374616b696e673a204465706f736974696e67206973206e6f7460448201527f20616c6c6f77656420617420746869732074696d65000000000000000000000060648201526084016104dc565b60045483101580156115b35750600083115b6116255760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20416d6f756e74206973206e6f742076616c60448201527f696400000000000000000000000000000000000000000000000000000000000060648201526084016104dc565b60006116318484611a0b565b90506002548111156116ab5760405162461bcd60e51b815260206004820152603960248201527f537461626c7a5374616b696e673a20466f72656361737420726577617264732060448201527f6578636565647320617661696c61626c6520726577617264730000000000000060648201526084016104dc565b80600260008282546116bd9190611f98565b90915550503360008181526005602081815260408084208054825160c0810184528a8152428186019081529381018c815260608201888152608083018b815260a084018a815260018087018855968b5297909920925160068502909301928355945193820193909355915160028301559151600382015593516004850155905192909101919091559061177c907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316903088611b66565b6117863386611bbd565b60408051338152602081018390528082018790526060810186905290517f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e9181900360800190a1505050610ece60018055565b6117e16118a9565b60048190556040518181527fd939191be6b640bc40ef7c6a17554ac82dfea02602fcacfad13dcd71d0abe6d09060200160405180910390a150565b6118246118a9565b6001600160a01b0381166118a05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104dc565b61081981611afe565b6000546001600160a01b0316331461119f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104dc565b600260015414156119565760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104dc565b6002600155565b6040516001600160a01b038316602482015260448101829052611a069084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611c2b565b505050565b600080611a178361081c565b90506000611a2484610932565b9050611a366103e86301e13380611faf565b82611a418388611faf565b611a4b9190611faf565b611a559190611fce565b95945050505050565b6040517f79cc67900000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f000000000000000000000000000000000000000000000000000000000000000016906379cc6790906044015b600060405180830381600087803b158015611ae257600080fd5b505af1158015611af6573d6000803e3d6000fd5b505050505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611bb79085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016119a2565b50505050565b6040517f40c10f190000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f000000000000000000000000000000000000000000000000000000000000000016906340c10f1990604401611ac8565b6000611c80826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d109092919063ffffffff16565b805190915015611a065780806020019051810190611c9e919061203a565b611a065760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104dc565b606061092a848460008585600080866001600160a01b03168587604051611d379190612088565b60006040518083038185875af1925050503d8060008114611d74576040519150601f19603f3d011682016040523d82523d6000602084013e611d79565b606091505b5091509150611d8a87838387611d95565b979650505050505050565b60608315611e01578251611dfa576001600160a01b0385163b611dfa5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104dc565b508161092a565b61092a8383815115611e165781518083602001fd5b8060405162461bcd60e51b81526004016104dc91906120a4565b600060208284031215611e4257600080fd5b5035919050565b60008060408385031215611e5c57600080fd5b50508035926020909101359150565b80356001600160a01b0381168114611e8257600080fd5b919050565b600080600060608486031215611e9c57600080fd5b611ea584611e6b565b95602085013595506040909401359392505050565b602080825282518282018190526000919060409081850190868401855b82811015611f255781518051855286810151878601528581015186860152606080820151908601526080808201519086015260a0908101519085015260c09093019290850190600101611ed7565b5091979650505050505050565b600060208284031215611f4457600080fd5b611f4d82611e6b565b9392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611f9357611f93611f6a565b500190565b600082821015611faa57611faa611f6a565b500390565b6000816000190483118215151615611fc957611fc9611f6a565b500290565b600082611feb57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052604160045260246000fd5b600060001982141561201a5761201a611f6a565b5060010190565b60006020828403121561203357600080fd5b5051919050565b60006020828403121561204c57600080fd5b81518015158114611f4d57600080fd5b60005b8381101561207757818101518382015260200161205f565b83811115611bb75750506000910152565b6000825161209a81846020870161205c565b9190910192915050565b60208152600082518060208401526120c381604085016020870161205c565b601f01601f1916919091016040019291505056fea264697066735822122099f9cc96611ca05c573afcf45abc2f0b23fa23aadd85147a5d59c0635528ba3f64736f6c63430008090033000000000000000000000000a4eb9c64ec359d093eac7b65f51ef933d6e5f7cd00000000000000000000000021ffe03caa6355cf1ca47b898921d2f70e85e423000000000000000000000000000000000000000000108b2a2c2802909400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000007800000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000016d

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101b95760003560e01c80636a6c8d8b116100f9578063d85d7f5b11610097578063e78ec42e11610071578063e78ec42e14610417578063ec81532a1461042a578063f2fde38b1461043c578063f7c618c11461044f57600080fd5b8063d85d7f5b146103d4578063e1e6b898146103dd578063e2bbb1581461040457600080fd5b80638129fc1c116100d35780638129fc1c1461038a57806387433976146103925780638da5cb5b146103bb578063a5d87d6c146103cc57600080fd5b80636a6c8d8b14610323578063715018a61461034357806372f702f31461034b57600080fd5b8063158ef93e11610166578063441a3e7011610140578063441a3e70146102b95780635b1ac3aa146102cc578063636bfbab146102f3578063655d9647146102fc57600080fd5b8063158ef93e146102625780631fc038121461027f5780631ff41a551461029257600080fd5b80630da319a2116101975780630da319a2146102155780630e15561a1461022857806313ed08461461024f57600080fd5b806304d7ba15146101be5780630962ef79146101c85780630d58dca3146101db575b600080fd5b6101c6610476565b005b6101c66101d6366004611e30565b61051f565b6102027f00000000000000000000000000000000000000000000000000000000000000c881565b6040519081526020015b60405180910390f35b610202610223366004611e30565b61081c565b6102027f000000000000000000000000000000000000000000108b2a2c2802909400000081565b61020261025d366004611e49565b6108c1565b60035461026f9060ff1681565b604051901515815260200161020c565b61020261028d366004611e30565b610932565b6102027f000000000000000000000000000000000000000000000000000000000000016d81565b6101c66102c7366004611e49565b610a48565b6102027f000000000000000000000000000000000000000000000000000000000000007881565b61020260045481565b6102027f000000000000000000000000000000000000000000000000000000000000005081565b610336610331366004611e87565b610ed2565b60405161020c9190611eba565b6101c661118d565b6103727f000000000000000000000000a4eb9c64ec359d093eac7b65f51ef933d6e5f7cd81565b6040516001600160a01b03909116815260200161020c565b6101c66111a1565b6102026103a0366004611f32565b6001600160a01b031660009081526005602052604090205490565b6000546001600160a01b0316610372565b6101c66113bd565b61020260025481565b6103727f00000000000000000000000021ffe03caa6355cf1ca47b898921d2f70e85e42381565b6101c6610412366004611e49565b61145d565b6101c6610425366004611e30565b6117d9565b60035461026f90610100900460ff1681565b6101c661044a366004611f32565b61181c565b6103727f000000000000000000000000a4eb9c64ec359d093eac7b65f51ef933d6e5f7cd81565b61047e6118a9565b60035460ff166104e55760405162461bcd60e51b815260206004820152602760248201527f537461626c7a5374616b696e673a20436f6e7472616374206e6f7420696e69746044820152661a585b1a5e995960ca1b60648201526084015b60405180910390fd5b6003805461ff0019166101001790556040517f8d8235615e2606a7fbb90e968cf1f1d51deafcb5ec8e6c339883b812cf5e0c0c90600090a1565b610527611903565b3360008181526005602090815260408083208054825181850281018501909352808352869493849084015b828210156105c057838290600052602060002090600602016040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505081526020019060010190610552565b5050505090508051821080156105f457508082815181106105e3576105e3611f54565b602002602001015160400151600014155b6106405760405162461bcd60e51b815260206004820152601f60248201527f537461626c7a5374616b696e673a20496e76616c6964207374616b652049440060448201526064016104dc565b33600090815260056020526040812080548690811061066157610661611f54565b9060005260206000209060060201905080600401548160050154106106ee5760405162461bcd60e51b815260206004820152603460248201527f537461626c7a5374616b696e673a20596f75206861766520616c72656164792060448201527f636c61696d656420796f7572207265776172647300000000000000000000000060648201526084016104dc565b60006106fd826000015461081c565b905060008183600101546107119190611f80565b4210610732578260050154836004015461072b9190611f98565b905061077a565b60008360010154426107449190611f98565b90506000838286600401546107599190611faf565b6107639190611fce565b90508460050154816107759190611f98565b925050505b8083600501600082825461078e9190611f80565b909155506107ca9050335b6001600160a01b037f000000000000000000000000a4eb9c64ec359d093eac7b65f51ef933d6e5f7cd16908361195d565b604080513381526020810189905280820183905290517fdacbdde355ba930696a362ea6738feb9f8bd52dfb3d81947558fd3217e23e3259181900360600190a150505050505061081960018055565b50565b600081600381111561087b5760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20496e76616c6964206c6f636b20706572696044820152611bd960f21b60648201526084016104dc565b8261088b5762278d0091506108bb565b826001141561089f576276a70091506108bb565b82600214156108b35762ed4e0091506108bb565b6301e1338091505b50919050565b60008160038111156109205760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20496e76616c6964206c6f636b20706572696044820152611bd960f21b60648201526084016104dc565b61092a8484611a0b565b949350505050565b60008160038111156109915760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20496e76616c6964206c6f636b20706572696044820152611bd960f21b60648201526084016104dc565b826109be577f000000000000000000000000000000000000000000000000000000000000005091506108bb565b82600114156109ef577f000000000000000000000000000000000000000000000000000000000000007891506108bb565b8260021415610a20577f00000000000000000000000000000000000000000000000000000000000000c891506108bb565b507f000000000000000000000000000000000000000000000000000000000000016d92915050565b610a50611903565b3360008181526005602090815260408083208054825181850281018501909352808352879493849084015b82821015610ae957838290600052602060002090600602016040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505081526020019060010190610a7b565b505050509050805182108015610b1d5750808281518110610b0c57610b0c611f54565b602002602001015160400151600014155b610b695760405162461bcd60e51b815260206004820152601f60248201527f537461626c7a5374616b696e673a20496e76616c6964207374616b652049440060448201526064016104dc565b336000908152600560205260408120805487908110610b8a57610b8a611f54565b906000526020600020906006020190506000610ba9826000015461081c565b9050808260010154610bbb9190611f80565b421015610c305760405162461bcd60e51b815260206004820152603b60248201527f537461626c7a5374616b696e673a20596f752063616e6e6f7420756e7374616b60448201527f65206265666f726520746865206c6f636b20757020706572696f64000000000060648201526084016104dc565b60008611610ca65760405162461bcd60e51b815260206004820152602e60248201527f537461626c7a5374616b696e673a20596f752063616e6e6f742077697468647260448201527f6177207a65726f20746f6b656e7300000000000000000000000000000000000060648201526084016104dc565b8160020154826003015410610d235760405162461bcd60e51b815260206004820152602c60248201527f537461626c7a5374616b696e673a20416c72656164792077697468647261776e60448201527f2066756c6c20616d6f756e74000000000000000000000000000000000000000060648201526084016104dc565b81600301548260020154610d379190611f98565b861115610dac5760405162461bcd60e51b815260206004820152602960248201527f537461626c7a5374616b696e673a20496e73756666696369656e74207374616b60448201527f652062616c616e6365000000000000000000000000000000000000000000000060648201526084016104dc565b85826003016000828254610dc09190611f80565b9091555050600482015460058301541015610e4257600082600501548360040154610deb9190611f98565b600484015460058501559050610e0033610799565b60408051338152602081018a905280820183905290517fdacbdde355ba930696a362ea6738feb9f8bd52dfb3d81947558fd3217e23e3259181900360600190a1505b610e4c3387611a5e565b610e807f000000000000000000000000a4eb9c64ec359d093eac7b65f51ef933d6e5f7cd6001600160a01b0316338861195d565b604080513381526020810189905280820188905290517ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360600190a15050505050610ece60018055565b5050565b60606000610ef5856001600160a01b031660009081526005602052604090205490565b905082841115610f785760405162461bcd60e51b815260206004820152604260248201527f537461626c7a5374616b696e673a20537461727420696e646578206d7573742060448201527f6265206c657373207468616e206f7220657175616c20746f20656e6420696e646064820152610caf60f31b608482015260a4016104dc565b808410610fd25760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20496e76616c696420737461727420696e646044820152610caf60f31b60648201526084016104dc565b8083106110215760405162461bcd60e51b815260206004820181905260248201527f537461626c7a5374616b696e673a20496e76616c696420656e6420696e64657860448201526064016104dc565b61102b8484611f98565b611036906001611f80565b67ffffffffffffffff81111561104e5761104e611ff0565b6040519080825280602002602001820160405280156110b857816020015b6110a56040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b81526020019060019003908161106c5790505b5091506000845b848111611183576001600160a01b03871660009081526005602052604090208054829081106110f0576110f0611f54565b90600052602060002090600602016040518060c0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505084838151811061115757611157611f54565b6020026020010181905250818061116d90612006565b925050808061117b90612006565b9150506110bf565b5050509392505050565b6111956118a9565b61119f6000611afe565b565b6111a96118a9565b60035460ff16156112225760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20416c726561647920696e697469616c697a60448201527f656400000000000000000000000000000000000000000000000000000000000060648201526084016104dc565b6003805460ff191660011790557f000000000000000000000000000000000000000000108b2a2c280290940000006002556040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b037f000000000000000000000000a4eb9c64ec359d093eac7b65f51ef933d6e5f7cd16906370a082319060240160206040518083038186803b1580156112ce57600080fd5b505afa1580156112e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113069190612021565b90507f000000000000000000000000000000000000000000108b2a2c2802909400000081101561139157611391333061135f847f000000000000000000000000000000000000000000108b2a2c28029094000000611f98565b6001600160a01b037f000000000000000000000000a4eb9c64ec359d093eac7b65f51ef933d6e5f7cd16929190611b66565b6040517f5daa87a0e9463431830481fd4b6e3403442dfb9a12b9c07597e9f61d50b633c890600090a150565b6113c56118a9565b60035460ff166114275760405162461bcd60e51b815260206004820152602760248201527f537461626c7a5374616b696e673a20436f6e7472616374206e6f7420696e69746044820152661a585b1a5e995960ca1b60648201526084016104dc565b6003805461ff00191690556040517f1d2df1f82541c9ce547cfbcb99cb9ea10d959f53ca0c7b47e17640932dadc42090600090a1565b611465611903565b60035460ff166114c75760405162461bcd60e51b815260206004820152602760248201527f537461626c7a5374616b696e673a20436f6e7472616374206e6f7420696e69746044820152661a585b1a5e995960ca1b60648201526084016104dc565b8060038111156115245760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20496e76616c6964206c6f636b20706572696044820152611bd960f21b60648201526084016104dc565b600354610100900460ff166115a15760405162461bcd60e51b815260206004820152603560248201527f537461626c7a5374616b696e673a204465706f736974696e67206973206e6f7460448201527f20616c6c6f77656420617420746869732074696d65000000000000000000000060648201526084016104dc565b60045483101580156115b35750600083115b6116255760405162461bcd60e51b815260206004820152602260248201527f537461626c7a5374616b696e673a20416d6f756e74206973206e6f742076616c60448201527f696400000000000000000000000000000000000000000000000000000000000060648201526084016104dc565b60006116318484611a0b565b90506002548111156116ab5760405162461bcd60e51b815260206004820152603960248201527f537461626c7a5374616b696e673a20466f72656361737420726577617264732060448201527f6578636565647320617661696c61626c6520726577617264730000000000000060648201526084016104dc565b80600260008282546116bd9190611f98565b90915550503360008181526005602081815260408084208054825160c0810184528a8152428186019081529381018c815260608201888152608083018b815260a084018a815260018087018855968b5297909920925160068502909301928355945193820193909355915160028301559151600382015593516004850155905192909101919091559061177c907f000000000000000000000000a4eb9c64ec359d093eac7b65f51ef933d6e5f7cd6001600160a01b0316903088611b66565b6117863386611bbd565b60408051338152602081018390528082018790526060810186905290517f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e9181900360800190a1505050610ece60018055565b6117e16118a9565b60048190556040518181527fd939191be6b640bc40ef7c6a17554ac82dfea02602fcacfad13dcd71d0abe6d09060200160405180910390a150565b6118246118a9565b6001600160a01b0381166118a05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104dc565b61081981611afe565b6000546001600160a01b0316331461119f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104dc565b600260015414156119565760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104dc565b6002600155565b6040516001600160a01b038316602482015260448101829052611a069084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611c2b565b505050565b600080611a178361081c565b90506000611a2484610932565b9050611a366103e86301e13380611faf565b82611a418388611faf565b611a4b9190611faf565b611a559190611fce565b95945050505050565b6040517f79cc67900000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f00000000000000000000000021ffe03caa6355cf1ca47b898921d2f70e85e42316906379cc6790906044015b600060405180830381600087803b158015611ae257600080fd5b505af1158015611af6573d6000803e3d6000fd5b505050505050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052611bb79085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016119a2565b50505050565b6040517f40c10f190000000000000000000000000000000000000000000000000000000081526001600160a01b038381166004830152602482018390527f00000000000000000000000021ffe03caa6355cf1ca47b898921d2f70e85e42316906340c10f1990604401611ac8565b6000611c80826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d109092919063ffffffff16565b805190915015611a065780806020019051810190611c9e919061203a565b611a065760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016104dc565b606061092a848460008585600080866001600160a01b03168587604051611d379190612088565b60006040518083038185875af1925050503d8060008114611d74576040519150601f19603f3d011682016040523d82523d6000602084013e611d79565b606091505b5091509150611d8a87838387611d95565b979650505050505050565b60608315611e01578251611dfa576001600160a01b0385163b611dfa5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104dc565b508161092a565b61092a8383815115611e165781518083602001fd5b8060405162461bcd60e51b81526004016104dc91906120a4565b600060208284031215611e4257600080fd5b5035919050565b60008060408385031215611e5c57600080fd5b50508035926020909101359150565b80356001600160a01b0381168114611e8257600080fd5b919050565b600080600060608486031215611e9c57600080fd5b611ea584611e6b565b95602085013595506040909401359392505050565b602080825282518282018190526000919060409081850190868401855b82811015611f255781518051855286810151878601528581015186860152606080820151908601526080808201519086015260a0908101519085015260c09093019290850190600101611ed7565b5091979650505050505050565b600060208284031215611f4457600080fd5b611f4d82611e6b565b9392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611f9357611f93611f6a565b500190565b600082821015611faa57611faa611f6a565b500390565b6000816000190483118215151615611fc957611fc9611f6a565b500290565b600082611feb57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052604160045260246000fd5b600060001982141561201a5761201a611f6a565b5060010190565b60006020828403121561203357600080fd5b5051919050565b60006020828403121561204c57600080fd5b81518015158114611f4d57600080fd5b60005b8381101561207757818101518382015260200161205f565b83811115611bb75750506000910152565b6000825161209a81846020870161205c565b9190910192915050565b60208152600082518060208401526120c381604085016020870161205c565b601f01601f1916919091016040019291505056fea264697066735822122099f9cc96611ca05c573afcf45abc2f0b23fa23aadd85147a5d59c0635528ba3f64736f6c63430008090033

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

000000000000000000000000a4eb9c64ec359d093eac7b65f51ef933d6e5f7cd00000000000000000000000021ffe03caa6355cf1ca47b898921d2f70e85e423000000000000000000000000000000000000000000108b2a2c2802909400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000007800000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000016d

-----Decoded View---------------
Arg [0] : _stablz (address): 0xA4Eb9C64eC359D093eAc7B65F51Ef933D6e5F7cd
Arg [1] : _operatingSystem (address): 0x21FfE03cAA6355CF1ca47B898921d2f70e85e423
Arg [2] : _totalRewards (uint256): 20000000000000000000000000
Arg [3] : _minimumDeposit (uint256): 0
Arg [4] : _apr1Month (uint256): 80
Arg [5] : _apr3Month (uint256): 120
Arg [6] : _apr6Month (uint256): 200
Arg [7] : _apr12Month (uint256): 365

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000a4eb9c64ec359d093eac7b65f51ef933d6e5f7cd
Arg [1] : 00000000000000000000000021ffe03caa6355cf1ca47b898921d2f70e85e423
Arg [2] : 000000000000000000000000000000000000000000108b2a2c28029094000000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000078
Arg [6] : 00000000000000000000000000000000000000000000000000000000000000c8
Arg [7] : 000000000000000000000000000000000000000000000000000000000000016d


Deployed Bytecode Sourcemap

189:1752:10:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3894:142:11;;;:::i;:::-;;7378:912;;;;;;:::i;:::-;;:::i;760:31::-;;;;;;;;345:25:13;;;333:2;318:18;760:31:11;;;;;;;;10654:396;;;;;;:::i;:::-;;:::i;514:34::-;;;;;9745:206;;;;;;:::i;:::-;;:::i;586:23::-;;;;;;;;;;;;799:14:13;;792:22;774:41;;762:2;747:18;586:23:11;634:187:13;10096:389:11;;;;;;:::i;:::-;;:::i;797:32::-;;;;;5960:1242;;;;;;:::i;:::-;;:::i;723:31::-;;;;;653:26;;;;;;686:31;;;;;8517:736;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;1831:101:0:-;;;:::i;429:37:11:-;;;;;;;;-1:-1:-1;;;;;2602:55:13;;;2584:74;;2572:2;2557:18;429:37:11;2438:226:13;3404:450:11;;;:::i;9390:119::-;;;;;;:::i;:::-;-1:-1:-1;;;;;9477:18:11;9454:4;9477:18;;;:11;:18;;;;;:25;;9390:119;1201:85:0;1247:7;1273:6;-1:-1:-1;;;;;1273:6:0;1201:85;;4077:145:11;;;:::i;554:26::-;;;;;;241:40:10;;;;;4692:1073:11;;;;;;:::i;:::-;;:::i;4318:170::-;;;;;;:::i;:::-;;:::i;615:31::-;;;;;;;;;;;;2081:198:0;;;;;;:::i;:::-;;:::i;472:36:11:-;;;;;3894:142;1094:13:0;:11;:13::i;:::-;1697:11:11::1;::::0;::::1;;1689:63;;;::::0;-1:-1:-1;;;1689:63:11;;3317:2:13;1689:63:11::1;::::0;::::1;3299:21:13::0;3356:2;3336:18;;;3329:30;3395:34;3375:18;;;3368:62;-1:-1:-1;;;3446:18:13;;;3439:37;3493:19;;1689:63:11::1;;;;;;;;;3969:19:::2;:26:::0;;-1:-1:-1;;3969:26:11::2;;;::::0;;4010:19:::2;::::0;::::2;::::0;3969:26;;4010:19:::2;3894:142::o:0;7378:912::-;2261:21:1;:19;:21::i;:::-;719:10:9;1474:21:11::1;1498:18:::0;;;:11:::1;:18;::::0;;;;;;;1474:42;;;;;;::::1;::::0;;;;;;;;;;7468:8;;1474:21;;;:42;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;1545:6;:13;1534:8;:24;:56;;;;;1562:6;1569:8;1562:16;;;;;;;;:::i;:::-;;;;;;;:23;;;1589:1;1562:28;;1534:56;1526:100;;;::::0;-1:-1:-1;;;1526:100:11;;3914:2:13;1526:100:11::1;::::0;::::1;3896:21:13::0;3953:2;3933:18;;;3926:30;3992:33;3972:18;;;3965:61;4043:18;;1526:100:11::1;3712:355:13::0;1526:100:11::1;719:10:9::0;7488:19:11::2;7510:25:::0;;;:11:::2;:25;::::0;;;;:35;;7536:8;;7510:35;::::2;;;;;:::i;:::-;;;;;;;;;;;7488:57;;7586:5;:22;;;7563:5;:20;;;:45;7555:110;;;::::0;-1:-1:-1;;;7555:110:11;;4274:2:13;7555:110:11::2;::::0;::::2;4256:21:13::0;4313:2;4293:18;;;4286:30;4352:34;4332:18;;;4325:62;4423:22;4403:18;;;4396:50;4463:19;;7555:110:11::2;4072:416:13::0;7555:110:11::2;7675:11;7689:39;7705:5;:22;;;7689:15;:39::i;:::-;7675:53;;7738:12;7800:6;7783:5;:14;;;:23;;;;:::i;:::-;7764:15;:42;7760:356;;7857:5;:20;;;7832:5;:22;;;:45;;;;:::i;:::-;7822:55;;7760:356;;;7908:19;7948:5;:14;;;7930:15;:32;;;;:::i;:::-;7908:54;;7976:18;8039:6;8022:14;7997:5;:22;;;:39;;;;:::i;:::-;:48;;;;:::i;:::-;7976:69;;8085:5;:20;;;8069:13;:36;;;;:::i;:::-;8059:46;;7894:222;;7760:356;8149:7;8125:5;:20;;;:31;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;8166:55:11::2;::::0;-1:-1:-1;719:10:9;8199:12:11::2;-1:-1:-1::0;;;;;8173:11:11::2;8166:32;::::0;8213:7;8166:32:::2;:55::i;:::-;8236:47;::::0;;719:10:9;5599:74:13;;5704:2;5689:18;;5682:34;;;5732:18;;;5725:34;;;8236:47:11;;::::2;::::0;;;;5587:2:13;8236:47:11;;::::2;7478:812;;;1464:180:::1;2292:1:1;;2303:20:::0;1716:1;2809:22;;2629:209;2303:20;7378:912:11;:::o;10654:396::-;10763:9;10735:17;1277:1;1256:17;:22;;1248:69;;;;-1:-1:-1;;;1248:69:11;;5972:2:13;1248:69:11;;;5954:21:13;6011:2;5991:18;;;5984:30;6050:34;6030:18;;;6023:62;-1:-1:-1;;;6101:18:13;;;6094:32;6143:19;;1248:69:11;5770:398:13;1248:69:11;10788:22;10784:260:::1;;10833:7;10826:14;;10784:260;;;10861:17;10882:1;10861:22;10857:187;;;10906:7;10899:14;;10857:187;;;10934:17;10955:1;10934:22;10930:114;;;10979:8;10972:15;;10930:114;;;11025:8;11018:15;;10930:114;10654:396:::0;;;;:::o;9745:206::-;9870:11;9842:17;1277:1;1256:17;:22;;1248:69;;;;-1:-1:-1;;;1248:69:11;;5972:2:13;1248:69:11;;;5954:21:13;6011:2;5991:18;;;5984:30;6050:34;6030:18;;;6023:62;-1:-1:-1;;;6101:18:13;;;6094:32;6143:19;;1248:69:11;5770:398:13;1248:69:11;9900:44:::1;9917:7;9926:17;9900:16;:44::i;:::-;9893:51:::0;9745:206;-1:-1:-1;;;;9745:206:11:o;10096:389::-;10196:8;10168:17;1277:1;1256:17;:22;;1248:69;;;;-1:-1:-1;;;1248:69:11;;5972:2:13;1248:69:11;;;5954:21:13;6011:2;5991:18;;;5984:30;6050:34;6030:18;;;6023:62;-1:-1:-1;;;6101:18:13;;;6094:32;6143:19;;1248:69:11;5770:398:13;1248:69:11;10220:22;10216:263:::1;;10264:9;10258:15;;10216:263;;;10294:17;10315:1;10294:22;10290:189;;;10338:9;10332:15;;10290:189;;;10368:17;10389:1;10368:22;10364:115;;;10412:9;10406:15;;10364:115;;;-1:-1:-1::0;10458:10:11::1;::::0;10096:389;-1:-1:-1;;10096:389:11:o;5960:1242::-;2261:21:1;:19;:21::i;:::-;719:10:9;1474:21:11::1;1498:18:::0;;;:11:::1;:18;::::0;;;;;;;1474:42;;;;;;::::1;::::0;;;;;;;;;;6060:8;;1474:21;;;:42;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;1545:6;:13;1534:8;:24;:56;;;;;1562:6;1569:8;1562:16;;;;;;;;:::i;:::-;;;;;;;:23;;;1589:1;1562:28;;1534:56;1526:100;;;::::0;-1:-1:-1;;;1526:100:11;;3914:2:13;1526:100:11::1;::::0;::::1;3896:21:13::0;3953:2;3933:18;;;3926:30;3992:33;3972:18;;;3965:61;4043:18;;1526:100:11::1;3712:355:13::0;1526:100:11::1;719:10:9::0;6080:19:11::2;6102:25:::0;;;:11:::2;:25;::::0;;;;:35;;6128:8;;6102:35;::::2;;;;;:::i;:::-;;;;;;;;;;;6080:57;;6147:11;6161:39;6177:5;:22;;;6161:15;:39::i;:::-;6147:53;;6254:6;6237:5;:14;;;:23;;;;:::i;:::-;6218:15;:42;;6210:114;;;::::0;-1:-1:-1;;;6210:114:11;;6375:2:13;6210:114:11::2;::::0;::::2;6357:21:13::0;6414:2;6394:18;;;6387:30;6453:34;6433:18;;;6426:62;6524:29;6504:18;;;6497:57;6571:19;;6210:114:11::2;6173:423:13::0;6210:114:11::2;6352:1;6342:7;:11;6334:70;;;::::0;-1:-1:-1;;;6334:70:11;;6803:2:13;6334:70:11::2;::::0;::::2;6785:21:13::0;6842:2;6822:18;;;6815:30;6881:34;6861:18;;;6854:62;6952:16;6932:18;;;6925:44;6986:19;;6334:70:11::2;6601:410:13::0;6334:70:11::2;6446:5;:12;;;6422:5;:21;;;:36;6414:93;;;::::0;-1:-1:-1;;;6414:93:11;;7218:2:13;6414:93:11::2;::::0;::::2;7200:21:13::0;7257:2;7237:18;;;7230:30;7296:34;7276:18;;;7269:62;7367:14;7347:18;;;7340:42;7399:19;;6414:93:11::2;7016:408:13::0;6414:93:11::2;6551:5;:21;;;6536:5;:12;;;:36;;;;:::i;:::-;6525:7;:47;;6517:101;;;::::0;-1:-1:-1;;;6517:101:11;;7631:2:13;6517:101:11::2;::::0;::::2;7613:21:13::0;7670:2;7650:18;;;7643:30;7709:34;7689:18;;;7682:62;7780:11;7760:18;;;7753:39;7809:19;;6517:101:11::2;7429:405:13::0;6517:101:11::2;6654:7;6629:5;:21;;;:32;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;6699:22:11::2;::::0;::::2;::::0;6676:20:::2;::::0;::::2;::::0;:45:::2;6672:357;;;6737:21;6786:5;:20;;;6761:5;:22;;;:45;;;;:::i;:::-;6843:22;::::0;::::2;::::0;6820:20:::2;::::0;::::2;:45:::0;6737:69;-1:-1:-1;6879:64:11::2;719:10:9::0;6912:12:11::2;640:96:9::0;6879:64:11::2;6962:56;::::0;;719:10:9;5599:74:13;;5704:2;5689:18;;5682:34;;;5732:18;;;5725:34;;;6962:56:11;;::::2;::::0;;;;5587:2:13;6962:56:11;;::::2;6723:306;6672:357;7038:35;719:10:9::0;7065:7:11::2;7038:12;:35::i;:::-;7083:56;7090:12;-1:-1:-1::0;;;;;7083:33:11::2;719:10:9::0;7131:7:11;7083:33:::2;:56::i;:::-;7154:41;::::0;;719:10:9;5599:74:13;;5704:2;5689:18;;5682:34;;;5732:18;;;5725:34;;;7154:41:11;;::::2;::::0;;;;5587:2:13;7154:41:11;;::::2;6070:1132;;1464:180:::1;2292:1:1;;2303:20:::0;1716:1;2809:22;;2629:209;2303:20;5960:1242:11;;:::o;8517:736::-;8612:19;8643:20;8666:25;8685:5;-1:-1:-1;;;;;9477:18:11;9454:4;9477:18;;;:11;:18;;;;;:25;;9390:119;8666:25;8643:48;;8725:9;8710:11;:24;;8702:103;;;;-1:-1:-1;;;8702:103:11;;8041:2:13;8702:103:11;;;8023:21:13;8080:2;8060:18;;;8053:30;8119:34;8099:18;;;8092:62;8190:34;8170:18;;;8163:62;-1:-1:-1;;;8241:19:13;;;8234:33;8284:19;;8702:103:11;7839:470:13;8702:103:11;8837:15;8823:11;:29;8815:76;;;;-1:-1:-1;;;8815:76:11;;8516:2:13;8815:76:11;;;8498:21:13;8555:2;8535:18;;;8528:30;8594:34;8574:18;;;8567:62;-1:-1:-1;;;8645:18:13;;;8638:32;8687:19;;8815:76:11;8314:398:13;8815:76:11;8921:15;8909:9;:27;8901:72;;;;-1:-1:-1;;;8901:72:11;;8919:2:13;8901:72:11;;;:21:13;;;8938:18;;;8931:30;8997:34;8977:18;;;8970:62;9049:18;;8901:72:11;8717:356:13;8901:72:11;9003:23;9015:11;9003:9;:23;:::i;:::-;:27;;9029:1;9003:27;:::i;:::-;8991:40;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8991:40:11;;;;;;;;;;;;;;;;-1:-1:-1;8984:47:11;-1:-1:-1;9041:14:11;9085:11;9065:161;9109:9;9098:7;:20;9065:161;;-1:-1:-1;;;;;9163:18:11;;;;;;:11;:18;;;;;:27;;9182:7;;9163:27;;;;;;:::i;:::-;;;;;;;;;;;9145:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:4;9150:9;9145:15;;;;;;;;:::i;:::-;;;;;;:45;;;;9204:11;;;;;:::i;:::-;;;;9120:9;;;;;:::i;:::-;;;;9065:161;;;;9235:11;;8517:736;;;;;:::o;1831:101:0:-;1094:13;:11;:13::i;:::-;1895:30:::1;1922:1;1895:18;:30::i;:::-;1831:101::o:0;3404:450:11:-;1094:13:0;:11;:13::i;:::-;3464:11:11::1;::::0;::::1;;3463:12;3455:59;;;::::0;-1:-1:-1;;;3455:59:11;;9609:2:13;3455:59:11::1;::::0;::::1;9591:21:13::0;9648:2;9628:18;;;9621:30;9687:34;9667:18;;;9660:62;9758:4;9738:18;;;9731:32;9780:19;;3455:59:11::1;9407:398:13::0;3455:59:11::1;3524:11;:18:::0;;-1:-1:-1;;3524:18:11::1;3538:4;3524:18;::::0;;3569:12:::1;3552:14;:29:::0;3612:44:::1;::::0;;;;3650:4:::1;3612:44;::::0;::::1;2584:74:13::0;-1:-1:-1;;;;;;;3619:11:11::1;3612:29;::::0;::::1;::::0;2557:18:13;;3612:44:11::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3591:65;;3686:12;3670:13;:28;3666:154;;;3714:95;719:10:9::0;3773:4:11::1;3780:28;3795:13:::0;3780:12:::1;:28;:::i;:::-;-1:-1:-1::0;;;;;3721:11:11::1;3714:36;::::0;:95;;:36:::1;:95::i;:::-;3834:13;::::0;::::1;::::0;;;::::1;3445:409;3404:450::o:0;4077:145::-;1094:13:0;:11;:13::i;:::-;1697:11:11::1;::::0;::::1;;1689:63;;;::::0;-1:-1:-1;;;1689:63:11;;3317:2:13;1689:63:11::1;::::0;::::1;3299:21:13::0;3356:2;3336:18;;;3329:30;3395:34;3375:18;;;3368:62;-1:-1:-1;;;3446:18:13;;;3439:37;3493:19;;1689:63:11::1;3115:403:13::0;1689:63:11::1;4153:19:::2;:27:::0;;-1:-1:-1;;4153:27:11::2;::::0;;4195:20:::2;::::0;::::2;::::0;4175:5:::2;::::0;4195:20:::2;4077:145::o:0;4692:1073::-;2261:21:1;:19;:21::i;:::-;1697:11:11::1;::::0;::::1;;1689:63;;;::::0;-1:-1:-1;;;1689:63:11;;3317:2:13;1689:63:11::1;::::0;::::1;3299:21:13::0;3356:2;3336:18;;;3329:30;3395:34;3375:18;;;3368:62;-1:-1:-1;;;3446:18:13;;;3439:37;3493:19;;1689:63:11::1;3115:403:13::0;1689:63:11::1;4807:17:::2;1277:1;1256:17;:22;;1248:69;;;::::0;-1:-1:-1;;;1248:69:11;;5972:2:13;1248:69:11::2;::::0;::::2;5954:21:13::0;6011:2;5991:18;;;5984:30;6050:34;6030:18;;;6023:62;-1:-1:-1;;;6101:18:13;;;6094:32;6143:19;;1248:69:11::2;5770:398:13::0;1248:69:11::2;4844:19:::3;::::0;::::3;::::0;::::3;;;4836:85;;;::::0;-1:-1:-1;;;4836:85:11;;10201:2:13;4836:85:11::3;::::0;::::3;10183:21:13::0;10240:2;10220:18;;;10213:30;10279:34;10259:18;;;10252:62;10350:23;10330:18;;;10323:51;10391:19;;4836:85:11::3;9999:417:13::0;4836:85:11::3;4950:14;;4939:7;:25;;:40;;;;;4978:1;4968:7;:11;4939:40;4931:87;;;::::0;-1:-1:-1;;;4931:87:11;;10623:2:13;4931:87:11::3;::::0;::::3;10605:21:13::0;10662:2;10642:18;;;10635:30;10701:34;10681:18;;;10674:62;10772:4;10752:18;;;10745:32;10794:19;;4931:87:11::3;10421:398:13::0;4931:87:11::3;5028:20;5051:44;5068:7;5077:17;5051:16;:44::i;:::-;5028:67;;5132:14;;5113:15;:33;;5105:103;;;::::0;-1:-1:-1;;;5105:103:11;;11026:2:13;5105:103:11::3;::::0;::::3;11008:21:13::0;11065:2;11045:18;;;11038:30;11104:34;11084:18;;;11077:62;11175:27;11155:18;;;11148:55;11220:19;;5105:103:11::3;10824:421:13::0;5105:103:11::3;5236:15;5218:14;;:33;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;719:10:9;5261:12:11::3;5276:25:::0;;;:11:::3;:25;::::0;;;;;;;:32;;5362:183;;::::3;::::0;::::3;::::0;;;;;5420:15:::3;5362:183:::0;;::::3;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;5318:237:::3;::::0;;::::3;::::0;;;;;;;;;;;::::3;::::0;::::3;::::0;;::::3;::::0;;;;;;;::::3;::::0;;;;;;::::3;::::0;::::3;::::0;;;::::3;::::0;::::3;::::0;;;::::3;::::0;::::3;::::0;;;;;;::::3;::::0;;;;5276:32;5565:75:::3;::::0;5572:12:::3;-1:-1:-1::0;;;;;5565:37:11::3;::::0;5625:4:::3;5362:183:::0;5565:37:::3;:75::i;:::-;5650:35;719:10:9::0;5677:7:11::3;5650:12;:35::i;:::-;5700:58;::::0;;719:10:9;11481:74:13;;11586:2;11571:18;;11564:34;;;11614:18;;;11607:34;;;11672:2;11657:18;;11650:34;;;5700:58:11;;::::3;::::0;;;;11468:3:13;5700:58:11;;::::3;4826:939;;1762:1:::2;2303:20:1::0;1716:1;2809:22;;2629:209;4318:170:11;1094:13:0;:11;:13::i;:::-;4396:14:11::1;:32:::0;;;4443:38:::1;::::0;345:25:13;;;4443:38:11::1;::::0;333:2:13;318:18;4443:38:11::1;;;;;;;4318:170:::0;:::o;2081:198:0:-;1094:13;:11;:13::i;:::-;-1:-1:-1;;;;;2169:22:0;::::1;2161:73;;;::::0;-1:-1:-1;;;2161:73:0;;11897:2:13;2161:73:0::1;::::0;::::1;11879:21:13::0;11936:2;11916:18;;;11909:30;11975:34;11955:18;;;11948:62;12046:8;12026:18;;;12019:36;12072:19;;2161:73:0::1;11695:402:13::0;2161:73:0::1;2244:28;2263:8;2244:18;:28::i;1359:130::-:0;1247:7;1273:6;-1:-1:-1;;;;;1273:6:0;719:10:9;1422:23:0;1414:68;;;;-1:-1:-1;;;1414:68:0;;12304:2:13;1414:68:0;;;12286:21:13;;;12323:18;;;12316:30;12382:34;12362:18;;;12355:62;12434:18;;1414:68:0;12102:356:13;2336:287:1;1759:1;2468:7;;:19;;2460:63;;;;-1:-1:-1;;;2460:63:1;;12665:2:13;2460:63:1;;;12647:21:13;12704:2;12684:18;;;12677:30;12743:33;12723:18;;;12716:61;12794:18;;2460:63:1;12463:355:13;2460:63:1;1759:1;2598:7;:18;2336:287::o;763:205:7:-;902:58;;-1:-1:-1;;;;;13015:55:13;;902:58:7;;;12997:74:13;13087:18;;;13080:34;;;875:86:7;;895:5;;925:23;;12970:18:13;;902:58:7;;;;-1:-1:-1;;902:58:7;;;;;;;;;;;;;;;;;;;;;;;;;;;875:19;:86::i;:::-;763:205;;;:::o;1404:290:10:-;1500:11;1523;1537:34;1553:17;1537:15;:34::i;:::-;1523:48;;1581:8;1592:25;1599:17;1592:6;:25::i;:::-;1581:36;-1:-1:-1;1660:26:10;876:4:11;1660:8:10;:26;:::i;:::-;1650:6;1634:13;1644:3;1634:7;:13;:::i;:::-;:22;;;;:::i;:::-;:53;;;;:::i;:::-;1627:60;1404:290;-1:-1:-1;;;;;1404:290:10:o;1820:118::-;1899:32;;;;;-1:-1:-1;;;;;13015:55:13;;;1899:32:10;;;12997:74:13;13087:18;;;13080:34;;;1899:7:10;:16;;;;12970:18:13;;1899:32:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1820:118;;:::o;2433:187:0:-;2506:16;2525:6;;-1:-1:-1;;;;;2541:17:0;;;;;;;;;;2573:40;;2525:6;;;;;;;2573:40;;2506:16;2573:40;2496:124;2433:187;:::o;974:241:7:-;1139:68;;-1:-1:-1;;;;;13406:15:13;;;1139:68:7;;;13388:34:13;13458:15;;13438:18;;;13431:43;13490:18;;;13483:34;;;1112:96:7;;1132:5;;1162:27;;13300:18:13;;1139:68:7;13125:398:13;1112:96:7;974:241;;;;:::o;1700:114:10:-;1779:28;;;;;-1:-1:-1;;;;;13015:55:13;;;1779:28:10;;;12997:74:13;13087:18;;;13080:34;;;1779:7:10;:12;;;;12970:18:13;;1779:28:10;12823:297:13;3747:706:7;4166:23;4192:69;4220:4;4192:69;;;;;;;;;;;;;;;;;4200:5;-1:-1:-1;;;;;4192:27:7;;;:69;;;;;:::i;:::-;4275:17;;4166:95;;-1:-1:-1;4275:21:7;4271:176;;4370:10;4359:30;;;;;;;;;;;;:::i;:::-;4351:85;;;;-1:-1:-1;;;4351:85:7;;14012:2:13;4351:85:7;;;13994:21:13;14051:2;14031:18;;;14024:30;14090:34;14070:18;;;14063:62;14161:12;14141:18;;;14134:40;14191:19;;4351:85:7;13810:406:13;3873:223:8;4006:12;4037:52;4059:6;4067:4;4073:1;4076:12;4006;5241;5255:23;5282:6;-1:-1:-1;;;;;5282:11:8;5301:5;5308:4;5282:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5240:73;;;;5330:69;5357:6;5365:7;5374:10;5386:12;5330:26;:69::i;:::-;5323:76;4960:446;-1:-1:-1;;;;;;;4960:446:8:o;7466:628::-;7646:12;7674:7;7670:418;;;7701:17;;7697:286;;-1:-1:-1;;;;;1465:19:8;;;7908:60;;;;-1:-1:-1;;;7908:60:8;;15372:2:13;7908:60:8;;;15354:21:13;15411:2;15391:18;;;15384:30;15450:31;15430:18;;;15423:59;15499:18;;7908:60:8;15170:353:13;7908:60:8;-1:-1:-1;8003:10:8;7996:17;;7670:418;8044:33;8052:10;8064:12;8775:17;;:21;8771:379;;9003:10;8997:17;9059:15;9046:10;9042:2;9038:19;9031:44;8771:379;9126:12;9119:20;;-1:-1:-1;;;9119:20:8;;;;;;;;:::i;14:180:13:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:13;;14:180;-1:-1:-1;14:180:13:o;381:248::-;449:6;457;510:2;498:9;489:7;485:23;481:32;478:52;;;526:1;523;516:12;478:52;-1:-1:-1;;549:23:13;;;619:2;604:18;;;591:32;;-1:-1:-1;381:248:13:o;826:196::-;894:20;;-1:-1:-1;;;;;943:54:13;;933:65;;923:93;;1012:1;1009;1002:12;923:93;826:196;;;:::o;1027:322::-;1104:6;1112;1120;1173:2;1161:9;1152:7;1148:23;1144:32;1141:52;;;1189:1;1186;1179:12;1141:52;1212:29;1231:9;1212:29;:::i;:::-;1202:39;1288:2;1273:18;;1260:32;;-1:-1:-1;1339:2:13;1324:18;;;1311:32;;1027:322;-1:-1:-1;;;1027:322:13:o;1354:1079::-;1571:2;1623:21;;;1693:13;;1596:18;;;1715:22;;;1542:4;;1571:2;1756;;1774:18;;;;1815:15;;;1542:4;1858:549;1872:6;1869:1;1866:13;1858:549;;;1931:13;;1969:9;;1957:22;;2019:11;;;2013:18;1999:12;;;1992:40;2072:11;;;2066:18;2052:12;;;2045:40;2108:4;2152:11;;;2146:18;2132:12;;;2125:40;2188:4;2232:11;;;2226:18;2212:12;;;2205:40;2268:4;2312:11;;;2306:18;2292:12;;;2285:40;2354:4;2345:14;;;;2382:15;;;;1894:1;1887:9;1858:549;;;-1:-1:-1;2424:3:13;;1354:1079;-1:-1:-1;;;;;;;1354:1079:13:o;2669:186::-;2728:6;2781:2;2769:9;2760:7;2756:23;2752:32;2749:52;;;2797:1;2794;2787:12;2749:52;2820:29;2839:9;2820:29;:::i;:::-;2810:39;2669:186;-1:-1:-1;;;2669:186:13:o;3523:184::-;-1:-1:-1;;;3572:1:13;3565:88;3672:4;3669:1;3662:15;3696:4;3693:1;3686:15;4493:184;-1:-1:-1;;;4542:1:13;4535:88;4642:4;4639:1;4632:15;4666:4;4663:1;4656:15;4682:128;4722:3;4753:1;4749:6;4746:1;4743:13;4740:39;;;4759:18;;:::i;:::-;-1:-1:-1;4795:9:13;;4682:128::o;4815:125::-;4855:4;4883:1;4880;4877:8;4874:34;;;4888:18;;:::i;:::-;-1:-1:-1;4925:9:13;;4815:125::o;4945:168::-;4985:7;5051:1;5047;5043:6;5039:14;5036:1;5033:21;5028:1;5021:9;5014:17;5010:45;5007:71;;;5058:18;;:::i;:::-;-1:-1:-1;5098:9:13;;4945:168::o;5118:274::-;5158:1;5184;5174:189;;-1:-1:-1;;;5216:1:13;5209:88;5320:4;5317:1;5310:15;5348:4;5345:1;5338:15;5174:189;-1:-1:-1;5377:9:13;;5118:274::o;9078:184::-;-1:-1:-1;;;9127:1:13;9120:88;9227:4;9224:1;9217:15;9251:4;9248:1;9241:15;9267:135;9306:3;-1:-1:-1;;9327:17:13;;9324:43;;;9347:18;;:::i;:::-;-1:-1:-1;9394:1:13;9383:13;;9267:135::o;9810:184::-;9880:6;9933:2;9921:9;9912:7;9908:23;9904:32;9901:52;;;9949:1;9946;9939:12;9901:52;-1:-1:-1;9972:16:13;;9810:184;-1:-1:-1;9810:184:13:o;13528:277::-;13595:6;13648:2;13636:9;13627:7;13623:23;13619:32;13616:52;;;13664:1;13661;13654:12;13616:52;13696:9;13690:16;13749:5;13742:13;13735:21;13728:5;13725:32;13715:60;;13771:1;13768;13761:12;14628:258;14700:1;14710:113;14724:6;14721:1;14718:13;14710:113;;;14800:11;;;14794:18;14781:11;;;14774:39;14746:2;14739:10;14710:113;;;14841:6;14838:1;14835:13;14832:48;;;-1:-1:-1;;14876:1:13;14858:16;;14851:27;14628:258::o;14891:274::-;15020:3;15058:6;15052:13;15074:53;15120:6;15115:3;15108:4;15100:6;15096:17;15074:53;:::i;:::-;15143:16;;;;;14891:274;-1:-1:-1;;14891:274:13:o;15528:383::-;15677:2;15666:9;15659:21;15640:4;15709:6;15703:13;15752:6;15747:2;15736:9;15732:18;15725:34;15768:66;15827:6;15822:2;15811:9;15807:18;15802:2;15794:6;15790:15;15768:66;:::i;:::-;15895:2;15874:15;-1:-1:-1;;15870:29:13;15855:45;;;;15902:2;15851:54;;15528:383;-1:-1:-1;;15528:383:13:o

Swarm Source

ipfs://99f9cc96611ca05c573afcf45abc2f0b23fa23aadd85147a5d59c0635528ba3f

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.