Contract 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x70d86332751cae5cd0c32f634058a7cfd2f39c09f44bdaa425eb2b0d00939f0cCreate Pair61662622021-03-31 17:39:33290 days 16 hrs ago0xa490c3b07b32a64440600ea7dde5a4851f9f9cce IN  0xa4790135ba4439cdb2efb35fe191dc83d3d627f60 BNB0.02502672
0xceec47be712b3c7c7fbe66924f7bcacd037cc3349fe5ece80dfb65a69cf1eca00x608060403542482020-09-10 10:42:04492 days 22 hrs agoBurgerSwap: Deployer IN  Create: DemaxFactory0 BNB0.06016612
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x70d86332751cae5cd0c32f634058a7cfd2f39c09f44bdaa425eb2b0d00939f0c61662622021-03-31 17:39:33290 days 16 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x4ae40e3e9af687896ee7fa7485137d8cecd3b3adec75930603caf26bb57f0bc75932992020-09-18 17:54:37484 days 15 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x91588407d4e54df082edfce9d76cdfab4ee267cb1541afefc6671a11702014aa5932292020-09-18 17:51:07484 days 15 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x7300db086a1704b0c8d38f5635417fda8955a992b9515dea02395d561296b3095929832020-09-18 17:38:49484 days 16 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x195d015a949631e724cf20fd55fddb9a55056fffa5674a609ca5d0155cf7d4cf5929592020-09-18 17:37:37484 days 16 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x0423ce4d0d224bdd5551364ec2c1cf24a7b10ea18b0b2b0c6f6cc311fd57435e5927562020-09-18 17:27:28484 days 16 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0xefafa68dce7efd051958e9583ddd28dad3b6f07ec5d26c3860d155e1c97068b55927072020-09-18 17:25:01484 days 16 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x3f526d00713c8391059606b0cfe0ccb10ed14fbf3ca2778ba50ea1e1234ec3415873912020-09-18 12:59:13484 days 20 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0xf8963cd7286b30c3af2275f28802f681c049ead2ef56a72a9040726e4b35fce25819282020-09-18 8:26:04485 days 1 hr ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x93fe506dd50a41fb6c7a237e36a65c38eab2a49e53c8f03e7d499c4441d2c8af5786722020-09-18 5:43:16485 days 3 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x92c93411637ea5cf8da6b7a62faf4d35c7e9092132216cbb90a1dc07f016a02d5786692020-09-18 5:43:07485 days 3 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x2f6c15162fb2994f4f172d6a51c41c0043ab04a48b4f5a9ad1aecdae0dfa5c7f5772422020-09-18 4:31:46485 days 5 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x6cb3a0667f98435530202cfbcdd9053712d7a50429ee318c385f0f48d03b56555771412020-09-18 4:26:43485 days 5 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x8528606bc358a98715a44f509141a173ec1ac47775b37d994aa310a6cbb2905a5770802020-09-18 4:23:40485 days 5 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x039f9e549c99f6cb7ba900c2bee485edf1b916171194ab3148be4fcf0ba032b75769182020-09-18 4:15:34485 days 5 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0xb992696585332150c9b09f8f507edfe87767e00fb5ab53d9793256e71320cbb15695982020-09-17 22:09:34485 days 11 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x3e1216989cc8aab3cd7fa7911b83469fcf99889fd554090d6fce9262aaf217465650722020-09-17 18:23:16485 days 15 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x40ca5e7f224d1116c04313013cc308abdad40373e39990bb489cab82512a433d5623482020-09-17 16:07:04485 days 17 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0xa81261fd6f515725e35d8786b24c0e1e5dbe7a76391d06eb65f79a9c902032b45544322020-09-17 9:31:16486 days 9 mins ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x520e6fa799d7d6efb925101d985f279227b55a910dd5d0914e577132087713865463032020-09-17 2:44:49486 days 6 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0xfd1c7ef33bd2e7521c9845fe3b16e61a3397b5e45ddae6c2c22fe8cd68d012625461272020-09-17 2:36:01486 days 7 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x1d80481844e627e635777656d51c38b2b537740b9b20e01934431d3f0d8ba7485369152020-09-16 18:55:25486 days 14 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0x2b89994c2844ab24173f121165908ac4e34d984be5b38be89dc3f9f26423f2f75366382020-09-16 18:41:34486 days 14 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0xaee7e1a030158a095ea274f5204814b04d7aef17c07e78ad5f76f4d1f37a4fa45355272020-09-16 17:46:01486 days 15 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
0xf1c286ead516e16f00bf97c26e57c480f6d2b0e3b8673463380eba168399d4735347972020-09-16 17:09:31486 days 16 hrs ago 0xa4790135ba4439cdb2efb35fe191dc83d3d627f6  Contract Creation0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DemaxFactory

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2020-09-11
*/

// Dependency file: contracts/interfaces/IERC20.sol

// pragma solidity >=0.5.0;

interface IERC20 {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
}

// Dependency file: contracts/libraries/TransferHelper.sol

// SPDX-License-Identifier: GPL-3.0-or-later

// pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(address token, address to, uint value) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
    }

    function safeTransfer(address token, address to, uint value) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
    }

    function safeTransferFrom(address token, address from, address to, uint value) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
    }

    function safeTransferETH(address to, uint value) internal {
        (bool success,) = to.call{value:value}(new bytes(0));
        require(success, 'TransferHelper: ETH_TRANSFER_FAILED');
    }
}

// Dependency file: contracts/libraries/SafeMath.sol

// SPDX-License-Identifier: MIT

// pragma solidity ^0.6.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

//SPDX-License-Identifier: MIT
// pragma solidity >=0.6.6;
// import '../interfaces/IERC20.sol';

interface IERC2917 is IERC20 {

    /// @dev This emit when interests amount per block is changed by the owner of the contract.
    /// It emits with the old interests amount and the new interests amount.
    event InterestRatePerBlockChanged (uint oldValue, uint newValue);

    /// @dev This emit when a users' productivity has changed
    /// It emits with the user's address and the the value after the change.
    event ProductivityIncreased (address indexed user, uint value);

    /// @dev This emit when a users' productivity has changed
    /// It emits with the user's address and the the value after the change.
    event ProductivityDecreased (address indexed user, uint value);

    /// @dev Return the current contract's interests rate per block.
    /// @return The amount of interests currently producing per each block.
    function interestsPerBlock() external view returns (uint);

    /// @notice Change the current contract's interests rate.
    /// @dev Note the best practice will be restrict the gross product provider's contract address to call this.
    /// @return The true/fase to notice that the value has successfully changed or not, when it succeed, it will emite the InterestRatePerBlockChanged event.
    function changeInterestRatePerBlock(uint value) external returns (bool);

    /// @notice It will get the productivity of given user.
    /// @dev it will return 0 if user has no productivity proved in the contract.
    /// @return user's productivity and overall productivity.
    function getProductivity(address user) external view returns (uint, uint);

    /// @notice increase a user's productivity.
    /// @dev Note the best practice will be restrict the callee to prove of productivity's contract address.
    /// @return true to confirm that the productivity added success.
    function increaseProductivity(address user, uint value) external returns (bool);

    /// @notice decrease a user's productivity.
    /// @dev Note the best practice will be restrict the callee to prove of productivity's contract address.
    /// @return true to confirm that the productivity removed success.
    function decreaseProductivity(address user, uint value) external returns (bool);

    /// @notice take() will return the interests that callee will get at current block height.
    /// @dev it will always calculated by block.number, so it will change when block height changes.
    /// @return amount of the interests that user are able to mint() at current block height.
    function take() external view returns (uint);

    /// @notice similar to take(), but with the block height joined to calculate return.
    /// @dev for instance, it returns (_amount, _block), which means at block height _block, the callee has accumulated _amount of interests.
    /// @return amount of interests and the block height.
    function takeWithBlock() external view returns (uint, uint);

    /// @notice mint the avaiable interests to callee.
    /// @dev once it mint, the amount of interests will transfer to callee's address.
    /// @return the amount of interests minted.
    function mint() external returns (uint);
}
// Dependency file: contracts/libraries/ConfigNames.sol

// pragma solidity >=0.5.16;

library ConfigNames {
    bytes32 public constant PRODUCE_DGAS_RATE = bytes32('PRODUCE_DGAS_RATE');
    bytes32 public constant SWAP_FEE_PERCENT = bytes32('SWAP_FEE_PERCENT');
    bytes32 public constant LIST_DGAS_AMOUNT = bytes32('LIST_DGAS_AMOUNT');
    bytes32 public constant UNSTAKE_DURATION = bytes32('UNSTAKE_DURATION');
    bytes32 public constant REMOVE_LIQUIDITY_DURATION = bytes32('REMOVE_LIQUIDITY_DURATION');
    bytes32 public constant TOKEN_TO_DGAS_PAIR_MIN_PERCENT = bytes32('TOKEN_TO_DGAS_PAIR_MIN_PERCENT');
    bytes32 public constant LIST_TOKEN_FAILURE_BURN_PRECENT = bytes32('LIST_TOKEN_FAILURE_BURN_PRECENT');
    bytes32 public constant LIST_TOKEN_SUCCESS_BURN_PRECENT = bytes32('LIST_TOKEN_SUCCESS_BURN_PRECENT');
    bytes32 public constant PROPOSAL_DGAS_AMOUNT = bytes32('PROPOSAL_DGAS_AMOUNT');
    bytes32 public constant VOTE_DURATION = bytes32('VOTE_DURATION');
    bytes32 public constant VOTE_REWARD_PERCENT = bytes32('VOTE_REWARD_PERCENT');
    bytes32 public constant TOKEN_PENGDING_SWITCH = bytes32('TOKEN_PENGDING_SWITCH');
    bytes32 public constant TOKEN_PENGDING_TIME = bytes32('TOKEN_PENGDING_TIME');
    bytes32 public constant LIST_TOKEN_SWITCH = bytes32('LIST_TOKEN_SWITCH');
    bytes32 public constant DEV_PRECENT = bytes32('DEV_PRECENT');
}
// Dependency file: contracts/modules/BaseShareField.sol

// pragma solidity >=0.6.6;
// import '../interfaces/ERC2917-Interface.sol';
// import '../libraries/SafeMath.sol';
// import '../libraries/TransferHelper.sol';

contract BaseShareField {
    using SafeMath for uint;
    
    uint totalProductivity;
    uint accAmountPerShare;
    
    uint public totalShare;
    uint public mintedShare;
    uint public mintCumulation;
    
    address public shareToken;
    
    struct UserInfo {
        uint amount;     // How many tokens the user has provided.
        uint rewardDebt; // Reward debt. 
        uint rewardEarn; // Reward earn and not minted
    }

    mapping(address => UserInfo) public users;
    
    function _setShareToken(address _shareToken) internal {
        shareToken = _shareToken;
    }

    // Update reward variables of the given pool to be up-to-date.
    function _update() internal virtual {
        if (totalProductivity == 0) {
            totalShare = totalShare.add(_currentReward());
            return;
        }
        
        uint256 reward = _currentReward();
        accAmountPerShare = accAmountPerShare.add(reward.mul(1e12).div(totalProductivity));
        totalShare = totalShare.add(reward);
    }
    
    function _currentReward() internal virtual view returns (uint) {
        return mintedShare.add(IERC20(shareToken).balanceOf(address(this))).sub(totalShare);
    }
    
    // Audit user's reward to be up-to-date
    function _audit(address user) internal virtual {
        UserInfo storage userInfo = users[user];
        if (userInfo.amount > 0) {
            uint pending = userInfo.amount.mul(accAmountPerShare).div(1e12).sub(userInfo.rewardDebt);
            userInfo.rewardEarn = userInfo.rewardEarn.add(pending);
            mintCumulation = mintCumulation.add(pending);
            userInfo.rewardDebt = userInfo.amount.mul(accAmountPerShare).div(1e12);
        }
    }

    // External function call
    // This function increase user's productivity and updates the global productivity.
    // the users' actual share percentage will calculated by:
    // Formula:     user_productivity / global_productivity
    function _increaseProductivity(address user, uint value) internal virtual returns (bool) {
        require(value > 0, 'PRODUCTIVITY_VALUE_MUST_BE_GREATER_THAN_ZERO');

        UserInfo storage userInfo = users[user];
        _update();
        _audit(user);

        totalProductivity = totalProductivity.add(value);

        userInfo.amount = userInfo.amount.add(value);
        userInfo.rewardDebt = userInfo.amount.mul(accAmountPerShare).div(1e12);
        return true;
    }

    // External function call 
    // This function will decreases user's productivity by value, and updates the global productivity
    // it will record which block this is happenning and accumulates the area of (productivity * time)
    function _decreaseProductivity(address user, uint value) internal virtual returns (bool) {
        UserInfo storage userInfo = users[user];
        require(value > 0 && userInfo.amount >= value, 'INSUFFICIENT_PRODUCTIVITY');
        
        _update();
        _audit(user);
        
        userInfo.amount = userInfo.amount.sub(value);
        userInfo.rewardDebt = userInfo.amount.mul(accAmountPerShare).div(1e12);
        totalProductivity = totalProductivity.sub(value);
        
        return true;
    }
    
    function _takeWithAddress(address user) internal view returns (uint) {
        UserInfo storage userInfo = users[user];
        uint _accAmountPerShare = accAmountPerShare;
        // uint256 lpSupply = totalProductivity;
        if (totalProductivity != 0) {
            uint reward = _currentReward();
            _accAmountPerShare = _accAmountPerShare.add(reward.mul(1e12).div(totalProductivity));
        }
        return userInfo.amount.mul(_accAmountPerShare).div(1e12).add(userInfo.rewardEarn).sub(userInfo.rewardDebt);
    }

    // External function call
    // When user calls this function, it will calculate how many token will mint to user from his productivity * time
    // Also it calculates global token supply from last time the user mint to this time.
    function _mint(address user) internal virtual returns (uint) {
        _update();
        _audit(user);
        require(users[user].rewardEarn > 0, "NOTHING TO MINT");
        uint amount = users[user].rewardEarn;
        TransferHelper.safeTransfer(shareToken, msg.sender, amount);
        users[user].rewardEarn = 0;
        mintedShare += amount;
        return amount;
    }

    // Returns how many productivity a user has and global has.
    function getProductivity(address user) public virtual view returns (uint, uint) {
        return (users[user].amount, totalProductivity);
    }

    // Returns the current gorss product rate.
    function interestsPerBlock() public virtual view returns (uint) {
        return accAmountPerShare;
    }
    
}
// Dependency file: contracts/interfaces/IDemaxCallee.sol

// pragma solidity >=0.5.0;

interface IDemaxCallee {
    function demaxCall(address sender, uint amount0, uint amount1, bytes calldata data) external;
}

// Dependency file: contracts/interfaces/IDgas.sol

// pragma solidity >=0.5.0;

interface IDgas {
    function amountPerBlock() external view returns (uint);
    function changeInterestRatePerBlock(uint value) external returns (bool);
    function getProductivity(address user) external view returns (uint, uint);
    function increaseProductivity(address user, uint value) external returns (bool);
    function decreaseProductivity(address user, uint value) external returns (bool);
    function take() external view returns (uint);
    function takeWithBlock() external view returns (uint, uint);
    function mint() external returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function upgradeImpl(address _newImpl) external;
    function upgradeGovernance(address _newGovernor) external;
}
// Dependency file: contracts/interfaces/IDemaxFactory.sol

// pragma solidity >=0.5.0;

interface IDemaxFactory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function contractCodeHash() external view returns (bytes32);
    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function isPair(address pair) external view returns (bool);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);
    function playerPairs(address player, uint index) external view returns (address pair);
    function getPlayerPairCount(address player) external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);
    function addPlayerPair(address player, address _pair) external returns (bool);
}

// Dependency file: contracts/libraries/UQ112x112.sol

// pragma solidity >=0.5.0;

// a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format))

// range: [0, 2**112 - 1]
// resolution: 1 / 2**112

library UQ112x112 {
    uint224 constant Q112 = 2**112;

    // encode a uint112 as a UQ112x112
    function encode(uint112 y) internal pure returns (uint224 z) {
        z = uint224(y) * Q112; // never overflows
    }

    // divide a UQ112x112 by a uint112, returning a UQ112x112
    function uqdiv(uint224 x, uint112 y) internal pure returns (uint224 z) {
        z = x / uint224(y);
    }
}

// Dependency file: contracts/libraries/Math.sol

// pragma solidity >=0.5.0;

// a library for performing various math operations

library Math {
    function min(uint x, uint y) internal pure returns (uint z) {
        z = x < y ? x : y;
    }

    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint y) internal pure returns (uint z) {
        if (y > 3) {
            z = y;
            uint x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

// Dependency file: contracts/interfaces/IDemaxConfig.sol

// pragma solidity >=0.5.0;

interface IDemaxConfig {
    function governor() external view returns (address);
    function dev() external view returns (address);
    function PERCENT_DENOMINATOR() external view returns (uint);
    function getConfig(bytes32 _name) external view returns (uint minValue, uint maxValue, uint maxSpan, uint value, uint enable);
    function getConfigValue(bytes32 _name) external view returns (uint);
    function changeConfigValue(bytes32 _name, uint _value) external returns (bool);
    function checkToken(address _token) external view returns(bool);
    function checkPair(address tokenA, address tokenB) external view returns (bool);
    function listToken(address _token) external returns (bool);
    function getDefaultListTokens() external returns (address[] memory);
    function platform() external view returns  (address);
    function addToken(address _token) external returns (bool);
}
// Dependency file: contracts/DemaxPair.sol

// pragma solidity >=0.6.6;

// import './libraries/Math.sol';
// import './libraries/UQ112x112.sol';
// import './interfaces/IDemaxFactory.sol';
// import './interfaces/IDgas.sol';
// import './interfaces/IDemaxCallee.sol';
// import './interfaces/IDemaxConfig.sol';
// import './modules/BaseShareField.sol';
// import './libraries/ConfigNames.sol';

contract DemaxPair is BaseShareField {
    uint256 public version = 1;
    using SafeMath for uint256;
    using UQ112x112 for uint224;

    uint256 public constant MINIMUM_LIQUIDITY = 10**3;
    bytes4 private constant SELECTOR = bytes4(keccak256(bytes('transfer(address,uint256)')));

    address public FACTORY;
    address public CONFIG;
    address public DGAS;
    address public token0;
    address public token1;

    uint112 private reserve0; // uses single storage slot, accessible via getReserves
    uint112 private reserve1; // uses single storage slot, accessible via getReserves
    uint32 private blockTimestampLast; // uses single storage slot, accessible via getReserves

    uint256 public price0CumulativeLast;
    uint256 public price1CumulativeLast;

    uint256 public totalReward;
    uint256 public remainReward;
    uint256 public totalSupply;
    mapping(address => uint256) public balanceOf;
    event Mint(address indexed from, address indexed to, uint256 value);
    event Burn(address indexed from, address indexed to, uint256 value);
    event MintDGAS(address indexed player, uint256 pairMint, uint256 userMint);
    mapping(address => uint256) public lastMintBlock;

    uint private unlocked = 1;
    modifier lock() {
        require(unlocked == 1, 'Locked');
        unlocked = 0;
        _;
        unlocked = 1;
    }

    function _mint(address to, uint256 value) internal {
        totalSupply = totalSupply.add(value);
        balanceOf[to] = balanceOf[to].add(value);
        emit Mint(address(0), to, value);
    }

    function _burn(address from, uint256 value) internal {
        balanceOf[from] = balanceOf[from].sub(value);
        totalSupply = totalSupply.sub(value);
        emit Burn(from, address(0), value);
    }
    
    function _mintDGAS() internal {
        if(IDgas(DGAS).take() > 0) {
            uint reward = IDgas(DGAS).mint();
            uint devAmount = reward * IDemaxConfig(CONFIG).getConfigValue(ConfigNames.DEV_PRECENT) / 10000;
            address devAddress = IDemaxConfig(CONFIG).dev();
            _safeTransfer(DGAS, devAddress, devAmount);
            remainReward = remainReward.add(reward.sub(devAmount));
        }
    }
    
    function _currentReward() internal override view returns (uint) {
        uint devPercent = IDemaxConfig(CONFIG).getConfigValue(ConfigNames.DEV_PRECENT);
        uint pairReward = IDgas(DGAS).take().mul(10000 - devPercent).div(10000);
        return mintedShare.add(remainReward).add(pairReward).sub(totalShare);
    }

    function getReserves()
        public
        view
        returns (
            uint112 _reserve0,
            uint112 _reserve1,
            uint32 _blockTimestampLast
        )
    {
        _reserve0 = reserve0;
        _reserve1 = reserve1;
        _blockTimestampLast = blockTimestampLast;
    }

    function _safeTransfer(
        address token,
        address to,
        uint256 value
    ) private {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(SELECTOR, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'DEMAX PAIR : TRANSFER_FAILED');
    }

    event Mint(address indexed sender, uint256 amount0, uint256 amount1);
    event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address indexed to
    );
    event SwapFee(address indexed token, address indexed to, uint256 amount);
    event Sync(uint112 reserve0, uint112 reserve1);

    constructor() public {
        FACTORY = msg.sender;
    }

    modifier onlyPlatform {
        address platform = IDemaxConfig(CONFIG).platform();
        require(msg.sender == platform, 'DEMAX PAIR : FORBIDDEN');
        _;
    }

    // called once by the factory at time of deployment
    function initialize(
        address _token0,
        address _token1,
        address _config,
        address _dgas
    ) external {
        require(msg.sender == FACTORY, 'DEMAX PAIR : FORBIDDEN');
        token0 = _token0;
        token1 = _token1;
        CONFIG = _config;
        DGAS = _dgas;
        _setShareToken(DGAS);
    }

    // update reserves and, on the first call per block, price accumulators
    function _update(
        uint256 balance0,
        uint256 balance1,
        uint112 _reserve0,
        uint112 _reserve1
    ) private {
        require(balance0 <= uint112(-1) && balance1 <= uint112(-1), 'DEMAX PAIR : OVERFLOW');
        uint32 blockTimestamp = uint32(block.timestamp % 2**32);
        uint32 timeElapsed = blockTimestamp - blockTimestampLast; // overflow is desired
        if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) {
            // * never overflows, and + overflow is desired
            price0CumulativeLast += uint256(UQ112x112.encode(_reserve1).uqdiv(_reserve0)) * timeElapsed;
            price1CumulativeLast += uint256(UQ112x112.encode(_reserve0).uqdiv(_reserve1)) * timeElapsed;
        }
        reserve0 = uint112(balance0);
        reserve1 = uint112(balance1);
        blockTimestampLast = blockTimestamp;
        emit Sync(reserve0, reserve1);
    }

    // this low-level function should be called from a contract which performs // important safety checks
    function mint(address to) external onlyPlatform lock returns (uint256 liquidity) {
        (uint112 _reserve0, uint112 _reserve1, ) = getReserves(); // gas savings
        uint256 balance0 = _balanceOf(token0, address(this));
        uint256 balance1 = _balanceOf(token1, address(this));
        uint256 amount0 = balance0.sub(_reserve0);
        uint256 amount1 = balance1.sub(_reserve1);
        uint256 _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
        if (_totalSupply == 0) {
            liquidity = Math.sqrt(amount0.mul(amount1)).sub(MINIMUM_LIQUIDITY);
            _mint(address(0), MINIMUM_LIQUIDITY); // permanently lock the first MINIMUM_LIQUIDITY tokens
        } else {
            liquidity = Math.min(amount0.mul(_totalSupply) / _reserve0, amount1.mul(_totalSupply) / _reserve1);
        }
        require(liquidity > 0, 'DEMAX PAIR : INSUFFICIENT_LIQUIDITY_MINTED');
        _mint(to, liquidity);
        _mintDGAS();
        _increaseProductivity(to, liquidity);
        lastMintBlock[to] = block.number;
        _update(balance0, balance1, _reserve0, _reserve1);
        emit Mint(msg.sender, amount0, amount1);
    }

    // this low-level function should be called from a contract which performs // important safety checks
    function burn(
        address from,
        address to,
        uint256 amount
    ) external onlyPlatform lock returns (uint256 amount0, uint256 amount1) {
        require(
            block.number >=
                lastMintBlock[from] + IDemaxConfig(CONFIG).getConfigValue(ConfigNames.REMOVE_LIQUIDITY_DURATION),
            'DEMAX PLATFORM : REMOVE LIQUIDITY DURATION FAIL'
        );
        (uint112 _reserve0, uint112 _reserve1, ) = getReserves(); // gas savings
        address _token0 = token0; // gas savings
        address _token1 = token1; // gas savings
        uint256 balance0 = _balanceOf(_token0, address(this));
        uint256 balance1 = _balanceOf(_token1, address(this));
        require(balanceOf[from] >= amount, 'DEMAX PAIR : INSUFFICIENT_LIQUIDITY_AMOUNT');

        uint256 _totalSupply = totalSupply; // gas savings, must be defined here since totalSupply can update in _mintFee
        amount0 = amount.mul(balance0) / _totalSupply; // using balances ensures pro-rata distribution
        amount1 = amount.mul(balance1) / _totalSupply; // using balances ensures pro-rata distribution
        require(amount0 > 0 && amount1 > 0, 'DEMAX PAIR : INSUFFICIENT_LIQUIDITY_BURNED');
        _burn(from, amount);
        _mintDGAS();
        _decreaseProductivity(from, amount);

        _safeTransfer(_token0, to, amount0);
        _safeTransfer(_token1, to, amount1);
        balance0 = _balanceOf(_token0, address(this));
        balance1 = _balanceOf(_token1, address(this));
        _update(balance0, balance1, _reserve0, _reserve1);

        emit Burn(msg.sender, amount0, amount1, to);
    }

    // this low-level function should be called from a contract which performs // important safety checks
    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external onlyPlatform lock {
        require(amount0Out > 0 || amount1Out > 0, 'DEMAX PAIR : INSUFFICIENT_OUTPUT_AMOUNT');
        (uint112 _reserve0, uint112 _reserve1, ) = getReserves(); // gas savings
        require(amount0Out < _reserve0 && amount1Out < _reserve1, 'DEMAX PAIR :  INSUFFICIENT_LIQUIDITY');
        uint256 balance0;
        uint256 balance1;
        {
            address _token0 = token0;
            address _token1 = token1;
            require(to != _token0 && to != _token1, 'DEMAX PAIR : INVALID_TO');
            if (amount0Out > 0) _safeTransfer(_token0, to, amount0Out);
            if (amount1Out > 0) _safeTransfer(_token1, to, amount1Out);
            if (data.length > 0) IDemaxCallee(to).demaxCall(msg.sender, amount0Out, amount1Out, data);
            balance0 = _balanceOf(_token0, address(this));
            balance1 = _balanceOf(_token1, address(this));
        }
        uint256 amount0In = balance0 > _reserve0 - amount0Out ? balance0 - (_reserve0 - amount0Out) : 0;
        uint256 amount1In = balance1 > _reserve1 - amount1Out ? balance1 - (_reserve1 - amount1Out) : 0;
        uint256 _amount0Out = amount0Out;
        uint256 _amount1Out = amount1Out;
        require(amount0In > 0 || amount1In > 0, 'DEMAX PAIR : INSUFFICIENT_INPUT_AMOUNT');
        _update(balance0, balance1, _reserve0, _reserve1);
        emit Swap(msg.sender, amount0In, amount1In, _amount0Out, _amount1Out, to);
    }

    function swapFee(
        uint256 amount,
        address token,
        address to
    ) external onlyPlatform {
        if (amount == 0 || token == to) return;
        (uint112 _reserve0, uint112 _reserve1, ) = getReserves();
        require(to != token0 && to != token1, 'DEMAX PAIR : INVALID_TO');
        _safeTransfer(token, to, amount);
        uint256 balance0 = _balanceOf(token0, address(this));
        uint256 balance1 = _balanceOf(token1, address(this));
        _update(balance0, balance1, _reserve0, _reserve1);
        emit SwapFee(token, to , amount);
    }

    function queryReward() external view returns (uint256 rewardAmount, uint256 blockNumber) {
        rewardAmount = _takeWithAddress(msg.sender);
        blockNumber = block.number;
    }

    function mintReward() external lock returns (uint256 userReward) {
        _mintDGAS();
        userReward = _mint(msg.sender);
        remainReward = remainReward.sub(userReward);
        emit MintDGAS(msg.sender, remainReward, userReward);
    }

    function skim(address to) external lock {
        address _token0 = token0;
        address _token1 = token1;
        _safeTransfer(_token0, to, _balanceOf(_token0, address(this)).sub(reserve0));
        _safeTransfer(_token1, to, _balanceOf(_token0, address(this)).sub(reserve1));
    }

    function getDGASReserve() public view returns (uint256) {
        return _balanceOf(DGAS, address(this));
    }

    function _balanceOf(address token, address owner) internal view returns (uint256) {
        if (token == DGAS && owner == address(this)) {
            return IERC20(token).balanceOf(owner).sub(remainReward);
        } else {
            return IERC20(token).balanceOf(owner);
        }
    }

    // force reserves to match balances
    function sync() external lock {
        _update(_balanceOf(token0, address(this)), _balanceOf(token1, address(this)), reserve0, reserve1);
    }
}

// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.6.6;

// import './DemaxPair.sol';
// import './interfaces/IDemaxConfig.sol';

contract DemaxFactory {
    uint256 public version = 1;
    address public DGAS;
    address public CONFIG;
    mapping(address => mapping(address => address)) public getPair;
    mapping(address => bool) public isPair;
    address[] public allPairs;

    mapping(address => address[]) public playerPairs;
    mapping(address => mapping(address => bool)) isAddPlayerPair;

    bytes32 public contractCodeHash;
    event PairCreated(address indexed token0, address indexed token1, address pair, uint256);

    constructor(address _DGAS, address _CONFIG) public {
        DGAS = _DGAS;
        CONFIG = _CONFIG;
    }

    function getPlayerPairCount(address player) external view returns (uint256) {
        address[] storage existAddress = playerPairs[player];
        if (existAddress.length == 0) return 0;
        return existAddress.length;
    }

    function addPlayerPair(address _player, address _pair) external returns (bool) {
        require(msg.sender == IDemaxConfig(CONFIG).platform(), 'DEMAX FACTORY: PERMISSION');
        if (isAddPlayerPair[_player][_pair] == false) {
            isAddPlayerPair[_player][_pair] = true;
            playerPairs[_player].push(_pair);
        }
        return true;
    }

    function allPairsLength() external view returns (uint256) {
        return allPairs.length;
    }

    function createPair(address tokenA, address tokenB) external returns (address pair) {
        require(tokenA != tokenB, 'DEMAX FACTORY: IDENTICAL_ADDRESSES');
        require(
            IDemaxConfig(CONFIG).checkToken(tokenA) && IDemaxConfig(CONFIG).checkToken(tokenB),
            'DEMAX FACTORY: NOT LIST'
        );
        (address token0, address token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'DEMAX FACTORY: ZERO_ADDRESS');
        require(getPair[token0][token1] == address(0), 'DEMAX FACTORY: PAIR_EXISTS'); // single check is sufficient
        bytes memory bytecode = type(DemaxPair).creationCode;
        if (uint256(contractCodeHash) == 0) {
            contractCodeHash = keccak256(bytecode);
        }
        bytes32 salt = keccak256(abi.encodePacked(token0, token1));
        assembly {
            pair := create2(0, add(bytecode, 32), mload(bytecode), salt)
        }
        isPair[pair] = true;
        DemaxPair(pair).initialize(token0, token1, CONFIG, DGAS);
        getPair[token0][token1] = pair;
        getPair[token1][token0] = pair; // populate mapping in the reverse direction
        allPairs.push(pair);
        emit PairCreated(token0, token1, pair, allPairs.length);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_DGAS","type":"address"},{"internalType":"address","name":"_CONFIG","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token0","type":"address"},{"indexed":true,"internalType":"address","name":"token1","type":"address"},{"indexed":false,"internalType":"address","name":"pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"PairCreated","type":"event"},{"inputs":[],"name":"CONFIG","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DGAS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_player","type":"address"},{"internalType":"address","name":"_pair","type":"address"}],"name":"addPlayerPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allPairs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allPairsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractCodeHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"}],"name":"createPair","outputs":[{"internalType":"address","name":"pair","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"getPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"}],"name":"getPlayerPairCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isPair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"playerPairs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080604052600160005534801561001557600080fd5b506040516134cc3803806134cc8339818101604052604081101561003857600080fd5b508051602090910151600180546001600160a01b039384166001600160a01b0319918216179091556002805493909216921691909117905561344d8061007f6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063bf1512d311610071578063bf1512d31461014a578063c9c6539614610176578063c9ead258146101a4578063d92e82e4146101e6578063e5e31b13146101ee578063e6a4390514610214576100b4565b80631e3dd18b146100b957806354fd4d50146100f2578063574f2ba31461010c5780636c42fa6614610114578063723c2e2d1461013a5780637c7f84ee14610142575b600080fd5b6100d6600480360360208110156100cf57600080fd5b5035610242565b604080516001600160a01b039092168252519081900360200190f35b6100fa610269565b60408051918252519081900360200190f35b6100fa61026f565b6100fa6004803603602081101561012a57600080fd5b50356001600160a01b0316610275565b6100d66102a6565b6100fa6102b5565b6100d66004803603604081101561016057600080fd5b506001600160a01b0381351690602001356102bb565b6100d66004803603604081101561018c57600080fd5b506001600160a01b03813581169160200135166102f0565b6101d2600480360360408110156101ba57600080fd5b506001600160a01b03813581169160200135166107a0565b604080519115158252519081900360200190f35b6100d6610900565b6101d26004803603602081101561020457600080fd5b50356001600160a01b031661090f565b6100d66004803603604081101561022a57600080fd5b506001600160a01b0381358116916020013516610924565b6005818154811061024f57fe5b6000918252602090912001546001600160a01b0316905081565b60005481565b60055490565b6001600160a01b0381166000908152600660205260408120805461029d5760009150506102a1565b5490505b919050565b6001546001600160a01b031681565b60085481565b600660205281600052604060002081815481106102d457fe5b6000918252602090912001546001600160a01b03169150829050565b6000816001600160a01b0316836001600160a01b031614156103435760405162461bcd60e51b81526004018080602001828103825260228152602001806133f66022913960400191505060405180910390fd5b60025460408051633c6202c960e21b81526001600160a01b0386811660048301529151919092169163f1880b24916024808301926020929190829003018186803b15801561039057600080fd5b505afa1580156103a4573d6000803e3d6000fd5b505050506040513d60208110156103ba57600080fd5b5051801561043d575060025460408051633c6202c960e21b81526001600160a01b0385811660048301529151919092169163f1880b24916024808301926020929190829003018186803b15801561041057600080fd5b505afa158015610424573d6000803e3d6000fd5b505050506040513d602081101561043a57600080fd5b50515b61048e576040805162461bcd60e51b815260206004820152601760248201527f44454d415820464143544f52593a204e4f54204c495354000000000000000000604482015290519081900360640190fd5b600080836001600160a01b0316856001600160a01b0316106104b15783856104b4565b84845b90925090506001600160a01b038216610514576040805162461bcd60e51b815260206004820152601b60248201527f44454d415820464143544f52593a205a45524f5f414444524553530000000000604482015290519081900360640190fd5b6001600160a01b0382811660009081526003602090815260408083208585168452909152902054161561058e576040805162461bcd60e51b815260206004820152601a60248201527f44454d415820464143544f52593a20504149525f455849535453000000000000604482015290519081900360640190fd5b6060604051806020016105a09061094a565b601f1982820381018352601f909101166040526008549091506105c857805160208201206008555b6000838360405160200180836001600160a01b03166001600160a01b031660601b8152601401826001600160a01b03166001600160a01b031660601b815260140192505050604051602081830303815290604052805190602001209050808251602084016000f56001600160a01b038082166000818152600460208190526040808320805460ff1916600190811790915560025490548251637c643b2f60e11b81528c8816948101949094528a87166024850152908616604484015290941660648201529251939850909263f8c8765e92608480820193929182900301818387803b1580156106b657600080fd5b505af11580156106ca573d6000803e3d6000fd5b505050506001600160a01b0384811660008181526003602081815260408084208987168086529083528185208054978d166001600160a01b031998891681179091559383528185208686528352818520805488168517905560058054600181018255958190527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db090950180549097168417909655925483519283529082015281517f0d3648bd0f6ba80134a33ba9275ac585d9d315f0ad8355cddefde31afa28d0e9929181900390910190a35050505092915050565b6002546040805163097bc71960e31b815290516000926001600160a01b031691634bde38c8916004808301926020929190829003018186803b1580156107e557600080fd5b505afa1580156107f9573d6000803e3d6000fd5b505050506040513d602081101561080f57600080fd5b50516001600160a01b0316331461086d576040805162461bcd60e51b815260206004820152601960248201527f44454d415820464143544f52593a205045524d495353494f4e00000000000000604482015290519081900360640190fd5b6001600160a01b0380841660009081526007602090815260408083209386168352929052205460ff166108f7576001600160a01b038084166000818152600760209081526040808320948716808452948252808320805460ff1916600190811790915593835260068252822080549384018155825290200180546001600160a01b03191690911790555b50600192915050565b6002546001600160a01b031681565b60046020526000908152604090205460ff1681565b60036020908152600092835260408084209091529082529020546001600160a01b031681565b612a9e806109588339019056fe60806040526001600755600160155534801561001a57600080fd5b50600880546001600160a01b03191633179055612a628061003c6000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c8063723c2e2d1161010f578063cf675365116100a2578063f6b911bc11610071578063f6b911bc146104d0578063f8c8765e14610506578063ffc527bf14610544578063fff6cae91461054c576101f0565b8063cf675365146104b0578063d14c9641146104b8578063d21220a7146104c0578063d92e82e4146104c8576101f0565b8063a87430ba116100de578063a87430ba14610436578063ba9a7a561461047a578063bc25cf7714610482578063bfc8b208146104a8576101f0565b8063723c2e2d146103cc578063750142e6146103d45780638b185b35146103dc57806396cda08014610402576101f0565b80632c79db11116101875780635a3d5493116101565780635a3d5493146103705780636a627842146103785780636c9fa59e1461039e57806370a08231146103a6576101f0565b80632c79db11146103505780632dd310001461035857806354fd4d50146103605780635909c0d514610368576101f0565b80631485ff78116101c35780631485ff78146102f9578063174f57af1461030157806318160ddd1461030957806328e964e914610311576101f0565b8063022c0d9f146101f5578063026c4207146102835780630902f1ac1461029d5780630dfe1681146102d5575b600080fd5b6102816004803603608081101561020b57600080fd5b8135916020810135916001600160a01b03604083013516919081019060808101606082013564010000000081111561024257600080fd5b82018360208201111561025457600080fd5b8035906020019184600183028401116401000000008311171561027657600080fd5b509092509050610554565b005b61028b6109ae565b60408051918252519081900360200190f35b6102a56109b4565b604080516001600160701b03948516815292909316602083015263ffffffff168183015290519081900360600190f35b6102dd6109de565b604080516001600160a01b039092168252519081900360200190f35b61028b6109ed565b61028b6109f3565b61028b610aa9565b6103376004803603602081101561032757600080fd5b50356001600160a01b0316610aaf565b6040805192835260208301919091528051918290030190f35b610337610acd565b6102dd610ae1565b61028b610af0565b61028b610af6565b61028b610afc565b61028b6004803603602081101561038e57600080fd5b50356001600160a01b0316610b02565b6102dd610e04565b61028b600480360360208110156103bc57600080fd5b50356001600160a01b0316610e13565b6102dd610e25565b61028b610e34565b61028b600480360360208110156103f257600080fd5b50356001600160a01b0316610e3a565b6102816004803603606081101561041857600080fd5b508035906001600160a01b0360208201358116916040013516610e4c565b61045c6004803603602081101561044c57600080fd5b50356001600160a01b0316611069565b60408051938452602084019290925282820152519081900360600190f35b61028b61108a565b6102816004803603602081101561049857600080fd5b50356001600160a01b0316611090565b61028b611145565b61028b61114b565b61028b611151565b6102dd611157565b6102dd611166565b610337600480360360608110156104e657600080fd5b506001600160a01b03813581169160208101359091169060400135611175565b6102816004803603608081101561051c57600080fd5b506001600160a01b038135811691602081013582169160408201358116916060013516611554565b61028b6115ff565b61028161161d565b6009546040805163097bc71960e31b815290516000926001600160a01b031691634bde38c8916004808301926020929190829003018186803b15801561059957600080fd5b505afa1580156105ad573d6000803e3d6000fd5b505050506040513d60208110156105c357600080fd5b50519050336001600160a01b0382161461061d576040805162461bcd60e51b81526020600482015260166024820152752222a6a0ac102820a4a9101d102327a92124a22222a760511b604482015290519081900360640190fd5b60155460011461065d576040805162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b604482015290519081900360640190fd5b6000601555851515806106705750600085115b6106ab5760405162461bcd60e51b81526004018080602001828103825260278152602001806128ec6027913960400191505060405180910390fd5b6000806106b66109b4565b5091509150816001600160701b0316881080156106db5750806001600160701b031687105b6107165760405162461bcd60e51b8152600401808060200182810382526024815260200180612a096024913960400191505060405180910390fd5b600b54600c5460009182916001600160a01b0391821691908116908a1682148015906107545750806001600160a01b03168a6001600160a01b031614155b61079f576040805162461bcd60e51b815260206004820152601760248201527644454d41582050414952203a20494e56414c49445f544f60481b604482015290519081900360640190fd5b8b156107b0576107b0828b8e6116b5565b8a156107c1576107c1818b8d6116b5565b871561087c57896001600160a01b03166321fb6c90338e8e8d8d6040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b03168152602001858152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509650505050505050600060405180830381600087803b15801561086357600080fd5b505af1158015610877573d6000803e3d6000fd5b505050505b610886823061184f565b9350610892813061184f565b9250505060008a856001600160701b03160383116108b15760006108c0565b8a856001600160701b03160383035b905060008a856001600160701b03160383116108dd5760006108ec565b8a856001600160701b03160383035b90508b8b831515806108fe5750600083115b6109395760405162461bcd60e51b81526004018080602001828103825260268152602001806129136026913960400191505060405180910390fd5b61094586868a8a6119a2565b60408051858152602081018590528082018490526060810183905290516001600160a01b038e169133917fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229181900360800190a350506001601555505050505050505050505050565b60025481565b600d546001600160701b0380821692600160701b830490911691600160e01b900463ffffffff1690565b600b546001600160a01b031681565b60115481565b6000601554600114610a35576040805162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b604482015290519081900360640190fd5b6000601555610a42611b69565b610a4b33611dab565b601154909150610a61908263ffffffff611e7716565b60118190556040805191825260208201839052805133927fef84ded3b746df8ce33b8e850942f885a71fa805217f9099d5e006a8f32ca58792908290030190a2600160155590565b60125481565b6001600160a01b031660009081526006602052604081205490549091565b600080610ad933611ec0565b924392509050565b6008546001600160a01b031681565b60075481565b600e5481565b600f5481565b600080600960009054906101000a90046001600160a01b03166001600160a01b0316634bde38c86040518163ffffffff1660e01b815260040160206040518083038186803b158015610b5357600080fd5b505afa158015610b67573d6000803e3d6000fd5b505050506040513d6020811015610b7d57600080fd5b50519050336001600160a01b03821614610bd7576040805162461bcd60e51b81526020600482015260166024820152752222a6a0ac102820a4a9101d102327a92124a22222a760511b604482015290519081900360640190fd5b601554600114610c17576040805162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b604482015290519081900360640190fd5b6000601581905580610c276109b4565b50600b549193509150600090610c46906001600160a01b03163061184f565b600c54909150600090610c62906001600160a01b03163061184f565b90506000610c7f836001600160701b03871663ffffffff611e7716565b90506000610c9c836001600160701b03871663ffffffff611e7716565b60125490915080610ce557610cd16103e8610cc5610cc0868663ffffffff611f7016565b611fc9565b9063ffffffff611e7716565b9850610ce060006103e861201a565b610d34565b610d316001600160701b038816610d02858463ffffffff611f7016565b81610d0957fe5b046001600160701b038816610d24858563ffffffff611f7016565b81610d2b57fe5b046120b1565b98505b60008911610d735760405162461bcd60e51b815260040180806020018281038252602a815260200180612989602a913960400191505060405180910390fd5b610d7d8a8a61201a565b610d85611b69565b610d8f8a8a6120c7565b506001600160a01b038a166000908152601460205260409020439055610db7858589896119a2565b6040805184815260208101849052815133927f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f928290030190a25050600160155550949695505050505050565b6005546001600160a01b031681565b60136020526000908152604090205481565b600a546001600160a01b031681565b60105481565b60146020526000908152604090205481565b6009546040805163097bc71960e31b815290516000926001600160a01b031691634bde38c8916004808301926020929190829003018186803b158015610e9157600080fd5b505afa158015610ea5573d6000803e3d6000fd5b505050506040513d6020811015610ebb57600080fd5b50519050336001600160a01b03821614610f15576040805162461bcd60e51b81526020600482015260166024820152752222a6a0ac102820a4a9101d102327a92124a22222a760511b604482015290519081900360640190fd5b831580610f335750816001600160a01b0316836001600160a01b0316145b15610f3d57611063565b600080610f486109b4565b50600b5491935091506001600160a01b03858116911614801590610f7a5750600c546001600160a01b03858116911614155b610fc5576040805162461bcd60e51b815260206004820152601760248201527644454d41582050414952203a20494e56414c49445f544f60481b604482015290519081900360640190fd5b610fd08585886116b5565b600b54600090610fe9906001600160a01b03163061184f565b600c54909150600090611005906001600160a01b03163061184f565b9050611013828286866119a2565b856001600160a01b0316876001600160a01b03167fd58eef465bb0100d5e79f7940ef7ec9eafeff04fa088db4388968231fffaf07d8a6040518082815260200191505060405180910390a3505050505b50505050565b60066020526000908152604090208054600182015460029092015490919083565b6103e881565b6015546001146110d0576040805162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b604482015290519081900360640190fd5b6000601555600b54600c54600d546001600160a01b039283169290911690611112908390859061110d906001600160701b0316610cc5843061184f565b6116b5565b600d5461113b908290859061110d90600160701b90046001600160701b0316610cc5873061184f565b5050600160155550565b60015490565b60045481565b60035481565b600c546001600160a01b031681565b6009546001600160a01b031681565b6000806000600960009054906101000a90046001600160a01b03166001600160a01b0316634bde38c86040518163ffffffff1660e01b815260040160206040518083038186803b1580156111c857600080fd5b505afa1580156111dc573d6000803e3d6000fd5b505050506040513d60208110156111f257600080fd5b50519050336001600160a01b0382161461124c576040805162461bcd60e51b81526020600482015260166024820152752222a6a0ac102820a4a9101d102327a92124a22222a760511b604482015290519081900360640190fd5b60155460011461128c576040805162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b604482015290519081900360640190fd5b6000601555600954604080516360ccef1960e11b81527f52454d4f56455f4c49515549444954595f4455524154494f4e00000000000000600482015290516001600160a01b039092169163c199de3291602480820192602092909190829003018186803b1580156112fc57600080fd5b505afa158015611310573d6000803e3d6000fd5b505050506040513d602081101561132657600080fd5b50516001600160a01b038716600090815260146020526040902054014310156113805760405162461bcd60e51b815260040180806020018281038252602f81526020018061295a602f913960400191505060405180910390fd5b60008061138b6109b4565b50600b54600c549294509092506001600160a01b03908116911660006113b1833061184f565b905060006113bf833061184f565b6001600160a01b038d166000908152601360205260409020549091508a11156114195760405162461bcd60e51b815260040180806020018281038252602a8152602001806128c2602a913960400191505060405180910390fd5b6012548061142d8c8563ffffffff611f7016565b8161143457fe5b049950806114488c8463ffffffff611f7016565b8161144f57fe5b04985060008a1180156114625750600089115b61149d5760405162461bcd60e51b815260040180806020018281038252602a8152602001806129b3602a913960400191505060405180910390fd5b6114a78d8c612186565b6114af611b69565b6114b98d8c612223565b506114c5858d8c6116b5565b6114d0848d8b6116b5565b6114da853061184f565b92506114e6843061184f565b91506114f4838389896119a2565b604080518b8152602081018b905281516001600160a01b038f169233927fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496929081900390910190a350505050505050600160158190555050935093915050565b6008546001600160a01b031633146115ac576040805162461bcd60e51b81526020600482015260166024820152752222a6a0ac102820a4a9101d102327a92124a22222a760511b604482015290519081900360640190fd5b600b80546001600160a01b03199081166001600160a01b0387811691909117909255600c80548216868416179055600980548216858416179055600a805490911683831617908190556110639116612305565b600a54600090611618906001600160a01b03163061184f565b905090565b60155460011461165d576040805162461bcd60e51b8152602060048201526006602482015265131bd8dad95960d21b604482015290519081900360640190fd5b6000601555600b546116ae9061167c906001600160a01b03163061184f565b600c54611692906001600160a01b03163061184f565b600d546001600160701b0380821691600160701b9004166119a2565b6001601555565b604080518082018252601981527f7472616e7366657228616464726573732c75696e74323536290000000000000060209182015281516001600160a01b0385811660248301526044808301869052845180840390910181526064909201845291810180516001600160e01b031663a9059cbb60e01b1781529251815160009460609489169392918291908083835b602083106117625780518252601f199092019160209182019101611743565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146117c4576040519150601f19603f3d011682016040523d82523d6000602084013e6117c9565b606091505b50915091508180156117f75750805115806117f757508080602001905160208110156117f457600080fd5b50515b611848576040805162461bcd60e51b815260206004820152601c60248201527f44454d41582050414952203a205452414e534645525f4641494c454400000000604482015290519081900360640190fd5b5050505050565b600a546000906001600160a01b03848116911614801561187757506001600160a01b03821630145b1561191757611910601154846001600160a01b03166370a08231856040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156118d857600080fd5b505afa1580156118ec573d6000803e3d6000fd5b505050506040513d602081101561190257600080fd5b50519063ffffffff611e7716565b905061199c565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561196d57600080fd5b505afa158015611981573d6000803e3d6000fd5b505050506040513d602081101561199757600080fd5b505190505b92915050565b6001600160701b0384118015906119c057506001600160701b038311155b611a09576040805162461bcd60e51b815260206004820152601560248201527444454d41582050414952203a204f564552464c4f5760581b604482015290519081900360640190fd5b600d5463ffffffff42811691600160e01b90048116820390811615801590611a3957506001600160701b03841615155b8015611a4d57506001600160701b03831615155b15611abe578063ffffffff16611a7b85611a6686612327565b6001600160e01b03169063ffffffff61233916565b600e80546001600160e01b03929092169290920201905563ffffffff8116611aa684611a6687612327565b600f80546001600160e01b0392909216929092020190555b600d80546dffffffffffffffffffffffffffff19166001600160701b03888116919091176dffffffffffffffffffffffffffff60701b1916600160701b8883168102919091176001600160e01b0316600160e01b63ffffffff871602179283905560408051848416815291909304909116602082015281517f1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1929181900390910190a1505050505050565b600a546040805163159090bd60e01b815290516000926001600160a01b03169163159090bd916004808301926020929190829003018186803b158015611bae57600080fd5b505afa158015611bc2573d6000803e3d6000fd5b505050506040513d6020811015611bd857600080fd5b50511115611da957600a5460408051631249c58b60e01b815290516000926001600160a01b031691631249c58b91600480830192602092919082900301818787803b158015611c2657600080fd5b505af1158015611c3a573d6000803e3d6000fd5b505050506040513d6020811015611c5057600080fd5b5051600954604080516360ccef1960e11b81526a11115597d4149150d1539560aa1b60048201529051929350600092612710926001600160a01b03169163c199de32916024808301926020929190829003018186803b158015611cb257600080fd5b505afa158015611cc6573d6000803e3d6000fd5b505050506040513d6020811015611cdc57600080fd5b5051830281611ce757fe5b0490506000600960009054906101000a90046001600160a01b03166001600160a01b03166391cca3db6040518163ffffffff1660e01b815260040160206040518083038186803b158015611d3a57600080fd5b505afa158015611d4e573d6000803e3d6000fd5b505050506040513d6020811015611d6457600080fd5b5051600a54909150611d80906001600160a01b031682846116b5565b611da2611d93848463ffffffff611e7716565b6011549063ffffffff61235e16565b6011555050505b565b6000611db56123b8565b611dbe82612439565b6001600160a01b038216600090815260066020526040902060020154611e1d576040805162461bcd60e51b815260206004820152600f60248201526e1393d512125391c81513c813525395608a1b604482015290519081900360640190fd5b6001600160a01b038083166000908152600660205260409020600201546005549091611e4b911633836124e1565b6001600160a01b038316600090815260066020526040812060020155600380548201905590505b919050565b6000611eb983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612644565b9392505050565b6001600160a01b0381166000908152600660205260408120600154825415611f2c576000611eec6126db565b9050611f28611f1b600054611f0f64e8d4a5100085611f7090919063ffffffff16565b9063ffffffff61281f16565b839063ffffffff61235e16565b9150505b611f688260010154610cc58460020154611f5c64e8d4a51000611f0f878960000154611f7090919063ffffffff16565b9063ffffffff61235e16565b949350505050565b600082611f7f5750600061199c565b82820282848281611f8c57fe5b0414611eb95760405162461bcd60e51b81526004018080602001828103825260218152602001806129396021913960400191505060405180910390fd5b6000600382111561200c575080600160028204015b8181101561200657809150600281828581611ff557fe5b040181611ffe57fe5b049050611fde565b50611e72565b8115611e7257506001919050565b60125461202d908263ffffffff61235e16565b6012556001600160a01b038216600090815260136020526040902054612059908263ffffffff61235e16565b6001600160a01b03831660008181526013602090815260408083209490945583518581529351929391927fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f89281900390910190a35050565b60008183106120c05781611eb9565b5090919050565b60008082116121075760405162461bcd60e51b815260040180806020018281038252602c8152602001806129dd602c913960400191505060405180910390fd5b6001600160a01b03831660009081526006602052604090206121276123b8565b61213084612439565b600054612143908463ffffffff61235e16565b6000558054612158908463ffffffff61235e16565b8082556001546121799164e8d4a5100091611f0f919063ffffffff611f7016565b6001918201559392505050565b6001600160a01b0382166000908152601360205260409020546121af908263ffffffff611e7716565b6001600160a01b0383166000908152601360205260409020556012546121db908263ffffffff611e7716565b6012556040805182815290516000916001600160a01b038516917fbac40739b0d4ca32fa2d82fc91630465ba3eddd1598da6fca393b26fb63b94539181900360200190a35050565b6001600160a01b0382166000908152600660205260408120821580159061224b575080548311155b61229c576040805162461bcd60e51b815260206004820152601960248201527f494e53554646494349454e545f50524f44554354495649545900000000000000604482015290519081900360640190fd5b6122a46123b8565b6122ad84612439565b80546122bf908463ffffffff611e7716565b8082556001546122e09164e8d4a5100091611f0f919063ffffffff611f7016565b60018201556000546122f8908463ffffffff611e7716565b6000555060019392505050565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160701b0316600160701b0290565b60006001600160701b0382166001600160e01b0384168161235657fe5b049392505050565b600082820183811015611eb9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000546123e1576123d96123ca6126db565b6002549063ffffffff61235e16565b600255611da9565b60006123eb6126db565b905061241d61240e600054611f0f64e8d4a5100085611f7090919063ffffffff16565b6001549063ffffffff61235e16565b600155600254612433908263ffffffff61235e16565b60025550565b6001600160a01b03811660009081526006602052604090208054156124dd5760006124848260010154610cc564e8d4a51000611f0f6001548760000154611f7090919063ffffffff16565b600283015490915061249c908263ffffffff61235e16565b60028301556004546124b4908263ffffffff61235e16565b60045560015482546124d69164e8d4a5100091611f0f9163ffffffff611f7016565b6001830155505b5050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b6020831061255e5780518252601f19909201916020918201910161253f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146125c0576040519150601f19603f3d011682016040523d82523d6000602084013e6125c5565b606091505b50915091508180156125f35750805115806125f357508080602001905160208110156125f057600080fd5b50515b611848576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b600081848411156126d35760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612698578181015183820152602001612680565b50505050905090810190601f1680156126c55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600954604080516360ccef1960e11b81526a11115597d4149150d1539560aa1b6004820152905160009283926001600160a01b039091169163c199de3291602480820192602092909190829003018186803b15801561273957600080fd5b505afa15801561274d573d6000803e3d6000fd5b505050506040513d602081101561276357600080fd5b5051600a546040805163159090bd60e01b815290519293506000926127f59261271092611f0f92878503926001600160a01b03169163159090bd916004808301926020929190829003018186803b1580156127bd57600080fd5b505afa1580156127d1573d6000803e3d6000fd5b505050506040513d60208110156127e757600080fd5b50519063ffffffff611f7016565b9050612818600254610cc583611f5c60115460035461235e90919063ffffffff16565b9250505090565b6000611eb983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250600081836128ab5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612698578181015183820152602001612680565b5060008385816128b757fe5b049594505050505056fe44454d41582050414952203a20494e53554646494349454e545f4c49515549444954595f414d4f554e5444454d41582050414952203a20494e53554646494349454e545f4f55545055545f414d4f554e5444454d41582050414952203a20494e53554646494349454e545f494e5055545f414d4f554e54536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7744454d415820504c4154464f524d203a2052454d4f5645204c4951554944495459204455524154494f4e204641494c44454d41582050414952203a20494e53554646494349454e545f4c49515549444954595f4d494e54454444454d41582050414952203a20494e53554646494349454e545f4c49515549444954595f4255524e454450524f4455435449564954595f56414c55455f4d5553545f42455f475245415445525f5448414e5f5a45524f44454d41582050414952203a2020494e53554646494349454e545f4c4951554944495459a26469706673582212204d225b722b5690b08726d6af582aa124d1f48f8bd9473e6f7f890e76efeb0db864736f6c6343000606003344454d415820464143544f52593a204944454e544943414c5f414444524553534553a26469706673582212205190e7904eb35b67a086760abe7a7b025fd6b946c245f78d38fffd63acd3a08564736f6c63430006060033000000000000000000000000ae9269f27437f0fcbc232d39ec814844a51d6b8f000000000000000000000000e7f6824706aeee33542088eb2fdd2d69e37455b6

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

000000000000000000000000Ae9269f27437f0fcBC232d39Ec814844a51d6b8f000000000000000000000000E7F6824706aEee33542088eb2fdd2D69e37455B6

-----Decoded View---------------
Arg [0] : _DGAS (address): 0xae9269f27437f0fcbc232d39ec814844a51d6b8f
Arg [1] : _CONFIG (address): 0xe7f6824706aeee33542088eb2fdd2d69e37455b6

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000Ae9269f27437f0fcBC232d39Ec814844a51d6b8f
Arg [1] : 000000000000000000000000E7F6824706aEee33542088eb2fdd2D69e37455B6


Deployed ByteCode Sourcemap

34895:2657:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;34895:2657:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;35125:25:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;35125:25:0;;:::i;:::-;;;;-1:-1:-1;;;;;35125:25:0;;;;;;;;;;;;;;34924:26;;;:::i;:::-;;;;;;;;;;;;;;;;36155:99;;;:::i;35535:233::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;35535:233:0;-1:-1:-1;;;;;35535:233:0;;:::i;34957:19::-;;;:::i;35283:31::-;;;:::i;35159:48::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;35159:48:0;;;;;;;;:::i;36262:1287::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;36262:1287:0;;;;;;;;;;:::i;35776:371::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;35776:371:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;34983:21;;;:::i;35080:38::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;35080:38:0;-1:-1:-1;;;;;35080:38:0;;:::i;35011:62::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;35011:62:0;;;;;;;;;;:::i;35125:25::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35125:25:0;;-1:-1:-1;35125:25:0;:::o;34924:26::-;;;;:::o;36155:99::-;36231:8;:15;36155:99;:::o;35535:233::-;-1:-1:-1;;;;;35655:19:0;;35602:7;35655:19;;;:11;:19;;;;;35689;;35685:38;;35722:1;35715:8;;;;;35685:38;35741:19;;-1:-1:-1;35535:233:0;;;;:::o;34957:19::-;;;-1:-1:-1;;;;;34957:19:0;;:::o;35283:31::-;;;;:::o;35159:48::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35159:48:0;;-1:-1:-1;35159:48:0;;-1:-1:-1;35159:48:0:o;36262:1287::-;36332:12;36375:6;-1:-1:-1;;;;;36365:16:0;:6;-1:-1:-1;;;;;36365:16:0;;;36357:63;;;;-1:-1:-1;;;36357:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36466:6;;36453:39;;;-1:-1:-1;;;36453:39:0;;-1:-1:-1;;;;;36453:39:0;;;;;;;;;36466:6;;;;;36453:31;;:39;;;;;;;;;;;;;;36466:6;36453:39;;;2:2:-1;;;;27:1;24;17:12;2:2;36453:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36453:39:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;36453:39:0;:82;;;;-1:-1:-1;36509:6:0;;36496:39;;;-1:-1:-1;;;36496:39:0;;-1:-1:-1;;;;;36496:39:0;;;;;;;;;36509:6;;;;;36496:31;;:39;;;;;;;;;;;;;;36509:6;36496:39;;;2:2:-1;;;;27:1;24;17:12;2:2;36496:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36496:39:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;36496:39:0;36453:82;36431:155;;;;;-1:-1:-1;;;36431:155:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;36598:14;36614;36641:6;-1:-1:-1;;;;;36632:15:0;:6;-1:-1:-1;;;;;36632:15:0;;:53;;36670:6;36678;36632:53;;;36651:6;36659;36632:53;36597:88;;-1:-1:-1;36597:88:0;-1:-1:-1;;;;;;36704:20:0;;36696:60;;;;;-1:-1:-1;;;36696:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36775:15:0;;;36810:1;36775:15;;;:7;:15;;;;;;;;:23;;;;;;;;;;;;:37;36767:76;;;;;-1:-1:-1;;;36767:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;36884:21;36908:28;;;;;;;;:::i;:::-;-1:-1:-1;;21:26;;;;;7:41;;87:2;69:12;;;65:26;61:2;54:38;36959:16:0;;34:5:-1;;-1:-1;36947:101:0;;37017:19;;;;;;36998:16;:38;36947:101;37058:12;37100:6;37108;37083:32;;;;;;-1:-1:-1;;;;;37083:32:0;-1:-1:-1;;;;;37083:32:0;;;;;;;;-1:-1:-1;;;;;37083:32:0;-1:-1:-1;;;;;37083:32:0;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;37083:32:0;;;37073:43;;;;;;37058:58;;37206:4;37195:8;37189:15;37184:2;37174:8;37170:17;37167:1;37159:52;-1:-1:-1;;;;;37232:12:0;;;;;;;:6;:12;;;;;;;;:19;;-1:-1:-1;;37232:19:0;37247:4;37232:19;;;;;;37305:6;;37313:4;;37262:56;;-1:-1:-1;;;37262:56:0;;;;;;;;;;;;;;;;;;;37305:6;;;37262:56;;;;37313:4;;;37262:56;;;;;;37151:60;;-1:-1:-1;37232:12:0;;37262:26;;:56;;;;;37232:12;37262:56;;;;;;37232:12;;37262:56;;;2:2:-1;;;;27:1;24;17:12;2:2;37262:56:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;;;;;;;;37329:15:0;;;;;;;:7;:15;;;;;;;;:23;;;;;;;;;;;;:30;;;;;-1:-1:-1;;;;;;37329:30:0;;;;;;;;37370:15;;;;;;:23;;;;;;;;:30;;;;;;;;37456:8;27:10:-1;;-1:-1;23:18;;45:23;;37456:19:0;;;;;;;;;;;;;;;;;;37525:15;;37491:50;;;;;;;;;;;;;;;;;;;;;;36262:1287;;;;;;;;:::o;35776:371::-;35901:6;;35888:31;;;-1:-1:-1;;;35888:31:0;;;;35849:4;;-1:-1:-1;;;;;35901:6:0;;35888:29;;:31;;;;;;;;;;;;;;35901:6;35888:31;;;2:2:-1;;;;27:1;24;17:12;2:2;35888:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;35888:31:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;35888:31:0;-1:-1:-1;;;;;35874:45:0;:10;:45;35866:83;;;;;-1:-1:-1;;;35866:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35964:24:0;;;;;;;:15;:24;;;;;;;;:31;;;;;;;;;;;;35960:158;;-1:-1:-1;;;;;36021:24:0;;;;;;;:15;:24;;;;;;;;:31;;;;;;;;;;;;:38;;-1:-1:-1;;36021:38:0;36055:4;36021:38;;;;;;36074:20;;;:11;:20;;;;27:10:-1;;23:18;;;45:23;;36074:32:0;;;;;;;-1:-1:-1;;;;;;36074:32:0;;;;;;35960:158;-1:-1:-1;36135:4:0;35776:371;;;;:::o;34983:21::-;;;-1:-1:-1;;;;;34983:21:0;;:::o;35080:38::-;;;;;;;;;;;;;;;:::o;35011:62::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35011:62:0;;:::o;34895:2657::-;;;;;;;;:::o

Swarm Source

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