Contract 0xf25897a7edf1dfa9c65f5db7ec4bad868873805b 2

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash
Block
From
To
Value [Txn Fee]
0xe7157d319b509592fbc593ff1ac0eeaef98104d0c491bb6e87f537cf64637cc696104732021-07-30 19:37:251 hr 55 mins ago0xd57de9d5e4dfdb188e620733582c6e41de71db77 IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000469155
0x08c0ff5189014a5b457788e97136d40bafd83d231100b4f21f7978b05de11a8a96104092021-07-30 19:34:131 hr 58 mins ago0xd57de9d5e4dfdb188e620733582c6e41de71db77 IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000259885
0x58e34ef947d3aad1fdc5750e2f911dd448ef56935347bf2d03d9072355d80a9b96072832021-07-30 16:55:274 hrs 37 mins ago0xc5d94ec588719ec7842760bd0ee59c4ae28eda68 IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000184825
0xb94779d297b145d452837e1cab1ca106ac0dbde1da7f7ff9d153cf878ea50e3696064002021-07-30 16:11:185 hrs 21 mins ago0x79d5072c72c3d610894de1274849f1b50438721c IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000469095
0xbc5114b86d94571e297a47a61d629efaa94f8196feca481c0c24653923baf7e996063602021-07-30 16:09:185 hrs 23 mins ago0x789a088044108b3815b57d2f1e676177b58e1971 IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.00057825
0x5a57646beb89807b55b942be575f469541598ea34631f9e1e9277eef833fbc3b96062822021-07-30 16:05:215 hrs 27 mins ago0x79d5072c72c3d610894de1274849f1b50438721c IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.00044925
0x49476f5b8752f91898211265207c567239edad82f4d7ab693be6e94f7f14432096062642021-07-30 16:04:215 hrs 28 mins ago0x79d5072c72c3d610894de1274849f1b50438721c IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000184885
0xf013d05f865857cfb6f321b220bd6f884af9c84d5e9a0de6b880b94c82b4213d96021482021-07-30 12:31:289 hrs 1 min ago0xfb953d5c69bb04461b74e13655072eae8fb384da IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000259885
0x2762cf9c5641fb75086f6b8c6dfddf3fd151c155243cb5ab00ce0e345906367196008222021-07-30 11:22:0210 hrs 10 mins ago0x5f82ab3e4f009835499dc1128c2a253c41c62629 IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.00057831
0xb39fc6710166b99c29add6d068980982b1f1ea5c82b4128f314e71cf57359d7b96004962021-07-30 11:05:4410 hrs 27 mins ago0x367b2aa2d201a3a4ea7cfc22eaf0d9ff67d43ff1 IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000184885
0x9a14cd21af7cba534c6eaaf5cd87c9932dc30357750d47ef731ddf74be4efe5396002502021-07-30 10:53:2610 hrs 39 mins ago0x965f8da9fb8d3d8ca42b6d51b4b144e13878e6cf IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000480075
0x31cee70c3a8b848d254a26de4a45e2040473f56cdd0d89b0da81d71812f2a31195984152021-07-30 9:19:2912 hrs 13 mins ago0x5387c75f3b46434a669a3e856c470e5a899aec8c IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000693972
0x32617829be9b6e77b1ab11d941ccfa3bc0246d50f9f649787d1e76501dc5a70995947992021-07-30 6:15:5515 hrs 17 mins ago0xe2032b701898ae4c1bf92db33c61431e7260bf7a IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000469095
0x79b8771e775678c89fc68229accd7ed885b80c417522adc337252f39f289231795943872021-07-30 5:55:1915 hrs 37 mins ago0xfb86222ec2cd4ee9dc1227f1a62887e72d6366bb IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000184885
0x5f5bbde2a78524de3dc8d1433acba3563dd7f7d40e1c93c5d3e6cfb9a7ad1f6a95902832021-07-30 2:24:5519 hrs 8 mins ago0x6ded24cc7bd97baa7174214622cd45a23c20bc8a IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000184885
0x5ad24376f4d25bb964f2bfcdcbc17e4d2ba03b7ebb426fb2d28a3f221ddbdc4a95899872021-07-30 2:10:0119 hrs 22 mins ago0x6bc1a1a6a7976ed7c6584300f504423139da9015 IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000459015
0x037c8c5c6e29089961a5af8151149bf4389f9f88d29d018996958e2a354dbe5d95894052021-07-30 1:40:4719 hrs 52 mins ago0x385c7552ee9b875aa944c4a57e736b5e8e36d401 IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000259885
0xa4483ba88db2b1a0e252112d646015d10d09588cd7df03af6097990193058c1a95892732021-07-30 1:34:1119 hrs 58 mins ago0xe80f85fc3d63bf80d8d45c0b3ce84005571972de IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000259885
0x36f108a122ecfc89fa2e3c54214aa58b3b5a5f07b453207a88b6512906444e1395881472021-07-30 0:36:4120 hrs 56 mins ago0x8b3f14f0582fbf275be87d265c931b4dfd5f13b7 IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000384075
0x3b414bedc0a51a7a95817ff428ffb368ed5e2b677a3c1aaf9d0caf911f7ffb3395866502021-07-29 23:17:5722 hrs 14 mins ago0xfb364c9ba27f3df5eb610c2ec8c7cceb2c552a8c IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000259885
0x8ee40d72892ba8a26e462d58dcc0d18d5ab461eba7dbd753fe2461b6a7af3d2f95851982021-07-29 22:01:0323 hrs 31 mins ago0x18371843bad03a44966e28b572ec228d5270e610 IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.00037425
0x91e8c59fa2a3b509bbcef365142485c7714cade2045a845d989862dc7622e30d95832932021-07-29 20:24:341 day 1 hr ago0xa5efc78cefccebf58e611cc5eb49ad4371f5e4b0 IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.00037425
0x7c0c4532fe792e0c7e66eef3a60d3713299dcd97e9b740d546ba0cf9ae8560b495802762021-07-29 17:44:121 day 3 hrs ago0x489c4943b0a45bf83bd894d5eff2e45e5aa0cc41 IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000184921977
0xf47a08d27f7ba02ba3de8796d79e10404739998266e74dbdb1b9cd8dbf4d1f6995802092021-07-29 17:40:511 day 3 hrs ago0x1bd891f238a2ade6283f1a3a3688c32d4ab8c25b IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000259936977
0x3303ddc7aaefcb52359f48c499943806ba48cbe9edaa9dd712fefde41aa9c66295799902021-07-29 17:29:411 day 4 hrs ago0x7144ec920432b386a7fb3b6f381e9e20f9c2b795 IN  0xf25897a7edf1dfa9c65f5db7ec4bad868873805b0 BNB0.000259876965
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UniStakingSyntheticToken

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
constantinople EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : AttoDecimal.sol
// SPDX-License-Identifier: UNLICENSED
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;

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

    function add(AttoDecimal memory a, uint256 b) internal pure returns (AttoDecimal memory) {
        return  AttoDecimal({mantissa: a.mantissa.add(b.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, 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(AttoDecimal memory a, uint256 b) internal pure returns (AttoDecimal memory) {
        return AttoDecimal({mantissa: a.mantissa.div(b)});
    }

    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 idiv(uint256 a, AttoDecimal memory b) internal pure returns (uint256) {
        return a.mul(ONE_MANTISSA).div(b.mantissa);
    }

    function idivCeil(uint256 a, AttoDecimal memory b) internal pure returns (uint256) {
        uint256 dividend = a.mul(ONE_MANTISSA);
        bool addOne = dividend.mod(b.mantissa) > 0;
        return dividend.div(b.mantissa).add(addOne ? 1 : 0);
    }

    function ceil(AttoDecimal memory a) internal pure returns (uint256) {
        uint256 integer = floor(a);
        uint256 modulo = a.mantissa.mod(ONE_MANTISSA);
        return integer.add(modulo >= ONE_MANTISSA.div(2) ? 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 2 of 10 : TwoStageOwnable.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.12;

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

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

    constructor(address _owner) internal {
        require(_owner != address(0), "Owner address cannot be 0");
        owner = _owner;
        emit OwnerChanged(_owner);
    }

    function acceptOwnership() external {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        owner = nominatedOwner;
        nominatedOwner = address(0);
        emit OwnerChanged(owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    modifier onlyOwner {
        require(msg.sender == owner, "Only the contract owner may perform this action");
        _;
    }
}

File 3 of 10 : UniStaking.sol
// SPDX-License-Identifier: UNLICENSED
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/IERC20.sol";
import "./AttoDecimal.sol";
import "./TwoStageOwnable.sol";
import "./UniStakingTokensStorage.sol";

contract UniStaking is TwoStageOwnable, UniStakingTokensStorage {
    using SafeMath for uint256;
    using AttoDecimalLib for AttoDecimal;

    struct PaidRate {
        AttoDecimal rate;
        bool active;
    }

    struct Interval {
        uint256 startBlockNumber;
        uint256 taxPercent;
    }

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

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

    uint256 public constant SECONDS_PER_BLOCK = 3;
    uint256 public constant BLOCKS_PER_DAY = 1 days / SECONDS_PER_BLOCK;
    uint256 public constant MAX_DISTRIBUTION_DURATION = 90 * BLOCKS_PER_DAY;

    mapping(address => uint256) public rewardUnlockingTime;
    Interval[] public intervals;

    uint256 private _lastUpdateBlockNumber;
    uint256 private _perBlockReward;
    uint256 private _blockNumberOfDistributionEnding;
    uint256 private _initialStrategyStartBlockNumber;
    uint256 private _rewardUnlockingTime;
    AttoDecimal private _initialStrategyRewardPerToken;
    AttoDecimal private _rewardPerToken;
    mapping(address => PaidRate) private _paidRates;

    function getRewardUnlockingTime() public view returns (uint256) {
        return _rewardUnlockingTime;
    }

    function lastUpdateBlockNumber() public view returns (uint256) {
        return _lastUpdateBlockNumber;
    }

    function perBlockReward() public view returns (uint256) {
        return _perBlockReward;
    }

    function blockNumberOfDistributionEnding() public view returns (uint256) {
        return _blockNumberOfDistributionEnding;
    }

    function initialStrategyStartBlockNumber() public view returns (uint256) {
        return _initialStrategyStartBlockNumber;
    }

    function allIntervals() public view returns (Interval[] memory) {
        return intervals;
    }

    function intervalsCount() public view returns (uint256) {
        return intervals.length;
    }

    function getRewardPerToken() internal view returns (AttoDecimal memory) {
        uint256 lastRewardBlockNumber = Math.min(getBlockNumber(), _blockNumberOfDistributionEnding.add(1));
        if (lastRewardBlockNumber <= _lastUpdateBlockNumber) return _rewardPerToken;
        return _getRewardPerToken(lastRewardBlockNumber);
    }

    function _getRewardPerToken(uint256 forBlockNumber) internal view returns (AttoDecimal memory) {
        if (_initialStrategyStartBlockNumber >= forBlockNumber) return AttoDecimal(0);
        uint256 totalSupply_ = totalSupply();
        if (totalSupply_ == 0) return AttoDecimalLib.convert(0);
        uint256 totalReward = forBlockNumber
            .sub(Math.max(_lastUpdateBlockNumber, _initialStrategyStartBlockNumber))
            .mul(_perBlockReward);
        AttoDecimal memory newRewardPerToken = AttoDecimalLib.div(totalReward, totalSupply_);
        return _rewardPerToken.add(newRewardPerToken);
    }

    function rewardPerToken()
        external
        view
        returns (
            uint256 mantissa,
            uint256 base,
            uint256 exponentiation
        )
    {
        return (getRewardPerToken().mantissa, AttoDecimalLib.BASE, AttoDecimalLib.EXPONENTIATION);
    }

    function paidRateOf(address account)
        external
        view
        returns (
            uint256 mantissa,
            uint256 base,
            uint256 exponentiation
        )
    {
        return (_paidRates[account].rate.mantissa, AttoDecimalLib.BASE, AttoDecimalLib.EXPONENTIATION);
    }

    function earnedOf(address account) public view returns (uint256) {
        uint256 currentBlockNumber = getBlockNumber();
        PaidRate memory userRate = _paidRates[account];
        if (currentBlockNumber <= _initialStrategyStartBlockNumber || !userRate.active) return 0;
        AttoDecimal memory rewardPerToken_ = getRewardPerToken();
        AttoDecimal memory initRewardPerToken = _initialStrategyRewardPerToken.mantissa > 0
            ? _initialStrategyRewardPerToken
            : _getRewardPerToken(_initialStrategyStartBlockNumber.add(1));
        AttoDecimal memory rate = userRate.rate.lte((initRewardPerToken)) ? initRewardPerToken : userRate.rate;
        uint256 balance = balanceOf(account);
        if (balance == 0) return 0;
        if (rewardPerToken_.lte(rate)) return 0;
        AttoDecimal memory ratesDiff = rewardPerToken_.sub(rate);
        return ratesDiff.mul(balance).floor();
    }

    event RewardStrategyChanged(uint256 perBlockReward, uint256 duration);
    event InitialRewardStrategySetted(uint256 startBlockNumber, uint256 perBlockReward, uint256 duration);
    event Staked(address indexed account, uint256 amount);
    event Unstaked(address indexed account, uint256 amount, uint256 unstakedAmount, uint256 feeAmount);
    event Claimed(address indexed account, uint256 amount, uint256 rewardUnlockingTime);
    event Withdrawed(address indexed account, uint256 amount);

    constructor(
        IERC20 rewardsToken_,
        IERC20 stakingToken_,
        address owner_,
        uint256 rewardUnlockingTime_,
        Interval[] memory intervals_
    ) public TwoStageOwnable(owner_) UniStakingTokensStorage(rewardsToken_, stakingToken_) {
        _rewardUnlockingTime = rewardUnlockingTime_;
        _validateAndSaveIntervals(intervals_);
    }

    function stake(uint256 amount) public onlyPositiveAmount(amount) {
        address sender = msg.sender;
        _lockRewards(sender);
        _stake(sender, amount);
        emit Staked(sender, amount);
    }

    function unstake(uint256 amount, uint256 intervalNumber) public onlyPositiveAmount(amount) {
        require(_initialStrategyStartBlockNumber > 0, "Set initial reward strategy first");
        string memory intervalNumberError = "Invalid intervalNumber";
        uint256 currentBlockNumber = getBlockNumber();
        uint256 intervalsCount_ = intervals.length;
        address sender = msg.sender;
        require(intervalNumber > 0 && intervalNumber <= intervalsCount_, intervalNumberError);
        Interval memory currentInterval = intervals[intervalNumber.sub(1)];
        uint256 feeAmount = amount.mul(currentInterval.taxPercent).div(100);
        if (feeAmount == 0 && currentInterval.taxPercent > 0) feeAmount = 1;
        uint256 unstakeAmount = amount.sub(feeAmount);
        bool intervalStarted = currentBlockNumber >= currentInterval.startBlockNumber;
        bool intervalNotFinished = intervalNumber < intervalsCount_
            ? currentBlockNumber < intervals[intervalNumber].startBlockNumber
            : true;
        require(intervalStarted && intervalNotFinished, intervalNumberError);
        require(amount <= balanceOf(sender), "Unstaking amount exceeds staked balance");
        _lockRewards(sender);
        _unstake(sender, amount, unstakeAmount);
        emit Unstaked(sender, amount, unstakeAmount, feeAmount);
    }

    function claim(uint256 amount) public onlyPositiveAmount(amount) {
        address sender = msg.sender;
        _lockRewards(sender);
        require(amount <= rewardOf(sender), "Claiming amount exceeds received rewards");
        uint256 rewardUnlockingTime_ = getTimestamp().add(getRewardUnlockingTime());
        rewardUnlockingTime[sender] = rewardUnlockingTime_;
        _claim(sender, amount);
        emit Claimed(sender, amount, rewardUnlockingTime_);
    }

    function withdraw(uint256 amount) public onlyPositiveAmount(amount) {
        address sender = msg.sender;
        require(getTimestamp() >= rewardUnlockingTime[sender], "Reward not unlocked yet");
        require(amount <= claimedOf(sender), "Withdrawing amount exceeds claimed balance");
        _withdraw(sender, amount);
        emit Withdrawed(sender, amount);
    }

    function withdrawFees(
        uint256 amount
    ) public onlyOwner onlyPositiveAmount(amount) returns (bool succeed) {
        require(amount <= feePool(), "Not enough fee pool amount");
        _withdrawFeePool(owner, amount);
        return true;
    }

    function setInitialRewardStrategy(
        uint256 startBlockNumber,
        uint256 perBlockReward_,
        uint256 duration
    ) public onlyOwner returns (bool succeed) {
        uint256 currentBlockNumber = getBlockNumber();
        require(_initialStrategyStartBlockNumber == 0, "Initial reward strategy already setted");
        require(
            currentBlockNumber < startBlockNumber,
            "Initial reward strategy start block number less than current"
        );
        require(
            intervals[0].startBlockNumber <= startBlockNumber,
            "Initial reward strategy start block number less than first interval start"
        );
        _initialStrategyStartBlockNumber = startBlockNumber;
        _setRewardStrategy(currentBlockNumber, startBlockNumber, perBlockReward_, duration);
        emit InitialRewardStrategySetted(startBlockNumber, perBlockReward_, duration);
        return true;
    }

    function setRewardStrategy(uint256 perBlockReward_, uint256 duration) public onlyOwner returns (bool succeed) {
        uint256 currentBlockNumber = getBlockNumber();
        require(_initialStrategyStartBlockNumber > 0, "Set initial reward strategy first");
        require(currentBlockNumber >= _initialStrategyStartBlockNumber, "Wait for initial reward strategy start");
        _setRewardStrategy(currentBlockNumber, currentBlockNumber, perBlockReward_, duration);
        emit RewardStrategyChanged(perBlockReward_, duration);
        return true;
    }

    function lockRewards() public {
        _lockRewards(msg.sender);
    }

    function _moveStake(
        address from,
        address to,
        uint256 amount
    ) internal {
        _lockRewards(from);
        _lockRewards(to);
        _transferBalance(from, to, amount);
    }

    function _lockRatesForBlock(uint256 blockNumber) private {
        _rewardPerToken = _getRewardPerToken(blockNumber);
        _lastUpdateBlockNumber = blockNumber;
    }

    function _lockRates(uint256 blockNumber) private {
        uint256 totalSupply_ = totalSupply();
        if (_initialStrategyStartBlockNumber <= blockNumber && _initialStrategyRewardPerToken.mantissa == 0 && totalSupply_ > 0)
            _initialStrategyRewardPerToken = AttoDecimalLib.div(_perBlockReward, totalSupply_);
        if (_perBlockReward > 0 && blockNumber >= _blockNumberOfDistributionEnding) {
            _lockRatesForBlock(_blockNumberOfDistributionEnding);
            _perBlockReward = 0;
        }
        _lockRatesForBlock(blockNumber);
    }

    function _lockRewards(address account) private {
        uint256 currentBlockNumber = getBlockNumber();
        _lockRates(currentBlockNumber);
        uint256 earned = earnedOf(account);
        if (earned > 0) _addReward(account, earned);
        _paidRates[account].rate = _rewardPerToken;
        _paidRates[account].active = true;
    }

    function _setRewardStrategy(
        uint256 currentBlockNumber,
        uint256 startBlockNumber,
        uint256 perBlockReward_,
        uint256 duration
    ) private {
        require(duration > 0, "Duration is zero");
        require(duration <= MAX_DISTRIBUTION_DURATION, "Distribution duration too long");
        _lockRates(currentBlockNumber);
        uint256 nextDistributionRequiredPool = perBlockReward_.mul(duration);
        uint256 notDistributedReward = _blockNumberOfDistributionEnding <= currentBlockNumber
            ? 0
            : _blockNumberOfDistributionEnding.sub(currentBlockNumber).mul(_perBlockReward);
        if (nextDistributionRequiredPool > notDistributedReward) {
            _increaseRewardPool(owner, nextDistributionRequiredPool.sub(notDistributedReward));
        } else if (nextDistributionRequiredPool < notDistributedReward) {
            _reduceRewardPool(owner, notDistributedReward.sub(nextDistributionRequiredPool));
        }
        _perBlockReward = perBlockReward_;
        _blockNumberOfDistributionEnding = startBlockNumber.add(duration);
    }

    function _validateAndSaveIntervals(Interval[] memory intervals_) private {
        uint256 intervalsCount_ = intervals_.length;
        uint256 currentBlockNumber = getBlockNumber();
        for (uint256 iterator = 0; iterator < intervalsCount_; iterator++) {
            Interval memory currentInterval = intervals_[iterator];
            require(
                currentInterval.taxPercent <= 100,
                "taxPercent value must be in range[0, 100]"
            );
            require(
                currentInterval.startBlockNumber >= currentBlockNumber,
                "startBlockNumber value must be greater or equal than current block number"
            );
            if (iterator > 0) {
                require(
                    intervals_[iterator.sub(1)].startBlockNumber < currentInterval.startBlockNumber,
                    "next interval startBlockNumber value must be more than previous"
                );
            }
            intervals.push(currentInterval);
        }
    }

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

File 4 of 10 : UniStakingSyntheticToken.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;

import "./UniStaking.sol";

contract UniStakingSyntheticToken is UniStaking {
    uint256 public decimals;
    string public name;
    string public symbol;
    mapping(address => mapping(address => uint256)) internal _allowances;

    function allowance(address owner, address spender) external view returns (uint256) {
        return _allowances[owner][spender];
    }

    event Approval(address indexed owner, address indexed spender, uint256 value);
    event Transfer(address indexed from, address indexed to, uint256 value);

    constructor(
        string memory name_,
        string memory symbol_,
        uint256 decimals_,
        IERC20 rewardsToken_,
        IERC20 stakingToken_,
        address owner_,
        uint256 rewardUnlockingTime_,
        Interval[] memory intervals_
    ) public UniStaking(rewardsToken_, stakingToken_, owner_, rewardUnlockingTime_, intervals_) {
        name = name_;
        symbol = symbol_;
        decimals = decimals_;
    }

    function _onMint(address account, uint256 amount) internal override {
        emit Transfer(address(0), account, amount);
    }

    function _onBurn(address account, uint256 amount) internal override {
        emit Transfer(account, address(0), amount);
    }

    function transfer(address recipient, uint256 amount) external onlyPositiveAmount(amount) returns (bool) {
        require(balanceOf(msg.sender) >= amount, "Transfer amount exceeds balance");
        _transfer(msg.sender, recipient, amount);
        return true;
    }

    function approve(address spender, uint256 amount) external returns (bool) {
        _allowances[msg.sender][spender] = amount;
        emit Approval(msg.sender, spender, amount);
        return true;
    }

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external onlyPositiveAmount(amount) returns (bool) {
        require(_allowances[sender][msg.sender] >= amount, "Transfer amount exceeds allowance");
        require(balanceOf(sender) >= amount, "Transfer amount exceeds balance");
        _transfer(sender, recipient, amount);
        _allowances[sender][msg.sender] = _allowances[sender][msg.sender].sub(amount);
        return true;
    }

    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal {
        _moveStake(sender, recipient, amount);
        emit Transfer(sender, recipient, amount);
    }
}

File 5 of 10 : UniStakingTokensStorage.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.12;

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

abstract contract UniStakingTokensStorage {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    uint256 private _feePool;
    uint256 private _rewardPool;
    uint256 private _rewardSupply;
    uint256 private _totalSupply;
    IERC20 private _rewardsToken;
    IERC20 private _stakingToken;
    mapping(address => uint256) private _balances;
    mapping(address => uint256) private _claimed;
    mapping(address => uint256) private _rewards;

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

    function rewardPool() public view returns (uint256) {
        return _rewardPool;
    }

    function rewardSupply() public view returns (uint256) {
        return _rewardSupply;
    }

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

    function rewardsToken() public view returns (IERC20) {
        return _rewardsToken;
    }

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

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

    function claimedOf(address account) public view returns (uint256) {
        return _claimed[account];
    }

    function rewardOf(address account) public view returns (uint256) {
        return _rewards[account];
    }

    constructor(IERC20 rewardsToken_, IERC20 stakingToken_) public {
        _rewardsToken = rewardsToken_;
        _stakingToken = stakingToken_;
    }

    function _onMint(address account, uint256 amount) internal virtual {}
    function _onBurn(address account, uint256 amount) internal virtual {}

    function _stake(address account, uint256 amount) internal {
        _stakingToken.safeTransferFrom(account, address(this), amount);
        _balances[account] = _balances[account].add(amount);
        _totalSupply = _totalSupply.add(amount);
        _onMint(account, amount);
    }

    function _unstake(address account, uint256 amount, uint256 unstakeAmount) internal {
        _stakingToken.safeTransfer(account, unstakeAmount);
        _balances[account] = _balances[account].sub(amount);
        _totalSupply = _totalSupply.sub(amount);
        _feePool = _feePool.add(amount.sub(unstakeAmount));
        _onBurn(account, amount);
    }

    function _withdrawFeePool(address account, uint256 amount) internal {
        _stakingToken.safeTransfer(account, amount);
        _feePool = _feePool.sub(amount);
    }

    function _increaseRewardPool(address owner, uint256 amount) internal {
        _rewardsToken.safeTransferFrom(owner, address(this), amount);
        _rewardSupply = _rewardSupply.add(amount);
        _rewardPool = _rewardPool.add(amount);
    }

    function _reduceRewardPool(address owner, uint256 amount) internal {
        _rewardsToken.safeTransfer(owner, amount);
        _rewardSupply = _rewardSupply.sub(amount);
        _rewardPool = _rewardPool.sub(amount);
    }

    function _addReward(address account, uint256 amount) internal {
        _rewards[account] = _rewards[account].add(amount);
        _rewardPool = _rewardPool.sub(amount);
    }

    function _withdraw(address account, uint256 amount) internal {
        _rewardsToken.safeTransfer(account, amount);
        _claimed[account] = _claimed[account].sub(amount);
    }

    function _claim(address account, uint256 amount) internal {
        _rewards[account] = _rewards[account].sub(amount);
        _rewardSupply = _rewardSupply.sub(amount);
        _claimed[account] = _claimed[account].add(amount);
    }

    function _transferBalance(
        address from,
        address to,
        uint256 amount
    ) internal {
        _balances[from] = _balances[from].sub(amount);
        _balances[to] = _balances[to].add(amount);
    }
}

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

pragma solidity >=0.6.0 <0.8.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 10 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

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

File 8 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity >=0.6.0 <0.8.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 10 of 10 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // 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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

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

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"decimals_","type":"uint256"},{"internalType":"contract IERC20","name":"rewardsToken_","type":"address"},{"internalType":"contract IERC20","name":"stakingToken_","type":"address"},{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"rewardUnlockingTime_","type":"uint256"},{"components":[{"internalType":"uint256","name":"startBlockNumber","type":"uint256"},{"internalType":"uint256","name":"taxPercent","type":"uint256"}],"internalType":"struct UniStaking.Interval[]","name":"intervals_","type":"tuple[]"}],"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":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewardUnlockingTime","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startBlockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"perBlockReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"InitialRewardStrategySetted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"nominatedOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"perBlockReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"}],"name":"RewardStrategyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","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":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unstakedAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeAmount","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":"Withdrawed","type":"event"},{"inputs":[],"name":"BLOCKS_PER_DAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_DISTRIBUTION_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SECONDS_PER_BLOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allIntervals","outputs":[{"components":[{"internalType":"uint256","name":"startBlockNumber","type":"uint256"},{"internalType":"uint256","name":"taxPercent","type":"uint256"}],"internalType":"struct UniStaking.Interval[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockNumberOfDistributionEnding","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"claimedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earnedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardUnlockingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialStrategyStartBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"intervals","outputs":[{"internalType":"uint256","name":"startBlockNumber","type":"uint256"},{"internalType":"uint256","name":"taxPercent","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"intervalsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"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":[{"internalType":"address","name":"account","type":"address"}],"name":"paidRateOf","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":"perBlockReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"rewardOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerToken","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":"rewardPool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardUnlockingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startBlockNumber","type":"uint256"},{"internalType":"uint256","name":"perBlockReward_","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"setInitialRewardStrategy","outputs":[{"internalType":"bool","name":"succeed","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"perBlockReward_","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"setRewardStrategy","outputs":[{"internalType":"bool","name":"succeed","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"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":"totalSupply","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"},{"internalType":"uint256","name":"intervalNumber","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawFees","outputs":[{"internalType":"bool","name":"succeed","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200536d3803806200536d83398181016040528101906200003791906200066a565b8484848484848484600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620000b2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000a99062000a10565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf36816040516200012491906200096b565b60405180910390a15081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505081601181905550620001c9816200021560201b60201c565b50505050508760169080519060200190620001e692919062000429565b508660179080519060200190620001ff92919062000429565b5085601581905550505050505050505062000b9d565b60008151905060006200022d620003ce60201b60201c565b905060005b82811015620003c85762000245620004b0565b8482815181106200025257fe5b60200260200101519050606481602001511115620002a7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200029e90620009aa565b60405180910390fd5b8281600001511015620002f1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002e89062000988565b60405180910390fd5b600082111562000377578060000151856200031c600185620003d660201b6200215b1790919060201c565b815181106200032757fe5b6020026020010151600001511062000376576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200036d90620009ee565b60405180910390fd5b5b600c8190806001815401808255809150506001900390600052602060002090600202016000909190919091506000820151816000015560208201518160010155505050808060010191505062000232565b50505050565b600043905090565b6000828211156200041e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200041590620009cc565b60405180910390fd5b818303905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200046c57805160ff19168380011785556200049d565b828001600101855582156200049d579182015b828111156200049c5782518255916020019190600101906200047f565b5b509050620004ac9190620004ca565b5090565b604051806040016040528060008152602001600081525090565b5b80821115620004e5576000816000905550600101620004cb565b5090565b600081519050620004fa8162000b4f565b92915050565b600082601f8301126200051257600080fd5b815162000529620005238262000a60565b62000a32565b915081818352602084019350602081019050838560408402820111156200054f57600080fd5b60005b8381101562000583578162000568888262000600565b84526020840193506040830192505060018101905062000552565b5050505092915050565b6000815190506200059e8162000b69565b92915050565b600082601f830112620005b657600080fd5b8151620005cd620005c78262000a89565b62000a32565b91508082526020830160208301858383011115620005ea57600080fd5b620005f783828462000b19565b50505092915050565b6000604082840312156200061357600080fd5b6200061f604062000a32565b90506000620006318482850162000653565b6000830152506020620006478482850162000653565b60208301525092915050565b600081519050620006648162000b83565b92915050565b600080600080600080600080610100898b0312156200068857600080fd5b600089015167ffffffffffffffff811115620006a357600080fd5b620006b18b828c01620005a4565b985050602089015167ffffffffffffffff811115620006cf57600080fd5b620006dd8b828c01620005a4565b9750506040620006f08b828c0162000653565b9650506060620007038b828c016200058d565b9550506080620007168b828c016200058d565b94505060a0620007298b828c01620004e9565b93505060c06200073c8b828c0162000653565b92505060e089015167ffffffffffffffff8111156200075a57600080fd5b620007688b828c0162000500565b9150509295985092959890939650565b620007838162000ac7565b82525050565b60006200079860498362000ab6565b91507f7374617274426c6f636b4e756d6265722076616c7565206d757374206265206760008301527f726561746572206f7220657175616c207468616e2063757272656e7420626c6f60208301527f636b206e756d62657200000000000000000000000000000000000000000000006040830152606082019050919050565b60006200082660298362000ab6565b91507f74617850657263656e742076616c7565206d75737420626520696e2072616e6760008301527f655b302c203130305d00000000000000000000000000000000000000000000006020830152604082019050919050565b60006200088e601e8362000ab6565b91507f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006000830152602082019050919050565b6000620008d0603f8362000ab6565b91507f6e65787420696e74657276616c207374617274426c6f636b4e756d626572207660008301527f616c7565206d757374206265206d6f7265207468616e2070726576696f7573006020830152604082019050919050565b60006200093860198362000ab6565b91507f4f776e657220616464726573732063616e6e6f742062652030000000000000006000830152602082019050919050565b600060208201905062000982600083018462000778565b92915050565b60006020820190508181036000830152620009a38162000789565b9050919050565b60006020820190508181036000830152620009c58162000817565b9050919050565b60006020820190508181036000830152620009e7816200087f565b9050919050565b6000602082019050818103600083015262000a0981620008c1565b9050919050565b6000602082019050818103600083015262000a2b8162000929565b9050919050565b6000604051905081810181811067ffffffffffffffff8211171562000a5657600080fd5b8060405250919050565b600067ffffffffffffffff82111562000a7857600080fd5b602082029050602081019050919050565b600067ffffffffffffffff82111562000aa157600080fd5b601f19601f8301169050602081019050919050565b600082825260208201905092915050565b600062000ad48262000aef565b9050919050565b600062000ae88262000ac7565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000b3957808201518184015260208101905062000b1c565b8381111562000b49576000848401525b50505050565b62000b5a8162000ac7565b811462000b6657600080fd5b50565b62000b748162000adb565b811462000b8057600080fd5b50565b62000b8e8162000b0f565b811462000b9a57600080fd5b50565b6147c08062000bad6000396000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c806370a0823111610151578063ae2e933b116100c3578063be79a0cb11610087578063be79a0cb1461075b578063c1d742581461078b578063cd3daf9d146107a9578063d1af0c7d146107c9578063dd62ed3e146107e7578063e3c5729d1461081757610269565b8063ae2e933b146106b3578063b289d00b146106d1578063b4c6e416146106ef578063ba43265f1461070d578063baa3f7ee1461072b57610269565b806394ec82771161011557806394ec8277146105f157806395d89b411461060f5780639e2c8a5b1461062d578063a694fc3a14610649578063a9059cbb14610665578063ad918f131461069557610269565b806370a082311461055d57806372f702f31461058d57806373f0e6a0146105ab57806379ba5097146105c95780638da5cb5b146105d357610269565b8063376d771a116101ea57806358d6bc15116101ae57806358d6bc15146104855780635e318e07146104b55780635f2748be146104e557806366666aa9146105035780636b0c341b146105215780636bb987fe1461053f57610269565b8063376d771a146103df578063379607f5146103e95780633ba1356c1461040557806353a47bb714610435578063574c7e9d1461045357610269565b80632389555511610231578063238955551461032657806323b872dd146103445780632e1a7d4d14610374578063313ce56714610390578063328ffd11146103ae57610269565b806306fdde031461026e578063095ea7b31461028c5780631627540c146102bc57806318160ddd146102d85780631d62ebd9146102f6575b600080fd5b610276610847565b604051610283919061428d565b60405180910390f35b6102a660048036038101906102a191906136f6565b6108e5565b6040516102b39190614257565b60405180910390f35b6102d660048036038101906102d19190613642565b6109d7565b005b6102e0610ae1565b6040516102ed91906145af565b60405180910390f35b610310600480360381019061030b9190613642565b610aeb565b60405161031d91906145af565b60405180910390f35b61032e610b34565b60405161033b91906145af565b60405180910390f35b61035e600480360381019061035991906136a7565b610b48565b60405161036b9190614257565b60405180910390f35b61038e6004803603810190610389919061375b565b610dbe565b005b610398610f38565b6040516103a591906145af565b60405180910390f35b6103c860048036038101906103c3919061375b565b610f3e565b6040516103d69291906145ca565b60405180910390f35b6103e7610f6f565b005b61040360048036038101906103fe919061375b565b610f7a565b005b61041f600480360381019061041a9190613642565b6110e0565b60405161042c91906145af565b60405180910390f35b61043d6112c5565b60405161044a91906141ba565b60405180910390f35b61046d60048036038101906104689190613642565b6112e9565b60405161047c939291906145f3565b60405180910390f35b61049f600480360381019061049a9190613784565b611345565b6040516104ac9190614257565b60405180910390f35b6104cf60048036038101906104ca919061375b565b6114bd565b6040516104dc9190614257565b60405180910390f35b6104ed611613565b6040516104fa9190614235565b60405180910390f35b61050b611686565b60405161051891906145af565b60405180910390f35b610529611690565b60405161053691906145af565b60405180910390f35b61054761169a565b60405161055491906145af565b60405180910390f35b61057760048036038101906105729190613642565b6116ab565b60405161058491906145af565b60405180910390f35b6105956116f4565b6040516105a29190614272565b60405180910390f35b6105b361171e565b6040516105c091906145af565b60405180910390f35b6105d161172b565b005b6105db6118b6565b6040516105e891906141ba565b60405180910390f35b6105f96118dc565b60405161060691906145af565b60405180910390f35b6106176118e6565b604051610624919061428d565b60405180910390f35b61064760048036038101906106429190613784565b611984565b005b610663600480360381019061065e919061375b565b611cbb565b005b61067f600480360381019061067a91906136f6565b611d6a565b60405161068c9190614257565b60405180910390f35b61069d611e11565b6040516106aa91906145af565b60405180910390f35b6106bb611e1b565b6040516106c891906145af565b60405180910390f35b6106d9611e25565b6040516106e691906145af565b60405180910390f35b6106f7611e2f565b60405161070491906145af565b60405180910390f35b610715611e39565b60405161072291906145af565b60405180910390f35b61074560048036038101906107409190613642565b611e43565b60405161075291906145af565b60405180910390f35b610775600480360381019061077091906137c0565b611e8c565b6040516107829190614257565b60405180910390f35b61079361206d565b6040516107a091906145af565b60405180910390f35b6107b1612072565b6040516107c0939291906145f3565b60405180910390f35b6107d1612092565b6040516107de9190614272565b60405180910390f35b61080160048036038101906107fc919061366b565b6120bc565b60405161080e91906145af565b60405180910390f35b610831600480360381019061082c9190613642565b612143565b60405161083e91906145af565b60405180910390f35b60168054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108dd5780601f106108b2576101008083540402835291602001916108dd565b820191906000526020600020905b8154815290600101906020018083116108c057829003601f168201915b505050505081565b600081601860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516109c591906145af565b60405180910390a36001905092915050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5e9061446f565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce2281604051610ad691906141ba565b60405180910390a150565b6000600554905090565b6000600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60036201518081610b4157fe5b04605a0281565b60008160008111610b8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b859061444f565b60405180910390fd5b82601860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015610c4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c449061432f565b60405180910390fd5b82610c57866116ab565b1015610c98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8f9061448f565b60405180910390fd5b610ca38585856121ab565b610d3283601860008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461215b90919063ffffffff16565b601860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060019150509392505050565b8060008111610e02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df99061444f565b60405180910390fd5b6000339050600b60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e4f612220565b1015610e90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e879061450f565b60405180910390fd5b610e9981611e43565b831115610edb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed29061454f565b60405180910390fd5b610ee58184612228565b8073ffffffffffffffffffffffffffffffffffffffff167f6cca423c6ffc06e62a0acc433965e074b11c28479b0449250ce3ff65ac9e39fe84604051610f2b91906145af565b60405180910390a2505050565b60155481565b600c8181548110610f4b57fe5b90600052602060002090600202016000915090508060000154908060010154905082565b610f783361230e565b565b8060008111610fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb59061444f565b60405180910390fd5b6000339050610fcc8161230e565b610fd581610aeb565b831115611017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100e9061438f565b60405180910390fd5b600061103a611024611e39565b61102c612220565b6123f590919063ffffffff16565b905080600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061108a828561244a565b8173ffffffffffffffffffffffffffffffffffffffff167f987d620f307ff6b94d58743cb7a7509f24071586a77759b77c2d4e29f75a2f9a85836040516110d29291906145ca565b60405180910390a250505050565b6000806110eb612593565b90506110f56135b4565b601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060400160405290816000820160405180602001604052908160008201548152505081526020016001820160009054906101000a900460ff16151515158152505090506010548211158061118d57508060200151155b1561119d576000925050506112c0565b6111a56135d6565b6111ad61259b565b90506111b76135d6565b6000601260000154116111e7576111e26111dd60016010546123f590919063ffffffff16565b612605565b6111ff565b60126040518060200160405290816000820154815250505b90506112096135d6565b6112208285600001516126d490919063ffffffff16565b61122e578360000151611230565b815b9050600061123d886116ab565b9050600081141561125757600096505050505050506112c0565b61126a82856126d490919063ffffffff16565b1561127e57600096505050505050506112c0565b6112866135d6565b61129983866126ea90919063ffffffff16565b90506112b66112b1838361272390919063ffffffff16565b612758565b9750505050505050505b919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160000154600a60129250925092509193909250565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ce9061446f565b60405180910390fd5b60006113e1612593565b9050600060105411611428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141f906144cf565b60405180910390fd5b60105481101561146d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611464906142ef565b60405180910390fd5b6114798182868661277c565b7fbc1de98124926348fe8e6959ee37194f931c09201dda22e160a9943ca1b66db984846040516114aa9291906145ca565b60405180910390a1600191505092915050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461154f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115469061446f565b60405180910390fd5b8160008111611593576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158a9061444f565b60405180910390fd5b61159b611e1b565b8311156115dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d49061456f565b60405180910390fd5b611609600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168461292c565b6001915050919050565b6060600c805480602002602001604051908101604052809291908181526020016000905b8282101561167d57838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190611637565b50505050905090565b6000600354905090565b6000600454905090565b600362015180816116a757fe5b0481565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600c80549050905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146117b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b0906142cf565b60405180910390fd5b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf36600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040516118ac91906141ba565b60405180910390a1565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600e54905090565b60178054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561197c5780601f106119515761010080835404028352916020019161197c565b820191906000526020600020905b81548152906001019060200180831161195f57829003601f168201915b505050505081565b81600081116119c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bf9061444f565b60405180910390fd5b600060105411611a0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a04906144cf565b60405180910390fd5b60606040518060400160405280601681526020017f496e76616c696420696e74657276616c4e756d6265720000000000000000000081525090506000611a51612593565b90506000600c8054905090506000339050600086118015611a725750818611155b8490611ab4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aab919061428d565b60405180910390fd5b50611abd6135e9565b600c611ad360018961215b90919063ffffffff16565b81548110611add57fe5b90600052602060002090600202016040518060400160405290816000820154815260200160018201548152505090506000611b386064611b2a84602001518c61299890919063ffffffff16565b612a0890919063ffffffff16565b9050600081148015611b4e575060008260200151115b15611b5857600190505b6000611b6d828b61215b90919063ffffffff16565b90506000836000015187101590506000868b10611b8b576001611bad565b600c8b81548110611b9857fe5b90600052602060002090600202016000015488105b9050818015611bb95750805b8990611bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf2919061428d565b60405180910390fd5b50611c05866116ab565b8c1115611c47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c3e9061430f565b60405180910390fd5b611c508661230e565b611c5b868d85612a5e565b8573ffffffffffffffffffffffffffffffffffffffff167f204fccf0d92ed8d48f204adb39b2e81e92bad0dedb93f5716ca9478cfb57de008d8587604051611ca5939291906145f3565b60405180910390a2505050505050505050505050565b8060008111611cff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf69061444f565b60405180910390fd5b6000339050611d0d8161230e565b611d178184612b97565b8073ffffffffffffffffffffffffffffffffffffffff167f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d84604051611d5d91906145af565b60405180910390a2505050565b60008160008111611db0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da79061444f565b60405180910390fd5b82611dba336116ab565b1015611dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df29061448f565b60405180910390fd5b611e063385856121ab565b600191505092915050565b6000601054905090565b6000600254905090565b6000600f54905090565b6000600d54905090565b6000601154905090565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611f1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f159061446f565b60405180910390fd5b6000611f28612593565b9050600060105414611f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f66906143ef565b60405180910390fd5b848110611fb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa8906143af565b60405180910390fd5b84600c600081548110611fc057fe5b9060005260206000209060020201600001541115612013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200a906144ef565b60405180910390fd5b846010819055506120268186868661277c565b7fa0bb26644c5db4dbb27b45959ef4533e48a805c4767e6c9ef123bd98e3c63ce0858585604051612059939291906145f3565b60405180910390a160019150509392505050565b600381565b600080600061207f61259b565b60000151600a6012925092509250909192565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000601860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600b6020528060005260406000206000915090505481565b6000828211156121a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612197906143cf565b60405180910390fd5b818303905092915050565b6121b6838383612ca4565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161221391906145af565b60405180910390a3505050565b600042905090565b6122758282600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612cc69092919063ffffffff16565b6122c781600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461215b90919063ffffffff16565b600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b6000612318612593565b905061232381612d4c565b600061232e836110e0565b90506000811115612344576123438382612dd6565b5b6013601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600082015481600001559050506001601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010160006101000a81548160ff021916908315150217905550505050565b600080828401905083811015612440576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124379061434f565b60405180910390fd5b8091505092915050565b61249c81600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461215b90919063ffffffff16565b600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506124f48160045461215b90919063ffffffff16565b60048190555061254c81600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123f590919063ffffffff16565b600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600043905090565b6125a36135d6565b60006125cb6125b0612593565b6125c66001600f546123f590919063ffffffff16565b612e8a565b9050600d5481116125f5576013604051806020016040529081600082015481525050915050612602565b6125fe81612605565b9150505b90565b61260d6135d6565b816010541061262d576040518060200160405280600081525090506126cf565b6000612637610ae1565b905060008114156126545761264c6000612ea3565b9150506126cf565b600061268a600e5461267c61266d600d54601054612ed7565b8761215b90919063ffffffff16565b61299890919063ffffffff16565b90506126946135d6565b61269e8284612ef1565b90506126c9816013604051806020016040529081600082015481525050612f3890919063ffffffff16565b93505050505b919050565b6000816000015183600001511115905092915050565b6126f26135d6565b60405180602001604052806127188460000151866000015161215b90919063ffffffff16565b815250905092915050565b61272b6135d6565b604051806020016040528061274d84866000015161299890919063ffffffff16565b815250905092915050565b60006127756012600a0a8360000151612a0890919063ffffffff16565b9050919050565b600081116127bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b6906142af565b60405180910390fd5b600362015180816127cc57fe5b04605a02811115612812576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128099061436f565b60405180910390fd5b61281b84612d4c565b6000612830828461299890919063ffffffff16565b9050600085600f54111561286c57612867600e5461285988600f5461215b90919063ffffffff16565b61299890919063ffffffff16565b61286f565b60005b9050808211156128bc576128b7600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166128b2838561215b90919063ffffffff16565b612f71565b612904565b8082101561290357612902600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166128fd848461215b90919063ffffffff16565b612ffa565b5b5b83600e8190555061291e83866123f590919063ffffffff16565b600f81905550505050505050565b6129798282600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612cc69092919063ffffffff16565b61298e8160025461215b90919063ffffffff16565b6002819055505050565b6000808314156129ab5760009050612a02565b60008284029050828482816129bc57fe5b04146129fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f4906144af565b60405180910390fd5b809150505b92915050565b6000808211612a4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a439061442f565b60405180910390fd5b818381612a5557fe5b04905092915050565b612aab8382600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612cc69092919063ffffffff16565b612afd82600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461215b90919063ffffffff16565b600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612b558260055461215b90919063ffffffff16565b600581905550612b82612b71828461215b90919063ffffffff16565b6002546123f590919063ffffffff16565b600281905550612b928383613081565b505050565b612be6823083600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166130eb909392919063ffffffff16565b612c3881600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123f590919063ffffffff16565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612c90816005546123f590919063ffffffff16565b600581905550612ca08282613174565b5050565b612cad8361230e565b612cb68261230e565b612cc18383836131de565b505050565b612d478363a9059cbb60e01b8484604051602401612ce592919061420c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061330d565b505050565b6000612d56610ae1565b90508160105411158015612d6f57506000601260000154145b8015612d7b5750600081115b15612d9c57612d8c600e5482612ef1565b6012600082015181600001559050505b6000600e54118015612db05750600f548210155b15612dc957612dc0600f546133d4565b6000600e819055505b612dd2826133d4565b5050565b612e2881600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123f590919063ffffffff16565b600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550612e808160035461215b90919063ffffffff16565b6003819055505050565b6000818310612e995781612e9b565b825b905092915050565b612eab6135d6565b6040518060200160405280612ecd6012600a0a8561299890919063ffffffff16565b8152509050919050565b600081831015612ee75781612ee9565b825b905092915050565b612ef96135d6565b6040518060200160405280612f2d84612f1f6012600a0a8861299890919063ffffffff16565b612a0890919063ffffffff16565b815250905092915050565b612f406135d6565b6040518060200160405280612f66846000015186600001516123f590919063ffffffff16565b815250905092915050565b612fc0823083600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166130eb909392919063ffffffff16565b612fd5816004546123f590919063ffffffff16565b600481905550612ff0816003546123f590919063ffffffff16565b6003819055505050565b6130478282600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612cc69092919063ffffffff16565b61305c8160045461215b90919063ffffffff16565b6004819055506130778160035461215b90919063ffffffff16565b6003819055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516130df91906145af565b60405180910390a35050565b61316e846323b872dd60e01b85858560405160240161310c939291906141d5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061330d565b50505050565b8173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516131d291906145af565b60405180910390a35050565b61323081600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461215b90919063ffffffff16565b600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506132c581600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123f590919063ffffffff16565b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050565b606061336f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166133f69092919063ffffffff16565b90506000815111156133cf578080602001905181019061338f9190613732565b6133ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133c59061458f565b60405180910390fd5b5b505050565b6133dd81612605565b60136000820151816000015590505080600d8190555050565b6060613405848460008561340e565b90509392505050565b6060823073ffffffffffffffffffffffffffffffffffffffff1631101561346a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134619061440f565b60405180910390fd5b6134738561353a565b6134b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a99061452f565b60405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040516134dc91906141a3565b60006040518083038185875af1925050503d8060008114613519576040519150601f19603f3d011682016040523d82523d6000602084013e61351e565b606091505b509150915061352e82828661354d565b92505050949350505050565b600080823b905060008111915050919050565b6060831561355d578290506135ad565b6000835111156135705782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135a4919061428d565b60405180910390fd5b9392505050565b60405180604001604052806135c76135d6565b81526020016000151581525090565b6040518060200160405280600081525090565b604051806040016040528060008152602001600081525090565b60008135905061361281614745565b92915050565b6000815190506136278161475c565b92915050565b60008135905061363c81614773565b92915050565b60006020828403121561365457600080fd5b600061366284828501613603565b91505092915050565b6000806040838503121561367e57600080fd5b600061368c85828601613603565b925050602061369d85828601613603565b9150509250929050565b6000806000606084860312156136bc57600080fd5b60006136ca86828701613603565b93505060206136db86828701613603565b92505060406136ec8682870161362d565b9150509250925092565b6000806040838503121561370957600080fd5b600061371785828601613603565b92505060206137288582860161362d565b9150509250929050565b60006020828403121561374457600080fd5b600061375284828501613618565b91505092915050565b60006020828403121561376d57600080fd5b600061377b8482850161362d565b91505092915050565b6000806040838503121561379757600080fd5b60006137a58582860161362d565b92505060206137b68582860161362d565b9150509250929050565b6000806000606084860312156137d557600080fd5b60006137e38682870161362d565b93505060206137f48682870161362d565b92505060406138058682870161362d565b9150509250925092565b600061381b8383614156565b60408301905092915050565b61383081614695565b82525050565b60006138418261463a565b61384b8185614668565b93506138568361462a565b8060005b8381101561388757815161386e888261380f565b97506138798361465b565b92505060018101905061385a565b5085935050505092915050565b61389d816146a7565b82525050565b60006138ae82614645565b6138b88185614679565b93506138c8818560208601614701565b80840191505092915050565b6138dd816146dd565b82525050565b60006138ee82614650565b6138f88185614684565b9350613908818560208601614701565b61391181614734565b840191505092915050565b6000613929601083614684565b91507f4475726174696f6e206973207a65726f000000000000000000000000000000006000830152602082019050919050565b6000613969603583614684565b91507f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560008301527f2063616e20616363657074206f776e65727368697000000000000000000000006020830152604082019050919050565b60006139cf602683614684565b91507f5761697420666f7220696e697469616c2072657761726420737472617465677960008301527f20737461727400000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613a35602783614684565b91507f556e7374616b696e6720616d6f756e742065786365656473207374616b65642060008301527f62616c616e6365000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613a9b602183614684565b91507f5472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6360008301527f65000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613b01601b83614684565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b6000613b41601e83614684565b91507f446973747269627574696f6e206475726174696f6e20746f6f206c6f6e6700006000830152602082019050919050565b6000613b81602883614684565b91507f436c61696d696e6720616d6f756e74206578636565647320726563656976656460008301527f20726577617264730000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613be7603c83614684565b91507f496e697469616c2072657761726420737472617465677920737461727420626c60008301527f6f636b206e756d626572206c657373207468616e2063757272656e74000000006020830152604082019050919050565b6000613c4d601e83614684565b91507f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006000830152602082019050919050565b6000613c8d602683614684565b91507f496e697469616c2072657761726420737472617465677920616c72656164792060008301527f73657474656400000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613cf3602683614684565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613d59601a83614684565b91507f536166654d6174683a206469766973696f6e206279207a65726f0000000000006000830152602082019050919050565b6000613d99601683614684565b91507f416d6f756e74206973206e6f7420706f736974697665000000000000000000006000830152602082019050919050565b6000613dd9602f83614684565b91507f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660008301527f6f726d207468697320616374696f6e00000000000000000000000000000000006020830152604082019050919050565b6000613e3f601f83614684565b91507f5472616e7366657220616d6f756e7420657863656564732062616c616e6365006000830152602082019050919050565b6000613e7f602183614684565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613ee5602183614684565b91507f53657420696e697469616c20726577617264207374726174656779206669727360008301527f74000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613f4b604983614684565b91507f496e697469616c2072657761726420737472617465677920737461727420626c60008301527f6f636b206e756d626572206c657373207468616e20666972737420696e74657260208301527f76616c20737461727400000000000000000000000000000000000000000000006040830152606082019050919050565b6000613fd7601783614684565b91507f526577617264206e6f7420756e6c6f636b6564207965740000000000000000006000830152602082019050919050565b6000614017601d83614684565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b6000614057602a83614684565b91507f5769746864726177696e6720616d6f756e74206578636565647320636c61696d60008301527f65642062616c616e6365000000000000000000000000000000000000000000006020830152604082019050919050565b60006140bd601a83614684565b91507f4e6f7420656e6f7567682066656520706f6f6c20616d6f756e740000000000006000830152602082019050919050565b60006140fd602a83614684565b91507f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008301527f6f742073756363656564000000000000000000000000000000000000000000006020830152604082019050919050565b60408201600082015161416c6000850182614185565b50602082015161417f6020850182614185565b50505050565b61418e816146d3565b82525050565b61419d816146d3565b82525050565b60006141af82846138a3565b915081905092915050565b60006020820190506141cf6000830184613827565b92915050565b60006060820190506141ea6000830186613827565b6141f76020830185613827565b6142046040830184614194565b949350505050565b60006040820190506142216000830185613827565b61422e6020830184614194565b9392505050565b6000602082019050818103600083015261424f8184613836565b905092915050565b600060208201905061426c6000830184613894565b92915050565b600060208201905061428760008301846138d4565b92915050565b600060208201905081810360008301526142a781846138e3565b905092915050565b600060208201905081810360008301526142c88161391c565b9050919050565b600060208201905081810360008301526142e88161395c565b9050919050565b60006020820190508181036000830152614308816139c2565b9050919050565b6000602082019050818103600083015261432881613a28565b9050919050565b6000602082019050818103600083015261434881613a8e565b9050919050565b6000602082019050818103600083015261436881613af4565b9050919050565b6000602082019050818103600083015261438881613b34565b9050919050565b600060208201905081810360008301526143a881613b74565b9050919050565b600060208201905081810360008301526143c881613bda565b9050919050565b600060208201905081810360008301526143e881613c40565b9050919050565b6000602082019050818103600083015261440881613c80565b9050919050565b6000602082019050818103600083015261442881613ce6565b9050919050565b6000602082019050818103600083015261444881613d4c565b9050919050565b6000602082019050818103600083015261446881613d8c565b9050919050565b6000602082019050818103600083015261448881613dcc565b9050919050565b600060208201905081810360008301526144a881613e32565b9050919050565b600060208201905081810360008301526144c881613e72565b9050919050565b600060208201905081810360008301526144e881613ed8565b9050919050565b6000602082019050818103600083015261450881613f3e565b9050919050565b6000602082019050818103600083015261452881613fca565b9050919050565b600060208201905081810360008301526145488161400a565b9050919050565b600060208201905081810360008301526145688161404a565b9050919050565b60006020820190508181036000830152614588816140b0565b9050919050565b600060208201905081810360008301526145a8816140f0565b9050919050565b60006020820190506145c46000830184614194565b92915050565b60006040820190506145df6000830185614194565b6145ec6020830184614194565b9392505050565b60006060820190506146086000830186614194565b6146156020830185614194565b6146226040830184614194565b949350505050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b60006146a0826146b3565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006146e8826146ef565b9050919050565b60006146fa826146b3565b9050919050565b60005b8381101561471f578082015181840152602081019050614704565b8381111561472e576000848401525b50505050565b6000601f19601f8301169050919050565b61474e81614695565b811461475957600080fd5b50565b614765816146a7565b811461477057600080fd5b50565b61477c816146d3565b811461478757600080fd5b5056fea26469706673582212207902d04551d25b6fe87837f7871d521a1467fbe4874953dfcc1cab80e2a06b9e64736f6c634300060c00330000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000120000000000000000000000004e6415a5727ea08aae4580057187923aec331227000000000000000000000000c309a6d2f1537922e06f15aa2eb21caa1b2eedb6000000000000000000000000d4eee3d50588d7dee8dcc42635e50093e0aa8cc000000000000000000000000000000000000000000000000000000000000a8c0000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000002c4d44414f2046494e452d424e42204c50205374616b696e6720506f6f6c207769746820546f6c6c626f6f7468000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000227374616b65642d46494e452d424e422d4c502d746f6b656e2d746f6c6c626f6f74680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000069bddf000000000000000000000000000000000000000000000000000000000000003c00000000000000000000000000000000000000000000000000000000006fd4770000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000072dfc30000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000075eb0f000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000078f65b000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000007c01a7000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000007f0cf30000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000082183f0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000085238b0000000000000000000000000000000000000000000000000000000000000000

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

0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000120000000000000000000000004e6415a5727ea08aae4580057187923aec331227000000000000000000000000c309a6d2f1537922e06f15aa2eb21caa1b2eedb6000000000000000000000000d4eee3d50588d7dee8dcc42635e50093e0aa8cc000000000000000000000000000000000000000000000000000000000000a8c0000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000002c4d44414f2046494e452d424e42204c50205374616b696e6720506f6f6c207769746820546f6c6c626f6f7468000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000227374616b65642d46494e452d424e422d4c502d746f6b656e2d746f6c6c626f6f74680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009000000000000000000000000000000000000000000000000000000000069bddf000000000000000000000000000000000000000000000000000000000000003c00000000000000000000000000000000000000000000000000000000006fd4770000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000072dfc30000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000075eb0f000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000000000000078f65b000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000007c01a7000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000007f0cf30000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000082183f0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000085238b0000000000000000000000000000000000000000000000000000000000000000

-----Encoded View---------------
33 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 0000000000000000000000004e6415a5727ea08aae4580057187923aec331227
Arg [4] : 000000000000000000000000c309a6d2f1537922e06f15aa2eb21caa1b2eedb6
Arg [5] : 000000000000000000000000d4eee3d50588d7dee8dcc42635e50093e0aa8cc0
Arg [6] : 00000000000000000000000000000000000000000000000000000000000a8c00
Arg [7] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [8] : 000000000000000000000000000000000000000000000000000000000000002c
Arg [9] : 4d44414f2046494e452d424e42204c50205374616b696e6720506f6f6c207769
Arg [10] : 746820546f6c6c626f6f74680000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000022
Arg [12] : 7374616b65642d46494e452d424e422d4c502d746f6b656e2d746f6c6c626f6f
Arg [13] : 7468000000000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [15] : 000000000000000000000000000000000000000000000000000000000069bddf
Arg [16] : 000000000000000000000000000000000000000000000000000000000000003c
Arg [17] : 00000000000000000000000000000000000000000000000000000000006fd477
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [19] : 000000000000000000000000000000000000000000000000000000000072dfc3
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000028
Arg [21] : 000000000000000000000000000000000000000000000000000000000075eb0f
Arg [22] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [23] : 000000000000000000000000000000000000000000000000000000000078f65b
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [25] : 00000000000000000000000000000000000000000000000000000000007c01a7
Arg [26] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [27] : 00000000000000000000000000000000000000000000000000000000007f0cf3
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [29] : 000000000000000000000000000000000000000000000000000000000082183f
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [31] : 000000000000000000000000000000000000000000000000000000000085238b
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.