ETH Price: $2,504.50 (-5.71%)

Token

Staked ROYA (sROYA)
 

Overview

Max Total Supply

579,410,416,681.006606423069495146 sROYA

Holders

135

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1,486,173,378.234431689256103767 sROYA

Value
$0.00
0x734E2432bf73fc573Bb93C19cc0f8584eebDdb0a
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
StakingPool

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
constantinople EvmVersion
File 1 of 12 : StakingPool.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;

import "openzeppelin-solidity/contracts/math/Math.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
import "openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol";

import "./AttoDecimal.sol";
import "./IStakingPoolMigrator.sol";
import "./TwoStageOwnable.sol";

contract StakingPool is ERC20, ReentrancyGuard, TwoStageOwnable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    using AttoDecimalLib for AttoDecimal;

    struct Strategy {
        uint256 endBlockNumber;
        uint256 perBlockReward;
        uint256 startBlockNumber;
    }

    struct Unstake {
        uint256 amount;
        uint256 applicableAt;
    }

    uint256 public constant MIN_STAKE_BALANCE = 10**18;
    bool public migratorInitialized;

    uint256 public claimingFeePercent;
    uint256 public lastUpdateBlockNumber;

    IStakingPoolMigrator public migrator;

    uint256 private _feePool;
    uint256 private _lockedRewards;
    uint256 private _totalStaked;
    uint256 private _totalUnstaked;
    uint256 private _unstakingTime;
    IERC20 private _stakingToken;

    AttoDecimal private _DEFAULT_PRICE;
    AttoDecimal private _price;
    Strategy private _currentStrategy;
    Strategy private _nextStrategy;

    mapping(address => Unstake) private _unstakes;

    function getBlockNumber() internal view virtual returns (uint256) {
        return block.number;
    }

    function getTimestamp() internal view virtual returns (uint256) {
        return block.timestamp;
    }

    function feePool() public view returns (uint256) {
        return _feePool;
    }

    function lockedRewards() public view returns (uint256) {
        return _lockedRewards;
    }

    function totalStaked() public view returns (uint256) {
        return _totalStaked;
    }

    function totalUnstaked() public view returns (uint256) {
        return _totalUnstaked;
    }

    function stakingToken() public view returns (IERC20) {
        return _stakingToken;
    }

    function unstakingTime() public view returns (uint256) {
        return _unstakingTime;
    }

    function currentStrategy() public view returns (Strategy memory) {
        return _currentStrategy;
    }

    function nextStrategy() public view returns (Strategy memory) {
        return _nextStrategy;
    }

    function getUnstake(address account) public view returns (Unstake memory result) {
        result = _unstakes[account];
    }

    function DEFAULT_PRICE()
        external
        view
        returns (
            uint256 mantissa,
            uint256 base,
            uint256 exponentiation
        )
    {
        return _DEFAULT_PRICE.toTuple();
    }

    function getCurrentStrategyUnlockedRewards() public view returns (uint256 unlocked) {
        unlocked = _getStrategyUnlockedRewards(_currentStrategy);
    }

    function getUnlockedRewards() public view returns (uint256 unlocked, bool currentStrategyEnded) {
        unlocked = _getStrategyUnlockedRewards(_currentStrategy);
        if (_currentStrategy.endBlockNumber != 0 && getBlockNumber() >= _currentStrategy.endBlockNumber) {
            currentStrategyEnded = true;
            unlocked = unlocked.add(_getStrategyUnlockedRewards(_nextStrategy));
        }
    }

    /// @notice Calculates price of synthetic token for current block
    function price()
        public
        view
        returns (
            uint256 mantissa,
            uint256 base,
            uint256 exponentiation
        )
    {
        (uint256 unlocked, ) = getUnlockedRewards();
        uint256 totalStaked_ = _totalStaked;
        uint256 totalSupply_ = totalSupply();
        if (migratorInitialized) {
            (uint256 stakingPoolV1Balance, uint256 burnedSyntheticAmount) = migrator.calculatePriceParams();
            totalStaked_ = totalStaked_.add(stakingPoolV1Balance);
            totalSupply_ = totalSupply_.sub(burnedSyntheticAmount);
        }
        AttoDecimal memory result;
        if (totalSupply_ == 0) result = _DEFAULT_PRICE;
        else result = AttoDecimalLib.div(totalStaked_.add(unlocked), totalSupply_);
        return (result.mantissa, AttoDecimalLib.BASE, AttoDecimalLib.EXPONENTIATION);
    }

    /// @notice Returns last updated price of synthetic token
    function priceStored()
        public
        view
        returns (
            uint256 mantissa,
            uint256 base,
            uint256 exponentiation
        )
    {
        return (_price.mantissa, AttoDecimalLib.BASE, AttoDecimalLib.EXPONENTIATION);
    }

    /// @notice Calculates expected result of swapping synthetic tokens for staking tokens
    /// @param account Account that wants to swap
    /// @param amount Minimum amount of staking tokens that should be received at swapping process
    /// @return unstakedAmount Amount of staking tokens that should be received at swapping process
    /// @return burnedAmount Amount of synthetic tokens that should be burned at swapping process
    function calculateUnstake(address account, uint256 amount)
        public
        view
        returns (uint256 unstakedAmount, uint256 burnedAmount)
    {
        (uint256 mantissa_, , ) = price();
        return _calculateUnstake(account, amount, AttoDecimal(mantissa_));
    }

    event Claimed(
        address indexed account,
        uint256 requestedAmount,
        uint256 claimedAmount,
        uint256 feeAmount,
        uint256 burnedAmount
    );

    event CurrentStrategyUpdated(uint256 perBlockReward, uint256 startBlockNumber, uint256 endBlockNumber);
    event FeeClaimed(address indexed receiver, uint256 amount);

    event Migrated(
        address indexed account,
        uint256 omTokenV1StakeAmount,
        uint256 stakingPoolV1Reward,
        uint256 stakingPoolV2Reward
    );

    event MigratorInitialized();
    event MigratorUpdated(address indexed migrator);
    event NextStrategyUpdated(uint256 perBlockReward, uint256 startBlockNumber, uint256 endBlockNumber);
    event UnstakingTimeUpdated(uint256 unstakingTime);
    event NextStrategyRemoved();
    event PoolIncreased(address indexed payer, uint256 amount);
    event PriceUpdated(uint256 mantissa, uint256 base, uint256 exponentiation);
    event RewardsUnlocked(uint256 amount);
    event Staked(address indexed account, address indexed payer, uint256 stakedAmount, uint256 mintedAmount);
    event Unstaked(address indexed account, uint256 requestedAmount, uint256 unstakedAmount, uint256 burnedAmount);
    event UnstakingCanceled(address indexed account, uint256 amount);
    event Withdrawed(address indexed account, uint256 amount);

    constructor(
        string memory syntheticTokenName,
        string memory syntheticTokenSymbol,
        IERC20 stakingToken_,
        address owner_,
        uint256 claimingFeePercent_,
        uint256 perBlockReward_,
        uint256 startBlockNumber_,
        uint256 duration_,
        uint256 unstakingTime_,
        uint256 defaultPriceMantissa
    ) public TwoStageOwnable(owner_) ERC20(syntheticTokenName, syntheticTokenSymbol) {
        _DEFAULT_PRICE = AttoDecimal(defaultPriceMantissa);
        _stakingToken = stakingToken_;
        _setClaimingFeePercent(claimingFeePercent_);
        _validateStrategyParameters(perBlockReward_, startBlockNumber_, duration_);
        _setUnstakingTime(unstakingTime_);
        _setCurrentStrategy(perBlockReward_, startBlockNumber_, startBlockNumber_.add(duration_));
        lastUpdateBlockNumber = getBlockNumber();
        _price = _DEFAULT_PRICE;
    }

    /// @notice Burns synthetic tokens. May be called only by migrator contract
    /// @param amount Synthetic tokens amount to be burned
    function burn(uint256 amount) external onlyMigrator returns (bool success) {
        _burn(msg.sender, amount);
        return true;
    }

    /// @notice Cancels unstaking by staking locked for withdrawals tokens
    /// @param amount Amount of locked for withdrawals tokens
    function cancelUnstaking(uint256 amount) external onlyPositiveAmount(amount) returns (bool success) {
        _update();
        address caller = msg.sender;
        Unstake storage unstake_ = _unstakes[caller];
        uint256 unstakingAmount = unstake_.amount;
        require(unstakingAmount >= amount, "Not enough unstaked balance");
        uint256 stakedAmount = _price.mul(balanceOf(caller)).floor();
        require(
            stakedAmount.add(amount) >= MIN_STAKE_BALANCE,
            "Resulting stake balance less than minimal stake balance"
        );
        uint256 synthAmount = AttoDecimalLib.div(amount, _price).floor();
        _mint(caller, synthAmount);
        _totalStaked = _totalStaked.add(amount);
        _totalUnstaked = _totalUnstaked.sub(amount);
        unstake_.amount = unstakingAmount.sub(amount);
        emit Staked(caller, address(0), amount, synthAmount);
        emit UnstakingCanceled(caller, amount);
        return true;
    }

    /// @notice Swaps synthetic tokens for staking tokens and immediately sends them to the caller but takes some fee
    /// @param amount Staking tokens amount to swap for. Fee will be taked from this amount
    /// @return claimedAmount Amount of staking tokens that was been sended to caller
    /// @return burnedAmount Amount of synthetic tokens that was burned while swapping
    function claim(uint256 amount)
        external
        onlyPositiveAmount(amount)
        returns (uint256 claimedAmount, uint256 burnedAmount)
    {
        _update();
        address caller = msg.sender;
        (claimedAmount, burnedAmount) = _calculateUnstake(caller, amount, _price);
        uint256 fee = claimedAmount.mul(claimingFeePercent).div(100);
        _burn(caller, burnedAmount);
        _totalStaked = _totalStaked.sub(claimedAmount);
        claimedAmount = claimedAmount.sub(fee);
        _feePool = _feePool.add(fee);
        emit Claimed(caller, amount, claimedAmount, fee, burnedAmount);
        _stakingToken.safeTransfer(caller, claimedAmount);
    }

    /// @notice Withdraws all staking tokens, that have been accumulated in imidiatly claiming process.
    ///     Allowed to be called only by the owner
    /// @return amount Amount of accumulated and withdrawed tokens
    function claimFees() external onlyOwner returns (uint256 amount) {
        require(_feePool > 0, "No fees");
        amount = _feePool;
        _feePool = 0;
        emit FeeClaimed(owner, amount);
        _stakingToken.safeTransfer(owner, amount);
    }

    /// @notice Creates new strategy. Allowed to be called only by the owner
    /// @param perBlockReward_ Reward that should be added to common staking tokens pool every block
    /// @param startBlockNumber_ Number of block from which strategy should starts
    /// @param duration_ Blocks count for which new strategy should be applied
    function createNewStrategy(
        uint256 perBlockReward_,
        uint256 startBlockNumber_,
        uint256 duration_
    ) public onlyOwner returns (bool success) {
        _update();
        _validateStrategyParameters(perBlockReward_, startBlockNumber_, duration_);
        uint256 endBlockNumber = startBlockNumber_.add(duration_);
        Strategy memory strategy =
            Strategy({
                perBlockReward: perBlockReward_,
                startBlockNumber: startBlockNumber_,
                endBlockNumber: endBlockNumber
            });
        if (_currentStrategy.startBlockNumber > getBlockNumber()) {
            delete _nextStrategy;
            emit NextStrategyRemoved();
            _currentStrategy = strategy;
            emit CurrentStrategyUpdated(perBlockReward_, startBlockNumber_, endBlockNumber);
        } else {
            emit NextStrategyUpdated(perBlockReward_, startBlockNumber_, endBlockNumber);
            _nextStrategy = strategy;
            if (_currentStrategy.endBlockNumber > startBlockNumber_) {
                _currentStrategy.endBlockNumber = startBlockNumber_;
                emit CurrentStrategyUpdated(
                    _currentStrategy.perBlockReward,
                    _currentStrategy.startBlockNumber,
                    startBlockNumber_
                );
            }
        }
        return true;
    }

    /// @notice Increases pool of rewards
    /// @param amount Amount of staking tokens (in wei) that should be added to rewards pool
    function increasePool(uint256 amount) external onlyPositiveAmount(amount) returns (bool success) {
        _update();
        address payer = msg.sender;
        _lockedRewards = _lockedRewards.add(amount);
        emit PoolIncreased(payer, amount);
        _stakingToken.safeTransferFrom(payer, address(this), amount);
        return true;
    }

    /// @notice Method may be called only by nominated migrator contract. Sets caller as a migrator
    function initializeMigrator() external returns (bool success) {
        _update();
        assertCallerIsMigrator();
        migratorInitialized = true;
        emit MigratorInitialized();
        return true;
    }

    /// @notice Mints requested amount of synthetic tokens to specific account.
    ///     This method can be called only by migrator
    /// @param account Address for which synthetic tokens should be minted
    /// @param amount Amount of synthetic tokens to be minted
    function mint(address account, uint256 amount) external onlyMigrator returns (bool success) {
        _mint(account, amount);
        return true;
    }

    /// @notice Nominates some contract to the migrator role. Method allowed to be called only by the owner
    /// @param migrator_ Address of migration contract to be nominated
    function setMigrator(IStakingPoolMigrator migrator_) external onlyOwner returns (bool success) {
        require(!migratorInitialized, "Migrator already initialized");
        migrator = migrator_;
        emit MigratorUpdated(address(migrator_));
        return true;
    }

    /// @notice Converts staking tokens to synthetic tokens
    /// @param amount Amount of staking tokens to be swapped
    /// @return mintedAmount Amount of synthetic tokens that was received at swapping process
    function stake(uint256 amount) external onlyPositiveAmount(amount) returns (uint256 mintedAmount) {
        address staker = msg.sender;
        return _stake(staker, staker, amount);
    }

    /// @notice Converts staking tokens to synthetic tokens and sends them to specific account
    /// @param account Receiver of synthetic tokens
    /// @param amount Amount of staking tokens to be swapped
    /// @return mintedAmount Amount of synthetic tokens that was received by specified account at swapping process
    function stakeForUser(address account, uint256 amount)
        external
        onlyPositiveAmount(amount)
        returns (uint256 mintedAmount)
    {
        return _stake(account, msg.sender, amount);
    }

    /// @notice Moves locked for rewards staking tokens to staking tokens pool.
    ///     Allowed to be called only by migrator contract
    /// @param amount Amount of staking tokens to be unlocked
    /// @dev Will cause price increasing from next block
    function unlockRewards(uint256 amount) external onlyMigrator returns (bool success) {
        _lockedRewards = _lockedRewards.sub(amount, "Reward pool is extinguished");
        _totalStaked = _totalStaked.add(amount);
        emit RewardsUnlocked(amount);
        return true;
    }

    /// @notice Swapes synthetic tokens for staking tokens and locks them for some period
    /// @param amount Minimum amount of staking tokens that should be locked after swapping process
    /// @return unstakedAmount Amount of staking tokens that was locked
    /// @return burnedAmount Amount of synthetic tokens that was burned
    function unstake(uint256 amount)
        external
        onlyPositiveAmount(amount)
        returns (uint256 unstakedAmount, uint256 burnedAmount)
    {
        _update();
        address caller = msg.sender;
        (unstakedAmount, burnedAmount) = _calculateUnstake(caller, amount, _price);
        _burn(caller, burnedAmount);
        _totalStaked = _totalStaked.sub(unstakedAmount);
        _totalUnstaked = _totalUnstaked.add(unstakedAmount);
        Unstake storage unstake_ = _unstakes[caller];
        unstake_.amount = unstake_.amount.add(unstakedAmount);
        unstake_.applicableAt = getTimestamp().add(_unstakingTime);
        emit Unstaked(caller, amount, unstakedAmount, burnedAmount);
    }

    /// @notice Swapes migrator's synthetic tokens for staking tokens and imidiatly sends them.
    ///     Allowed to be called only by migrator contract
    /// @param amount Amount of staking tokens that should be received from swapping process
    /// @return synthToBurn Amount of burned synthetic tokens
    function unstakeLocked(uint256 amount) external onlyMigrator returns (uint256 synthToBurn) {
        _update();
        synthToBurn = AttoDecimalLib.div(amount, _price).floor();
        _burn(address(migrator), synthToBurn);
        _totalStaked = _totalStaked.sub(amount, "Not enough staked amount");
        _stakingToken.safeTransfer(address(migrator), amount);
    }

    /// @notice Updates price of synthetic token
    /// @dev Automatically has been called on every contract action, that uses or can affect price
    function update() external returns (bool success) {
        _update();
        return true;
    }

    /// @notice Withdraws unstaked staking tokens
    function withdraw() external returns (bool success) {
        address caller = msg.sender;
        Unstake storage unstake_ = _unstakes[caller];
        uint256 amount = unstake_.amount;
        require(amount > 0, "Not unstaked");
        require(unstake_.applicableAt <= getTimestamp(), "Not released at");
        delete _unstakes[caller];
        _totalUnstaked = _totalUnstaked.sub(amount);
        emit Withdrawed(caller, amount);
        _stakingToken.safeTransfer(caller, amount);
        return true;
    }

    /// @notice Change unstaking time. Can be called only by the owner
    /// @param unstakingTime_ New unstaking process duration in seconds
    function setUnstakingTime(uint256 unstakingTime_) external onlyOwner returns (bool success) {
        _setUnstakingTime(unstakingTime_);
        return true;
    }

    function _getStrategyUnlockedRewards(Strategy memory strategy_) internal view returns (uint256 unlocked) {
        uint256 currentBlockNumber = getBlockNumber();
        if (currentBlockNumber < strategy_.startBlockNumber || currentBlockNumber == lastUpdateBlockNumber) {
            return unlocked;
        }
        uint256 lastRewardedBlockNumber = Math.max(lastUpdateBlockNumber, strategy_.startBlockNumber);
        uint256 lastRewardableBlockNumber = Math.min(currentBlockNumber, strategy_.endBlockNumber);
        if (lastRewardedBlockNumber < lastRewardableBlockNumber) {
            uint256 blocksDiff = lastRewardableBlockNumber.sub(lastRewardedBlockNumber);
            unlocked = unlocked.add(blocksDiff.mul(strategy_.perBlockReward));
        }
    }

    function _calculateUnstake(
        address account,
        uint256 amount,
        AttoDecimal memory price_
    ) internal view returns (uint256 unstakedAmount, uint256 burnedAmount) {
        unstakedAmount = amount;
        burnedAmount = AttoDecimalLib.div(amount, price_).ceil();
        uint256 balance = balanceOf(account);
        require(burnedAmount > 0, "Too small unstaking amount");
        require(balance >= burnedAmount, "Not enough synthetic tokens");
        uint256 remainingSyntheticBalance = balance.sub(burnedAmount);
        uint256 remainingStake = _price.mul(remainingSyntheticBalance).floor();
        if (remainingStake < 10**18) {
            burnedAmount = balance;
            unstakedAmount = unstakedAmount.add(remainingStake);
        }
    }

    function _unlockRewardsAndStake() internal {
        (uint256 unlocked, bool currentStrategyEnded) = getUnlockedRewards();
        if (currentStrategyEnded) {
            _currentStrategy = _nextStrategy;
            emit NextStrategyRemoved();
            if (_currentStrategy.endBlockNumber != 0) {
                emit CurrentStrategyUpdated(
                    _currentStrategy.perBlockReward,
                    _currentStrategy.startBlockNumber,
                    _currentStrategy.endBlockNumber
                );
            }
            delete _nextStrategy;
        }
        unlocked = Math.min(unlocked, _lockedRewards);
        if (unlocked > 0) {
            emit RewardsUnlocked(unlocked);
            _lockedRewards = _lockedRewards.sub(unlocked);
            _totalStaked = _totalStaked.add(unlocked);
        }
        lastUpdateBlockNumber = getBlockNumber();
    }

    function _update() internal {
        if (getBlockNumber() <= lastUpdateBlockNumber) return;
        if (migratorInitialized) migrator.update();
        _unlockRewardsAndStake();
        _updatePrice();
    }

    function _updatePrice() internal {
        uint256 totalStaked_ = _totalStaked;
        uint256 totalSupply_ = totalSupply();
        if (migratorInitialized) totalStaked_ = totalStaked_.add(migrator.stakingPoolV1Balance());
        if (totalSupply_ == 0) _price = _DEFAULT_PRICE;
        else _price = AttoDecimalLib.div(totalStaked_, totalSupply_);
        emit PriceUpdated(_price.mantissa, AttoDecimalLib.BASE, AttoDecimalLib.EXPONENTIATION);
    }

    function _validateStrategyParameters(
        uint256 perBlockReward,
        uint256 startBlockNumber,
        uint256 duration
    ) internal view {
        require(duration > 0, "Duration is zero");
        require(startBlockNumber >= getBlockNumber(), "Start block number less then current");
        require(perBlockReward <= 188 * 10**18, "Per block reward overflow");
    }

    function _setClaimingFeePercent(uint256 feePercent) internal {
        require(feePercent >= 0 && feePercent <= 100, "Percent fee should be in range [0; 100]");
        claimingFeePercent = feePercent;
    }

    function _setUnstakingTime(uint256 unstakingTime_) internal {
        _unstakingTime = unstakingTime_;
        emit UnstakingTimeUpdated(unstakingTime_);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal override {
        if (msg.sender == address(migrator)) return;
        _update();
        string memory errorText = "Minimal stake balance should be more or equal to 1 token";
        if (from != address(0)) {
            uint256 fromNewBalance = _price.mul(balanceOf(from).sub(amount)).floor();
            require(fromNewBalance >= MIN_STAKE_BALANCE || fromNewBalance == 0, errorText);
        }
        if (to != address(0)) {
            require(_price.mul(balanceOf(to).add(amount)).floor() >= MIN_STAKE_BALANCE, errorText);
        }
    }

    function _setCurrentStrategy(
        uint256 perBlockReward_,
        uint256 startBlockNumber_,
        uint256 endBlockNumber_
    ) private {
        _currentStrategy = Strategy({
            perBlockReward: perBlockReward_,
            startBlockNumber: startBlockNumber_,
            endBlockNumber: endBlockNumber_
        });
        emit CurrentStrategyUpdated(perBlockReward_, startBlockNumber_, endBlockNumber_);
    }

    function _stake(
        address staker,
        address payer,
        uint256 amount
    ) private returns (uint256 mintedAmount) {
        _update();
        mintedAmount = AttoDecimalLib.div(amount, _price).floor();
        require(mintedAmount > 0, "Too small staking amount");
        _mint(staker, mintedAmount);
        _totalStaked = _totalStaked.add(amount);
        emit Staked(staker, payer, amount, mintedAmount);
        _stakingToken.safeTransferFrom(payer, address(this), amount);
    }

    function assertCallerIsMigrator() internal view {
        require(msg.sender == address(migrator), "Allowed only by migrator");
    }

    modifier onlyMigrator() {
        assertCallerIsMigrator();
        require(migratorInitialized, "Migrator not initialized");
        _;
    }

    modifier onlyPositiveAmount(uint256 amount) {
        require(amount > 0, "Amount is not positive");
        _;
    }
}

File 2 of 12 : AttoDecimal.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

import "openzeppelin-solidity/contracts/math/SafeMath.sol";

struct AttoDecimal {
    uint256 mantissa;
}

library AttoDecimalLib {
    using SafeMath for uint256;

    uint256 internal constant BASE = 10;
    uint256 internal constant EXPONENTIATION = 18;
    uint256 internal constant ONE_MANTISSA = BASE**EXPONENTIATION;
    uint256 internal constant SQUARED_ONE_MANTISSA = ONE_MANTISSA * ONE_MANTISSA;

    function convert(uint256 integer) internal pure returns (AttoDecimal memory) {
        return AttoDecimal({mantissa: integer.mul(ONE_MANTISSA)});
    }

    function add(AttoDecimal memory a, AttoDecimal memory b) internal pure returns (AttoDecimal memory) {
        return AttoDecimal({mantissa: a.mantissa.add(b.mantissa)});
    }

    function sub(AttoDecimal memory a, uint256 b) internal pure returns (AttoDecimal memory) {
        return AttoDecimal({mantissa: a.mantissa.sub(b.mul(ONE_MANTISSA))});
    }

    function sub(AttoDecimal memory a, AttoDecimal memory b) internal pure returns (AttoDecimal memory) {
        return AttoDecimal({mantissa: a.mantissa.sub(b.mantissa)});
    }

    function mul(AttoDecimal memory a, uint256 b) internal pure returns (AttoDecimal memory) {
        return AttoDecimal({mantissa: a.mantissa.mul(b)});
    }

    function div(uint256 a, uint256 b) internal pure returns (AttoDecimal memory) {
        return AttoDecimal({mantissa: a.mul(ONE_MANTISSA).div(b)});
    }

    function div(uint256 a, AttoDecimal memory b) internal pure returns (AttoDecimal memory) {
        return AttoDecimal({mantissa: a.mul(SQUARED_ONE_MANTISSA).div(b.mantissa)});
    }

    function div(AttoDecimal memory a, AttoDecimal memory b) internal pure returns (AttoDecimal memory) {
        return AttoDecimal({mantissa: a.mantissa.mul(ONE_MANTISSA).div(b.mantissa)});
    }

    function ceil(AttoDecimal memory a) internal pure returns (uint256) {
        return a.mantissa.div(ONE_MANTISSA).add(a.mantissa % ONE_MANTISSA > 0 ? 1 : 0);
    }

    function floor(AttoDecimal memory a) internal pure returns (uint256) {
        return a.mantissa.div(ONE_MANTISSA);
    }

    function lte(AttoDecimal memory a, AttoDecimal memory b) internal pure returns (bool) {
        return a.mantissa <= b.mantissa;
    }

    function toTuple(AttoDecimal memory a)
        internal
        pure
        returns (
            uint256 mantissa,
            uint256 base,
            uint256 exponentiation
        )
    {
        return (a.mantissa, BASE, EXPONENTIATION);
    }
}

File 3 of 12 : IStakingPoolMigrator.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

interface IStakingPoolMigrator {
    function stakingPoolV1Balance() external view returns (uint256);

    function calculatePriceParams()
        external
        view
        returns (uint256 stakingPoolV1Balance_, uint256 burnedSyntheticAmount);

    function update() external returns (bool success);
}

File 4 of 12 : TwoStageOwnable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;

abstract contract TwoStageOwnable {
    address public nominatedOwner;
    address public owner;

    event OwnerChanged(address indexed newOwner);
    event OwnerNominated(address indexed nominatedOwner);

    constructor(address owner_) internal {
        require(owner_ != address(0), "Owner cannot be zero address");
        _setOwner(owner_);
    }

    function acceptOwnership() external returns (bool success) {
        require(msg.sender == nominatedOwner, "Not nominated to ownership");
        _setOwner(nominatedOwner);
        nominatedOwner = address(0);
        return true;
    }

    function nominateNewOwner(address owner_) external onlyOwner returns (bool success) {
        _nominateNewOwner(owner_);
        return true;
    }

    modifier onlyOwner {
        require(msg.sender == owner, "Ownable: caller is not the owner");
        _;
    }

    function _nominateNewOwner(address owner_) internal {
        nominatedOwner = owner_;
        emit OwnerNominated(owner_);
    }

    function _setOwner(address newOwner) internal {
        owner = newOwner;
        emit OwnerChanged(newOwner);
    }
}

File 5 of 12 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 6 of 12 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

File 7 of 12 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

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

        return c;
    }

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

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

File 8 of 12 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "../../GSN/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of 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 {
    using SafeMath for uint256;
    using Address for address;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view 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 {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

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

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

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, 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
     *
     * - `to` 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 = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(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);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

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

File 9 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

File 10 of 12 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

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

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

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

File 11 of 12 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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].
 */
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 () internal {
        _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 make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "evmVersion": "constantinople",
  "libraries": {
    "": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"syntheticTokenName","type":"string"},{"internalType":"string","name":"syntheticTokenSymbol","type":"string"},{"internalType":"contract IERC20","name":"stakingToken_","type":"address"},{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"claimingFeePercent_","type":"uint256"},{"internalType":"uint256","name":"perBlockReward_","type":"uint256"},{"internalType":"uint256","name":"startBlockNumber_","type":"uint256"},{"internalType":"uint256","name":"duration_","type":"uint256"},{"internalType":"uint256","name":"unstakingTime_","type":"uint256"},{"internalType":"uint256","name":"defaultPriceMantissa","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"requestedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"claimedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"burnedAmount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"perBlockReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startBlockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endBlockNumber","type":"uint256"}],"name":"CurrentStrategyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeeClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"omTokenV1StakeAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakingPoolV1Reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakingPoolV2Reward","type":"uint256"}],"name":"Migrated","type":"event"},{"anonymous":false,"inputs":[],"name":"MigratorInitialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"migrator","type":"address"}],"name":"MigratorUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"NextStrategyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"perBlockReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startBlockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endBlockNumber","type":"uint256"}],"name":"NextStrategyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"nominatedOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PoolIncreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"mantissa","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"base","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"exponentiation","type":"uint256"}],"name":"PriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardsUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"payer","type":"address"},{"indexed":false,"internalType":"uint256","name":"stakedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintedAmount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"requestedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unstakedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"burnedAmount","type":"uint256"}],"name":"Unstaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnstakingCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"unstakingTime","type":"uint256"}],"name":"UnstakingTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawed","type":"event"},{"inputs":[],"name":"DEFAULT_PRICE","outputs":[{"internalType":"uint256","name":"mantissa","type":"uint256"},{"internalType":"uint256","name":"base","type":"uint256"},{"internalType":"uint256","name":"exponentiation","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_STAKE_BALANCE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateUnstake","outputs":[{"internalType":"uint256","name":"unstakedAmount","type":"uint256"},{"internalType":"uint256","name":"burnedAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"cancelUnstaking","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claim","outputs":[{"internalType":"uint256","name":"claimedAmount","type":"uint256"},{"internalType":"uint256","name":"burnedAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimFees","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimingFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"perBlockReward_","type":"uint256"},{"internalType":"uint256","name":"startBlockNumber_","type":"uint256"},{"internalType":"uint256","name":"duration_","type":"uint256"}],"name":"createNewStrategy","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentStrategy","outputs":[{"components":[{"internalType":"uint256","name":"endBlockNumber","type":"uint256"},{"internalType":"uint256","name":"perBlockReward","type":"uint256"},{"internalType":"uint256","name":"startBlockNumber","type":"uint256"}],"internalType":"struct StakingPool.Strategy","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feePool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentStrategyUnlockedRewards","outputs":[{"internalType":"uint256","name":"unlocked","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUnlockedRewards","outputs":[{"internalType":"uint256","name":"unlocked","type":"uint256"},{"internalType":"bool","name":"currentStrategyEnded","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getUnstake","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"applicableAt","type":"uint256"}],"internalType":"struct StakingPool.Unstake","name":"result","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"increasePool","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initializeMigrator","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastUpdateBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrator","outputs":[{"internalType":"contract IStakingPoolMigrator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migratorInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextStrategy","outputs":[{"components":[{"internalType":"uint256","name":"endBlockNumber","type":"uint256"},{"internalType":"uint256","name":"perBlockReward","type":"uint256"},{"internalType":"uint256","name":"startBlockNumber","type":"uint256"}],"internalType":"struct StakingPool.Strategy","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"nominateNewOwner","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"mantissa","type":"uint256"},{"internalType":"uint256","name":"base","type":"uint256"},{"internalType":"uint256","name":"exponentiation","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceStored","outputs":[{"internalType":"uint256","name":"mantissa","type":"uint256"},{"internalType":"uint256","name":"base","type":"uint256"},{"internalType":"uint256","name":"exponentiation","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IStakingPoolMigrator","name":"migrator_","type":"address"}],"name":"setMigrator","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"unstakingTime_","type":"uint256"}],"name":"setUnstakingTime","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[{"internalType":"uint256","name":"mintedAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeForUser","outputs":[{"internalType":"uint256","name":"mintedAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUnstaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unlockRewards","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstake","outputs":[{"internalType":"uint256","name":"unstakedAmount","type":"uint256"},{"internalType":"uint256","name":"burnedAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unstakeLocked","outputs":[{"internalType":"uint256","name":"synthToBurn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"update","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620064553803806200645583398181016040528101906200003791906200064d565b868a8a81600390805190602001906200005292919062000506565b5080600490805190602001906200006b92919062000506565b506012600560006101000a81548160ff021916908360ff16021790555050506001600681905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000105576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000fc9062000a02565b60405180910390fd5b62000116816200020e60201b60201c565b5060405180602001604052808281525060126000820151816000015590505087601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000187866200029560201b60201c565b6200019a858585620002f460201b60201c565b620001ab82620003e360201b60201c565b620001d78585620001cb86886200042660201b620029d61790919060201c565b6200047e60201b60201c565b620001e7620004fe60201b60201c565b600a8190555060126013600082015481600001559050505050505050505050505062000bc0565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3660405160405180910390a250565b60008110158015620002a8575060648111155b620002ea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002e190620009be565b60405180910390fd5b8060098190555050565b600081116200033a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000331906200097a565b60405180910390fd5b6200034a620004fe60201b60201c565b8210156200038f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200038690620009e0565b60405180910390fd5b680a31062beeed700000831115620003de576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003d59062000958565b60405180910390fd5b505050565b806010819055507f7f7d5eb76787d9279c88eb7f18c26b33761ae038bbd802551a7c6aa2f9f8dd12816040516200041b919062000a24565b60405180910390a150565b60008082840190508381101562000474576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200046b906200099c565b60405180910390fd5b8091505092915050565b60405180606001604052808281526020018481526020018381525060146000820151816000015560208201518160010155604082015181600201559050507f2fa40e2e6101b8bae833c4716c3c36b1e15938b1aaa699ec9896bb2d836c9492838383604051620004f19392919062000a41565b60405180910390a1505050565b600043905090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200054957805160ff19168380011785556200057a565b828001600101855582156200057a579182015b82811115620005795782518255916020019190600101906200055c565b5b5090506200058991906200058d565b5090565b5b80821115620005a85760008160009055506001016200058e565b5090565b600081519050620005bd8162000b72565b92915050565b600081519050620005d48162000b8c565b92915050565b600082601f830112620005ec57600080fd5b815162000603620005fd8262000aac565b62000a7e565b915080825260208301602083018583830111156200062057600080fd5b6200062d83828462000b3c565b50505092915050565b600081519050620006478162000ba6565b92915050565b6000806000806000806000806000806101408b8d0312156200066e57600080fd5b60008b015167ffffffffffffffff8111156200068957600080fd5b620006978d828e01620005da565b9a505060208b015167ffffffffffffffff811115620006b557600080fd5b620006c38d828e01620005da565b9950506040620006d68d828e01620005c3565b9850506060620006e98d828e01620005ac565b9750506080620006fc8d828e0162000636565b96505060a06200070f8d828e0162000636565b95505060c0620007228d828e0162000636565b94505060e0620007358d828e0162000636565b935050610100620007498d828e0162000636565b9250506101206200075d8d828e0162000636565b9150509295989b9194979a5092959850565b60006200077e60198362000ad9565b91507f50657220626c6f636b20726577617264206f766572666c6f77000000000000006000830152602082019050919050565b6000620007c060108362000ad9565b91507f4475726174696f6e206973207a65726f000000000000000000000000000000006000830152602082019050919050565b600062000802601b8362000ad9565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b60006200084460278362000ad9565b91507f50657263656e74206665652073686f756c6420626520696e2072616e6765205b60008301527f303b203130305d000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000620008ac60248362000ad9565b91507f537461727420626c6f636b206e756d626572206c657373207468656e2063757260008301527f72656e74000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600062000914601c8362000ad9565b91507f4f776e65722063616e6e6f74206265207a65726f2061646472657373000000006000830152602082019050919050565b620009528162000b32565b82525050565b6000602082019050818103600083015262000973816200076f565b9050919050565b600060208201905081810360008301526200099581620007b1565b9050919050565b60006020820190508181036000830152620009b781620007f3565b9050919050565b60006020820190508181036000830152620009d98162000835565b9050919050565b60006020820190508181036000830152620009fb816200089d565b9050919050565b6000602082019050818103600083015262000a1d8162000905565b9050919050565b600060208201905062000a3b600083018462000947565b92915050565b600060608201905062000a58600083018662000947565b62000a67602083018562000947565b62000a76604083018462000947565b949350505050565b6000604051905081810181811067ffffffffffffffff8211171562000aa257600080fd5b8060405250919050565b600067ffffffffffffffff82111562000ac457600080fd5b601f19601f8301169050602081019050919050565b600082825260208201905092915050565b600062000af78262000b12565b9050919050565b600062000b0b8262000aea565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000b5c57808201518184015260208101905062000b3f565b8381111562000b6c576000848401525b50505050565b62000b7d8162000aea565b811462000b8957600080fd5b50565b62000b978162000afe565b811462000ba357600080fd5b50565b62000bb18162000b32565b811462000bbd57600080fd5b50565b6158858062000bd06000396000f3fe608060405234801561001057600080fd5b506004361061030c5760003560e01c806379ba50971161019d578063a7793ee9116100e9578063d294f093116100a2578063e175ae131161007c578063e175ae1314610a47578063e2fd6ff914610a65578063e928ce7214610a83578063fd79c6a214610aa15761030c565b8063d294f093146109c9578063d708120e146109e7578063dd62ed3e14610a175761030c565b8063a7793ee914610903578063a9059cbb14610921578063ae2e933b14610951578063af1c7f201461096f578063b35b91e31461098d578063b4c6e416146109ab5761030c565b8063947ae12a11610156578063a2e6204511610130578063a2e6204514610855578063a40d612314610873578063a457c2d7146108a3578063a694fc3a146108d35761030c565b8063947ae12a146107e757806395d89b4114610817578063a035b1fe146108355761030c565b806379ba50971461070f5780637cd07e471461072d5780637ee3beb91461074b578063817b1cd21461077b578063833e8bb6146107995780638da5cb5b146107c95761030c565b806332a6bf431161025c57806342966c681161021557806353a47bb7116101ef57806353a47bb7146106855780636a1ceb2d146106a357806370a08231146106c157806372f702f3146106f15761030c565b806342966c681461060657806346267a93146106365780635235934d146106675761030c565b806332a6bf4314610519578063379607f514610539578063395093511461056a578063396f55d01461059a5780633ccfd60b146105b857806340c10f19146105d65761030c565b806318160ddd116102c957806323b872dd116102a357806323b872dd1461046a57806323cf31181461049a5780632e17de78146104ca578063313ce567146104fb5761030c565b806318160ddd146103fc5780631b6c743b1461041a5780632059ba6f1461043a5761030c565b806301a563831461031157806306fdde031461032f578063095ea7b31461034d5780630be4bc0d1461037d5780630f2e9bee1461039c5780631627540c146103cc575b600080fd5b610319610ad1565b60405161032691906154fd565b60405180910390f35b610337610ad7565b6040516103449190615145565b60405180910390f35b6103676004803603810190610362919061459d565b610b79565b60405161037491906150f4565b60405180910390f35b610385610b97565b604051610393929190615518565b60405180910390f35b6103b660048036038101906103b1919061462b565b610c46565b6040516103c391906154fd565b60405180910390f35b6103e660048036038101906103e191906144e9565b610dc3565b6040516103f391906150f4565b60405180910390f35b610404610e67565b60405161041191906154fd565b60405180910390f35b610422610e71565b6040516104319392919061556a565b60405180910390f35b610454600480360381019061044f919061462b565b610ea0565b60405161046191906150f4565b60405180910390f35b610484600480360381019061047f919061454e565b610f44565b60405161049191906150f4565b60405180910390f35b6104b460048036038101906104af9190614602565b61101d565b6040516104c191906150f4565b60405180910390f35b6104e460048036038101906104df919061462b565b61118c565b6040516104f2929190615541565b60405180910390f35b610503611329565b60405161051091906155e6565b60405180910390f35b610521611340565b6040516105309392919061556a565b60405180910390f35b610553600480360381019061054e919061462b565b61135a565b604051610561929190615541565b60405180910390f35b610584600480360381019061057f919061459d565b611501565b60405161059191906150f4565b60405180910390f35b6105a26115b4565b6040516105af91906154fd565b60405180910390f35b6105c06115c0565b6040516105cd91906150f4565b60405180910390f35b6105f060048036038101906105eb919061459d565b6117b5565b6040516105fd91906150f4565b60405180910390f35b610620600480360381019061061b919061462b565b611822565b60405161062d91906150f4565b60405180910390f35b610650600480360381019061064b919061459d565b61188e565b60405161065e929190615541565b60405180910390f35b61066f6118c4565b60405161067c91906154fd565b60405180910390f35b61068d6118ce565b60405161069a9190615079565b60405180910390f35b6106ab6118f4565b6040516106b891906154c7565b60405180910390f35b6106db60048036038101906106d691906144e9565b61192c565b6040516106e891906154fd565b60405180910390f35b6106f9611974565b604051610706919061510f565b60405180910390f35b61071761199e565b60405161072491906150f4565b60405180910390f35b610735611aa4565b604051610742919061512a565b60405180910390f35b6107656004803603810190610760919061462b565b611aca565b60405161077291906150f4565b60405180910390f35b610783611d92565b60405161079091906154fd565b60405180910390f35b6107b360048036038101906107ae919061462b565b611d9c565b6040516107c091906150f4565b60405180910390f35b6107d1611eb2565b6040516107de9190615079565b60405180910390f35b61080160048036038101906107fc91906144e9565b611ed8565b60405161080e91906154e2565b60405180910390f35b61081f611f45565b60405161082c9190615145565b60405180910390f35b61083d611fe7565b60405161084c9392919061556a565b60405180910390f35b61085d612159565b60405161086a91906150f4565b60405180910390f35b61088d6004803603810190610888919061462b565b61216a565b60405161089a91906150f4565b60405180910390f35b6108bd60048036038101906108b8919061459d565b612270565b6040516108ca91906150f4565b60405180910390f35b6108ed60048036038101906108e8919061462b565b61233d565b6040516108fa91906154fd565b60405180910390f35b61090b61239c565b60405161091891906150f4565b60405180910390f35b61093b6004803603810190610936919061459d565b6123af565b60405161094891906150f4565b60405180910390f35b6109596123cd565b60405161096691906154fd565b60405180910390f35b6109776123d7565b60405161098491906154fd565b60405180910390f35b6109956123e1565b6040516109a291906150f4565b60405180910390f35b6109b3612441565b6040516109c091906154fd565b60405180910390f35b6109d1612447565b6040516109de91906154fd565b60405180910390f35b610a0160048036038101906109fc91906146b9565b61260d565b604051610a0e91906150f4565b60405180910390f35b610a316004803603810190610a2c9190614512565b612879565b604051610a3e91906154fd565b60405180910390f35b610a4f612900565b604051610a5c91906154c7565b60405180910390f35b610a6d612938565b604051610a7a91906154fd565b60405180910390f35b610a8b612972565b604051610a9891906154fd565b60405180910390f35b610abb6004803603810190610ab6919061459d565b61297c565b604051610ac891906154fd565b60405180910390f35b60095481565b606060038054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b6f5780601f10610b4457610100808354040283529160200191610b6f565b820191906000526020600020905b815481529060010190602001808311610b5257829003601f168201915b5050505050905090565b6000610b8d610b86612a2b565b8484612a33565b6001905092915050565b600080610bcd60146040518060600160405290816000820154815260200160018201548152602001600282015481525050612bfe565b9150600060146000015414158015610bf15750601460000154610bee612ca4565b10155b15610c425760019050610c3f610c3060176040518060600160405290816000820154815260200160018201548152602001600282015481525050612bfe565b836129d690919063ffffffff16565b91505b9091565b6000610c50612cac565b600860149054906101000a900460ff16610c9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c96906152e7565b60405180910390fd5b610ca7612d3e565b610ccf610cca836013604051806020016040529081600082015481525050612e1f565b612e70565b9050610cfd600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612e94565b610d49826040518060400160405280601881526020017f4e6f7420656e6f756768207374616b656420616d6f756e740000000000000000815250600e546130429092919063ffffffff16565b600e81905550610dbe600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661309d9092919063ffffffff16565b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4c90615367565b60405180910390fd5b610e5e82613123565b60019050919050565b6000600254905090565b6000806000610e9560126040518060200160405290816000820154815250506131aa565b925092509250909192565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2990615367565b60405180910390fd5b610f3b826131c5565b60019050919050565b6000610f51848484613206565b61101284610f5d612a2b565b61100d856040518060600160405280602881526020016157cb60289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610fc3612a2b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130429092919063ffffffff16565b612a33565b600190509392505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a690615367565b60405180910390fd5b600860149054906101000a900460ff16156110ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f690615207565b60405180910390fd5b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f6d4faaba9390b6bfbd5cb72e0cd8dfb4781f53d262654f8aa7eca81a0e24b31560405160405180910390a260019050919050565b60008082600081116111d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ca906152a7565b60405180910390fd5b6111db612d3e565b60003390506112018186601360405180602001604052908160008201548152505061349b565b80945081955050506112138184612e94565b61122884600e546135c890919063ffffffff16565b600e8190555061124384600f546129d690919063ffffffff16565b600f819055506000601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506112a38582600001546129d690919063ffffffff16565b81600001819055506112c76010546112b9613612565b6129d690919063ffffffff16565b81600101819055508173ffffffffffffffffffffffffffffffffffffffff167f204fccf0d92ed8d48f204adb39b2e81e92bad0dedb93f5716ca9478cfb57de008787876040516113199392919061556a565b60405180910390a2505050915091565b6000600560009054906101000a900460ff16905090565b6000806000601360000154600a6012925092509250909192565b60008082600081116113a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611398906152a7565b60405180910390fd5b6113a9612d3e565b60003390506113cf8186601360405180602001604052908160008201548152505061349b565b8094508195505050600061140160646113f36009548861361a90919063ffffffff16565b61368a90919063ffffffff16565b905061140d8285612e94565b61142285600e546135c890919063ffffffff16565b600e8190555061143b81866135c890919063ffffffff16565b945061145281600c546129d690919063ffffffff16565b600c819055508173ffffffffffffffffffffffffffffffffffffffff167f7708755c9b641bf197be5047b04002d2e88fa658c173a351067747eb5dfc568a878784886040516114a494939291906155a1565b60405180910390a26114f98286601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661309d9092919063ffffffff16565b505050915091565b60006115aa61150e612a2b565b846115a5856001600061151f612a2b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129d690919063ffffffff16565b612a33565b6001905092915050565b670de0b6b3a764000081565b6000803390506000601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905060008111611655576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164c90615267565b60405180910390fd5b61165d613612565b826001015411156116a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169a90615327565b60405180910390fd5b601a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000808201600090556001820160009055505061170a81600f546135c890919063ffffffff16565b600f819055508273ffffffffffffffffffffffffffffffffffffffff167f6cca423c6ffc06e62a0acc433965e074b11c28479b0449250ce3ff65ac9e39fe8260405161175691906154fd565b60405180910390a26117ab8382601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661309d9092919063ffffffff16565b6001935050505090565b60006117bf612cac565b600860149054906101000a900460ff1661180e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611805906152e7565b60405180910390fd5b61181883836136d4565b6001905092915050565b600061182c612cac565b600860149054906101000a900460ff1661187b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611872906152e7565b60405180910390fd5b6118853383612e94565b60019050919050565b600080600061189b611fe7565b505090506118b8858560405180602001604052808581525061349b565b92509250509250929050565b6000600f54905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118fc614432565b60146040518060600160405290816000820154815260200160018201548152602001600282015481525050905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2790615387565b60405180910390fd5b611a5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16613868565b6000600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905090565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008160008111611b10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b07906152a7565b60405180910390fd5b611b18612d3e565b60003390506000601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905085811015611bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba390615427565b60405180910390fd5b6000611be7611be2611bbd8661192c565b60136040518060200160405290816000820154815250506138ef90919063ffffffff16565b612e70565b9050670de0b6b3a7640000611c0588836129d690919063ffffffff16565b1015611c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3d906151c7565b60405180910390fd5b6000611c70611c6b896013604051806020016040529081600082015481525050612e1f565b612e70565b9050611c7c85826136d4565b611c9188600e546129d690919063ffffffff16565b600e81905550611cac88600f546135c890919063ffffffff16565b600f81905550611cc588846135c890919063ffffffff16565b8460000181905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167f6c86f3fd5118b3aa8bb4f389a617046de0a3d3d477de1a1673d227f802f616dc8a84604051611d2d929190615541565b60405180910390a38473ffffffffffffffffffffffffffffffffffffffff167f6a6d5d5933544e2f8792a55eb024869c9b2fa719fd6b231725a991198658f94e89604051611d7b91906154fd565b60405180910390a260019650505050505050919050565b6000600e54905090565b60008160008111611de2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd9906152a7565b60405180910390fd5b611dea612d3e565b6000339050611e0484600d546129d690919063ffffffff16565b600d819055508073ffffffffffffffffffffffffffffffffffffffff167f457b865678556d8d0f459b359ad2daa4638a33e4616c48e9c501f28ef8b673c485604051611e5091906154fd565b60405180910390a2611ea7813086601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613924909392919063ffffffff16565b600192505050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611ee0614453565b601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806040016040529081600082015481526020016001820154815250509050919050565b606060048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611fdd5780601f10611fb257610100808354040283529160200191611fdd565b820191906000526020600020905b815481529060010190602001808311611fc057829003601f168201915b5050505050905090565b600080600080611ff5610b97565b5090506000600e5490506000612009610e67565b9050600860149054906101000a900460ff16156120f357600080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166355c0bd7d6040518163ffffffff1660e01b8152600401604080518083038186803b15801561208a57600080fd5b505afa15801561209e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120c2919061467d565b915091506120d982856129d690919063ffffffff16565b93506120ee81846135c890919063ffffffff16565b925050505b6120fb61446d565b60008214156121225760126040518060200160405290816000820154815250509050612141565b61213e61213885856129d690919063ffffffff16565b836139ad565b90505b8060000151600a601296509650965050505050909192565b6000612163612d3e565b6001905090565b6000612174612cac565b600860149054906101000a900460ff166121c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ba906152e7565b60405180910390fd5b61220f826040518060400160405280601b81526020017f52657761726420706f6f6c20697320657874696e677569736865640000000000815250600d546130429092919063ffffffff16565b600d8190555061222a82600e546129d690919063ffffffff16565b600e819055507f01feb0f24c52736758ca404486734e6287175eb5c93aa090f0ab371665231d728260405161225f91906154fd565b60405180910390a160019050919050565b600061233361227d612a2b565b8461232e8560405180606001604052806025815260200161582b60259139600160006122a7612a2b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130429092919063ffffffff16565b612a33565b6001905092915050565b60008160008111612383576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237a906152a7565b60405180910390fd5b60003390506123938182866139f4565b92505050919050565b600860149054906101000a900460ff1681565b60006123c36123bc612a2b565b8484613206565b6001905092915050565b6000600c54905090565b6000601054905090565b60006123eb612d3e565b6123f3612cac565b6001600860146101000a81548160ff0219169083151502179055507f1a20090fe00590a7d7ba50dcda5b5680a8efe082a927aac6c38018f3a16fd69160405160405180910390a16001905090565b600a5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146124d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d090615367565b60405180910390fd5b6000600c541161251e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251590615287565b60405180910390fd5b600c5490506000600c81905550600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f20ca5094f3a20c321cbe4123d0f01b276b81df0fa24cd4d83d9253956035d8638260405161259391906154fd565b60405180910390a261260a600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661309d9092919063ffffffff16565b90565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461269f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269690615367565b60405180910390fd5b6126a7612d3e565b6126b2848484613b4d565b60006126c783856129d690919063ffffffff16565b90506126d1614432565b60405180606001604052808381526020018781526020018681525090506126f6612ca4565b60146002015411156127af5760176000808201600090556001820160009055600282016000905550507fe58d04c6069251e310ede9daae36efbc408e81b8bebd9915bf5a7e6e7ca95d9860405160405180910390a18060146000820151816000015560208201518160010155604082015181600201559050507f2fa40e2e6101b8bae833c4716c3c36b1e15938b1aaa699ec9896bb2d836c94928686846040516127a29392919061556a565b60405180910390a161286c565b7f1355800f5bff457ad5c5a51017502bef53351bc3e3575eaf67c1f768b2101b758686846040516127e29392919061556a565b60405180910390a180601760008201518160000155602082015181600101556040820151816002015590505084601460000154111561286b57846014600001819055507f2fa40e2e6101b8bae833c4716c3c36b1e15938b1aaa699ec9896bb2d836c9492601460010154601460020154876040516128629392919061556a565b60405180910390a15b5b6001925050509392505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b612908614432565b60176040518060600160405290816000820154815260200160018201548152602001600282015481525050905090565b600061296d60146040518060600160405290816000820154815260200160018201548152602001600282015481525050612bfe565b905090565b6000600d54905090565b600081600081116129c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b9906152a7565b60405180910390fd5b6129cd8433856139f4565b91505092915050565b600080828401905083811015612a21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1890615227565b60405180910390fd5b8091505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9a906153e7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b0a906151e7565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051612bf191906154fd565b60405180910390a3505050565b600080612c09612ca4565b90508260400151811080612c1e5750600a5481145b15612c295750612c9f565b6000612c3b600a548560400151613c2b565b90506000612c4d838660000151613c45565b905080821015612c9b576000612c6c83836135c890919063ffffffff16565b9050612c97612c8887602001518361361a90919063ffffffff16565b866129d690919063ffffffff16565b9450505b5050505b919050565b600043905090565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612d3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3390615247565b60405180910390fd5b565b600a54612d49612ca4565b11612d5357612e1d565b600860149054906101000a900460ff1615612e0c57600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a2e620456040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612dd257600080fd5b505af1158015612de6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e0a91906145d9565b505b612e14613c5e565b612e1c613dd1565b5b565b612e2761446d565b6040518060200160405280612e658460000151612e576012600a0a6012600a0a028861361a90919063ffffffff16565b61368a90919063ffffffff16565b815250905092915050565b6000612e8d6012600a0a836000015161368a90919063ffffffff16565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612efb906153a7565b60405180910390fd5b612f1082600083613f2d565b612f7b81604051806060016040528060228152602001615783602291396000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130429092919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612fd2816002546135c890919063ffffffff16565b600281905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161303691906154fd565b60405180910390a35050565b600083831115829061308a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130819190615145565b60405180910390fd5b5060008385039050809150509392505050565b61311e8363a9059cbb60e01b84846040516024016130bc9291906150cb565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614161565b505050565b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2260405160405180910390a250565b60008060008360000151600a60129250925092509193909250565b806010819055507f7f7d5eb76787d9279c88eb7f18c26b33761ae038bbd802551a7c6aa2f9f8dd12816040516131fb91906154fd565b60405180910390a150565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613276576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161326d906153c7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156132e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132dd90615187565b60405180910390fd5b6132f1838383613f2d565b61335c816040518060600160405280602681526020016157a5602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130429092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506133ef816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129d690919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161348e91906154fd565b60405180910390a3505050565b6000808391506134b36134ae8585612e1f565b614228565b905060006134c08661192c565b905060008211613505576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134fc90615487565b60405180910390fd5b81811015613548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161353f90615467565b60405180910390fd5b600061355d83836135c890919063ffffffff16565b9050600061359261358d8360136040518060200160405290816000820154815250506138ef90919063ffffffff16565b612e70565b9050670de0b6b3a76400008110156135bd578293506135ba81866129d690919063ffffffff16565b94505b505050935093915050565b600061360a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613042565b905092915050565b600042905090565b60008083141561362d5760009050613684565b600082840290508284828161363e57fe5b041461367f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161367690615307565b60405180910390fd5b809150505b92915050565b60006136cc83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614283565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613744576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161373b906154a7565b60405180910390fd5b61375060008383613f2d565b613765816002546129d690919063ffffffff16565b6002819055506137bc816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129d690919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161385c91906154fd565b60405180910390a35050565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3660405160405180910390a250565b6138f761446d565b604051806020016040528061391984866000015161361a90919063ffffffff16565b815250905092915050565b6139a7846323b872dd60e01b85858560405160240161394593929190615094565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614161565b50505050565b6139b561446d565b60405180602001604052806139e9846139db6012600a0a8861361a90919063ffffffff16565b61368a90919063ffffffff16565b815250905092915050565b60006139fe612d3e565b613a26613a21836013604051806020016040529081600082015481525050612e1f565b612e70565b905060008111613a6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a6290615347565b60405180910390fd5b613a7584826136d4565b613a8a82600e546129d690919063ffffffff16565b600e819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f6c86f3fd5118b3aa8bb4f389a617046de0a3d3d477de1a1673d227f802f616dc8484604051613aef929190615541565b60405180910390a3613b46833084601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613924909392919063ffffffff16565b9392505050565b60008111613b90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b87906151a7565b60405180910390fd5b613b98612ca4565b821015613bda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bd1906152c7565b60405180910390fd5b680a31062beeed700000831115613c26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c1d90615167565b60405180910390fd5b505050565b600081831015613c3b5781613c3d565b825b905092915050565b6000818310613c545781613c56565b825b905092915050565b600080613c69610b97565b915091508015613d3a57601760146000820154816000015560018201548160010155600282015481600201559050507fe58d04c6069251e310ede9daae36efbc408e81b8bebd9915bf5a7e6e7ca95d9860405160405180910390a1600060146000015414613d1c577f2fa40e2e6101b8bae833c4716c3c36b1e15938b1aaa699ec9896bb2d836c9492601460010154601460020154601460000154604051613d139392919061556a565b60405180910390a15b60176000808201600090556001820160009055600282016000905550505b613d4682600d54613c45565b91506000821115613dbf577f01feb0f24c52736758ca404486734e6287175eb5c93aa090f0ab371665231d7282604051613d8091906154fd565b60405180910390a1613d9d82600d546135c890919063ffffffff16565b600d81905550613db882600e546129d690919063ffffffff16565b600e819055505b613dc7612ca4565b600a819055505050565b6000600e5490506000613de2610e67565b9050600860149054906101000a900460ff1615613eae57613eab600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633e3fe7ba6040518163ffffffff1660e01b815260040160206040518083038186803b158015613e6457600080fd5b505afa158015613e78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e9c9190614654565b836129d690919063ffffffff16565b91505b6000811415613ecd576012601360008201548160000155905050613ee7565b613ed782826139ad565b6013600082015181600001559050505b7f15819dd2fd9f6418b142e798d08a18d0bf06ea368f4480b7b0d3f75bd966bc48601360000154600a6012604051613f219392919061556a565b60405180910390a15050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415613f885761415c565b613f90612d3e565b60606040518060600160405280603881526020016157f3603891399050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461408c57600061402e61402961400485613ff68961192c565b6135c890919063ffffffff16565b60136040518060200160405290816000820154815250506138ef90919063ffffffff16565b612e70565b9050670de0b6b3a7640000811015806140475750600081145b8290614089576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016140809190615145565b60405180910390fd5b50505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461415a57670de0b6b3a764000061411461410f6140ea856140dc8861192c565b6129d690919063ffffffff16565b60136040518060200160405290816000820154815250506138ef90919063ffffffff16565b612e70565b10158190614158576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161414f9190615145565b60405180910390fd5b505b505b505050565b60606141c3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166142e49092919063ffffffff16565b905060008151111561422357808060200190518101906141e391906145d9565b614222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161421990615447565b60405180910390fd5b5b505050565b600061427c60006012600a0a84600001518161424057fe5b061161424d576000614250565b60015b60ff1661426e6012600a0a856000015161368a90919063ffffffff16565b6129d690919063ffffffff16565b9050919050565b600080831182906142ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016142c19190615145565b60405180910390fd5b5060008385816142d657fe5b049050809150509392505050565b60606142f384846000856142fc565b90509392505050565b60606143078561441f565b614346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161433d90615407565b60405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516143709190615062565b60006040518083038185875af1925050503d80600081146143ad576040519150601f19603f3d011682016040523d82523d6000602084013e6143b2565b606091505b509150915081156143c7578092505050614417565b6000815111156143da5780518082602001fd5b836040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161440e9190615145565b60405180910390fd5b949350505050565b600080823b905060008111915050919050565b60405180606001604052806000815260200160008152602001600081525090565b604051806040016040528060008152602001600081525090565b6040518060200160405280600081525090565b60008135905061448f81615726565b92915050565b6000815190506144a48161573d565b92915050565b6000813590506144b981615754565b92915050565b6000813590506144ce8161576b565b92915050565b6000815190506144e38161576b565b92915050565b6000602082840312156144fb57600080fd5b600061450984828501614480565b91505092915050565b6000806040838503121561452557600080fd5b600061453385828601614480565b925050602061454485828601614480565b9150509250929050565b60008060006060848603121561456357600080fd5b600061457186828701614480565b935050602061458286828701614480565b9250506040614593868287016144bf565b9150509250925092565b600080604083850312156145b057600080fd5b60006145be85828601614480565b92505060206145cf858286016144bf565b9150509250929050565b6000602082840312156145eb57600080fd5b60006145f984828501614495565b91505092915050565b60006020828403121561461457600080fd5b6000614622848285016144aa565b91505092915050565b60006020828403121561463d57600080fd5b600061464b848285016144bf565b91505092915050565b60006020828403121561466657600080fd5b6000614674848285016144d4565b91505092915050565b6000806040838503121561469057600080fd5b600061469e858286016144d4565b92505060206146af858286016144d4565b9150509250929050565b6000806000606084860312156146ce57600080fd5b60006146dc868287016144bf565b93505060206146ed868287016144bf565b92505060406146fe868287016144bf565b9150509250925092565b61471181615633565b82525050565b61472081615645565b82525050565b600061473182615601565b61473b8185615617565b935061474b8185602086016156e2565b80840191505092915050565b6147608161569a565b82525050565b61476f816156be565b82525050565b60006147808261560c565b61478a8185615622565b935061479a8185602086016156e2565b6147a381615715565b840191505092915050565b60006147bb601983615622565b91507f50657220626c6f636b20726577617264206f766572666c6f77000000000000006000830152602082019050919050565b60006147fb602383615622565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614861601083615622565b91507f4475726174696f6e206973207a65726f000000000000000000000000000000006000830152602082019050919050565b60006148a1603783615622565b91507f526573756c74696e67207374616b652062616c616e6365206c6573732074686160008301527f6e206d696e696d616c207374616b652062616c616e63650000000000000000006020830152604082019050919050565b6000614907602283615622565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061496d601c83615622565b91507f4d69677261746f7220616c726561647920696e697469616c697a6564000000006000830152602082019050919050565b60006149ad601b83615622565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b60006149ed601883615622565b91507f416c6c6f776564206f6e6c79206279206d69677261746f7200000000000000006000830152602082019050919050565b6000614a2d600c83615622565b91507f4e6f7420756e7374616b656400000000000000000000000000000000000000006000830152602082019050919050565b6000614a6d600783615622565b91507f4e6f2066656573000000000000000000000000000000000000000000000000006000830152602082019050919050565b6000614aad601683615622565b91507f416d6f756e74206973206e6f7420706f736974697665000000000000000000006000830152602082019050919050565b6000614aed602483615622565b91507f537461727420626c6f636b206e756d626572206c657373207468656e2063757260008301527f72656e74000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b53601883615622565b91507f4d69677261746f72206e6f7420696e697469616c697a656400000000000000006000830152602082019050919050565b6000614b93602183615622565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614bf9600f83615622565b91507f4e6f742072656c656173656420617400000000000000000000000000000000006000830152602082019050919050565b6000614c39601883615622565b91507f546f6f20736d616c6c207374616b696e6720616d6f756e7400000000000000006000830152602082019050919050565b6000614c79602083615622565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614cb9601a83615622565b91507f4e6f74206e6f6d696e6174656420746f206f776e6572736869700000000000006000830152602082019050919050565b6000614cf9602183615622565b91507f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d5f602583615622565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614dc5602483615622565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e2b601d83615622565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b6000614e6b601b83615622565b91507f4e6f7420656e6f75676820756e7374616b65642062616c616e636500000000006000830152602082019050919050565b6000614eab602a83615622565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b6000614f11601b83615622565b91507f4e6f7420656e6f7567682073796e74686574696320746f6b656e7300000000006000830152602082019050919050565b6000614f51601a83615622565b91507f546f6f20736d616c6c20756e7374616b696e6720616d6f756e740000000000006000830152602082019050919050565b6000614f91601f83615622565b91507f45524332303a206d696e7420746f20746865207a65726f2061646472657373006000830152602082019050919050565b606082016000820151614fda6000850182615035565b506020820151614fed6020850182615035565b5060408201516150006040850182615035565b50505050565b60408201600082015161501c6000850182615035565b50602082015161502f6020850182615035565b50505050565b61503e81615683565b82525050565b61504d81615683565b82525050565b61505c8161568d565b82525050565b600061506e8284614726565b915081905092915050565b600060208201905061508e6000830184614708565b92915050565b60006060820190506150a96000830186614708565b6150b66020830185614708565b6150c36040830184615044565b949350505050565b60006040820190506150e06000830185614708565b6150ed6020830184615044565b9392505050565b60006020820190506151096000830184614717565b92915050565b60006020820190506151246000830184614757565b92915050565b600060208201905061513f6000830184614766565b92915050565b6000602082019050818103600083015261515f8184614775565b905092915050565b60006020820190508181036000830152615180816147ae565b9050919050565b600060208201905081810360008301526151a0816147ee565b9050919050565b600060208201905081810360008301526151c081614854565b9050919050565b600060208201905081810360008301526151e081614894565b9050919050565b60006020820190508181036000830152615200816148fa565b9050919050565b6000602082019050818103600083015261522081614960565b9050919050565b60006020820190508181036000830152615240816149a0565b9050919050565b60006020820190508181036000830152615260816149e0565b9050919050565b6000602082019050818103600083015261528081614a20565b9050919050565b600060208201905081810360008301526152a081614a60565b9050919050565b600060208201905081810360008301526152c081614aa0565b9050919050565b600060208201905081810360008301526152e081614ae0565b9050919050565b6000602082019050818103600083015261530081614b46565b9050919050565b6000602082019050818103600083015261532081614b86565b9050919050565b6000602082019050818103600083015261534081614bec565b9050919050565b6000602082019050818103600083015261536081614c2c565b9050919050565b6000602082019050818103600083015261538081614c6c565b9050919050565b600060208201905081810360008301526153a081614cac565b9050919050565b600060208201905081810360008301526153c081614cec565b9050919050565b600060208201905081810360008301526153e081614d52565b9050919050565b6000602082019050818103600083015261540081614db8565b9050919050565b6000602082019050818103600083015261542081614e1e565b9050919050565b6000602082019050818103600083015261544081614e5e565b9050919050565b6000602082019050818103600083015261546081614e9e565b9050919050565b6000602082019050818103600083015261548081614f04565b9050919050565b600060208201905081810360008301526154a081614f44565b9050919050565b600060208201905081810360008301526154c081614f84565b9050919050565b60006060820190506154dc6000830184614fc4565b92915050565b60006040820190506154f76000830184615006565b92915050565b60006020820190506155126000830184615044565b92915050565b600060408201905061552d6000830185615044565b61553a6020830184614717565b9392505050565b60006040820190506155566000830185615044565b6155636020830184615044565b9392505050565b600060608201905061557f6000830186615044565b61558c6020830185615044565b6155996040830184615044565b949350505050565b60006080820190506155b66000830187615044565b6155c36020830186615044565b6155d06040830185615044565b6155dd6060830184615044565b95945050505050565b60006020820190506155fb6000830184615053565b92915050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600061563e82615663565b9050919050565b60008115159050919050565b600061565c82615633565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006156a5826156ac565b9050919050565b60006156b782615663565b9050919050565b60006156c9826156d0565b9050919050565b60006156db82615663565b9050919050565b60005b838110156157005780820151818401526020810190506156e5565b8381111561570f576000848401525b50505050565b6000601f19601f8301169050919050565b61572f81615633565b811461573a57600080fd5b50565b61574681615645565b811461575157600080fd5b50565b61575d81615651565b811461576857600080fd5b50565b61577481615683565b811461577f57600080fd5b5056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654d696e696d616c207374616b652062616c616e63652073686f756c64206265206d6f7265206f7220657175616c20746f203120746f6b656e45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220cad946cbbbcf91d8d13391f9f95875337e039225e7199db8f9e685550617828b64736f6c634300060c0033000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000007eaf9c89037e4814dc0d9952ac7f888c784548db000000000000000000000000d4eee3d50588d7dee8dcc42635e50093e0aa8cc0000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000000000000000b251d200000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000097e00000000000000000000000000000000000000000000000000000000e8d4a51000000000000000000000000000000000000000000000000000000000000000000b5374616b656420524f5941000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000573524f5941000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061030c5760003560e01c806379ba50971161019d578063a7793ee9116100e9578063d294f093116100a2578063e175ae131161007c578063e175ae1314610a47578063e2fd6ff914610a65578063e928ce7214610a83578063fd79c6a214610aa15761030c565b8063d294f093146109c9578063d708120e146109e7578063dd62ed3e14610a175761030c565b8063a7793ee914610903578063a9059cbb14610921578063ae2e933b14610951578063af1c7f201461096f578063b35b91e31461098d578063b4c6e416146109ab5761030c565b8063947ae12a11610156578063a2e6204511610130578063a2e6204514610855578063a40d612314610873578063a457c2d7146108a3578063a694fc3a146108d35761030c565b8063947ae12a146107e757806395d89b4114610817578063a035b1fe146108355761030c565b806379ba50971461070f5780637cd07e471461072d5780637ee3beb91461074b578063817b1cd21461077b578063833e8bb6146107995780638da5cb5b146107c95761030c565b806332a6bf431161025c57806342966c681161021557806353a47bb7116101ef57806353a47bb7146106855780636a1ceb2d146106a357806370a08231146106c157806372f702f3146106f15761030c565b806342966c681461060657806346267a93146106365780635235934d146106675761030c565b806332a6bf4314610519578063379607f514610539578063395093511461056a578063396f55d01461059a5780633ccfd60b146105b857806340c10f19146105d65761030c565b806318160ddd116102c957806323b872dd116102a357806323b872dd1461046a57806323cf31181461049a5780632e17de78146104ca578063313ce567146104fb5761030c565b806318160ddd146103fc5780631b6c743b1461041a5780632059ba6f1461043a5761030c565b806301a563831461031157806306fdde031461032f578063095ea7b31461034d5780630be4bc0d1461037d5780630f2e9bee1461039c5780631627540c146103cc575b600080fd5b610319610ad1565b60405161032691906154fd565b60405180910390f35b610337610ad7565b6040516103449190615145565b60405180910390f35b6103676004803603810190610362919061459d565b610b79565b60405161037491906150f4565b60405180910390f35b610385610b97565b604051610393929190615518565b60405180910390f35b6103b660048036038101906103b1919061462b565b610c46565b6040516103c391906154fd565b60405180910390f35b6103e660048036038101906103e191906144e9565b610dc3565b6040516103f391906150f4565b60405180910390f35b610404610e67565b60405161041191906154fd565b60405180910390f35b610422610e71565b6040516104319392919061556a565b60405180910390f35b610454600480360381019061044f919061462b565b610ea0565b60405161046191906150f4565b60405180910390f35b610484600480360381019061047f919061454e565b610f44565b60405161049191906150f4565b60405180910390f35b6104b460048036038101906104af9190614602565b61101d565b6040516104c191906150f4565b60405180910390f35b6104e460048036038101906104df919061462b565b61118c565b6040516104f2929190615541565b60405180910390f35b610503611329565b60405161051091906155e6565b60405180910390f35b610521611340565b6040516105309392919061556a565b60405180910390f35b610553600480360381019061054e919061462b565b61135a565b604051610561929190615541565b60405180910390f35b610584600480360381019061057f919061459d565b611501565b60405161059191906150f4565b60405180910390f35b6105a26115b4565b6040516105af91906154fd565b60405180910390f35b6105c06115c0565b6040516105cd91906150f4565b60405180910390f35b6105f060048036038101906105eb919061459d565b6117b5565b6040516105fd91906150f4565b60405180910390f35b610620600480360381019061061b919061462b565b611822565b60405161062d91906150f4565b60405180910390f35b610650600480360381019061064b919061459d565b61188e565b60405161065e929190615541565b60405180910390f35b61066f6118c4565b60405161067c91906154fd565b60405180910390f35b61068d6118ce565b60405161069a9190615079565b60405180910390f35b6106ab6118f4565b6040516106b891906154c7565b60405180910390f35b6106db60048036038101906106d691906144e9565b61192c565b6040516106e891906154fd565b60405180910390f35b6106f9611974565b604051610706919061510f565b60405180910390f35b61071761199e565b60405161072491906150f4565b60405180910390f35b610735611aa4565b604051610742919061512a565b60405180910390f35b6107656004803603810190610760919061462b565b611aca565b60405161077291906150f4565b60405180910390f35b610783611d92565b60405161079091906154fd565b60405180910390f35b6107b360048036038101906107ae919061462b565b611d9c565b6040516107c091906150f4565b60405180910390f35b6107d1611eb2565b6040516107de9190615079565b60405180910390f35b61080160048036038101906107fc91906144e9565b611ed8565b60405161080e91906154e2565b60405180910390f35b61081f611f45565b60405161082c9190615145565b60405180910390f35b61083d611fe7565b60405161084c9392919061556a565b60405180910390f35b61085d612159565b60405161086a91906150f4565b60405180910390f35b61088d6004803603810190610888919061462b565b61216a565b60405161089a91906150f4565b60405180910390f35b6108bd60048036038101906108b8919061459d565b612270565b6040516108ca91906150f4565b60405180910390f35b6108ed60048036038101906108e8919061462b565b61233d565b6040516108fa91906154fd565b60405180910390f35b61090b61239c565b60405161091891906150f4565b60405180910390f35b61093b6004803603810190610936919061459d565b6123af565b60405161094891906150f4565b60405180910390f35b6109596123cd565b60405161096691906154fd565b60405180910390f35b6109776123d7565b60405161098491906154fd565b60405180910390f35b6109956123e1565b6040516109a291906150f4565b60405180910390f35b6109b3612441565b6040516109c091906154fd565b60405180910390f35b6109d1612447565b6040516109de91906154fd565b60405180910390f35b610a0160048036038101906109fc91906146b9565b61260d565b604051610a0e91906150f4565b60405180910390f35b610a316004803603810190610a2c9190614512565b612879565b604051610a3e91906154fd565b60405180910390f35b610a4f612900565b604051610a5c91906154c7565b60405180910390f35b610a6d612938565b604051610a7a91906154fd565b60405180910390f35b610a8b612972565b604051610a9891906154fd565b60405180910390f35b610abb6004803603810190610ab6919061459d565b61297c565b604051610ac891906154fd565b60405180910390f35b60095481565b606060038054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b6f5780601f10610b4457610100808354040283529160200191610b6f565b820191906000526020600020905b815481529060010190602001808311610b5257829003601f168201915b5050505050905090565b6000610b8d610b86612a2b565b8484612a33565b6001905092915050565b600080610bcd60146040518060600160405290816000820154815260200160018201548152602001600282015481525050612bfe565b9150600060146000015414158015610bf15750601460000154610bee612ca4565b10155b15610c425760019050610c3f610c3060176040518060600160405290816000820154815260200160018201548152602001600282015481525050612bfe565b836129d690919063ffffffff16565b91505b9091565b6000610c50612cac565b600860149054906101000a900460ff16610c9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c96906152e7565b60405180910390fd5b610ca7612d3e565b610ccf610cca836013604051806020016040529081600082015481525050612e1f565b612e70565b9050610cfd600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612e94565b610d49826040518060400160405280601881526020017f4e6f7420656e6f756768207374616b656420616d6f756e740000000000000000815250600e546130429092919063ffffffff16565b600e81905550610dbe600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661309d9092919063ffffffff16565b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4c90615367565b60405180910390fd5b610e5e82613123565b60019050919050565b6000600254905090565b6000806000610e9560126040518060200160405290816000820154815250506131aa565b925092509250909192565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610f32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2990615367565b60405180910390fd5b610f3b826131c5565b60019050919050565b6000610f51848484613206565b61101284610f5d612a2b565b61100d856040518060600160405280602881526020016157cb60289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610fc3612a2b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130429092919063ffffffff16565b612a33565b600190509392505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a690615367565b60405180910390fd5b600860149054906101000a900460ff16156110ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f690615207565b60405180910390fd5b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167f6d4faaba9390b6bfbd5cb72e0cd8dfb4781f53d262654f8aa7eca81a0e24b31560405160405180910390a260019050919050565b60008082600081116111d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ca906152a7565b60405180910390fd5b6111db612d3e565b60003390506112018186601360405180602001604052908160008201548152505061349b565b80945081955050506112138184612e94565b61122884600e546135c890919063ffffffff16565b600e8190555061124384600f546129d690919063ffffffff16565b600f819055506000601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506112a38582600001546129d690919063ffffffff16565b81600001819055506112c76010546112b9613612565b6129d690919063ffffffff16565b81600101819055508173ffffffffffffffffffffffffffffffffffffffff167f204fccf0d92ed8d48f204adb39b2e81e92bad0dedb93f5716ca9478cfb57de008787876040516113199392919061556a565b60405180910390a2505050915091565b6000600560009054906101000a900460ff16905090565b6000806000601360000154600a6012925092509250909192565b60008082600081116113a1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611398906152a7565b60405180910390fd5b6113a9612d3e565b60003390506113cf8186601360405180602001604052908160008201548152505061349b565b8094508195505050600061140160646113f36009548861361a90919063ffffffff16565b61368a90919063ffffffff16565b905061140d8285612e94565b61142285600e546135c890919063ffffffff16565b600e8190555061143b81866135c890919063ffffffff16565b945061145281600c546129d690919063ffffffff16565b600c819055508173ffffffffffffffffffffffffffffffffffffffff167f7708755c9b641bf197be5047b04002d2e88fa658c173a351067747eb5dfc568a878784886040516114a494939291906155a1565b60405180910390a26114f98286601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661309d9092919063ffffffff16565b505050915091565b60006115aa61150e612a2b565b846115a5856001600061151f612a2b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129d690919063ffffffff16565b612a33565b6001905092915050565b670de0b6b3a764000081565b6000803390506000601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905060008111611655576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164c90615267565b60405180910390fd5b61165d613612565b826001015411156116a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169a90615327565b60405180910390fd5b601a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000808201600090556001820160009055505061170a81600f546135c890919063ffffffff16565b600f819055508273ffffffffffffffffffffffffffffffffffffffff167f6cca423c6ffc06e62a0acc433965e074b11c28479b0449250ce3ff65ac9e39fe8260405161175691906154fd565b60405180910390a26117ab8382601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661309d9092919063ffffffff16565b6001935050505090565b60006117bf612cac565b600860149054906101000a900460ff1661180e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611805906152e7565b60405180910390fd5b61181883836136d4565b6001905092915050565b600061182c612cac565b600860149054906101000a900460ff1661187b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611872906152e7565b60405180910390fd5b6118853383612e94565b60019050919050565b600080600061189b611fe7565b505090506118b8858560405180602001604052808581525061349b565b92509250509250929050565b6000600f54905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6118fc614432565b60146040518060600160405290816000820154815260200160018201548152602001600282015481525050905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611a30576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2790615387565b60405180910390fd5b611a5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16613868565b6000600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001905090565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008160008111611b10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b07906152a7565b60405180910390fd5b611b18612d3e565b60003390506000601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154905085811015611bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba390615427565b60405180910390fd5b6000611be7611be2611bbd8661192c565b60136040518060200160405290816000820154815250506138ef90919063ffffffff16565b612e70565b9050670de0b6b3a7640000611c0588836129d690919063ffffffff16565b1015611c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3d906151c7565b60405180910390fd5b6000611c70611c6b896013604051806020016040529081600082015481525050612e1f565b612e70565b9050611c7c85826136d4565b611c9188600e546129d690919063ffffffff16565b600e81905550611cac88600f546135c890919063ffffffff16565b600f81905550611cc588846135c890919063ffffffff16565b8460000181905550600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167f6c86f3fd5118b3aa8bb4f389a617046de0a3d3d477de1a1673d227f802f616dc8a84604051611d2d929190615541565b60405180910390a38473ffffffffffffffffffffffffffffffffffffffff167f6a6d5d5933544e2f8792a55eb024869c9b2fa719fd6b231725a991198658f94e89604051611d7b91906154fd565b60405180910390a260019650505050505050919050565b6000600e54905090565b60008160008111611de2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd9906152a7565b60405180910390fd5b611dea612d3e565b6000339050611e0484600d546129d690919063ffffffff16565b600d819055508073ffffffffffffffffffffffffffffffffffffffff167f457b865678556d8d0f459b359ad2daa4638a33e4616c48e9c501f28ef8b673c485604051611e5091906154fd565b60405180910390a2611ea7813086601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613924909392919063ffffffff16565b600192505050919050565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611ee0614453565b601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020604051806040016040529081600082015481526020016001820154815250509050919050565b606060048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611fdd5780601f10611fb257610100808354040283529160200191611fdd565b820191906000526020600020905b815481529060010190602001808311611fc057829003601f168201915b5050505050905090565b600080600080611ff5610b97565b5090506000600e5490506000612009610e67565b9050600860149054906101000a900460ff16156120f357600080600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166355c0bd7d6040518163ffffffff1660e01b8152600401604080518083038186803b15801561208a57600080fd5b505afa15801561209e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120c2919061467d565b915091506120d982856129d690919063ffffffff16565b93506120ee81846135c890919063ffffffff16565b925050505b6120fb61446d565b60008214156121225760126040518060200160405290816000820154815250509050612141565b61213e61213885856129d690919063ffffffff16565b836139ad565b90505b8060000151600a601296509650965050505050909192565b6000612163612d3e565b6001905090565b6000612174612cac565b600860149054906101000a900460ff166121c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ba906152e7565b60405180910390fd5b61220f826040518060400160405280601b81526020017f52657761726420706f6f6c20697320657874696e677569736865640000000000815250600d546130429092919063ffffffff16565b600d8190555061222a82600e546129d690919063ffffffff16565b600e819055507f01feb0f24c52736758ca404486734e6287175eb5c93aa090f0ab371665231d728260405161225f91906154fd565b60405180910390a160019050919050565b600061233361227d612a2b565b8461232e8560405180606001604052806025815260200161582b60259139600160006122a7612a2b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130429092919063ffffffff16565b612a33565b6001905092915050565b60008160008111612383576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237a906152a7565b60405180910390fd5b60003390506123938182866139f4565b92505050919050565b600860149054906101000a900460ff1681565b60006123c36123bc612a2b565b8484613206565b6001905092915050565b6000600c54905090565b6000601054905090565b60006123eb612d3e565b6123f3612cac565b6001600860146101000a81548160ff0219169083151502179055507f1a20090fe00590a7d7ba50dcda5b5680a8efe082a927aac6c38018f3a16fd69160405160405180910390a16001905090565b600a5481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146124d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d090615367565b60405180910390fd5b6000600c541161251e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251590615287565b60405180910390fd5b600c5490506000600c81905550600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f20ca5094f3a20c321cbe4123d0f01b276b81df0fa24cd4d83d9253956035d8638260405161259391906154fd565b60405180910390a261260a600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661309d9092919063ffffffff16565b90565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461269f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269690615367565b60405180910390fd5b6126a7612d3e565b6126b2848484613b4d565b60006126c783856129d690919063ffffffff16565b90506126d1614432565b60405180606001604052808381526020018781526020018681525090506126f6612ca4565b60146002015411156127af5760176000808201600090556001820160009055600282016000905550507fe58d04c6069251e310ede9daae36efbc408e81b8bebd9915bf5a7e6e7ca95d9860405160405180910390a18060146000820151816000015560208201518160010155604082015181600201559050507f2fa40e2e6101b8bae833c4716c3c36b1e15938b1aaa699ec9896bb2d836c94928686846040516127a29392919061556a565b60405180910390a161286c565b7f1355800f5bff457ad5c5a51017502bef53351bc3e3575eaf67c1f768b2101b758686846040516127e29392919061556a565b60405180910390a180601760008201518160000155602082015181600101556040820151816002015590505084601460000154111561286b57846014600001819055507f2fa40e2e6101b8bae833c4716c3c36b1e15938b1aaa699ec9896bb2d836c9492601460010154601460020154876040516128629392919061556a565b60405180910390a15b5b6001925050509392505050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b612908614432565b60176040518060600160405290816000820154815260200160018201548152602001600282015481525050905090565b600061296d60146040518060600160405290816000820154815260200160018201548152602001600282015481525050612bfe565b905090565b6000600d54905090565b600081600081116129c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b9906152a7565b60405180910390fd5b6129cd8433856139f4565b91505092915050565b600080828401905083811015612a21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1890615227565b60405180910390fd5b8091505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612aa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9a906153e7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b0a906151e7565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051612bf191906154fd565b60405180910390a3505050565b600080612c09612ca4565b90508260400151811080612c1e5750600a5481145b15612c295750612c9f565b6000612c3b600a548560400151613c2b565b90506000612c4d838660000151613c45565b905080821015612c9b576000612c6c83836135c890919063ffffffff16565b9050612c97612c8887602001518361361a90919063ffffffff16565b866129d690919063ffffffff16565b9450505b5050505b919050565b600043905090565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612d3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3390615247565b60405180910390fd5b565b600a54612d49612ca4565b11612d5357612e1d565b600860149054906101000a900460ff1615612e0c57600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a2e620456040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612dd257600080fd5b505af1158015612de6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e0a91906145d9565b505b612e14613c5e565b612e1c613dd1565b5b565b612e2761446d565b6040518060200160405280612e658460000151612e576012600a0a6012600a0a028861361a90919063ffffffff16565b61368a90919063ffffffff16565b815250905092915050565b6000612e8d6012600a0a836000015161368a90919063ffffffff16565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612f04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612efb906153a7565b60405180910390fd5b612f1082600083613f2d565b612f7b81604051806060016040528060228152602001615783602291396000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130429092919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612fd2816002546135c890919063ffffffff16565b600281905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161303691906154fd565b60405180910390a35050565b600083831115829061308a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130819190615145565b60405180910390fd5b5060008385039050809150509392505050565b61311e8363a9059cbb60e01b84846040516024016130bc9291906150cb565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614161565b505050565b80600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2260405160405180910390a250565b60008060008360000151600a60129250925092509193909250565b806010819055507f7f7d5eb76787d9279c88eb7f18c26b33761ae038bbd802551a7c6aa2f9f8dd12816040516131fb91906154fd565b60405180910390a150565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613276576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161326d906153c7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156132e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132dd90615187565b60405180910390fd5b6132f1838383613f2d565b61335c816040518060600160405280602681526020016157a5602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130429092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506133ef816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129d690919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161348e91906154fd565b60405180910390a3505050565b6000808391506134b36134ae8585612e1f565b614228565b905060006134c08661192c565b905060008211613505576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134fc90615487565b60405180910390fd5b81811015613548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161353f90615467565b60405180910390fd5b600061355d83836135c890919063ffffffff16565b9050600061359261358d8360136040518060200160405290816000820154815250506138ef90919063ffffffff16565b612e70565b9050670de0b6b3a76400008110156135bd578293506135ba81866129d690919063ffffffff16565b94505b505050935093915050565b600061360a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613042565b905092915050565b600042905090565b60008083141561362d5760009050613684565b600082840290508284828161363e57fe5b041461367f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161367690615307565b60405180910390fd5b809150505b92915050565b60006136cc83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614283565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613744576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161373b906154a7565b60405180910390fd5b61375060008383613f2d565b613765816002546129d690919063ffffffff16565b6002819055506137bc816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129d690919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161385c91906154fd565b60405180910390a35050565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3660405160405180910390a250565b6138f761446d565b604051806020016040528061391984866000015161361a90919063ffffffff16565b815250905092915050565b6139a7846323b872dd60e01b85858560405160240161394593929190615094565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614161565b50505050565b6139b561446d565b60405180602001604052806139e9846139db6012600a0a8861361a90919063ffffffff16565b61368a90919063ffffffff16565b815250905092915050565b60006139fe612d3e565b613a26613a21836013604051806020016040529081600082015481525050612e1f565b612e70565b905060008111613a6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a6290615347565b60405180910390fd5b613a7584826136d4565b613a8a82600e546129d690919063ffffffff16565b600e819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f6c86f3fd5118b3aa8bb4f389a617046de0a3d3d477de1a1673d227f802f616dc8484604051613aef929190615541565b60405180910390a3613b46833084601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16613924909392919063ffffffff16565b9392505050565b60008111613b90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b87906151a7565b60405180910390fd5b613b98612ca4565b821015613bda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bd1906152c7565b60405180910390fd5b680a31062beeed700000831115613c26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c1d90615167565b60405180910390fd5b505050565b600081831015613c3b5781613c3d565b825b905092915050565b6000818310613c545781613c56565b825b905092915050565b600080613c69610b97565b915091508015613d3a57601760146000820154816000015560018201548160010155600282015481600201559050507fe58d04c6069251e310ede9daae36efbc408e81b8bebd9915bf5a7e6e7ca95d9860405160405180910390a1600060146000015414613d1c577f2fa40e2e6101b8bae833c4716c3c36b1e15938b1aaa699ec9896bb2d836c9492601460010154601460020154601460000154604051613d139392919061556a565b60405180910390a15b60176000808201600090556001820160009055600282016000905550505b613d4682600d54613c45565b91506000821115613dbf577f01feb0f24c52736758ca404486734e6287175eb5c93aa090f0ab371665231d7282604051613d8091906154fd565b60405180910390a1613d9d82600d546135c890919063ffffffff16565b600d81905550613db882600e546129d690919063ffffffff16565b600e819055505b613dc7612ca4565b600a819055505050565b6000600e5490506000613de2610e67565b9050600860149054906101000a900460ff1615613eae57613eab600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633e3fe7ba6040518163ffffffff1660e01b815260040160206040518083038186803b158015613e6457600080fd5b505afa158015613e78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e9c9190614654565b836129d690919063ffffffff16565b91505b6000811415613ecd576012601360008201548160000155905050613ee7565b613ed782826139ad565b6013600082015181600001559050505b7f15819dd2fd9f6418b142e798d08a18d0bf06ea368f4480b7b0d3f75bd966bc48601360000154600a6012604051613f219392919061556a565b60405180910390a15050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415613f885761415c565b613f90612d3e565b60606040518060600160405280603881526020016157f3603891399050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461408c57600061402e61402961400485613ff68961192c565b6135c890919063ffffffff16565b60136040518060200160405290816000820154815250506138ef90919063ffffffff16565b612e70565b9050670de0b6b3a7640000811015806140475750600081145b8290614089576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016140809190615145565b60405180910390fd5b50505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461415a57670de0b6b3a764000061411461410f6140ea856140dc8861192c565b6129d690919063ffffffff16565b60136040518060200160405290816000820154815250506138ef90919063ffffffff16565b612e70565b10158190614158576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161414f9190615145565b60405180910390fd5b505b505b505050565b60606141c3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166142e49092919063ffffffff16565b905060008151111561422357808060200190518101906141e391906145d9565b614222576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161421990615447565b60405180910390fd5b5b505050565b600061427c60006012600a0a84600001518161424057fe5b061161424d576000614250565b60015b60ff1661426e6012600a0a856000015161368a90919063ffffffff16565b6129d690919063ffffffff16565b9050919050565b600080831182906142ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016142c19190615145565b60405180910390fd5b5060008385816142d657fe5b049050809150509392505050565b60606142f384846000856142fc565b90509392505050565b60606143078561441f565b614346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161433d90615407565b60405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516143709190615062565b60006040518083038185875af1925050503d80600081146143ad576040519150601f19603f3d011682016040523d82523d6000602084013e6143b2565b606091505b509150915081156143c7578092505050614417565b6000815111156143da5780518082602001fd5b836040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161440e9190615145565b60405180910390fd5b949350505050565b600080823b905060008111915050919050565b60405180606001604052806000815260200160008152602001600081525090565b604051806040016040528060008152602001600081525090565b6040518060200160405280600081525090565b60008135905061448f81615726565b92915050565b6000815190506144a48161573d565b92915050565b6000813590506144b981615754565b92915050565b6000813590506144ce8161576b565b92915050565b6000815190506144e38161576b565b92915050565b6000602082840312156144fb57600080fd5b600061450984828501614480565b91505092915050565b6000806040838503121561452557600080fd5b600061453385828601614480565b925050602061454485828601614480565b9150509250929050565b60008060006060848603121561456357600080fd5b600061457186828701614480565b935050602061458286828701614480565b9250506040614593868287016144bf565b9150509250925092565b600080604083850312156145b057600080fd5b60006145be85828601614480565b92505060206145cf858286016144bf565b9150509250929050565b6000602082840312156145eb57600080fd5b60006145f984828501614495565b91505092915050565b60006020828403121561461457600080fd5b6000614622848285016144aa565b91505092915050565b60006020828403121561463d57600080fd5b600061464b848285016144bf565b91505092915050565b60006020828403121561466657600080fd5b6000614674848285016144d4565b91505092915050565b6000806040838503121561469057600080fd5b600061469e858286016144d4565b92505060206146af858286016144d4565b9150509250929050565b6000806000606084860312156146ce57600080fd5b60006146dc868287016144bf565b93505060206146ed868287016144bf565b92505060406146fe868287016144bf565b9150509250925092565b61471181615633565b82525050565b61472081615645565b82525050565b600061473182615601565b61473b8185615617565b935061474b8185602086016156e2565b80840191505092915050565b6147608161569a565b82525050565b61476f816156be565b82525050565b60006147808261560c565b61478a8185615622565b935061479a8185602086016156e2565b6147a381615715565b840191505092915050565b60006147bb601983615622565b91507f50657220626c6f636b20726577617264206f766572666c6f77000000000000006000830152602082019050919050565b60006147fb602383615622565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614861601083615622565b91507f4475726174696f6e206973207a65726f000000000000000000000000000000006000830152602082019050919050565b60006148a1603783615622565b91507f526573756c74696e67207374616b652062616c616e6365206c6573732074686160008301527f6e206d696e696d616c207374616b652062616c616e63650000000000000000006020830152604082019050919050565b6000614907602283615622565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061496d601c83615622565b91507f4d69677261746f7220616c726561647920696e697469616c697a6564000000006000830152602082019050919050565b60006149ad601b83615622565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b60006149ed601883615622565b91507f416c6c6f776564206f6e6c79206279206d69677261746f7200000000000000006000830152602082019050919050565b6000614a2d600c83615622565b91507f4e6f7420756e7374616b656400000000000000000000000000000000000000006000830152602082019050919050565b6000614a6d600783615622565b91507f4e6f2066656573000000000000000000000000000000000000000000000000006000830152602082019050919050565b6000614aad601683615622565b91507f416d6f756e74206973206e6f7420706f736974697665000000000000000000006000830152602082019050919050565b6000614aed602483615622565b91507f537461727420626c6f636b206e756d626572206c657373207468656e2063757260008301527f72656e74000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b53601883615622565b91507f4d69677261746f72206e6f7420696e697469616c697a656400000000000000006000830152602082019050919050565b6000614b93602183615622565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614bf9600f83615622565b91507f4e6f742072656c656173656420617400000000000000000000000000000000006000830152602082019050919050565b6000614c39601883615622565b91507f546f6f20736d616c6c207374616b696e6720616d6f756e7400000000000000006000830152602082019050919050565b6000614c79602083615622565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614cb9601a83615622565b91507f4e6f74206e6f6d696e6174656420746f206f776e6572736869700000000000006000830152602082019050919050565b6000614cf9602183615622565b91507f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d5f602583615622565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614dc5602483615622565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e2b601d83615622565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b6000614e6b601b83615622565b91507f4e6f7420656e6f75676820756e7374616b65642062616c616e636500000000006000830152602082019050919050565b6000614eab602a83615622565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b6000614f11601b83615622565b91507f4e6f7420656e6f7567682073796e74686574696320746f6b656e7300000000006000830152602082019050919050565b6000614f51601a83615622565b91507f546f6f20736d616c6c20756e7374616b696e6720616d6f756e740000000000006000830152602082019050919050565b6000614f91601f83615622565b91507f45524332303a206d696e7420746f20746865207a65726f2061646472657373006000830152602082019050919050565b606082016000820151614fda6000850182615035565b506020820151614fed6020850182615035565b5060408201516150006040850182615035565b50505050565b60408201600082015161501c6000850182615035565b50602082015161502f6020850182615035565b50505050565b61503e81615683565b82525050565b61504d81615683565b82525050565b61505c8161568d565b82525050565b600061506e8284614726565b915081905092915050565b600060208201905061508e6000830184614708565b92915050565b60006060820190506150a96000830186614708565b6150b66020830185614708565b6150c36040830184615044565b949350505050565b60006040820190506150e06000830185614708565b6150ed6020830184615044565b9392505050565b60006020820190506151096000830184614717565b92915050565b60006020820190506151246000830184614757565b92915050565b600060208201905061513f6000830184614766565b92915050565b6000602082019050818103600083015261515f8184614775565b905092915050565b60006020820190508181036000830152615180816147ae565b9050919050565b600060208201905081810360008301526151a0816147ee565b9050919050565b600060208201905081810360008301526151c081614854565b9050919050565b600060208201905081810360008301526151e081614894565b9050919050565b60006020820190508181036000830152615200816148fa565b9050919050565b6000602082019050818103600083015261522081614960565b9050919050565b60006020820190508181036000830152615240816149a0565b9050919050565b60006020820190508181036000830152615260816149e0565b9050919050565b6000602082019050818103600083015261528081614a20565b9050919050565b600060208201905081810360008301526152a081614a60565b9050919050565b600060208201905081810360008301526152c081614aa0565b9050919050565b600060208201905081810360008301526152e081614ae0565b9050919050565b6000602082019050818103600083015261530081614b46565b9050919050565b6000602082019050818103600083015261532081614b86565b9050919050565b6000602082019050818103600083015261534081614bec565b9050919050565b6000602082019050818103600083015261536081614c2c565b9050919050565b6000602082019050818103600083015261538081614c6c565b9050919050565b600060208201905081810360008301526153a081614cac565b9050919050565b600060208201905081810360008301526153c081614cec565b9050919050565b600060208201905081810360008301526153e081614d52565b9050919050565b6000602082019050818103600083015261540081614db8565b9050919050565b6000602082019050818103600083015261542081614e1e565b9050919050565b6000602082019050818103600083015261544081614e5e565b9050919050565b6000602082019050818103600083015261546081614e9e565b9050919050565b6000602082019050818103600083015261548081614f04565b9050919050565b600060208201905081810360008301526154a081614f44565b9050919050565b600060208201905081810360008301526154c081614f84565b9050919050565b60006060820190506154dc6000830184614fc4565b92915050565b60006040820190506154f76000830184615006565b92915050565b60006020820190506155126000830184615044565b92915050565b600060408201905061552d6000830185615044565b61553a6020830184614717565b9392505050565b60006040820190506155566000830185615044565b6155636020830184615044565b9392505050565b600060608201905061557f6000830186615044565b61558c6020830185615044565b6155996040830184615044565b949350505050565b60006080820190506155b66000830187615044565b6155c36020830186615044565b6155d06040830185615044565b6155dd6060830184615044565b95945050505050565b60006020820190506155fb6000830184615053565b92915050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b600061563e82615663565b9050919050565b60008115159050919050565b600061565c82615633565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006156a5826156ac565b9050919050565b60006156b782615663565b9050919050565b60006156c9826156d0565b9050919050565b60006156db82615663565b9050919050565b60005b838110156157005780820151818401526020810190506156e5565b8381111561570f576000848401525b50505050565b6000601f19601f8301169050919050565b61572f81615633565b811461573a57600080fd5b50565b61574681615645565b811461575157600080fd5b50565b61575d81615651565b811461576857600080fd5b50565b61577481615683565b811461577f57600080fd5b5056fe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654d696e696d616c207374616b652062616c616e63652073686f756c64206265206d6f7265206f7220657175616c20746f203120746f6b656e45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220cad946cbbbcf91d8d13391f9f95875337e039225e7199db8f9e685550617828b64736f6c634300060c0033

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

000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000007eaf9c89037e4814dc0d9952ac7f888c784548db000000000000000000000000d4eee3d50588d7dee8dcc42635e50093e0aa8cc0000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000002c68af0bb1400000000000000000000000000000000000000000000000000000000000000b251d200000000000000000000000000000000000000000000000000000000000bb8000000000000000000000000000000000000000000000000000000000000097e00000000000000000000000000000000000000000000000000000000e8d4a51000000000000000000000000000000000000000000000000000000000000000000b5374616b656420524f5941000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000573524f5941000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : syntheticTokenName (string): Staked ROYA
Arg [1] : syntheticTokenSymbol (string): sROYA
Arg [2] : stakingToken_ (address): 0x7eaF9C89037e4814DC0d9952Ac7F888C784548DB
Arg [3] : owner_ (address): 0xd4eeE3D50588D7dee8Dcc42635E50093E0AA8Cc0
Arg [4] : claimingFeePercent_ (uint256): 7
Arg [5] : perBlockReward_ (uint256): 200000000000000000
Arg [6] : startBlockNumber_ (uint256): 11686354
Arg [7] : duration_ (uint256): 768000
Arg [8] : unstakingTime_ (uint256): 622080
Arg [9] : defaultPriceMantissa (uint256): 1000000000000

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [2] : 0000000000000000000000007eaf9c89037e4814dc0d9952ac7f888c784548db
Arg [3] : 000000000000000000000000d4eee3d50588d7dee8dcc42635e50093e0aa8cc0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [5] : 00000000000000000000000000000000000000000000000002c68af0bb140000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000b251d2
Arg [7] : 00000000000000000000000000000000000000000000000000000000000bb800
Arg [8] : 0000000000000000000000000000000000000000000000000000000000097e00
Arg [9] : 000000000000000000000000000000000000000000000000000000e8d4a51000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [11] : 5374616b656420524f5941000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [13] : 73524f5941000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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