BNB Price: $692.09 (-0.62%)
Gas: 1 GWei
 
Transaction Hash
Method
Block
From
To
Redeem459784072025-01-22 3:28:3515 hrs ago1737516515IN
0x05134427...F63e5cB22
0 BNB0.0001561
Redeem459747032025-01-22 0:23:2318 hrs ago1737505403IN
0x05134427...F63e5cB22
0 BNB0.000155991
Redeem459732752025-01-21 23:11:5919 hrs ago1737501119IN
0x05134427...F63e5cB22
0 BNB0.000160421
Redeem459688002025-01-21 19:28:1423 hrs ago1737487694IN
0x05134427...F63e5cB22
0 BNB0.00014331
Redeem459492812025-01-21 3:12:1239 hrs ago1737429132IN
0x05134427...F63e5cB22
0 BNB0.0001561
Redeem459357182025-01-20 15:54:032 days ago1737388443IN
0x05134427...F63e5cB22
0 BNB0.000160421
Redeem459356942025-01-20 15:52:512 days ago1737388371IN
0x05134427...F63e5cB22
0 BNB0.000141121
Redeem459352342025-01-20 15:29:512 days ago1737386991IN
0x05134427...F63e5cB22
0 BNB0.000141121
Redeem459271122025-01-20 8:43:452 days ago1737362625IN
0x05134427...F63e5cB22
0 BNB0.000156851
Redeem459057942025-01-19 14:57:503 days ago1737298670IN
0x05134427...F63e5cB22
0 BNB0.0001561
Redeem458786702025-01-18 16:21:384 days ago1737217298IN
0x05134427...F63e5cB22
0 BNB0.000160421
Redeem458779422025-01-18 15:45:144 days ago1737215114IN
0x05134427...F63e5cB22
0 BNB0.0001561
Redeem458772072025-01-18 15:08:294 days ago1737212909IN
0x05134427...F63e5cB22
0 BNB0.000160681
Redeem458290642025-01-16 23:01:195 days ago1737068479IN
0x05134427...F63e5cB22
0 BNB0.000139751
Redeem458255042025-01-16 20:03:195 days ago1737057799IN
0x05134427...F63e5cB22
0 BNB0.000166221
Mint458106992025-01-16 7:43:036 days ago1737013383IN
0x05134427...F63e5cB22
0 BNB0.000167461.1
Redeem458024642025-01-16 0:51:186 days ago1736988678IN
0x05134427...F63e5cB22
0 BNB0.000160421
Redeem457996382025-01-15 22:30:006 days ago1736980200IN
0x05134427...F63e5cB22
0 BNB0.000156851
Mint457837612025-01-15 9:16:097 days ago1736932569IN
0x05134427...F63e5cB22
0 BNB0.0001571
Redeem457703702025-01-14 22:06:367 days ago1736892396IN
0x05134427...F63e5cB22
0 BNB0.000155991
Redeem457631692025-01-14 16:06:338 days ago1736870793IN
0x05134427...F63e5cB22
0 BNB0.0001561
Redeem457463712025-01-14 2:06:378 days ago1736820397IN
0x05134427...F63e5cB22
0 BNB0.0001561
Redeem457406852025-01-13 21:22:098 days ago1736803329IN
0x05134427...F63e5cB22
0 BNB0.000173991
Redeem457365932025-01-13 17:57:309 days ago1736791050IN
0x05134427...F63e5cB22
0 BNB0.000160411
Redeem457257082025-01-13 8:53:159 days ago1736758395IN
0x05134427...F63e5cB22
0 BNB0.00013891
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
vBABYToken

Compiler Version
v0.7.4+commit.3f05b770

Optimization Enabled:
Yes with 200 runs

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

pragma solidity =0.7.4;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "../libraries/DecimalMath.sol";

contract vBABYToken is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // ============ Storage(ERC20) ============

    string public name = "vBABY Membership Token";
    string public symbol = "vBABY";
    uint8 public decimals = 18;

    mapping(address => mapping(address => uint256)) internal _allowed;

    // ============ Storage ============

    address public _babyToken;
    address public _babyTeam;
    address public _babyReserve;
    address public _babyTreasury;
    bool public _canTransfer;
    address public constant hole = 0x000000000000000000000000000000000000dEaD;

    // staking reward parameters
    uint256 public _babyPerBlock;
    uint256 public constant _superiorRatio = 10**17; // 0.1
    uint256 public constant _babyRatio = 100; // 100
    uint256 public _babyFeeBurnRatio = 30 * 10**16; //30%
    uint256 public _babyFeeReserveRatio = 20 * 10**16; //20%
    uint256 public _feeRatio = 10 * 10**16; //10%;
    // accounting
    uint112 public alpha = 10**18; // 1
    uint112 public _totalBlockDistribution;
    uint32 public _lastRewardBlock;

    uint256 public _totalBlockReward;
    uint256 public _totalStakingPower;
    mapping(address => UserInfo) public userInfo;

    uint256 public _superiorMinBABY = 100e18; //The superior must obtain the min BABY that should be pledged for invitation rewards

    struct UserInfo {
        uint128 stakingPower;
        uint128 superiorSP;
        address superior;
        uint256 credit;
        uint256 creditDebt;
    }

    // ============ Events ============

    event MintVBABY(
        address user,
        address superior,
        uint256 mintBABY,
        uint256 totalStakingPower
    );
    event RedeemVBABY(
        address user,
        uint256 receiveBABY,
        uint256 burnBABY,
        uint256 feeBABY,
        uint256 reserveBABY,
        uint256 totalStakingPower
    );
    event DonateBABY(address user, uint256 donateBABY);
    event SetCanTransfer(bool allowed);

    event PreDeposit(uint256 babyAmount);
    event ChangePerReward(uint256 babyPerBlock);
    event UpdateBABYFeeBurnRatio(uint256 babyFeeBurnRatio);

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

    // ============ Modifiers ============

    modifier canTransfer() {
        require(_canTransfer, "vBABYToken: not the allowed transfer");
        _;
    }

    modifier balanceEnough(address account, uint256 amount) {
        require(
            availableBalanceOf(account) >= amount,
            "vBABYToken: available amount not enough"
        );
        _;
    }

    event TokenInfo(uint256 babyTokenSupply, uint256 babyBalanceInVBaby);
    event CurrentUserInfo(
        address user,
        uint128 stakingPower,
        uint128 superiorSP,
        address superior,
        uint256 credit,
        uint256 creditDebt
    );

    function logTokenInfo(IERC20 token) internal {
        emit TokenInfo(token.totalSupply(), token.balanceOf(address(this)));
    }

    function logCurrentUserInfo(address user) internal {
        UserInfo storage currentUser = userInfo[user];
        emit CurrentUserInfo(
            user,
            currentUser.stakingPower,
            currentUser.superiorSP,
            currentUser.superior,
            currentUser.credit,
            currentUser.creditDebt
        );
    }

    // ============ Constructor ============

    constructor(
        address babyToken,
        address babyTeam,
        address babyReserve,
        address babyTreasury
    ) {
        _babyToken = babyToken;
        _babyTeam = babyTeam;
        _babyReserve = babyReserve;
        _babyTreasury = babyTreasury;
        changePerReward(2 * 10**18);
    }

    // ============ Ownable Functions ============`

    function setCanTransfer(bool allowed) public onlyOwner {
        _canTransfer = allowed;
        emit SetCanTransfer(allowed);
    }

    function changePerReward(uint256 babyPerBlock) public onlyOwner {
        _updateAlpha();
        _babyPerBlock = babyPerBlock;
        logTokenInfo(IERC20(_babyToken));
        emit ChangePerReward(babyPerBlock);
    }

    function updateBABYFeeBurnRatio(uint256 babyFeeBurnRatio) public onlyOwner {
        _babyFeeBurnRatio = babyFeeBurnRatio;
        emit UpdateBABYFeeBurnRatio(_babyFeeBurnRatio);
    }

    function updateBABYFeeReserveRatio(uint256 babyFeeReserve)
        public
        onlyOwner
    {
        _babyFeeReserveRatio = babyFeeReserve;
    }

    function updateTeamAddress(address team) public onlyOwner {
        _babyTeam = team;
    }

    function updateTreasuryAddress(address treasury) public onlyOwner {
        _babyTreasury = treasury;
    }

    function updateReserveAddress(address newAddress) public onlyOwner {
        _babyReserve = newAddress;
    }

    function setSuperiorMinBABY(uint256 val) public onlyOwner {
        _superiorMinBABY = val;
    }

    function emergencyWithdraw() public onlyOwner {
        uint256 babyBalance = IERC20(_babyToken).balanceOf(address(this));
        IERC20(_babyToken).safeTransfer(owner(), babyBalance);
    }

    // ============ Mint & Redeem & Donate ============

    function mint(uint256 babyAmount, address superiorAddress) public {
        require(
            superiorAddress != address(0) && superiorAddress != msg.sender,
            "vBABYToken: Superior INVALID"
        );
        require(babyAmount >= 1e18, "vBABYToken: must mint greater than 1");

        UserInfo storage user = userInfo[msg.sender];

        if (user.superior == address(0)) {
            require(
                superiorAddress == _babyTeam ||
                    userInfo[superiorAddress].superior != address(0),
                "vBABYToken: INVALID_SUPERIOR_ADDRESS"
            );
            user.superior = superiorAddress;
        }

        if (_superiorMinBABY > 0) {
            uint256 curBABY = babyBalanceOf(user.superior);
            if (curBABY < _superiorMinBABY) {
                user.superior = _babyTeam;
            }
        }

        _updateAlpha();

        IERC20(_babyToken).safeTransferFrom(
            msg.sender,
            address(this),
            babyAmount
        );

        uint256 newStakingPower = DecimalMath.divFloor(babyAmount, alpha);

        _mint(user, newStakingPower);

        logTokenInfo(IERC20(_babyToken));
        logCurrentUserInfo(msg.sender);
        logCurrentUserInfo(user.superior);
        emit MintVBABY(
            msg.sender,
            superiorAddress,
            babyAmount,
            _totalStakingPower
        );
    }

    function redeem(uint256 vBabyAmount, bool all)
        public
        balanceEnough(msg.sender, vBabyAmount)
    {
        _updateAlpha();
        UserInfo storage user = userInfo[msg.sender];

        uint256 babyAmount;
        uint256 stakingPower;

        if (all) {
            stakingPower = uint256(user.stakingPower).sub(
                DecimalMath.divFloor(user.credit, alpha)
            );
            babyAmount = DecimalMath.mulFloor(stakingPower, alpha);
        } else {
            babyAmount = vBabyAmount.mul(_babyRatio);
            stakingPower = DecimalMath.divFloor(babyAmount, alpha);
        }

        _redeem(user, stakingPower);

        (
            uint256 babyReceive,
            uint256 burnBabyAmount,
            uint256 withdrawFeeAmount,
            uint256 reserveAmount
        ) = getWithdrawResult(babyAmount);

        IERC20(_babyToken).safeTransfer(msg.sender, babyReceive);

        if (burnBabyAmount > 0) {
            IERC20(_babyToken).safeTransfer(hole, burnBabyAmount);
        }
        if (reserveAmount > 0) {
            IERC20(_babyToken).safeTransfer(_babyReserve, reserveAmount);
        }

        if (withdrawFeeAmount > 0) {
            alpha = uint112(
                uint256(alpha).add(
                    DecimalMath.divFloor(withdrawFeeAmount, _totalStakingPower)
                )
            );
        }

        logTokenInfo(IERC20(_babyToken));
        logCurrentUserInfo(msg.sender);
        logCurrentUserInfo(user.superior);
        emit RedeemVBABY(
            msg.sender,
            babyReceive,
            burnBabyAmount,
            withdrawFeeAmount,
            reserveAmount,
            _totalStakingPower
        );
    }

    function donate(uint256 babyAmount) public {
        IERC20(_babyToken).safeTransferFrom(
            msg.sender,
            address(this),
            babyAmount
        );

        alpha = uint112(
            uint256(alpha).add(
                DecimalMath.divFloor(babyAmount, _totalStakingPower)
            )
        );
        logTokenInfo(IERC20(_babyToken));
        emit DonateBABY(msg.sender, babyAmount);
    }

    function totalSupply() public view returns (uint256 vBabySupply) {
        uint256 totalBaby = IERC20(_babyToken).balanceOf(address(this));
        (, uint256 curDistribution) = getLatestAlpha();

        uint256 actualBaby = totalBaby.add(curDistribution);
        vBabySupply = actualBaby / _babyRatio;
    }

    function balanceOf(address account)
        public
        view
        returns (uint256 vBabyAmount)
    {
        vBabyAmount = babyBalanceOf(account) / _babyRatio;
    }

    function transfer(address to, uint256 vBabyAmount) public returns (bool) {
        _updateAlpha();
        _transfer(msg.sender, to, vBabyAmount);
        return true;
    }

    function approve(address spender, uint256 vBabyAmount)
        public
        canTransfer
        returns (bool)
    {
        _allowed[msg.sender][spender] = vBabyAmount;
        emit Approval(msg.sender, spender, vBabyAmount);
        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 vBabyAmount
    ) public returns (bool) {
        require(
            vBabyAmount <= _allowed[from][msg.sender],
            "ALLOWANCE_NOT_ENOUGH"
        );
        _updateAlpha();
        _transfer(from, to, vBabyAmount);
        _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(
            vBabyAmount
        );
        return true;
    }

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

    // ============ Helper Functions ============

    function getLatestAlpha()
        public
        view
        returns (uint256 newAlpha, uint256 curDistribution)
    {
        if (_lastRewardBlock == 0) {
            curDistribution = 0;
        } else {
            curDistribution = _babyPerBlock * (block.number - _lastRewardBlock);
        }
        if (_totalStakingPower > 0) {
            newAlpha = uint256(alpha).add(
                DecimalMath.divFloor(curDistribution, _totalStakingPower)
            );
        } else {
            newAlpha = alpha;
        }
    }

    function availableBalanceOf(address account)
        public
        view
        returns (uint256 vBabyAmount)
    {
        vBabyAmount = balanceOf(account);
    }

    function babyBalanceOf(address account)
        public
        view
        returns (uint256 babyAmount)
    {
        UserInfo memory user = userInfo[account];
        (uint256 newAlpha, ) = getLatestAlpha();
        uint256 nominalBaby = DecimalMath.mulFloor(
            uint256(user.stakingPower),
            newAlpha
        );
        if (nominalBaby > user.credit) {
            babyAmount = nominalBaby - user.credit;
        } else {
            babyAmount = 0;
        }
    }

    function getWithdrawResult(uint256 babyAmount)
        public
        view
        returns (
            uint256 babyReceive,
            uint256 burnBabyAmount,
            uint256 withdrawFeeBabyAmount,
            uint256 reserveBabyAmount
        )
    {
        uint256 feeRatio = _feeRatio;

        withdrawFeeBabyAmount = DecimalMath.mulFloor(babyAmount, feeRatio);
        babyReceive = babyAmount.sub(withdrawFeeBabyAmount);

        burnBabyAmount = DecimalMath.mulFloor(
            withdrawFeeBabyAmount,
            _babyFeeBurnRatio
        );
        reserveBabyAmount = DecimalMath.mulFloor(
            withdrawFeeBabyAmount,
            _babyFeeReserveRatio
        );

        withdrawFeeBabyAmount = withdrawFeeBabyAmount.sub(burnBabyAmount);
        withdrawFeeBabyAmount = withdrawFeeBabyAmount.sub(reserveBabyAmount);
    }

    function setRatioValue(uint256 ratioFee) public onlyOwner {
        _feeRatio = ratioFee;
    }

    function getSuperior(address account)
        public
        view
        returns (address superior)
    {
        return userInfo[account].superior;
    }

    // ============ Internal Functions ============

    function _updateAlpha() internal {
        (uint256 newAlpha, uint256 curDistribution) = getLatestAlpha();
        uint256 newTotalDistribution = curDistribution.add(
            _totalBlockDistribution
        );
        require(
            newAlpha <= uint112(-1) && newTotalDistribution <= uint112(-1),
            "OVERFLOW"
        );
        alpha = uint112(newAlpha);
        _totalBlockDistribution = uint112(newTotalDistribution);
        _lastRewardBlock = uint32(block.number);

        if (curDistribution > 0) {
            IERC20(_babyToken).safeTransferFrom(
                _babyTreasury,
                address(this),
                curDistribution
            );

            _totalBlockReward = _totalBlockReward.add(curDistribution);
            logTokenInfo(IERC20(_babyToken));
            emit PreDeposit(curDistribution);
        }
    }

    function _mint(UserInfo storage to, uint256 stakingPower) internal {
        require(stakingPower <= uint128(-1), "OVERFLOW");
        UserInfo storage superior = userInfo[to.superior];
        uint256 superiorIncreSP = DecimalMath.mulFloor(
            stakingPower,
            _superiorRatio
        );
        uint256 superiorIncreCredit = DecimalMath.mulFloor(
            superiorIncreSP,
            alpha
        );

        to.stakingPower = uint128(uint256(to.stakingPower).add(stakingPower));
        to.superiorSP = uint128(uint256(to.superiorSP).add(superiorIncreSP));

        superior.stakingPower = uint128(
            uint256(superior.stakingPower).add(superiorIncreSP)
        );
        superior.credit = uint128(
            uint256(superior.credit).add(superiorIncreCredit)
        );

        _totalStakingPower = _totalStakingPower.add(stakingPower).add(
            superiorIncreSP
        );
    }

    function _redeem(UserInfo storage from, uint256 stakingPower) internal {
        from.stakingPower = uint128(
            uint256(from.stakingPower).sub(stakingPower)
        );

        uint256 userCreditSP = DecimalMath.divFloor(from.credit, alpha);
        if (from.stakingPower > userCreditSP) {
            from.stakingPower = uint128(
                uint256(from.stakingPower).sub(userCreditSP)
            );
        } else {
            userCreditSP = from.stakingPower;
            from.stakingPower = 0;
        }
        from.creditDebt = from.creditDebt.add(from.credit);
        from.credit = 0;

        // superior decrease sp = min(stakingPower*0.1, from.superiorSP)
        uint256 superiorDecreSP = DecimalMath.mulFloor(
            stakingPower,
            _superiorRatio
        );
        superiorDecreSP = from.superiorSP <= superiorDecreSP
            ? from.superiorSP
            : superiorDecreSP;
        from.superiorSP = uint128(
            uint256(from.superiorSP).sub(superiorDecreSP)
        );
        uint256 superiorDecreCredit = DecimalMath.mulFloor(
            superiorDecreSP,
            alpha
        );

        UserInfo storage superior = userInfo[from.superior];
        if (superiorDecreCredit > superior.creditDebt) {
            uint256 dec = DecimalMath.divFloor(superior.creditDebt, alpha);
            superiorDecreSP = dec >= superiorDecreSP
                ? 0
                : superiorDecreSP.sub(dec);
            superiorDecreCredit = superiorDecreCredit.sub(superior.creditDebt);
            superior.creditDebt = 0;
        } else {
            superior.creditDebt = superior.creditDebt.sub(superiorDecreCredit);
            superiorDecreCredit = 0;
            superiorDecreSP = 0;
        }
        uint256 creditSP = DecimalMath.divFloor(superior.credit, alpha);

        if (superiorDecreSP >= creditSP) {
            superior.credit = 0;
            superior.stakingPower = uint128(
                uint256(superior.stakingPower).sub(creditSP)
            );
        } else {
            superior.credit = uint128(
                uint256(superior.credit).sub(superiorDecreCredit)
            );
            superior.stakingPower = uint128(
                uint256(superior.stakingPower).sub(superiorDecreSP)
            );
        }

        _totalStakingPower = _totalStakingPower
            .sub(stakingPower)
            .sub(superiorDecreSP)
            .sub(userCreditSP);
    }

    function _transfer(
        address from,
        address to,
        uint256 vBabyAmount
    ) internal canTransfer balanceEnough(from, vBabyAmount) {
        require(from != address(0), "transfer from the zero address");
        require(to != address(0), "transfer to the zero address");
        require(from != to, "transfer from same with to");

        uint256 stakingPower = DecimalMath.divFloor(
            vBabyAmount * _babyRatio,
            alpha
        );

        UserInfo storage fromUser = userInfo[from];
        UserInfo storage toUser = userInfo[to];

        _redeem(fromUser, stakingPower);
        _mint(toUser, stakingPower);

        logTokenInfo(IERC20(_babyToken));
        logCurrentUserInfo(from);
        logCurrentUserInfo(fromUser.superior);
        logCurrentUserInfo(to);
        logCurrentUserInfo(toUser.superior);
        emit Transfer(from, to, vBabyAmount);
    }
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

File 3 of 8 : 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 4 of 8 : 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 5 of 8 : 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 6 of 8 : 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);
            }
        }
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

pragma solidity =0.7.4;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/math/SafeMath.sol";

library MySafeMath {
    using SafeMath for uint256;

    function divCeil(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 quotient = a.div(b);
        uint256 remainder = a - quotient * b;
        if (remainder > 0) {
            return quotient + 1;
        } else {
            return quotient;
        }
    }
}

library DecimalMath {
    using SafeMath for uint256;

    uint256 internal constant ONE = 10**18;
    uint256 internal constant ONE2 = 10**36;

    function mulFloor(uint256 target, uint256 d) internal pure returns (uint256) {
        return target.mul(d) / (10**18);
    }

    function mulCeil(uint256 target, uint256 d) internal pure returns (uint256) {
        return MySafeMath.divCeil(target.mul(d), 10**18);
    }

    function divFloor(uint256 target, uint256 d) internal pure returns (uint256) {
        return target.mul(10**18).div(d);
    }

    function divCeil(uint256 target, uint256 d) internal pure returns (uint256) {
        return MySafeMath.divCeil(target.mul(10**18), d);
    }

    function reciprocalFloor(uint256 target) internal pure returns (uint256) {
        return uint256(10**36).div(target);
    }

    function reciprocalCeil(uint256 target) internal pure returns (uint256) {
        return MySafeMath.divCeil(uint256(10**36), target);
    }
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"babyToken","type":"address"},{"internalType":"address","name":"babyTeam","type":"address"},{"internalType":"address","name":"babyReserve","type":"address"},{"internalType":"address","name":"babyTreasury","type":"address"}],"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":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"babyPerBlock","type":"uint256"}],"name":"ChangePerReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint128","name":"stakingPower","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"superiorSP","type":"uint128"},{"indexed":false,"internalType":"address","name":"superior","type":"address"},{"indexed":false,"internalType":"uint256","name":"credit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"creditDebt","type":"uint256"}],"name":"CurrentUserInfo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"donateBABY","type":"uint256"}],"name":"DonateBABY","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"superior","type":"address"},{"indexed":false,"internalType":"uint256","name":"mintBABY","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalStakingPower","type":"uint256"}],"name":"MintVBABY","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"babyAmount","type":"uint256"}],"name":"PreDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"receiveBABY","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"burnBABY","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeBABY","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reserveBABY","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalStakingPower","type":"uint256"}],"name":"RedeemVBABY","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"allowed","type":"bool"}],"name":"SetCanTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"babyTokenSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"babyBalanceInVBaby","type":"uint256"}],"name":"TokenInfo","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":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"babyFeeBurnRatio","type":"uint256"}],"name":"UpdateBABYFeeBurnRatio","type":"event"},{"inputs":[],"name":"_babyFeeBurnRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_babyFeeReserveRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_babyPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_babyRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_babyReserve","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_babyTeam","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_babyToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_babyTreasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_canTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_feeRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_lastRewardBlock","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_superiorMinBABY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_superiorRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalBlockDistribution","outputs":[{"internalType":"uint112","name":"","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalBlockReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalStakingPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"alpha","outputs":[{"internalType":"uint112","name":"","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"vBabyAmount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"availableBalanceOf","outputs":[{"internalType":"uint256","name":"vBabyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"babyBalanceOf","outputs":[{"internalType":"uint256","name":"babyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"vBabyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"babyPerBlock","type":"uint256"}],"name":"changePerReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"babyAmount","type":"uint256"}],"name":"donate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getLatestAlpha","outputs":[{"internalType":"uint256","name":"newAlpha","type":"uint256"},{"internalType":"uint256","name":"curDistribution","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getSuperior","outputs":[{"internalType":"address","name":"superior","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"babyAmount","type":"uint256"}],"name":"getWithdrawResult","outputs":[{"internalType":"uint256","name":"babyReceive","type":"uint256"},{"internalType":"uint256","name":"burnBabyAmount","type":"uint256"},{"internalType":"uint256","name":"withdrawFeeBabyAmount","type":"uint256"},{"internalType":"uint256","name":"reserveBabyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hole","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"babyAmount","type":"uint256"},{"internalType":"address","name":"superiorAddress","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vBabyAmount","type":"uint256"},{"internalType":"bool","name":"all","type":"bool"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setCanTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ratioFee","type":"uint256"}],"name":"setRatioValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"val","type":"uint256"}],"name":"setSuperiorMinBABY","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"vBabySupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"vBabyAmount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"vBabyAmount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"babyFeeBurnRatio","type":"uint256"}],"name":"updateBABYFeeBurnRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"babyFeeReserve","type":"uint256"}],"name":"updateBABYFeeReserveRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateReserveAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"team","type":"address"}],"name":"updateTeamAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"treasury","type":"address"}],"name":"updateTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint128","name":"stakingPower","type":"uint128"},{"internalType":"uint128","name":"superiorSP","type":"uint128"},{"internalType":"address","name":"superior","type":"address"},{"internalType":"uint256","name":"credit","type":"uint256"},{"internalType":"uint256","name":"creditDebt","type":"uint256"}],"stateMutability":"view","type":"function"}]

60c0604052601660808190527f7642414259204d656d6265727368697020546f6b656e0000000000000000000060a090815262000040916001919062000ab4565b5060408051808201909152600580825264764241425960d81b60209092019182526200006f9160029162000ab4565b506003805460ff19166012179055670429d069189e0000600a556702c68af0bb140000600b5567016345785d8a0000600c55600d80546001600160701b031916670de0b6b3a764000017905568056bc75e2d63100000601155348015620000d557600080fd5b506040516200396838038062003968833981016040819052620000f89162000b78565b600062000104620001b5565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600580546001600160a01b038087166001600160a01b03199283161790925560068054868416908316179055600780548584169083161790556008805492841692909116919091179055620001ab671bc16d674ec80000620001b9565b5050505062000c3a565b3390565b620001c3620001b5565b6001600160a01b0316620001d662000294565b6001600160a01b03161462000232576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6200023c620002a3565b600981905560055462000258906001600160a01b03166200042f565b7feca81e4b546cfbc80883349ef5bdaca1c02dc7cb0bdb9e1183cb7698f90bbb858160405162000289919062000c23565b60405180910390a150565b6000546001600160a01b031690565b600080620002b062000557565b915091506000620002ee600d600e9054906101000a90046001600160701b03166001600160701b031683620005f360201b620018151790919060201c565b90506001600160701b0383118015906200030f57506001600160701b038111155b620003375760405162461bcd60e51b81526004016200032e9062000c01565b60405180910390fd5b600d80546001600160701b0319166001600160701b0385811691909117600160701b600160e01b031916600160701b91841691909102176001600160e01b0316600160e01b4363ffffffff160217905581156200042a57600854600554620003ba916001600160a01b039182169116308562000657602090811b6200186f17901c565b620003d682600e54620005f360201b620018151790919060201c565b600e55600554620003f0906001600160a01b03166200042f565b7fdee982458f84113ac3e32d44595820a6fa60cfbe80a1bdd444c26599ee5b7dd58260405162000421919062000c23565b60405180910390a15b505050565b7f28534d0ab69d062225c304f03154079414ece8f1498298a0f76a84c1e225e86a816001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200048a57600080fd5b505afa1580156200049f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004c5919062000bd4565b6040516370a0823160e01b81526001600160a01b038416906370a0823190620004f390309060040162000bed565b60206040518083038186803b1580156200050c57600080fd5b505afa15801562000521573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000547919062000bd4565b6040516200028992919062000c2c565b600d546000908190600160e01b900463ffffffff166200057a5750600062000593565b50600d54600954600160e01b90910463ffffffff164303025b600f5415620005e057620005d8620005b982600f54620006bd60201b620018cf1760201c565b600d546001600160701b031690620005f3602090811b6200181517901c565b9150620005ef565b600d546001600160701b031691505b9091565b6000828201838110156200064e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b039081166323b872dd60e01b17909152620006b7918691620006fa16565b50505050565b60006200064e82620006e6670de0b6b3a764000086620007b660201b620018ed1790919060201c565b6200081460201b620019461790919060201c565b606062000756826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200087d60201b620019ad179092919060201c565b8051909150156200042a578080602001905160208110156200077757600080fd5b50516200042a5760405162461bcd60e51b815260040180806020018281038252602a8152602001806200393e602a913960400191505060405180910390fd5b600082620007c75750600062000651565b82820282848281620007d557fe5b04146200064e5760405162461bcd60e51b81526004018080602001828103825260218152602001806200391d6021913960400191505060405180910390fd5b60008082116200086b576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816200087557fe5b049392505050565b60606200088e848460008562000898565b90505b9392505050565b606082471015620008db5760405162461bcd60e51b8152600401808060200182810382526026815260200180620038f76026913960400191505060405180910390fd5b620008e68562000a00565b62000938576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310620009795780518252601f19909201916020918201910162000958565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114620009dd576040519150601f19603f3d011682016040523d82523d6000602084013e620009e2565b606091505b509092509050620009f582828662000a0a565b979650505050505050565b803b15155b919050565b6060831562000a1b57508162000891565b82511562000a2c5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000a7857818101518382015260200162000a5e565b50505050905090810190601f16801562000aa65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b828054600181600116156101000203166002900490600052602060002090601f01602090048101928262000aec576000855562000b37565b82601f1062000b0757805160ff191683800117855562000b37565b8280016001018555821562000b37579182015b8281111562000b3757825182559160200191906001019062000b1a565b5062000b4592915062000b49565b5090565b5b8082111562000b45576000815560010162000b4a565b80516001600160a01b038116811462000a0557600080fd5b6000806000806080858703121562000b8e578384fd5b62000b998562000b60565b935062000ba96020860162000b60565b925062000bb96040860162000b60565b915062000bc96060860162000b60565b905092959194509250565b60006020828403121562000be6578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6020808252600890820152674f564552464c4f5760c01b604082015260600190565b90815260200190565b918252602082015260400190565b612cad8062000c4a6000396000f3fe608060405234801561001057600080fd5b50600436106102bb5760003560e01c806394bf804d11610182578063d65a06b0116100e9578063ebcfb20a116100a2578063f2fde38b1161007c578063f2fde38b14610596578063f84afd48146105a9578063f9eaa5df146105bc578063fb46f21d146105d2576102bb565b8063ebcfb20a14610573578063f14faf6f1461057b578063f24947871461058e576102bb565b8063d65a06b014610520578063db1d0fd514610533578063db2e21bc14610548578063dd62ed3e14610550578063e3a61af414610563578063e4057ed71461056b576102bb565b8063a9059cbb1161013b578063a9059cbb146104bf578063af1720d5146104d2578063bcb86052146104da578063c323e901146104fd578063c4b521a614610505578063d35673d51461050d576102bb565b806394bf804d1461047957806395d89b411461048c5780639bd9a8ee146104945780639e3ce1cf1461049c578063a1527988146104a4578063a317ed1b146104b7576102bb565b8063427a9d181161022657806375ae267d116101df57806375ae267d146104285780637b9a55261461043b578063841e45611461044e5780638b79433c146104615780638da5cb5b1461046957806392343f8e14610471576102bb565b8063427a9d18146103bd578063443355e5146103d25780635d1dc438146103f257806363a8837b146103fa57806370a082311461040d578063715018a614610420576102bb565b80631c1252f5116102785780631c1252f51461035f57806323b872dd1461036757806325d998bb1461037a578063300773cd1461038d578063313ce567146103a05780634132b889146103b5576102bb565b806306fdde03146102c0578063095ea7b3146102de57806314eb76ac146102fe578063176cd0a71461031357806318160ddd146103265780631959a0021461033b575b600080fd5b6102c86105da565b6040516102d5919061288f565b60405180910390f35b6102f16102ec366004612704565b610667565b6040516102d59190612884565b61031161030c36600461267d565b610708565b005b610311610321366004612747565b61078c565b61032e6107f3565b6040516102d59190612b6f565b61034e61034936600461267d565b6108a0565b6040516102d5959493929190612b35565b61032e6108e6565b6102f16103753660046126c9565b6108ec565b61032e61038836600461267d565b61099f565b61031161039b366004612747565b6109aa565b6103a8610a68565b6040516102d59190612bb2565b6102f1610a71565b6103c5610a81565b6040516102d59190612ba1565b6103e56103e036600461267d565b610a94565b6040516102d591906127bb565b61032e610ab8565b61032e61040836600461267d565b610abe565b61032e61041b36600461267d565b610b7a565b610311610b95565b61031161043636600461272d565b610c41565b610311610449366004612747565b610cea565b61031161045c36600461267d565b610d51565b61032e610dd5565b6103e5610ddb565b6103e5610dea565b610311610487366004612777565b610df9565b6102c8611006565b6103e561105e565b6103e561106d565b6103116104b2366004612747565b611073565b6103e56110da565b6102f16104cd366004612704565b6110e9565b61032e611107565b6104ed6104e8366004612747565b61110d565b6040516102d59493929190612b86565b61032e61116e565b6103e5611173565b61031161051b366004612747565b611182565b61031161052e366004612799565b611219565b61053b611423565b6040516102d59190612b21565b610311611432565b61032e61055e366004612697565b611538565b61032e611563565b61032e61156f565b61053b611575565b610311610589366004612747565b61158b565b61032e611618565b6103116105a436600461267d565b61161e565b6103116105b736600461267d565b611720565b6105c46117a4565b6040516102d5929190612b78565b61032e61180f565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561065f5780601f106106345761010080835404028352916020019161065f565b820191906000526020600020905b81548152906001019060200180831161064257829003601f168201915b505050505081565b600854600090600160a01b900460ff1661069c5760405162461bcd60e51b815260040161069390612a77565b60405180910390fd5b3360008181526004602090815260408083206001600160a01b03881680855292529182902085905590519091907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906106f6908690612b6f565b60405180910390a35060015b92915050565b6107106119c4565b6001600160a01b0316610721610ddb565b6001600160a01b03161461076a576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6107946119c4565b6001600160a01b03166107a5610ddb565b6001600160a01b0316146107ee576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600b55565b6005546040516370a0823160e01b815260009182916001600160a01b03909116906370a08231906108289030906004016127bb565b60206040518083038186803b15801561084057600080fd5b505afa158015610854573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610878919061275f565b905060006108846117a4565b9150600090506108948383611815565b60649004949350505050565b60106020526000908152604090208054600182015460028301546003909301546001600160801b0380841694600160801b90940416926001600160a01b03909216919085565b600c5481565b6001600160a01b038316600090815260046020908152604080832033845290915281205482111561092f5760405162461bcd60e51b815260040161069390612919565b6109376119c8565b610942848484611b12565b6001600160a01b03841660009081526004602090815260408083203384529091529020546109709083611ce3565b6001600160a01b03851660009081526004602090815260408083203384529091529020555060015b9392505050565b600061070282610b7a565b6109b26119c4565b6001600160a01b03166109c3610ddb565b6001600160a01b031614610a0c576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b610a146119c8565b6009819055600554610a2e906001600160a01b0316611d40565b7feca81e4b546cfbc80883349ef5bdaca1c02dc7cb0bdb9e1183cb7698f90bbb8581604051610a5d9190612b6f565b60405180910390a150565b60035460ff1681565b600854600160a01b900460ff1681565b600d54600160e01b900463ffffffff1681565b6001600160a01b03808216600090815260106020526040902060010154165b919050565b600e5481565b6000610ac8612628565b506001600160a01b038083166000908152601060209081526040808320815160a08101835281546001600160801b038082168352600160801b9091041693810193909352600181015490941690820152600283015460608201526003909201546080830152610b356117a4565b5090506000610b5183600001516001600160801b031683611e5c565b90508260600151811115610b6d57826060015181039350610b72565b600093505b505050919050565b60006064610b8783610abe565b81610b8e57fe5b0492915050565b610b9d6119c4565b6001600160a01b0316610bae610ddb565b6001600160a01b031614610bf7576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610c496119c4565b6001600160a01b0316610c5a610ddb565b6001600160a01b031614610ca3576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b831515021790556040517f1cef9d219073dee0fbb9f2d32b58c7c0a85a31476bc46847fa800c8f93f4860b90610a5d908390612884565b610cf26119c4565b6001600160a01b0316610d03610ddb565b6001600160a01b031614610d4c576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b601155565b610d596119c4565b6001600160a01b0316610d6a610ddb565b6001600160a01b031614610db3576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600f5481565b6000546001600160a01b031690565b6006546001600160a01b031681565b6001600160a01b03811615801590610e1a57506001600160a01b0381163314155b610e365760405162461bcd60e51b815260040161069390612a40565b670de0b6b3a7640000821015610e5e5760405162461bcd60e51b8152600401610693906129fc565b33600090815260106020526040902060018101546001600160a01b0316610ef1576006546001600160a01b0383811691161480610eb757506001600160a01b038281166000908152601060205260409020600101541615155b610ed35760405162461bcd60e51b815260040161069390612abb565b6001810180546001600160a01b0319166001600160a01b0384161790555b60115415610f46576001810154600090610f13906001600160a01b0316610abe565b9050601154811015610f44576006546001830180546001600160a01b0319166001600160a01b039092169190911790555b505b610f4e6119c8565b600554610f66906001600160a01b031633308661186f565b600d54600090610f809085906001600160701b03166118cf565b9050610f8c8282611e78565b600554610fa1906001600160a01b0316611d40565b610faa33611fb2565b6001820154610fc1906001600160a01b0316611fb2565b7fe96fb799e0319908971cfe834b4fb1e98c7c6240063cd67920ca64c5242c4322338486600f54604051610ff894939291906127cf565b60405180910390a150505050565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561065f5780601f106106345761010080835404028352916020019161065f565b6005546001600160a01b031681565b61dead81565b61107b6119c4565b6001600160a01b031661108c610ddb565b6001600160a01b0316146110d5576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600c55565b6007546001600160a01b031681565b60006110f36119c8565b6110fe338484611b12565b50600192915050565b600a5481565b6000806000806000600c5490506111248682611e5c565b92506111308684611ce3565b945061113e83600a54611e5c565b935061114c83600b54611e5c565b91506111588385611ce3565b92506111648383611ce3565b9250509193509193565b606481565b6008546001600160a01b031681565b61118a6119c4565b6001600160a01b031661119b610ddb565b6001600160a01b0316146111e4576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600a8190556040517f75743b03a45c16c2cd91f5521d2c44309259d6d1d1ff30395b83d9db46b6854190610a5d908390612b6f565b3382806112258361099f565b10156112435760405162461bcd60e51b8152600401610693906129b5565b61124b6119c8565b336000908152601060205260408120908085156112b2576002830154600d5461129191611280916001600160701b03166118cf565b84546001600160801b031690611ce3565b600d549091506112ab9082906001600160701b0316611e5c565b91506112da565b6112bd8760646118ed565b600d549092506112d79083906001600160701b03166118cf565b90505b6112e48382612036565b6000806000806112f38661110d565b60055493975091955093509150611314906001600160a01b03163386612323565b821561133357600554611333906001600160a01b031661dead85612323565b801561135657600754600554611356916001600160a01b03918216911683612323565b811561139e5761137d61136b83600f546118cf565b600d546001600160701b031690611815565b600d80546001600160701b0319166001600160701b03929092169190911790555b6005546113b3906001600160a01b0316611d40565b6113bc33611fb2565b60018701546113d3906001600160a01b0316611fb2565b7f4596a60435c8261ed1af5e6df9a7aee3838d638d1d6dd9ec7434a68819e5a52d3385858585600f5460405161140e96959493929190612811565b60405180910390a15050505050505050505050565b600d546001600160701b031681565b61143a6119c4565b6001600160a01b031661144b610ddb565b6001600160a01b031614611494576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b6005546040516370a0823160e01b81526000916001600160a01b0316906370a08231906114c59030906004016127bb565b60206040518083038186803b1580156114dd57600080fd5b505afa1580156114f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611515919061275f565b9050611535611522610ddb565b6005546001600160a01b03169083612323565b50565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b67016345785d8a000081565b60115481565b600d54600160701b90046001600160701b031681565b6005546115a3906001600160a01b031633308461186f565b6115b261136b82600f546118cf565b600d80546001600160701b0319166001600160701b03929092169190911790556005546115e7906001600160a01b0316611d40565b7f8e66e4ce02f38ef5a90664bb2db9c1b2a84d0e3691b73ffdb42d6dade75162673382604051610a5d9291906127f8565b60095481565b6116266119c4565b6001600160a01b0316611637610ddb565b6001600160a01b031614611680576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b6001600160a01b0381166116c55760405162461bcd60e51b8152600401808060200182810382526026815260200180612bc16026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6117286119c4565b6001600160a01b0316611739610ddb565b6001600160a01b031614611782576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b600d546000908190600160e01b900463ffffffff166117c5575060006117de565b50600d54600954600160e01b90910463ffffffff164303025b600f54156117fc576117f561136b82600f546118cf565b915061180b565b600d546001600160701b031691505b9091565b600b5481565b600082820183811015610998576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526118c9908590612371565b50505050565b6000610998826118e785670de0b6b3a76400006118ed565b90611946565b6000826118fc57506000610702565b8282028284828161190957fe5b04146109985760405162461bcd60e51b8152600401808060200182810382526021815260200180612c0d6021913960400191505060405180910390fd5b600080821161199c576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816119a557fe5b049392505050565b60606119bc8484600085612422565b949350505050565b3390565b6000806119d36117a4565b600d5491935091506000906119f9908390600160701b90046001600160701b0316611815565b90506001600160701b038311801590611a1957506001600160701b038111155b611a355760405162461bcd60e51b815260040161069390612aff565b600d80546001600160701b0319166001600160701b03858116919091176dffffffffffffffffffffffffffff60701b1916600160701b91841691909102176001600160e01b0316600160e01b4363ffffffff16021790558115611b0d57600854600554611ab0916001600160a01b039182169116308561186f565b600e54611abd9083611815565b600e55600554611ad5906001600160a01b0316611d40565b7fdee982458f84113ac3e32d44595820a6fa60cfbe80a1bdd444c26599ee5b7dd582604051611b049190612b6f565b60405180910390a15b505050565b600854600160a01b900460ff16611b3b5760405162461bcd60e51b815260040161069390612a77565b828180611b478361099f565b1015611b655760405162461bcd60e51b8152600401610693906129b5565b6001600160a01b038516611b8b5760405162461bcd60e51b8152600401610693906128e2565b6001600160a01b038416611bb15760405162461bcd60e51b815260040161069390612947565b836001600160a01b0316856001600160a01b03161415611be35760405162461bcd60e51b81526004016106939061297e565b600d54600090611c009060648602906001600160701b03166118cf565b6001600160a01b038088166000908152601060205260408082209289168252902091925090611c2f8284612036565b611c398184611e78565b600554611c4e906001600160a01b0316611d40565b611c5788611fb2565b6001820154611c6e906001600160a01b0316611fb2565b611c7787611fb2565b6001810154611c8e906001600160a01b0316611fb2565b866001600160a01b0316886001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef88604051611cd19190612b6f565b60405180910390a35050505050505050565b600082821115611d3a576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b7f28534d0ab69d062225c304f03154079414ece8f1498298a0f76a84c1e225e86a816001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d9a57600080fd5b505afa158015611dae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd2919061275f565b6040516370a0823160e01b81526001600160a01b038416906370a0823190611dfe9030906004016127bb565b60206040518083038186803b158015611e1657600080fd5b505afa158015611e2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4e919061275f565b604051610a5d929190612b78565b6000670de0b6b3a7640000611e7184846118ed565b816119a557fe5b6001600160801b03811115611e9f5760405162461bcd60e51b815260040161069390612aff565b60018201546001600160a01b0316600090815260106020526040812090611ece8367016345785d8a0000611e5c565b600d54909150600090611eeb9083906001600160701b0316611e5c565b8554909150611f03906001600160801b031685611815565b85546001600160801b0319166001600160801b0391821617808755611f3191600160801b9091041683611815565b85546001600160801b03918216600160801b029082161786558354611f57911683611815565b83546001600160801b0319166001600160801b03919091161783556002830154611f819082611815565b6001600160801b03166002840155600f54611fa8908390611fa29087611815565b90611815565b600f555050505050565b6001600160a01b03808216600090815260106020526040908190208054600182015460028301546003840154945193957ffa1f27e78b9c9fd9e728118a801ececb1599002acdfea81c03bd90e93fbcf3449561202a9589956001600160801b0380821696600160801b90920416949316929190612844565b60405180910390a15050565b815461204b906001600160801b031682611ce3565b82546001600160801b0319166001600160801b03919091161782556002820154600d54600091612083916001600160701b03166118cf565b83549091506001600160801b03168110156120cd5782546120ad906001600160801b031682611ce3565b83546001600160801b0319166001600160801b03919091161783556120e7565b5081546001600160801b0319811683556001600160801b03165b600283015460038401546120fa91611815565b600384015560006002840181905561211a8367016345785d8a0000611e5c565b8454909150600160801b90046001600160801b031681101561213c578061214f565b8354600160801b90046001600160801b03165b845490915061216e90600160801b90046001600160801b031682611ce3565b84546001600160801b03918216600160801b029116178455600d546000906121a09083906001600160701b0316611e5c565b60018601546001600160a01b0316600090815260106020526040902060038101549192509082111561222e576003810154600d546000916121e9916001600160701b03166118cf565b905083811015612202576121fd8482611ce3565b612205565b60005b935061221e826003015484611ce390919063ffffffff16565b60006003840155925061224a9050565b600381015461223d9083611ce3565b6003820155600092508291505b6002810154600d54600091612267916001600160701b03166118cf565b90508084106122ac5760006002830155815461228c906001600160801b031682611ce3565b82546001600160801b0319166001600160801b03919091161782556122f4565b60028201546122bb9084611ce3565b6001600160801b03908116600284015582546122d8911685611ce3565b82546001600160801b0319166001600160801b03919091161782555b61231785612311866123118a600f54611ce390919063ffffffff16565b90611ce3565b600f5550505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611b0d9084905b60606123c6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166119ad9092919063ffffffff16565b805190915015611b0d578080602001905160208110156123e557600080fd5b5051611b0d5760405162461bcd60e51b815260040180806020018281038252602a815260200180612c4e602a913960400191505060405180910390fd5b6060824710156124635760405162461bcd60e51b8152600401808060200182810382526026815260200180612be76026913960400191505060405180910390fd5b61246c8561257e565b6124bd576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106124fc5780518252601f1990920191602091820191016124dd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461255e576040519150601f19603f3d011682016040523d82523d6000602084013e612563565b606091505b5091509150612573828286612584565b979650505050505050565b3b151590565b60608315612593575081610998565b8251156125a35782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156125ed5781810151838201526020016125d5565b50505050905090810190601f16801561261a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b80356001600160a01b0381168114610ab357600080fd5b80358015158114610ab357600080fd5b60006020828403121561268e578081fd5b61099882612656565b600080604083850312156126a9578081fd5b6126b283612656565b91506126c060208401612656565b90509250929050565b6000806000606084860312156126dd578081fd5b6126e684612656565b92506126f460208501612656565b9150604084013590509250925092565b60008060408385031215612716578182fd5b61271f83612656565b946020939093013593505050565b60006020828403121561273e578081fd5b6109988261266d565b600060208284031215612758578081fd5b5035919050565b600060208284031215612770578081fd5b5051919050565b60008060408385031215612789578182fd5b823591506126c060208401612656565b600080604083850312156127ab578182fd5b823591506126c06020840161266d565b6001600160a01b0391909116815260200190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b03969096168652602086019490945260408501929092526060840152608083015260a082015260c00190565b6001600160a01b0396871681526001600160801b03958616602082015293909416604084015293166060820152608081019290925260a082015260c00190565b901515815260200190565b6000602080835283518082850152825b818110156128bb5785810183015185820160400152820161289f565b818111156128cc5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601e908201527f7472616e736665722066726f6d20746865207a65726f20616464726573730000604082015260600190565b60208082526014908201527308298989eae829c868abe9c9ea8be8a9c9eaa8e960631b604082015260600190565b6020808252601c908201527f7472616e7366657220746f20746865207a65726f206164647265737300000000604082015260600190565b6020808252601a908201527f7472616e736665722066726f6d2073616d65207769746820746f000000000000604082015260600190565b60208082526027908201527f7642414259546f6b656e3a20617661696c61626c6520616d6f756e74206e6f74604082015266040cadcdeeaced60cb1b606082015260800190565b60208082526024908201527f7642414259546f6b656e3a206d757374206d696e742067726561746572207468604082015263616e203160e01b606082015260800190565b6020808252601c908201527f7642414259546f6b656e3a205375706572696f7220494e56414c494400000000604082015260600190565b60208082526024908201527f7642414259546f6b656e3a206e6f742074686520616c6c6f776564207472616e60408201526339b332b960e11b606082015260800190565b60208082526024908201527f7642414259546f6b656e3a20494e56414c49445f5355504552494f525f4144446040820152635245535360e01b606082015260800190565b6020808252600890820152674f564552464c4f5760c01b604082015260600190565b6001600160701b0391909116815260200190565b6001600160801b0395861681529390941660208401526001600160a01b039190911660408301526060820152608081019190915260a00190565b90815260200190565b918252602082015260400190565b93845260208401929092526040830152606082015260800190565b63ffffffff91909116815260200190565b60ff9190911681526020019056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212207e97c33b5d2c06bba19c1590432e97fa96b8abb2e5eabda566aa6d472f7c017264736f6c63430007040033416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656400000000000000000000000053e562b9b7e5e94b81f10e96ee70ad06df3d26570000000000000000000000006cef6efcd1549da7dcb91ddf28bfcc1401c3c73d000000000000000000000000dac32cab6e727b459a8bfa7a87db14ac21b164b7000000000000000000000000431616505523f8cdce61b4025962ccf8980295ac

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102bb5760003560e01c806394bf804d11610182578063d65a06b0116100e9578063ebcfb20a116100a2578063f2fde38b1161007c578063f2fde38b14610596578063f84afd48146105a9578063f9eaa5df146105bc578063fb46f21d146105d2576102bb565b8063ebcfb20a14610573578063f14faf6f1461057b578063f24947871461058e576102bb565b8063d65a06b014610520578063db1d0fd514610533578063db2e21bc14610548578063dd62ed3e14610550578063e3a61af414610563578063e4057ed71461056b576102bb565b8063a9059cbb1161013b578063a9059cbb146104bf578063af1720d5146104d2578063bcb86052146104da578063c323e901146104fd578063c4b521a614610505578063d35673d51461050d576102bb565b806394bf804d1461047957806395d89b411461048c5780639bd9a8ee146104945780639e3ce1cf1461049c578063a1527988146104a4578063a317ed1b146104b7576102bb565b8063427a9d181161022657806375ae267d116101df57806375ae267d146104285780637b9a55261461043b578063841e45611461044e5780638b79433c146104615780638da5cb5b1461046957806392343f8e14610471576102bb565b8063427a9d18146103bd578063443355e5146103d25780635d1dc438146103f257806363a8837b146103fa57806370a082311461040d578063715018a614610420576102bb565b80631c1252f5116102785780631c1252f51461035f57806323b872dd1461036757806325d998bb1461037a578063300773cd1461038d578063313ce567146103a05780634132b889146103b5576102bb565b806306fdde03146102c0578063095ea7b3146102de57806314eb76ac146102fe578063176cd0a71461031357806318160ddd146103265780631959a0021461033b575b600080fd5b6102c86105da565b6040516102d5919061288f565b60405180910390f35b6102f16102ec366004612704565b610667565b6040516102d59190612884565b61031161030c36600461267d565b610708565b005b610311610321366004612747565b61078c565b61032e6107f3565b6040516102d59190612b6f565b61034e61034936600461267d565b6108a0565b6040516102d5959493929190612b35565b61032e6108e6565b6102f16103753660046126c9565b6108ec565b61032e61038836600461267d565b61099f565b61031161039b366004612747565b6109aa565b6103a8610a68565b6040516102d59190612bb2565b6102f1610a71565b6103c5610a81565b6040516102d59190612ba1565b6103e56103e036600461267d565b610a94565b6040516102d591906127bb565b61032e610ab8565b61032e61040836600461267d565b610abe565b61032e61041b36600461267d565b610b7a565b610311610b95565b61031161043636600461272d565b610c41565b610311610449366004612747565b610cea565b61031161045c36600461267d565b610d51565b61032e610dd5565b6103e5610ddb565b6103e5610dea565b610311610487366004612777565b610df9565b6102c8611006565b6103e561105e565b6103e561106d565b6103116104b2366004612747565b611073565b6103e56110da565b6102f16104cd366004612704565b6110e9565b61032e611107565b6104ed6104e8366004612747565b61110d565b6040516102d59493929190612b86565b61032e61116e565b6103e5611173565b61031161051b366004612747565b611182565b61031161052e366004612799565b611219565b61053b611423565b6040516102d59190612b21565b610311611432565b61032e61055e366004612697565b611538565b61032e611563565b61032e61156f565b61053b611575565b610311610589366004612747565b61158b565b61032e611618565b6103116105a436600461267d565b61161e565b6103116105b736600461267d565b611720565b6105c46117a4565b6040516102d5929190612b78565b61032e61180f565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561065f5780601f106106345761010080835404028352916020019161065f565b820191906000526020600020905b81548152906001019060200180831161064257829003601f168201915b505050505081565b600854600090600160a01b900460ff1661069c5760405162461bcd60e51b815260040161069390612a77565b60405180910390fd5b3360008181526004602090815260408083206001600160a01b03881680855292529182902085905590519091907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906106f6908690612b6f565b60405180910390a35060015b92915050565b6107106119c4565b6001600160a01b0316610721610ddb565b6001600160a01b03161461076a576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6107946119c4565b6001600160a01b03166107a5610ddb565b6001600160a01b0316146107ee576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600b55565b6005546040516370a0823160e01b815260009182916001600160a01b03909116906370a08231906108289030906004016127bb565b60206040518083038186803b15801561084057600080fd5b505afa158015610854573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610878919061275f565b905060006108846117a4565b9150600090506108948383611815565b60649004949350505050565b60106020526000908152604090208054600182015460028301546003909301546001600160801b0380841694600160801b90940416926001600160a01b03909216919085565b600c5481565b6001600160a01b038316600090815260046020908152604080832033845290915281205482111561092f5760405162461bcd60e51b815260040161069390612919565b6109376119c8565b610942848484611b12565b6001600160a01b03841660009081526004602090815260408083203384529091529020546109709083611ce3565b6001600160a01b03851660009081526004602090815260408083203384529091529020555060015b9392505050565b600061070282610b7a565b6109b26119c4565b6001600160a01b03166109c3610ddb565b6001600160a01b031614610a0c576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b610a146119c8565b6009819055600554610a2e906001600160a01b0316611d40565b7feca81e4b546cfbc80883349ef5bdaca1c02dc7cb0bdb9e1183cb7698f90bbb8581604051610a5d9190612b6f565b60405180910390a150565b60035460ff1681565b600854600160a01b900460ff1681565b600d54600160e01b900463ffffffff1681565b6001600160a01b03808216600090815260106020526040902060010154165b919050565b600e5481565b6000610ac8612628565b506001600160a01b038083166000908152601060209081526040808320815160a08101835281546001600160801b038082168352600160801b9091041693810193909352600181015490941690820152600283015460608201526003909201546080830152610b356117a4565b5090506000610b5183600001516001600160801b031683611e5c565b90508260600151811115610b6d57826060015181039350610b72565b600093505b505050919050565b60006064610b8783610abe565b81610b8e57fe5b0492915050565b610b9d6119c4565b6001600160a01b0316610bae610ddb565b6001600160a01b031614610bf7576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610c496119c4565b6001600160a01b0316610c5a610ddb565b6001600160a01b031614610ca3576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b6008805460ff60a01b1916600160a01b831515021790556040517f1cef9d219073dee0fbb9f2d32b58c7c0a85a31476bc46847fa800c8f93f4860b90610a5d908390612884565b610cf26119c4565b6001600160a01b0316610d03610ddb565b6001600160a01b031614610d4c576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b601155565b610d596119c4565b6001600160a01b0316610d6a610ddb565b6001600160a01b031614610db3576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b600f5481565b6000546001600160a01b031690565b6006546001600160a01b031681565b6001600160a01b03811615801590610e1a57506001600160a01b0381163314155b610e365760405162461bcd60e51b815260040161069390612a40565b670de0b6b3a7640000821015610e5e5760405162461bcd60e51b8152600401610693906129fc565b33600090815260106020526040902060018101546001600160a01b0316610ef1576006546001600160a01b0383811691161480610eb757506001600160a01b038281166000908152601060205260409020600101541615155b610ed35760405162461bcd60e51b815260040161069390612abb565b6001810180546001600160a01b0319166001600160a01b0384161790555b60115415610f46576001810154600090610f13906001600160a01b0316610abe565b9050601154811015610f44576006546001830180546001600160a01b0319166001600160a01b039092169190911790555b505b610f4e6119c8565b600554610f66906001600160a01b031633308661186f565b600d54600090610f809085906001600160701b03166118cf565b9050610f8c8282611e78565b600554610fa1906001600160a01b0316611d40565b610faa33611fb2565b6001820154610fc1906001600160a01b0316611fb2565b7fe96fb799e0319908971cfe834b4fb1e98c7c6240063cd67920ca64c5242c4322338486600f54604051610ff894939291906127cf565b60405180910390a150505050565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561065f5780601f106106345761010080835404028352916020019161065f565b6005546001600160a01b031681565b61dead81565b61107b6119c4565b6001600160a01b031661108c610ddb565b6001600160a01b0316146110d5576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600c55565b6007546001600160a01b031681565b60006110f36119c8565b6110fe338484611b12565b50600192915050565b600a5481565b6000806000806000600c5490506111248682611e5c565b92506111308684611ce3565b945061113e83600a54611e5c565b935061114c83600b54611e5c565b91506111588385611ce3565b92506111648383611ce3565b9250509193509193565b606481565b6008546001600160a01b031681565b61118a6119c4565b6001600160a01b031661119b610ddb565b6001600160a01b0316146111e4576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600a8190556040517f75743b03a45c16c2cd91f5521d2c44309259d6d1d1ff30395b83d9db46b6854190610a5d908390612b6f565b3382806112258361099f565b10156112435760405162461bcd60e51b8152600401610693906129b5565b61124b6119c8565b336000908152601060205260408120908085156112b2576002830154600d5461129191611280916001600160701b03166118cf565b84546001600160801b031690611ce3565b600d549091506112ab9082906001600160701b0316611e5c565b91506112da565b6112bd8760646118ed565b600d549092506112d79083906001600160701b03166118cf565b90505b6112e48382612036565b6000806000806112f38661110d565b60055493975091955093509150611314906001600160a01b03163386612323565b821561133357600554611333906001600160a01b031661dead85612323565b801561135657600754600554611356916001600160a01b03918216911683612323565b811561139e5761137d61136b83600f546118cf565b600d546001600160701b031690611815565b600d80546001600160701b0319166001600160701b03929092169190911790555b6005546113b3906001600160a01b0316611d40565b6113bc33611fb2565b60018701546113d3906001600160a01b0316611fb2565b7f4596a60435c8261ed1af5e6df9a7aee3838d638d1d6dd9ec7434a68819e5a52d3385858585600f5460405161140e96959493929190612811565b60405180910390a15050505050505050505050565b600d546001600160701b031681565b61143a6119c4565b6001600160a01b031661144b610ddb565b6001600160a01b031614611494576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b6005546040516370a0823160e01b81526000916001600160a01b0316906370a08231906114c59030906004016127bb565b60206040518083038186803b1580156114dd57600080fd5b505afa1580156114f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611515919061275f565b9050611535611522610ddb565b6005546001600160a01b03169083612323565b50565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b67016345785d8a000081565b60115481565b600d54600160701b90046001600160701b031681565b6005546115a3906001600160a01b031633308461186f565b6115b261136b82600f546118cf565b600d80546001600160701b0319166001600160701b03929092169190911790556005546115e7906001600160a01b0316611d40565b7f8e66e4ce02f38ef5a90664bb2db9c1b2a84d0e3691b73ffdb42d6dade75162673382604051610a5d9291906127f8565b60095481565b6116266119c4565b6001600160a01b0316611637610ddb565b6001600160a01b031614611680576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b6001600160a01b0381166116c55760405162461bcd60e51b8152600401808060200182810382526026815260200180612bc16026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6117286119c4565b6001600160a01b0316611739610ddb565b6001600160a01b031614611782576040805162461bcd60e51b81526020600482018190526024820152600080516020612c2e833981519152604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b600d546000908190600160e01b900463ffffffff166117c5575060006117de565b50600d54600954600160e01b90910463ffffffff164303025b600f54156117fc576117f561136b82600f546118cf565b915061180b565b600d546001600160701b031691505b9091565b600b5481565b600082820183811015610998576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526118c9908590612371565b50505050565b6000610998826118e785670de0b6b3a76400006118ed565b90611946565b6000826118fc57506000610702565b8282028284828161190957fe5b04146109985760405162461bcd60e51b8152600401808060200182810382526021815260200180612c0d6021913960400191505060405180910390fd5b600080821161199c576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816119a557fe5b049392505050565b60606119bc8484600085612422565b949350505050565b3390565b6000806119d36117a4565b600d5491935091506000906119f9908390600160701b90046001600160701b0316611815565b90506001600160701b038311801590611a1957506001600160701b038111155b611a355760405162461bcd60e51b815260040161069390612aff565b600d80546001600160701b0319166001600160701b03858116919091176dffffffffffffffffffffffffffff60701b1916600160701b91841691909102176001600160e01b0316600160e01b4363ffffffff16021790558115611b0d57600854600554611ab0916001600160a01b039182169116308561186f565b600e54611abd9083611815565b600e55600554611ad5906001600160a01b0316611d40565b7fdee982458f84113ac3e32d44595820a6fa60cfbe80a1bdd444c26599ee5b7dd582604051611b049190612b6f565b60405180910390a15b505050565b600854600160a01b900460ff16611b3b5760405162461bcd60e51b815260040161069390612a77565b828180611b478361099f565b1015611b655760405162461bcd60e51b8152600401610693906129b5565b6001600160a01b038516611b8b5760405162461bcd60e51b8152600401610693906128e2565b6001600160a01b038416611bb15760405162461bcd60e51b815260040161069390612947565b836001600160a01b0316856001600160a01b03161415611be35760405162461bcd60e51b81526004016106939061297e565b600d54600090611c009060648602906001600160701b03166118cf565b6001600160a01b038088166000908152601060205260408082209289168252902091925090611c2f8284612036565b611c398184611e78565b600554611c4e906001600160a01b0316611d40565b611c5788611fb2565b6001820154611c6e906001600160a01b0316611fb2565b611c7787611fb2565b6001810154611c8e906001600160a01b0316611fb2565b866001600160a01b0316886001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef88604051611cd19190612b6f565b60405180910390a35050505050505050565b600082821115611d3a576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b7f28534d0ab69d062225c304f03154079414ece8f1498298a0f76a84c1e225e86a816001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d9a57600080fd5b505afa158015611dae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dd2919061275f565b6040516370a0823160e01b81526001600160a01b038416906370a0823190611dfe9030906004016127bb565b60206040518083038186803b158015611e1657600080fd5b505afa158015611e2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4e919061275f565b604051610a5d929190612b78565b6000670de0b6b3a7640000611e7184846118ed565b816119a557fe5b6001600160801b03811115611e9f5760405162461bcd60e51b815260040161069390612aff565b60018201546001600160a01b0316600090815260106020526040812090611ece8367016345785d8a0000611e5c565b600d54909150600090611eeb9083906001600160701b0316611e5c565b8554909150611f03906001600160801b031685611815565b85546001600160801b0319166001600160801b0391821617808755611f3191600160801b9091041683611815565b85546001600160801b03918216600160801b029082161786558354611f57911683611815565b83546001600160801b0319166001600160801b03919091161783556002830154611f819082611815565b6001600160801b03166002840155600f54611fa8908390611fa29087611815565b90611815565b600f555050505050565b6001600160a01b03808216600090815260106020526040908190208054600182015460028301546003840154945193957ffa1f27e78b9c9fd9e728118a801ececb1599002acdfea81c03bd90e93fbcf3449561202a9589956001600160801b0380821696600160801b90920416949316929190612844565b60405180910390a15050565b815461204b906001600160801b031682611ce3565b82546001600160801b0319166001600160801b03919091161782556002820154600d54600091612083916001600160701b03166118cf565b83549091506001600160801b03168110156120cd5782546120ad906001600160801b031682611ce3565b83546001600160801b0319166001600160801b03919091161783556120e7565b5081546001600160801b0319811683556001600160801b03165b600283015460038401546120fa91611815565b600384015560006002840181905561211a8367016345785d8a0000611e5c565b8454909150600160801b90046001600160801b031681101561213c578061214f565b8354600160801b90046001600160801b03165b845490915061216e90600160801b90046001600160801b031682611ce3565b84546001600160801b03918216600160801b029116178455600d546000906121a09083906001600160701b0316611e5c565b60018601546001600160a01b0316600090815260106020526040902060038101549192509082111561222e576003810154600d546000916121e9916001600160701b03166118cf565b905083811015612202576121fd8482611ce3565b612205565b60005b935061221e826003015484611ce390919063ffffffff16565b60006003840155925061224a9050565b600381015461223d9083611ce3565b6003820155600092508291505b6002810154600d54600091612267916001600160701b03166118cf565b90508084106122ac5760006002830155815461228c906001600160801b031682611ce3565b82546001600160801b0319166001600160801b03919091161782556122f4565b60028201546122bb9084611ce3565b6001600160801b03908116600284015582546122d8911685611ce3565b82546001600160801b0319166001600160801b03919091161782555b61231785612311866123118a600f54611ce390919063ffffffff16565b90611ce3565b600f5550505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611b0d9084905b60606123c6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166119ad9092919063ffffffff16565b805190915015611b0d578080602001905160208110156123e557600080fd5b5051611b0d5760405162461bcd60e51b815260040180806020018281038252602a815260200180612c4e602a913960400191505060405180910390fd5b6060824710156124635760405162461bcd60e51b8152600401808060200182810382526026815260200180612be76026913960400191505060405180910390fd5b61246c8561257e565b6124bd576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106124fc5780518252601f1990920191602091820191016124dd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461255e576040519150601f19603f3d011682016040523d82523d6000602084013e612563565b606091505b5091509150612573828286612584565b979650505050505050565b3b151590565b60608315612593575081610998565b8251156125a35782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156125ed5781810151838201526020016125d5565b50505050905090810190601f16801561261a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b80356001600160a01b0381168114610ab357600080fd5b80358015158114610ab357600080fd5b60006020828403121561268e578081fd5b61099882612656565b600080604083850312156126a9578081fd5b6126b283612656565b91506126c060208401612656565b90509250929050565b6000806000606084860312156126dd578081fd5b6126e684612656565b92506126f460208501612656565b9150604084013590509250925092565b60008060408385031215612716578182fd5b61271f83612656565b946020939093013593505050565b60006020828403121561273e578081fd5b6109988261266d565b600060208284031215612758578081fd5b5035919050565b600060208284031215612770578081fd5b5051919050565b60008060408385031215612789578182fd5b823591506126c060208401612656565b600080604083850312156127ab578182fd5b823591506126c06020840161266d565b6001600160a01b0391909116815260200190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b03969096168652602086019490945260408501929092526060840152608083015260a082015260c00190565b6001600160a01b0396871681526001600160801b03958616602082015293909416604084015293166060820152608081019290925260a082015260c00190565b901515815260200190565b6000602080835283518082850152825b818110156128bb5785810183015185820160400152820161289f565b818111156128cc5783604083870101525b50601f01601f1916929092016040019392505050565b6020808252601e908201527f7472616e736665722066726f6d20746865207a65726f20616464726573730000604082015260600190565b60208082526014908201527308298989eae829c868abe9c9ea8be8a9c9eaa8e960631b604082015260600190565b6020808252601c908201527f7472616e7366657220746f20746865207a65726f206164647265737300000000604082015260600190565b6020808252601a908201527f7472616e736665722066726f6d2073616d65207769746820746f000000000000604082015260600190565b60208082526027908201527f7642414259546f6b656e3a20617661696c61626c6520616d6f756e74206e6f74604082015266040cadcdeeaced60cb1b606082015260800190565b60208082526024908201527f7642414259546f6b656e3a206d757374206d696e742067726561746572207468604082015263616e203160e01b606082015260800190565b6020808252601c908201527f7642414259546f6b656e3a205375706572696f7220494e56414c494400000000604082015260600190565b60208082526024908201527f7642414259546f6b656e3a206e6f742074686520616c6c6f776564207472616e60408201526339b332b960e11b606082015260800190565b60208082526024908201527f7642414259546f6b656e3a20494e56414c49445f5355504552494f525f4144446040820152635245535360e01b606082015260800190565b6020808252600890820152674f564552464c4f5760c01b604082015260600190565b6001600160701b0391909116815260200190565b6001600160801b0395861681529390941660208401526001600160a01b039190911660408301526060820152608081019190915260a00190565b90815260200190565b918252602082015260400190565b93845260208401929092526040830152606082015260800190565b63ffffffff91909116815260200190565b60ff9190911681526020019056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212207e97c33b5d2c06bba19c1590432e97fa96b8abb2e5eabda566aa6d472f7c017264736f6c63430007040033

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

00000000000000000000000053e562b9b7e5e94b81f10e96ee70ad06df3d26570000000000000000000000006cef6efcd1549da7dcb91ddf28bfcc1401c3c73d000000000000000000000000dac32cab6e727b459a8bfa7a87db14ac21b164b7000000000000000000000000431616505523f8cdce61b4025962ccf8980295ac

-----Decoded View---------------
Arg [0] : babyToken (address): 0x53E562b9B7E5E94b81f10e96Ee70Ad06df3D2657
Arg [1] : babyTeam (address): 0x6Cef6EFcD1549Da7dCB91dDF28BfCc1401c3c73D
Arg [2] : babyReserve (address): 0xDAC32CAB6e727b459a8Bfa7A87Db14ac21b164b7
Arg [3] : babyTreasury (address): 0x431616505523f8Cdce61b4025962ccf8980295ac

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000053e562b9b7e5e94b81f10e96ee70ad06df3d2657
Arg [1] : 0000000000000000000000006cef6efcd1549da7dcb91ddf28bfcc1401c3c73d
Arg [2] : 000000000000000000000000dac32cab6e727b459a8bfa7a87db14ac21b164b7
Arg [3] : 000000000000000000000000431616505523f8cdce61b4025962ccf8980295ac


Block Transaction Gas Used Reward
view all blocks produced
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
View All Validatorset

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

Validator Index Block Amount
View All Withdrawals

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

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