false
true
0

Contract Address Details

0x9dCBc7C728dCadDD1A2A9D0B2F512Dd03D4a8EC3

Contract Name
BuyAndBurn
Creator
0x3864e4–b977e5 at 0x76b510–676e6c
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
115 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
25934644
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
BuyAndBurn




Optimization enabled
true
Compiler version
v0.8.28+commit.7893614a




Optimization runs
200
EVM Version
paris




Verified at
2025-11-06T12:02:05.141618Z

Constructor Arguments

0000000000000000000000003864e4a998360508fe08288dc7eb5cc382b977e5

Arg [0] (address) : 0x3864e4a998360508fe08288dc7eb5cc382b977e5

              

contracts/BuyAndBurn.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./@uniswap/v2-periphery/interfaces/IUniswapV2Router02.sol";

contract BuyAndBurn is Ownable {
    IERC20 public constant PLSX = IERC20(0x95B303987A60C71504D99Aa1b13B4DA07b0790ab); // Reward token: PLSX
    IERC20 public constant PINC = IERC20(0xfFCD9B99E1CeC392eaAc4560fDE6975426C3466a); // Target token: PINC
    IUniswapV2Router02 public constant ROUTER = IUniswapV2Router02(0x165C3410fC91EF562C50559f7d2289fEbed552d9); // PulseX V2 Router
    address public constant WPLS = 0xA1077a294dDE1B09bB078844df40758a5D0f9a27; // Wrapped PLS
    address public constant DEAD = address(0x369); // Burn address (not used for transfer)

    address public devAddr;
    uint8 public callerRate = 5; // 5% of PLSX to caller
    uint8 public devRate = 5; // 5% of PLSX to dev
    uint256 public threshold = 1000000000000000000; // 1 PLSX minimum to process
    bool public enabled = true;

    event Processed(uint256 plsxAmount, uint256 callerReward, uint256 devReward, uint256 pincBoughtAndHeld);

    constructor(address _devAddr) Ownable(_msgSender()) {
        devAddr = _devAddr;
    }

    receive() external payable {}

    function process() external {
        require(enabled, "Processing disabled");
        uint256 plsxBal = PLSX.balanceOf(address(this));
        require(plsxBal >= threshold, "Insufficient PLSX balance");

        uint256 callerReward = (plsxBal * callerRate) / 100;
        uint256 devReward = (plsxBal * devRate) / 100;
        uint256 swapAmount = plsxBal - callerReward - devReward;

        PLSX.transfer(msg.sender, callerReward);
        PLSX.transfer(devAddr, devReward);

        PLSX.approve(address(ROUTER), swapAmount);

        // Swap PLSX to PLS (native)
        address[] memory pathToPLS = new address[](2);
        pathToPLS[0] = address(PLSX);
        pathToPLS[1] = WPLS;
        ROUTER.swapExactTokensForETHSupportingFeeOnTransferTokens(swapAmount, 0, pathToPLS, address(this), block.timestamp);

        uint256 plsBal = address(this).balance;

        // Swap PLS to PINC
        address[] memory pathToPINC = new address[](2);
        pathToPINC[0] = WPLS;
        pathToPINC[1] = address(PINC);
        ROUTER.swapExactETHForTokensSupportingFeeOnTransferTokens{value: plsBal}(0, pathToPINC, address(this), block.timestamp);

        // Hold PINC in contract (considered burned)
        uint256 pincBal = PINC.balanceOf(address(this));

        emit Processed(plsxBal, callerReward, devReward, pincBal);
    }

    // Owner functions
    function setDevAddr(address _newDev) external onlyOwner {
        require(_newDev != address(0), "Invalid address");
        devAddr = _newDev;
    }

    function setRates(uint8 _callerRate, uint8 _devRate) external onlyOwner {
        require(_callerRate + _devRate <= 10, "Rates too high"); // Cap at 10% total
        callerRate = _callerRate;
        devRate = _devRate;
    }

    function setThreshold(uint256 _newThreshold) external onlyOwner {
        threshold = _newThreshold;
    }

    function setEnabled(bool _enabled) external onlyOwner {
        enabled = _enabled;
    }

    // Emergency rescue (in case of stuck tokens, excluding PINC)
    function rescueERC20(IERC20 _token, uint256 _amount) external onlyOwner {
        require(address(_token) != address(PINC), "Cannot rescue PINC");
        _token.transfer(owner(), _amount);
    }

    function rescueETH(uint256 _amount) external onlyOwner {
        payable(owner()).transfer(_amount);
    }
}
        

/IUniswapV2Router02.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}
          

/IUniswapV2Router01.sol

/*
 * SPDX-License-Identifier: MIT
 */

pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    // function WETH() external pure returns (address);
    function WPLS() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}
          

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
          

/IERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

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

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

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

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

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

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

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

Compiler Settings

{"remappings":[],"optimizer":{"runs":200,"enabled":true},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"paris","compilationTarget":{"contracts/BuyAndBurn.sol":"BuyAndBurn"}}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_devAddr","internalType":"address"}]},{"type":"error","name":"OwnableInvalidOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"OwnableUnauthorizedAccount","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Processed","inputs":[{"type":"uint256","name":"plsxAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"callerReward","internalType":"uint256","indexed":false},{"type":"uint256","name":"devReward","internalType":"uint256","indexed":false},{"type":"uint256","name":"pincBoughtAndHeld","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"DEAD","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"PINC","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"PLSX","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IUniswapV2Router02"}],"name":"ROUTER","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"WPLS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"callerRate","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"devAddr","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"devRate","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"enabled","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"process","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueERC20","inputs":[{"type":"address","name":"_token","internalType":"contract IERC20"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueETH","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDevAddr","inputs":[{"type":"address","name":"_newDev","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setEnabled","inputs":[{"type":"bool","name":"_enabled","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRates","inputs":[{"type":"uint8","name":"_callerRate","internalType":"uint8"},{"type":"uint8","name":"_devRate","internalType":"uint8"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setThreshold","inputs":[{"type":"uint256","name":"_newThreshold","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"threshold","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"receive","stateMutability":"payable"}]
              

Contract Creation Code

0x60806040526001805461ffff60a01b191661050560a01b178155670de0b6b3a76400006002556003805460ff1916909117905534801561003e57600080fd5b5060405161113438038061113483398101604081905261005d91610102565b338061008357604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61008c816100b2565b50600180546001600160a01b0319166001600160a01b0392909216919091179055610132565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561011457600080fd5b81516001600160a01b038116811461012b57600080fd5b9392505050565b610ff3806101416000396000f3fe6080604052600436106101235760003560e01c8063911ef7cc116100a0578063cd0e282b11610064578063cd0e282b14610345578063da09c72c14610365578063e5832b7114610385578063ef8ef56f146103a6578063f2fde38b146103ce57600080fd5b8063911ef7cc14610295578063960bfe04146102bd5780639e252f00146102dd578063c33fb877146102fd578063c95749751461031257600080fd5b806363dd9d74116100e757806363dd9d74146101fa5780636ebb64a214610222578063715018a6146102425780638cd4426d146102575780638da5cb5b1461027757600080fd5b806303fd2a451461012f578063238dafe014610162578063328d8f721461018c57806332fe7b26146101ae57806342cde4e8146101d657600080fd5b3661012a57005b600080fd5b34801561013b57600080fd5b5061014561036981565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561016e57600080fd5b5060035461017c9060ff1681565b6040519015158152602001610159565b34801561019857600080fd5b506101ac6101a7366004610d56565b6103ee565b005b3480156101ba57600080fd5b5061014573165c3410fc91ef562c50559f7d2289febed552d981565b3480156101e257600080fd5b506101ec60025481565b604051908152602001610159565b34801561020657600080fd5b506101457395b303987a60c71504d99aa1b13b4da07b0790ab81565b34801561022e57600080fd5b506101ac61023d366004610d8f565b610409565b34801561024e57600080fd5b506101ac610480565b34801561026357600080fd5b506101ac610272366004610dac565b610494565b34801561028357600080fd5b506000546001600160a01b0316610145565b3480156102a157600080fd5b5061014573ffcd9b99e1cec392eaac4560fde6975426c3466a81565b3480156102c957600080fd5b506101ac6102d8366004610dd8565b610595565b3480156102e957600080fd5b506101ac6102f8366004610dd8565b6105a2565b34801561030957600080fd5b506101ac6105e7565b34801561031e57600080fd5b5060015461033390600160a81b900460ff1681565b60405160ff9091168152602001610159565b34801561035157600080fd5b506101ac610360366004610e07565b610c03565b34801561037157600080fd5b50600154610145906001600160a01b031681565b34801561039157600080fd5b5060015461033390600160a01b900460ff1681565b3480156103b257600080fd5b5061014573a1077a294dde1b09bb078844df40758a5d0f9a2781565b3480156103da57600080fd5b506101ac6103e9366004610d8f565b610c8d565b6103f6610ccb565b6003805460ff1916911515919091179055565b610411610ccb565b6001600160a01b03811661045e5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064015b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b610488610ccb565b6104926000610cf8565b565b61049c610ccb565b73ffcd9b99e1cec392eaac4560fde6975426c34669196001600160a01b038316016104fe5760405162461bcd60e51b815260206004820152601260248201527143616e6e6f74207265736375652050494e4360701b6044820152606401610455565b816001600160a01b031663a9059cbb61051f6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561056c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105909190610e3a565b505050565b61059d610ccb565b600255565b6105aa610ccb565b600080546040516001600160a01b039091169183156108fc02918491818181858888f193505050501580156105e3573d6000803e3d6000fd5b5050565b60035460ff1661062f5760405162461bcd60e51b8152602060048201526013602482015272141c9bd8d95cdcda5b99c8191a5cd8589b1959606a1b6044820152606401610455565b6040516370a0823160e01b81523060048201526000907395b303987a60c71504d99aa1b13b4da07b0790ab906370a0823190602401602060405180830381865afa158015610681573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a59190610e57565b90506002548110156106f95760405162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420504c53582062616c616e6365000000000000006044820152606401610455565b60015460009060649061071690600160a01b900460ff1684610e86565b6107209190610ea3565b60015490915060009060649061074090600160a81b900460ff1685610e86565b61074a9190610ea3565b90506000816107598486610ec5565b6107639190610ec5565b60405163a9059cbb60e01b8152336004820152602481018590529091507395b303987a60c71504d99aa1b13b4da07b0790ab9063a9059cbb906044016020604051808303816000875af11580156107be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e29190610e3a565b5060015460405163a9059cbb60e01b81526001600160a01b039091166004820152602481018390527395b303987a60c71504d99aa1b13b4da07b0790ab9063a9059cbb906044016020604051808303816000875af1158015610848573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086c9190610e3a565b5060405163095ea7b360e01b815273165c3410fc91ef562c50559f7d2289febed552d96004820152602481018290527395b303987a60c71504d99aa1b13b4da07b0790ab9063095ea7b3906044016020604051808303816000875af11580156108d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fd9190610e3a565b506040805160028082526060820183526000926020830190803683370190505090507395b303987a60c71504d99aa1b13b4da07b0790ab8160008151811061094757610947610ed8565b60200260200101906001600160a01b031690816001600160a01b03168152505073a1077a294dde1b09bb078844df40758a5d0f9a278160018151811061098f5761098f610ed8565b6001600160a01b039092166020928302919091019091015260405163791ac94760e01b815273165c3410fc91ef562c50559f7d2289febed552d99063791ac947906109e7908590600090869030904290600401610f33565b600060405180830381600087803b158015610a0157600080fd5b505af1158015610a15573d6000803e3d6000fd5b505060408051600280825260608201835247945060009350909160208301908036833701905050905073a1077a294dde1b09bb078844df40758a5d0f9a2781600081518110610a6657610a66610ed8565b60200260200101906001600160a01b031690816001600160a01b03168152505073ffcd9b99e1cec392eaac4560fde6975426c3466a81600181518110610aae57610aae610ed8565b6001600160a01b039092166020928302919091019091015260405163b6f9de9560e01b815273165c3410fc91ef562c50559f7d2289febed552d99063b6f9de95908490610b0690600090869030904290600401610f6f565b6000604051808303818588803b158015610b1f57600080fd5b505af1158015610b33573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526000935073ffcd9b99e1cec392eaac4560fde6975426c3466a92506370a082319150602401602060405180830381865afa158015610b8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bae9190610e57565b604080518a8152602081018a9052908101889052606081018290529091507f5dc81c5a34ec13f4e1ed173164cab6e1af51e5ac3cdcae178e02c8784713f0ba9060800160405180910390a15050505050505050565b610c0b610ccb565b600a610c178284610fa4565b60ff161115610c595760405162461bcd60e51b815260206004820152600e60248201526d0a4c2e8cae640e8dede40d0d2ced60931b6044820152606401610455565b6001805461ffff60a01b1916600160a01b60ff9485160260ff60a81b191617600160a81b9290931691909102919091179055565b610c95610ccb565b6001600160a01b038116610cbf57604051631e4fbdf760e01b815260006004820152602401610455565b610cc881610cf8565b50565b6000546001600160a01b031633146104925760405163118cdaa760e01b8152336004820152602401610455565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8015158114610cc857600080fd5b600060208284031215610d6857600080fd5b8135610d7381610d48565b9392505050565b6001600160a01b0381168114610cc857600080fd5b600060208284031215610da157600080fd5b8135610d7381610d7a565b60008060408385031215610dbf57600080fd5b8235610dca81610d7a565b946020939093013593505050565b600060208284031215610dea57600080fd5b5035919050565b803560ff81168114610e0257600080fd5b919050565b60008060408385031215610e1a57600080fd5b610e2383610df1565b9150610e3160208401610df1565b90509250929050565b600060208284031215610e4c57600080fd5b8151610d7381610d48565b600060208284031215610e6957600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610e9d57610e9d610e70565b92915050565b600082610ec057634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610e9d57610e9d610e70565b634e487b7160e01b600052603260045260246000fd5b600081518084526020840193506020830160005b82811015610f295781516001600160a01b0316865260209586019590910190600101610f02565b5093949350505050565b85815284602082015260a060408201526000610f5260a0830186610eee565b6001600160a01b0394909416606083015250608001529392505050565b848152608060208201526000610f886080830186610eee565b6001600160a01b03949094166040830152506060015292915050565b60ff8181168382160190811115610e9d57610e9d610e7056fea26469706673582212208e71484c474e8f21eeae4ed551008e0731185a62a690f6572bc9012125f23b3464736f6c634300081c00330000000000000000000000003864e4a998360508fe08288dc7eb5cc382b977e5

Deployed ByteCode

0x6080604052600436106101235760003560e01c8063911ef7cc116100a0578063cd0e282b11610064578063cd0e282b14610345578063da09c72c14610365578063e5832b7114610385578063ef8ef56f146103a6578063f2fde38b146103ce57600080fd5b8063911ef7cc14610295578063960bfe04146102bd5780639e252f00146102dd578063c33fb877146102fd578063c95749751461031257600080fd5b806363dd9d74116100e757806363dd9d74146101fa5780636ebb64a214610222578063715018a6146102425780638cd4426d146102575780638da5cb5b1461027757600080fd5b806303fd2a451461012f578063238dafe014610162578063328d8f721461018c57806332fe7b26146101ae57806342cde4e8146101d657600080fd5b3661012a57005b600080fd5b34801561013b57600080fd5b5061014561036981565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561016e57600080fd5b5060035461017c9060ff1681565b6040519015158152602001610159565b34801561019857600080fd5b506101ac6101a7366004610d56565b6103ee565b005b3480156101ba57600080fd5b5061014573165c3410fc91ef562c50559f7d2289febed552d981565b3480156101e257600080fd5b506101ec60025481565b604051908152602001610159565b34801561020657600080fd5b506101457395b303987a60c71504d99aa1b13b4da07b0790ab81565b34801561022e57600080fd5b506101ac61023d366004610d8f565b610409565b34801561024e57600080fd5b506101ac610480565b34801561026357600080fd5b506101ac610272366004610dac565b610494565b34801561028357600080fd5b506000546001600160a01b0316610145565b3480156102a157600080fd5b5061014573ffcd9b99e1cec392eaac4560fde6975426c3466a81565b3480156102c957600080fd5b506101ac6102d8366004610dd8565b610595565b3480156102e957600080fd5b506101ac6102f8366004610dd8565b6105a2565b34801561030957600080fd5b506101ac6105e7565b34801561031e57600080fd5b5060015461033390600160a81b900460ff1681565b60405160ff9091168152602001610159565b34801561035157600080fd5b506101ac610360366004610e07565b610c03565b34801561037157600080fd5b50600154610145906001600160a01b031681565b34801561039157600080fd5b5060015461033390600160a01b900460ff1681565b3480156103b257600080fd5b5061014573a1077a294dde1b09bb078844df40758a5d0f9a2781565b3480156103da57600080fd5b506101ac6103e9366004610d8f565b610c8d565b6103f6610ccb565b6003805460ff1916911515919091179055565b610411610ccb565b6001600160a01b03811661045e5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064015b60405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b610488610ccb565b6104926000610cf8565b565b61049c610ccb565b73ffcd9b99e1cec392eaac4560fde6975426c34669196001600160a01b038316016104fe5760405162461bcd60e51b815260206004820152601260248201527143616e6e6f74207265736375652050494e4360701b6044820152606401610455565b816001600160a01b031663a9059cbb61051f6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af115801561056c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105909190610e3a565b505050565b61059d610ccb565b600255565b6105aa610ccb565b600080546040516001600160a01b039091169183156108fc02918491818181858888f193505050501580156105e3573d6000803e3d6000fd5b5050565b60035460ff1661062f5760405162461bcd60e51b8152602060048201526013602482015272141c9bd8d95cdcda5b99c8191a5cd8589b1959606a1b6044820152606401610455565b6040516370a0823160e01b81523060048201526000907395b303987a60c71504d99aa1b13b4da07b0790ab906370a0823190602401602060405180830381865afa158015610681573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a59190610e57565b90506002548110156106f95760405162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420504c53582062616c616e6365000000000000006044820152606401610455565b60015460009060649061071690600160a01b900460ff1684610e86565b6107209190610ea3565b60015490915060009060649061074090600160a81b900460ff1685610e86565b61074a9190610ea3565b90506000816107598486610ec5565b6107639190610ec5565b60405163a9059cbb60e01b8152336004820152602481018590529091507395b303987a60c71504d99aa1b13b4da07b0790ab9063a9059cbb906044016020604051808303816000875af11580156107be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e29190610e3a565b5060015460405163a9059cbb60e01b81526001600160a01b039091166004820152602481018390527395b303987a60c71504d99aa1b13b4da07b0790ab9063a9059cbb906044016020604051808303816000875af1158015610848573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086c9190610e3a565b5060405163095ea7b360e01b815273165c3410fc91ef562c50559f7d2289febed552d96004820152602481018290527395b303987a60c71504d99aa1b13b4da07b0790ab9063095ea7b3906044016020604051808303816000875af11580156108d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108fd9190610e3a565b506040805160028082526060820183526000926020830190803683370190505090507395b303987a60c71504d99aa1b13b4da07b0790ab8160008151811061094757610947610ed8565b60200260200101906001600160a01b031690816001600160a01b03168152505073a1077a294dde1b09bb078844df40758a5d0f9a278160018151811061098f5761098f610ed8565b6001600160a01b039092166020928302919091019091015260405163791ac94760e01b815273165c3410fc91ef562c50559f7d2289febed552d99063791ac947906109e7908590600090869030904290600401610f33565b600060405180830381600087803b158015610a0157600080fd5b505af1158015610a15573d6000803e3d6000fd5b505060408051600280825260608201835247945060009350909160208301908036833701905050905073a1077a294dde1b09bb078844df40758a5d0f9a2781600081518110610a6657610a66610ed8565b60200260200101906001600160a01b031690816001600160a01b03168152505073ffcd9b99e1cec392eaac4560fde6975426c3466a81600181518110610aae57610aae610ed8565b6001600160a01b039092166020928302919091019091015260405163b6f9de9560e01b815273165c3410fc91ef562c50559f7d2289febed552d99063b6f9de95908490610b0690600090869030904290600401610f6f565b6000604051808303818588803b158015610b1f57600080fd5b505af1158015610b33573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526000935073ffcd9b99e1cec392eaac4560fde6975426c3466a92506370a082319150602401602060405180830381865afa158015610b8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bae9190610e57565b604080518a8152602081018a9052908101889052606081018290529091507f5dc81c5a34ec13f4e1ed173164cab6e1af51e5ac3cdcae178e02c8784713f0ba9060800160405180910390a15050505050505050565b610c0b610ccb565b600a610c178284610fa4565b60ff161115610c595760405162461bcd60e51b815260206004820152600e60248201526d0a4c2e8cae640e8dede40d0d2ced60931b6044820152606401610455565b6001805461ffff60a01b1916600160a01b60ff9485160260ff60a81b191617600160a81b9290931691909102919091179055565b610c95610ccb565b6001600160a01b038116610cbf57604051631e4fbdf760e01b815260006004820152602401610455565b610cc881610cf8565b50565b6000546001600160a01b031633146104925760405163118cdaa760e01b8152336004820152602401610455565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8015158114610cc857600080fd5b600060208284031215610d6857600080fd5b8135610d7381610d48565b9392505050565b6001600160a01b0381168114610cc857600080fd5b600060208284031215610da157600080fd5b8135610d7381610d7a565b60008060408385031215610dbf57600080fd5b8235610dca81610d7a565b946020939093013593505050565b600060208284031215610dea57600080fd5b5035919050565b803560ff81168114610e0257600080fd5b919050565b60008060408385031215610e1a57600080fd5b610e2383610df1565b9150610e3160208401610df1565b90509250929050565b600060208284031215610e4c57600080fd5b8151610d7381610d48565b600060208284031215610e6957600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610e9d57610e9d610e70565b92915050565b600082610ec057634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115610e9d57610e9d610e70565b634e487b7160e01b600052603260045260246000fd5b600081518084526020840193506020830160005b82811015610f295781516001600160a01b0316865260209586019590910190600101610f02565b5093949350505050565b85815284602082015260a060408201526000610f5260a0830186610eee565b6001600160a01b0394909416606083015250608001529392505050565b848152608060208201526000610f886080830186610eee565b6001600160a01b03949094166040830152506060015292915050565b60ff8181168382160190811115610e9d57610e9d610e7056fea26469706673582212208e71484c474e8f21eeae4ed551008e0731185a62a690f6572bc9012125f23b3464736f6c634300081c0033