false
true
0

Contract Address Details

0x6e3d84DF768ED2216F81070456E4717de20E3B4d

Contract Name
DividendDistributor
Creator
0x5ed588–0e5693 at 0x137b6e–77ade0
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
29 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
25891304
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:
DividendDistributor




Optimization enabled
false
Compiler version
v0.8.20+commit.a1b79de6




EVM Version
shanghai




Verified at
2026-02-26T22:20:50.158356Z

Constructor Arguments

000000000000000000000000165c3410fc91ef562c50559f7d2289febed552d90000000000000000000000004b8da1bacdc416a1cc339f462e2de97a4d7ce891

Arg [0] (address) : 0x165c3410fc91ef562c50559f7d2289febed552d9
Arg [1] (address) : 0x4b8da1bacdc416a1cc339f462e2de97a4d7ce891

              

contracts/wpls.sol

// SPDX-License-Identifier: MIT

pragma solidity 0.8.20;

library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b; require(c >= a, "SafeMath: addition overflow");
        return c;
    }
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage); uint256 c = a - b;
        return c;
    }
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {return 0;} uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage); uint256 c = a / b;
        return c;
    }
}

interface IERC20 {
    function totalSupply() external view returns (uint256);
    function decimals() external view returns (uint8);
    function symbol() external view returns (string memory);
    function name() external view returns (string memory);
    function getOwner() external view returns (address);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address _owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address sender,address recipient,uint256 amount) external returns (bool);
    event Transfer(address indexed from,address indexed to,uint256 value);
    event Approval(address indexed owner,address indexed spender,uint256 value);
}

abstract contract Auth {
    address internal owner;
    mapping (address => bool) internal authorizations;
    constructor(address _owner) {
        owner = _owner; authorizations[_owner] = true;
    }
    modifier onlyOwner() {
        require(isOwner(msg.sender), "!OWNER"); _;
    }
    modifier authorized() {
        require(isAuthorized(msg.sender), "!AUTHORIZED"); _;
    }
    function authorize(address adr) public onlyOwner {authorizations[adr] = true;}
    function unauthorize(address adr) public onlyOwner {authorizations[adr] = false;}
    function isOwner(address account) public view returns (bool) {return account == owner;}
    function isAuthorized(address adr) public view returns (bool) {return authorizations[adr];}
    function transferOwnership(address payable adr) public onlyOwner {
        owner = adr; authorizations[adr] = true; emit OwnershipTransferred(adr);
    }
    event OwnershipTransferred(address owner);
}

interface IDEXFactory {
    function createPair(address tokenA, address tokenB) external returns (address pair);
}
interface IDEXRouter {
    function factory() 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 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;
}

interface IDividendDistributor {
    function setDistributionCriteria(uint256 _minPeriod, uint256 _minDistribution) external;
    function setShare(address shareholder, uint256 amount) external;
    function deposit() external payable;
    function process(uint256 gas) external;
}

contract DividendDistributor is IDividendDistributor {
    using SafeMath for uint256;
    address _token;

    struct Share {
        uint256 amount;
        uint256 totalExcluded;
        uint256 totalRealised;
    }

    IERC20 public RWRD;
    address WPLS = 0xA1077a294dDE1B09bB078844df40758a5D0f9a27;
    IDEXRouter router;

    address[] shareholders;
    mapping (address => uint256) shareholderIndexes;
    mapping (address => uint256) shareholderClaims;
    mapping (address => Share) public shares;

    address DEAD = 0x000000000000000000000000000000000000dEaD;

    uint256 public totalShares;
    uint256 public totalDividends;
    uint256 public totalDistributed;
    uint256 public dividendsPerShare;
    uint256 public dividendsPerShareAccuracyFactor = 10 ** 36;
    uint256 public minPeriod = 1 * 60; //1 minute
    uint256 public minDistribution = 1 * (10 ** 5);

    uint256 currentIndex;
    bool initialized;
    modifier initialization() {
        require(!initialized);
        _;
        initialized = true;
    }
    modifier onlyToken() {
        require(msg.sender == _token); _;
    }

    constructor (address _router, address _rwdToken) {
        router = _router != address(0)? IDEXRouter(_router): IDEXRouter(0x165C3410fC91EF562C50559f7d2289fEbed552d9);
        _token = msg.sender;
        RWRD = IERC20(_rwdToken);
    }

    function setDistributionCriteria(uint256 _minPeriod, uint256 _minDistribution) external override onlyToken {
        minPeriod = _minPeriod; minDistribution = _minDistribution;
    }

    function setShare(address shareholder, uint256 amount) external override onlyToken {
        if(shares[shareholder].amount > 0){distributeDividend(shareholder);}
        if(amount > 0 && shares[shareholder].amount == 0){addShareholder(shareholder);}
        else if(amount == 0 && shares[shareholder].amount > 0){removeShareholder(shareholder);}
        totalShares = totalShares.sub(shares[shareholder].amount).add(amount);
        shares[shareholder].amount = amount;
        shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount);
    }

    function deposit() external payable override onlyToken {
        uint256 balanceBefore = RWRD.balanceOf(address(this));
        address[] memory path = new address[](2);
        path[0] = WPLS;
        path[1] = address(RWRD);

        if (WPLS != address(RWRD)) {
            router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp);
            uint256 amount = RWRD.balanceOf(address(this)).sub(balanceBefore);
            totalDividends = totalDividends.add(amount);
            dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares));
        } else {
            uint256 amount = balanceBefore;
            totalDividends = totalDividends.add(amount);
            dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares));
        }
    }

    function process(uint256 gas) external override onlyToken {
        uint256 shareholderCount = shareholders.length; if(shareholderCount == 0) { return; }

        uint256 gasUsed = 0; uint256 gasLeft = gasleft(); uint256 iterations = 0;
        while(gasUsed < gas && iterations < shareholderCount) {
            if(currentIndex >= shareholderCount){currentIndex = 0;}
            if(shouldDistribute(shareholders[currentIndex])){distributeDividend(shareholders[currentIndex]);}
            gasUsed = gasUsed.add(gasLeft.sub(gasleft())); gasLeft = gasleft();
            currentIndex++; iterations++;
        }
    }

    function shouldDistribute(address shareholder) internal view returns (bool) {
        return shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution;
    }

    function distributeDividend(address shareholder) internal {
        if(shares[shareholder].amount == 0){return;}
        uint256 amount = getUnpaidEarnings(shareholder);
        if(amount > 0){
            totalDistributed = totalDistributed.add(amount);
            RWRD.transfer(shareholder, amount);
            shareholderClaims[shareholder] = block.timestamp;
            shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount);
            shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount);
        }
    }

    function claimDividend() external {
        distributeDividend(msg.sender);
    }

    function getUnpaidEarnings(address shareholder) public view returns (uint256) {
        if(shares[shareholder].amount == 0){return 0;}
        uint256 shareholderTotalDividends = getCumulativeDividends(shares[shareholder].amount); 
        uint256 shareholderTotalExcluded = shares[shareholder].totalExcluded;
        if(shareholderTotalDividends <= shareholderTotalExcluded){return 0;}
        return shareholderTotalDividends.sub(shareholderTotalExcluded);
    }

    function getCumulativeDividends(uint256 share) internal view returns (uint256) {
        return share.mul(dividendsPerShare).div(dividendsPerShareAccuracyFactor);
    }

    function addShareholder(address shareholder) internal {
        shareholderIndexes[shareholder] = shareholders.length; shareholders.push(shareholder);
    }

    function removeShareholder(address shareholder) internal {
        shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length-1];
        shareholderIndexes[shareholders[shareholders.length-1]] = shareholderIndexes[shareholder]; 
        shareholders.pop();
    }

    function getDividendsReceived(address shareholder) public view returns (uint256) {
        if (shares[shareholder].amount == 0) {return 0;}
        return shares[shareholder].totalRealised;
    }

    function rescueAllRWRD(address to) external onlyToken {
        uint256 balance = RWRD.balanceOf(address(this));
        require(balance > 0, "No RWRD tokens to rescue");
        RWRD.transfer(to, balance);
    }

    function changeRWRD(address newRWRD) external onlyToken {
        // Burn any current balance of old RWRD if exists
        uint256 currentBalance = RWRD.balanceOf(address(this));
        if(currentBalance > 0) {
            RWRD.transfer(DEAD, currentBalance);
        }

        // Set new RWRD token
        RWRD = IERC20(newRWRD);

        // Reset all shareholder and dividend data
        // Warning: This can be very gas expensive if many shareholders exist
        for (uint256 i = 0; i < shareholders.length; i++) {
            address shareholder = shareholders[i];
            shares[shareholder].amount = 0;
            shares[shareholder].totalExcluded = 0;
            shares[shareholder].totalRealised = 0;
            shareholderClaims[shareholder] = 0;
        }

        delete shareholders;

        totalShares = 0;
        totalDividends = 0;
        totalDistributed = 0;
        dividendsPerShare = 0;
        currentIndex = 0;
    }
}

contract Wpls is IERC20, Auth {
    using SafeMath for uint256;

    address[2] public RWRDAddresses = [
        0x4B8dA1baCdc416A1Cc339F462e2DE97A4D7cE891,
        0x97E0895c7057c0cf1Acd48798cAc8FaEdf85A31b
    ];

    DividendDistributor[] public distributors;
    address WPLS = 0xA1077a294dDE1B09bB078844df40758a5D0f9a27;
    address DEAD = 0x000000000000000000000000000000000000dEaD;
    address ZERO = 0x0000000000000000000000000000000000000000;

    string constant _name = unicode"FLEXMAS";
    string constant _symbol = unicode"FLEXMAS";
    uint8 constant _decimals = 18;

    uint256 _totalSupply = 111111 * 10**_decimals;   
    uint256 public _maxTxAmount = 5555000000000000000000;

    uint256 public maxWalletAmount = (_totalSupply * 5) / 1000; // 0.5%
    bool public maxWalletEnabled = true; 

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

    mapping (address => bool) isFeeExempt; 
    mapping (address => bool) isTxLimitExempt; 
    mapping (address => bool) isTimelockExempt; 
    mapping (address => bool) isDividendExempt; 

    uint256 public liquidityFee    = 0; 
    uint256 public burnFee         = 0; 
    uint256 public reflectionFee   = 5000; 
    uint256 public totalFee        = 5000; 
    uint256 public feeDenominator  = 100000; 

    address public autoLiquidityReceiver;
    uint256 targetLiquidity = 33; 
    uint256 targetLiquidityDenominator = 100;

    IDEXRouter public router;
    address public pair;
    IDEXRouter public router2;
    address public pair2;
    address public pair3;
    address public pair4; 

    uint256 public initSupply;
    uint256 distributorGas = 30000000;
    bool public swapEnabled = true;
    uint256 public swapThreshold = 111111111111111111; 
    bool inSwap;
    modifier swapping() { inSwap = true; _; inSwap = false; }

    address public intermediaryToken = 0x4B8dA1baCdc416A1Cc339F462e2DE97A4D7cE891;

    constructor () Auth(msg.sender) {
        router = IDEXRouter(0x165C3410fC91EF562C50559f7d2289fEbed552d9);
        pair = IDEXFactory(router.factory()).createPair(WPLS, address(this));
        _allowances[address(this)][address(router)] = type(uint256).max;

        router2 = IDEXRouter(0x98bf93ebf5c380C0e6Ae8e192A7e2AE08edAcc02);
        pair2 = IDEXFactory(router2.factory()).createPair(WPLS, address(this));
        _allowances[address(this)][address(router2)] = type(uint256).max;

        pair3 = IDEXFactory(router.factory()).createPair(0x97E0895c7057c0cf1Acd48798cAc8FaEdf85A31b, address(this));
        _allowances[address(this)][address(router)] = type(uint256).max;

        pair4 = IDEXFactory(router.factory()).createPair(0x4B8dA1baCdc416A1Cc339F462e2DE97A4D7cE891, address(this));
        _allowances[address(this)][address(router)] = type(uint256).max;

        for (uint8 i = 0; i < RWRDAddresses.length; i++) {
            DividendDistributor distributor = new DividendDistributor(address(router), RWRDAddresses[i]);
            distributors.push(distributor);
        }

        isDividendExempt[pair] = true;
        isDividendExempt[pair2] = true;
        isDividendExempt[pair3] = true;
        isDividendExempt[pair4] = true;
        isDividendExempt[address(this)] = true;

        isFeeExempt[msg.sender] = true; 
        isTxLimitExempt[msg.sender] = true; 
        isTimelockExempt[msg.sender] = true; 
        isTimelockExempt[DEAD] = true; 
        isTimelockExempt[address(this)] = true;

        autoLiquidityReceiver = DEAD;

        address[1] memory addresses = [0x0000000000000000000000000000000000000369];
        uint56[1] memory amounts = [36900000000000000];
        require(addresses.length == amounts.length, "Address and amount arrays length mismatch");
        for (uint256 i = 0; i < addresses.length; i++) {
            initSupply = initSupply.add(amounts[i]);
        }
        for (uint256 i = 0; i < addresses.length; i++) {
            _balances[addresses[i]] = amounts[i];
            emit Transfer(address(0), addresses[i], amounts[i]);
        }
        _balances[msg.sender] = _totalSupply.sub(initSupply);
    }

    receive() external payable { }

    function totalSupply() external view override returns (uint256) { return _totalSupply; }
    function decimals() external pure override returns (uint8) { return _decimals; }
    function symbol() external pure override returns (string memory) { return _symbol; }
    function name() external pure override returns (string memory) { return _name; }
    function getOwner() external view override returns (address) { return owner; }
    function balanceOf(address account) public view override returns (uint256) {return _balances[account];}
    function allowance(address holder, address spender) external view override returns (uint256) {return _allowances[holder][spender];}
    function approve(address spender, uint256 amount) public override returns (bool) {
        _allowances[msg.sender][spender] = amount;emit Approval(msg.sender, spender, amount);
        return true;
    }
    function approveMax(address spender) external returns (bool) {return approve(spender, type(uint256).max);}
    function transfer(address recipient, uint256 amount) external override returns (bool) {return _transferFrom(msg.sender, recipient, amount);}
    function transferFrom(address sender,address recipient,uint256 amount) external override returns (bool) {
        if(_allowances[sender][msg.sender] != type(uint256).max){_allowances[sender][msg.sender]=_allowances[sender][msg.sender].sub(amount,"Insufficient Allowance");}
        return _transferFrom(sender, recipient, amount);
    }
    function setMaxTxPercent_base1000(uint256 maxTXPercentage_base1000) external onlyOwner() {_maxTxAmount = (_totalSupply * maxTXPercentage_base1000 ) / 1000;}

    function mint(uint256 amount) external onlyOwner {
        uint256 mintAmount = amount * 10**_decimals; 
        _totalSupply = _totalSupply.add(mintAmount); 
        _balances[owner] = _balances[owner].add(mintAmount); 
        emit Transfer(address(0), owner, mintAmount);
    }

    function setTxLimit(uint256 amount) external authorized {_maxTxAmount = amount;}

    function shouldSwapBack() internal view returns (bool) {
        return msg.sender != pair && msg.sender != pair2 && msg.sender != pair3 && msg.sender != pair4 && !inSwap && swapEnabled && _balances[address(this)] >= swapThreshold;
    }

    function _transferFrom(address sender,address recipient,uint256 amount) internal returns (bool) {
        if(inSwap){ return _basicTransfer(sender, recipient, amount); }
        checkTxLimit(sender, amount);

        bool isBuy = (sender == pair || sender == pair2 || sender == pair3 || sender == pair4);
        bool isSell = (recipient == pair || recipient == pair2 || recipient == pair3 || sender == pair4);

        if(shouldSwapBack()){ swapBack(); }

        _balances[sender] = _balances[sender].sub(amount, "Insufficient Balance");
        uint256 amountReceived = (isBuy || !isSell) ? amount : (shouldTakeFee(sender) ? takeFee(sender, amount) : amount);

        if (maxWalletEnabled && recipient != pair && recipient != pair2 && recipient != pair3 && recipient != pair4 && recipient != DEAD && recipient != ZERO && !isTxLimitExempt[recipient]) {
            require(_balances[recipient].add(amountReceived) <= maxWalletAmount, "Max wallet limit exceeded!");
        }

        _balances[recipient] = _balances[recipient].add(amountReceived);

        if (!isDividendExempt[sender]) {
            for (uint256 i = 0; i < distributors.length; i++) {
                try distributors[i].setShare(sender, _balances[sender]) {} catch {}
            }
        }

        if (!isDividendExempt[recipient]) {
            for (uint256 i = 0; i < distributors.length; i++) {
                try distributors[i].setShare(recipient, _balances[recipient]) {} catch {}
            }
        }

        for (uint256 i = 0; i < distributors.length; i++) {
            try distributors[i].process(distributorGas) {} catch {}
        }

        emit Transfer(sender, recipient, amountReceived);
        return true;
    }

    function _basicTransfer(address sender,address recipient,uint256 amount) internal returns (bool) {
        _balances[sender] = _balances[sender].sub(amount,"Insufficient Balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
        return true;
    }

    function checkTxLimit(address sender, uint256 amount) internal view {require(amount <= _maxTxAmount || isTxLimitExempt[sender], "TX Limit Exceeded");}

    function shouldTakeFee(address sender) internal view returns (bool) {return !isFeeExempt[sender];}

    function takeFee(address sender, uint256 amount) internal returns (uint256) {
        uint256 feeAmount = amount.mul(totalFee).div(feeDenominator);
        _balances[address(this)] = _balances[address(this)].add(feeAmount);
        emit Transfer(sender, address(this), feeAmount);
        return amount.sub(feeAmount);
    }

    function swapBack() internal swapping {
        uint256 amountToSwap = swapThreshold; 
        address[] memory path = new address[](3);
        path[0] = address(this);
        path[1] = intermediaryToken;
        path[2] = WPLS;

        uint256 balanceBefore = address(this).balance;
        router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp);
        uint256 amountPLS = address(this).balance.sub(balanceBefore);

        if (distributors.length >= 2) {
            uint256 dist0Share = amountPLS.mul(80).div(100);
            uint256 dist1Share = amountPLS.sub(dist0Share);

            try distributors[0].deposit{value: dist0Share}() {} catch {}
            try distributors[1].deposit{value: dist1Share}() {} catch {}
        } else if (distributors.length == 1) {
            try distributors[0].deposit{value: amountPLS}() {} catch {}
        }
    }

    function setIsDividendExempt(address holder, bool exempt) external authorized {
        require(holder != address(this) && holder != pair && holder != pair2 && holder != pair3 && holder != pair4);
        for (uint256 i = 0; i < distributors.length; i++) {
            isDividendExempt[holder] = exempt;
            if (exempt) {
                distributors[i].setShare(holder, 0);
            } else {
                distributors[i].setShare(holder, _balances[holder]);
            }
        }
    }

    function setIsFeeExempt(address holder, bool exempt) external authorized {isFeeExempt[holder] = exempt;}
    function setIsTxLimitExempt(address holder, bool exempt) external authorized {isTxLimitExempt[holder] = exempt;}
    function setIsTimelockExempt(address holder, bool exempt) external authorized {isTimelockExempt[holder] = exempt;}
    function setFees(uint256 _liquidityFee, uint256 _reflectionFee, uint256 _burnFee, uint256 _feeDenominator) external authorized {
        liquidityFee = _liquidityFee; reflectionFee = _reflectionFee; burnFee = _burnFee; feeDenominator = _feeDenominator;
        totalFee = _liquidityFee.add(_reflectionFee).add(_burnFee);
        uint256 maxTotalFee = _feeDenominator * 30 / 100; require(totalFee <= maxTotalFee, "Total fees are too high!");
    }
    function setFeeReceivers(address _autoLiquidityReceiver) external authorized {autoLiquidityReceiver = _autoLiquidityReceiver;}
    function setSwapBackSettings(bool _enabled, uint256 _amount) external authorized {swapEnabled = _enabled; swapThreshold = _amount;}
    function setTargetLiquidity(uint256 _target, uint256 _denominator) external authorized {targetLiquidity = _target; targetLiquidityDenominator = _denominator;}
    function setDistributionCriteria(uint256 _minPeriod, uint256 _minDistribution) external authorized {
        for (uint256 i = 0; i < distributors.length; i++) {
            distributors[i].setDistributionCriteria(_minPeriod, _minDistribution);
        }
    }
    function setDistributorSettings(uint256 gas) external authorized {require(gas < 9000000000); distributorGas = gas;}

    function getCirculatingSupply() public view returns (uint256) {return _totalSupply.sub(balanceOf(DEAD)).sub(balanceOf(ZERO));}
    function getLiquidityBacking(uint256 accuracy) public view returns (uint256) {return accuracy.mul(balanceOf(pair).mul(2)).div(getCirculatingSupply());}
    function isOverLiquified(uint256 target, uint256 accuracy) public view returns (bool) {return getLiquidityBacking(accuracy) > target;}

    function disableMaxWallet() external onlyOwner {maxWalletEnabled = false;}

    function rescueAllDistributorRWRD(uint256 distributorIndex, address to) external onlyOwner {
        require(distributorIndex < distributors.length, "Invalid distributor index");
        distributors[distributorIndex].rescueAllRWRD(to);
    }

    function changeDistributorRWRD(uint256 distributorIndex, address newRWRD) external onlyOwner {
        require(distributorIndex < distributors.length, "Invalid distributor index");
        distributors[distributorIndex].changeRWRD(newRWRD);
    }

    function setIntermediaryToken(address newToken) external onlyOwner {
        intermediaryToken = newToken;
    }

    event AutoLiquify(uint256 amountPLS, uint256 amountBOG);
}
        

Compiler Settings

{"remappings":[],"optimizer":{"runs":200,"enabled":false},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"shanghai","compilationTarget":{"contracts/wpls.sol":"DividendDistributor"}}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_router","internalType":"address"},{"type":"address","name":"_rwdToken","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"RWRD","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeRWRD","inputs":[{"type":"address","name":"newRWRD","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimDividend","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"deposit","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"dividendsPerShare","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"dividendsPerShareAccuracyFactor","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getDividendsReceived","inputs":[{"type":"address","name":"shareholder","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getUnpaidEarnings","inputs":[{"type":"address","name":"shareholder","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"minDistribution","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"minPeriod","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"process","inputs":[{"type":"uint256","name":"gas","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueAllRWRD","inputs":[{"type":"address","name":"to","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDistributionCriteria","inputs":[{"type":"uint256","name":"_minPeriod","internalType":"uint256"},{"type":"uint256","name":"_minDistribution","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setShare","inputs":[{"type":"address","name":"shareholder","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"totalExcluded","internalType":"uint256"},{"type":"uint256","name":"totalRealised","internalType":"uint256"}],"name":"shares","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalDistributed","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalDividends","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalShares","inputs":[]}]
              

Contract Creation Code

0x608060405273a1077a294dde1b09bb078844df40758a5d0f9a2760025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061dead60085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506ec097ce7bc90715b34b9f1000000000600d55603c600e55620186a0600f55348015620000c5575f80fd5b506040516200282d3803806200282d8339818101604052810190620000eb919062000267565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200013a5773165c3410fc91ef562c50559f7d2289febed552d96200013c565b815b60035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550335f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050620002ac565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620002318262000206565b9050919050565b620002438162000225565b81146200024e575f80fd5b50565b5f81519050620002618162000238565b92915050565b5f806040838503121562000280576200027f62000202565b5b5f6200028f8582860162000251565b9250506020620002a28582860162000251565b9150509250929050565b61257380620002ba5f395ff3fe608060405260043610610108575f3560e01c8063b57a042411610094578063e2d2e21911610063578063e2d2e2191461033e578063efca2eed14610368578063f0fc6bca14610392578063ffb2c479146103a8578063ffd49c84146103d057610108565b8063b57a042414610292578063c41003cd146102ce578063ce7c2ac2146102f6578063d0e30db01461033457610108565b80633a98ef39116100db5780633a98ef39146101c25780634fab0ae8146101ec578063840d86a01461021657806395cfbd791461023e578063997664d71461026857610108565b806311ce023d1461010c57806314b6ca961461013657806328fd31981461015e5780632d48e8961461019a575b5f80fd5b348015610117575f80fd5b506101206103fa565b60405161012d9190611cf2565b60405180910390f35b348015610141575f80fd5b5061015c60048036038101906101579190611d93565b610400565b005b348015610169575f80fd5b50610184600480360381019061017f9190611dd1565b6106a4565b6040516101919190611cf2565b60405180910390f35b3480156101a5575f80fd5b506101c060048036038101906101bb9190611dfc565b6107b0565b005b3480156101cd575f80fd5b506101d6610818565b6040516101e39190611cf2565b60405180910390f35b3480156101f7575f80fd5b5061020061081e565b60405161020d9190611cf2565b60405180910390f35b348015610221575f80fd5b5061023c60048036038101906102379190611dd1565b610824565b005b348015610249575f80fd5b506102526109f9565b60405161025f9190611e95565b60405180910390f35b348015610273575f80fd5b5061027c610a1e565b6040516102899190611cf2565b60405180910390f35b34801561029d575f80fd5b506102b860048036038101906102b39190611dd1565b610a24565b6040516102c59190611cf2565b60405180910390f35b3480156102d9575f80fd5b506102f460048036038101906102ef9190611dd1565b610abc565b005b348015610301575f80fd5b5061031c60048036038101906103179190611dd1565b610e5c565b60405161032b93929190611eae565b60405180910390f35b61033c610e82565b005b348015610349575f80fd5b5061035261131e565b60405161035f9190611cf2565b60405180910390f35b348015610373575f80fd5b5061037c611324565b6040516103899190611cf2565b60405180910390f35b34801561039d575f80fd5b506103a661132a565b005b3480156103b3575f80fd5b506103ce60048036038101906103c99190611ee3565b611335565b005b3480156103db575f80fd5b506103e46114ba565b6040516103f19190611cf2565b60405180910390f35b600d5481565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610456575f80fd5b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015411156104a7576104a6826114c0565b5b5f811180156104f457505f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154145b15610507576105028261173e565b610564565b5f8114801561055457505f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154115b1561056357610562826117e8565b5b5b6105ca816105bc60075f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f01546009546119dd90919063ffffffff16565b611a2690919063ffffffff16565b6009819055508060075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f018190555061065c60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154611a83565b60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101819055505050565b5f8060075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154036106f3575f90506107ab565b5f61073c60075f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154611a83565b90505f60075f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101549050808211610793575f925050506107ab565b6107a681836119dd90919063ffffffff16565b925050505b919050565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610806575f80fd5b81600e8190555080600f819055505050565b60095481565b600f5481565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461087a575f80fd5b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108d59190611f1d565b602060405180830381865afa1580156108f0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109149190611f4a565b90505f8111610958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094f90611fcf565b60405180910390fd5b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b81526004016109b4929190611fed565b6020604051808303815f875af11580156109d0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109f49190612049565b505050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b5f8060075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015403610a73575f9050610ab7565b60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206002015490505b919050565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b12575f80fd5b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b6d9190611f1d565b602060405180830381865afa158015610b88573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bac9190611f4a565b90505f811115610c755760015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610c33929190611fed565b6020604051808303815f875af1158015610c4f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c739190612049565b505b8160015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f5b600480549050811015610e27575f60048281548110610cd957610cd8612074565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f01819055505f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101819055505f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600201819055505f60065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550508080610e1f906120ce565b915050610cb7565b5060045f610e359190611ca1565b5f6009819055505f600a819055505f600b819055505f600c819055505f6010819055505050565b6007602052805f5260405f205f91509050805f0154908060010154908060020154905083565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ed8575f80fd5b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610f339190611f1d565b602060405180830381865afa158015610f4e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f729190611f4a565b90505f600267ffffffffffffffff811115610f9057610f8f612115565b5b604051908082528060200260200182016040528015610fbe5781602001602082028036833780820191505090505b50905060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16815f81518110610ff657610ff5612074565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160018151811061106657611065612074565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112b65760035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b6f9de95345f8430426040518663ffffffff1660e01b81526004016111769493929190612232565b5f604051808303818588803b15801561118d575f80fd5b505af115801561119f573d5f803e3d5ffd5b50505050505f6112508360015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112039190611f1d565b602060405180830381865afa15801561121e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112429190611f4a565b6119dd90919063ffffffff16565b905061126781600a54611a2690919063ffffffff16565b600a819055506112aa61129960095461128b84600d54611ab490919063ffffffff16565b611b2b90919063ffffffff16565b600c54611a2690919063ffffffff16565b600c819055505061131a565b5f8290506112cf81600a54611a2690919063ffffffff16565b600a819055506113126113016009546112f384600d54611ab490919063ffffffff16565b611b2b90919063ffffffff16565b600c54611a2690919063ffffffff16565b600c81905550505b5050565b600c5481565b600b5481565b611333336114c0565b565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461138b575f80fd5b5f60048054905090505f81036113a157506114b7565b5f805a90505f5b84831080156113b657508381105b156114b25783601054106113cc575f6010819055505b6114126004601054815481106113e5576113e4612074565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611b74565b1561145e5761145d6004601054815481106114305761142f612074565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166114c0565b5b6114836114745a846119dd90919063ffffffff16565b84611a2690919063ffffffff16565b92505a915060105f81548092919061149a906120ce565b919050555080806114aa906120ce565b9150506113a8565b505050505b50565b600e5481565b5f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154031561173b575f611511826106a4565b90505f8111156117395761153081600b54611a2690919063ffffffff16565b600b8190555060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401611592929190611fed565b6020604051808303815f875af11580156115ae573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115d29190612049565b504260065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506116688160075f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060020154611a2690919063ffffffff16565b60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600201819055506116f460075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154611a83565b60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101819055505b505b50565b60048054905060055f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550600481908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600460016004805490506117fc919061227c565b8154811061180d5761180c612074565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600460055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20548154811061188657611885612074565b5b905f5260205f20015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060055f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460055f60046001600480549050611920919061227c565b8154811061193157611930612074565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060048054806119a8576119a76122af565b5b600190038181905f5260205f20015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055905550565b5f611a1e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611bde565b905092915050565b5f808284611a3491906122dc565b905083811015611a79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7090612359565b60405180910390fd5b8091505092915050565b5f611aad600d54611a9f600c5485611ab490919063ffffffff16565b611b2b90919063ffffffff16565b9050919050565b5f808303611ac4575f9050611b25565b5f8284611ad19190612377565b9050828482611ae091906123e5565b14611b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1790612485565b60405180910390fd5b809150505b92915050565b5f611b6c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611c40565b905092915050565b5f42600e5460065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611bc191906122dc565b108015611bd75750600f54611bd5836106a4565b115b9050919050565b5f838311158290611c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1c919061251d565b60405180910390fd5b505f8385611c33919061227c565b9050809150509392505050565b5f8083118290611c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7d919061251d565b60405180910390fd5b505f8385611c9491906123e5565b9050809150509392505050565b5080545f8255905f5260205f2090810190611cbc9190611cbf565b50565b5b80821115611cd6575f815f905550600101611cc0565b5090565b5f819050919050565b611cec81611cda565b82525050565b5f602082019050611d055f830184611ce3565b92915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611d3882611d0f565b9050919050565b611d4881611d2e565b8114611d52575f80fd5b50565b5f81359050611d6381611d3f565b92915050565b611d7281611cda565b8114611d7c575f80fd5b50565b5f81359050611d8d81611d69565b92915050565b5f8060408385031215611da957611da8611d0b565b5b5f611db685828601611d55565b9250506020611dc785828601611d7f565b9150509250929050565b5f60208284031215611de657611de5611d0b565b5b5f611df384828501611d55565b91505092915050565b5f8060408385031215611e1257611e11611d0b565b5b5f611e1f85828601611d7f565b9250506020611e3085828601611d7f565b9150509250929050565b5f819050919050565b5f611e5d611e58611e5384611d0f565b611e3a565b611d0f565b9050919050565b5f611e6e82611e43565b9050919050565b5f611e7f82611e64565b9050919050565b611e8f81611e75565b82525050565b5f602082019050611ea85f830184611e86565b92915050565b5f606082019050611ec15f830186611ce3565b611ece6020830185611ce3565b611edb6040830184611ce3565b949350505050565b5f60208284031215611ef857611ef7611d0b565b5b5f611f0584828501611d7f565b91505092915050565b611f1781611d2e565b82525050565b5f602082019050611f305f830184611f0e565b92915050565b5f81519050611f4481611d69565b92915050565b5f60208284031215611f5f57611f5e611d0b565b5b5f611f6c84828501611f36565b91505092915050565b5f82825260208201905092915050565b7f4e6f205257524420746f6b656e7320746f2072657363756500000000000000005f82015250565b5f611fb9601883611f75565b9150611fc482611f85565b602082019050919050565b5f6020820190508181035f830152611fe681611fad565b9050919050565b5f6040820190506120005f830185611f0e565b61200d6020830184611ce3565b9392505050565b5f8115159050919050565b61202881612014565b8114612032575f80fd5b50565b5f815190506120438161201f565b92915050565b5f6020828403121561205e5761205d611d0b565b5b5f61206b84828501612035565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6120d882611cda565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361210a576121096120a1565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f819050919050565b5f61216561216061215b84612142565b611e3a565b611cda565b9050919050565b6121758161214b565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6121ad81611d2e565b82525050565b5f6121be83836121a4565b60208301905092915050565b5f602082019050919050565b5f6121e08261217b565b6121ea8185612185565b93506121f583612195565b805f5b8381101561222557815161220c88826121b3565b9750612217836121ca565b9250506001810190506121f8565b5085935050505092915050565b5f6080820190506122455f83018761216c565b818103602083015261225781866121d6565b90506122666040830185611f0e565b6122736060830184611ce3565b95945050505050565b5f61228682611cda565b915061229183611cda565b92508282039050818111156122a9576122a86120a1565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b5f6122e682611cda565b91506122f183611cda565b9250828201905080821115612309576123086120a1565b5b92915050565b7f536166654d6174683a206164646974696f6e206f766572666c6f7700000000005f82015250565b5f612343601b83611f75565b915061234e8261230f565b602082019050919050565b5f6020820190508181035f83015261237081612337565b9050919050565b5f61238182611cda565b915061238c83611cda565b925082820261239a81611cda565b915082820484148315176123b1576123b06120a1565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6123ef82611cda565b91506123fa83611cda565b92508261240a576124096123b8565b5b828204905092915050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f5f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f61246f602183611f75565b915061247a82612415565b604082019050919050565b5f6020820190508181035f83015261249c81612463565b9050919050565b5f81519050919050565b5f5b838110156124ca5780820151818401526020810190506124af565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6124ef826124a3565b6124f98185611f75565b93506125098185602086016124ad565b612512816124d5565b840191505092915050565b5f6020820190508181035f83015261253581846124e5565b90509291505056fea26469706673582212205d6b4700cd822dcc9b978c3a007a481e9fdef4f8b6b15adad9a8747feba968bc64736f6c63430008140033000000000000000000000000165c3410fc91ef562c50559f7d2289febed552d90000000000000000000000004b8da1bacdc416a1cc339f462e2de97a4d7ce891

Deployed ByteCode

0x608060405260043610610108575f3560e01c8063b57a042411610094578063e2d2e21911610063578063e2d2e2191461033e578063efca2eed14610368578063f0fc6bca14610392578063ffb2c479146103a8578063ffd49c84146103d057610108565b8063b57a042414610292578063c41003cd146102ce578063ce7c2ac2146102f6578063d0e30db01461033457610108565b80633a98ef39116100db5780633a98ef39146101c25780634fab0ae8146101ec578063840d86a01461021657806395cfbd791461023e578063997664d71461026857610108565b806311ce023d1461010c57806314b6ca961461013657806328fd31981461015e5780632d48e8961461019a575b5f80fd5b348015610117575f80fd5b506101206103fa565b60405161012d9190611cf2565b60405180910390f35b348015610141575f80fd5b5061015c60048036038101906101579190611d93565b610400565b005b348015610169575f80fd5b50610184600480360381019061017f9190611dd1565b6106a4565b6040516101919190611cf2565b60405180910390f35b3480156101a5575f80fd5b506101c060048036038101906101bb9190611dfc565b6107b0565b005b3480156101cd575f80fd5b506101d6610818565b6040516101e39190611cf2565b60405180910390f35b3480156101f7575f80fd5b5061020061081e565b60405161020d9190611cf2565b60405180910390f35b348015610221575f80fd5b5061023c60048036038101906102379190611dd1565b610824565b005b348015610249575f80fd5b506102526109f9565b60405161025f9190611e95565b60405180910390f35b348015610273575f80fd5b5061027c610a1e565b6040516102899190611cf2565b60405180910390f35b34801561029d575f80fd5b506102b860048036038101906102b39190611dd1565b610a24565b6040516102c59190611cf2565b60405180910390f35b3480156102d9575f80fd5b506102f460048036038101906102ef9190611dd1565b610abc565b005b348015610301575f80fd5b5061031c60048036038101906103179190611dd1565b610e5c565b60405161032b93929190611eae565b60405180910390f35b61033c610e82565b005b348015610349575f80fd5b5061035261131e565b60405161035f9190611cf2565b60405180910390f35b348015610373575f80fd5b5061037c611324565b6040516103899190611cf2565b60405180910390f35b34801561039d575f80fd5b506103a661132a565b005b3480156103b3575f80fd5b506103ce60048036038101906103c99190611ee3565b611335565b005b3480156103db575f80fd5b506103e46114ba565b6040516103f19190611cf2565b60405180910390f35b600d5481565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610456575f80fd5b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015411156104a7576104a6826114c0565b5b5f811180156104f457505f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154145b15610507576105028261173e565b610564565b5f8114801561055457505f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154115b1561056357610562826117e8565b5b5b6105ca816105bc60075f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f01546009546119dd90919063ffffffff16565b611a2690919063ffffffff16565b6009819055508060075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f018190555061065c60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154611a83565b60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101819055505050565b5f8060075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154036106f3575f90506107ab565b5f61073c60075f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154611a83565b90505f60075f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101549050808211610793575f925050506107ab565b6107a681836119dd90919063ffffffff16565b925050505b919050565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610806575f80fd5b81600e8190555080600f819055505050565b60095481565b600f5481565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461087a575f80fd5b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108d59190611f1d565b602060405180830381865afa1580156108f0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109149190611f4a565b90505f8111610958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094f90611fcf565b60405180910390fd5b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b81526004016109b4929190611fed565b6020604051808303815f875af11580156109d0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109f49190612049565b505050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b5f8060075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f015403610a73575f9050610ab7565b60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f206002015490505b919050565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b12575f80fd5b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610b6d9190611f1d565b602060405180830381865afa158015610b88573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bac9190611f4a565b90505f811115610c755760015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610c33929190611fed565b6020604051808303815f875af1158015610c4f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c739190612049565b505b8160015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f5b600480549050811015610e27575f60048281548110610cd957610cd8612074565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f01819055505f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101819055505f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600201819055505f60065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550508080610e1f906120ce565b915050610cb7565b5060045f610e359190611ca1565b5f6009819055505f600a819055505f600b819055505f600c819055505f6010819055505050565b6007602052805f5260405f205f91509050805f0154908060010154908060020154905083565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610ed8575f80fd5b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610f339190611f1d565b602060405180830381865afa158015610f4e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f729190611f4a565b90505f600267ffffffffffffffff811115610f9057610f8f612115565b5b604051908082528060200260200182016040528015610fbe5781602001602082028036833780820191505090505b50905060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16815f81518110610ff657610ff5612074565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160018151811061106657611065612074565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146112b65760035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b6f9de95345f8430426040518663ffffffff1660e01b81526004016111769493929190612232565b5f604051808303818588803b15801561118d575f80fd5b505af115801561119f573d5f803e3d5ffd5b50505050505f6112508360015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112039190611f1d565b602060405180830381865afa15801561121e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112429190611f4a565b6119dd90919063ffffffff16565b905061126781600a54611a2690919063ffffffff16565b600a819055506112aa61129960095461128b84600d54611ab490919063ffffffff16565b611b2b90919063ffffffff16565b600c54611a2690919063ffffffff16565b600c819055505061131a565b5f8290506112cf81600a54611a2690919063ffffffff16565b600a819055506113126113016009546112f384600d54611ab490919063ffffffff16565b611b2b90919063ffffffff16565b600c54611a2690919063ffffffff16565b600c81905550505b5050565b600c5481565b600b5481565b611333336114c0565b565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461138b575f80fd5b5f60048054905090505f81036113a157506114b7565b5f805a90505f5b84831080156113b657508381105b156114b25783601054106113cc575f6010819055505b6114126004601054815481106113e5576113e4612074565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16611b74565b1561145e5761145d6004601054815481106114305761142f612074565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff166114c0565b5b6114836114745a846119dd90919063ffffffff16565b84611a2690919063ffffffff16565b92505a915060105f81548092919061149a906120ce565b919050555080806114aa906120ce565b9150506113a8565b505050505b50565b600e5481565b5f60075f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154031561173b575f611511826106a4565b90505f8111156117395761153081600b54611a2690919063ffffffff16565b600b8190555060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401611592929190611fed565b6020604051808303815f875af11580156115ae573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115d29190612049565b504260065f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055506116688160075f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2060020154611a2690919063ffffffff16565b60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600201819055506116f460075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f0154611a83565b60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20600101819055505b505b50565b60048054905060055f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550600481908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600460016004805490506117fc919061227c565b8154811061180d5761180c612074565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600460055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20548154811061188657611885612074565b5b905f5260205f20015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060055f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205460055f60046001600480549050611920919061227c565b8154811061193157611930612074565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060048054806119a8576119a76122af565b5b600190038181905f5260205f20015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055905550565b5f611a1e83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611bde565b905092915050565b5f808284611a3491906122dc565b905083811015611a79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7090612359565b60405180910390fd5b8091505092915050565b5f611aad600d54611a9f600c5485611ab490919063ffffffff16565b611b2b90919063ffffffff16565b9050919050565b5f808303611ac4575f9050611b25565b5f8284611ad19190612377565b9050828482611ae091906123e5565b14611b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1790612485565b60405180910390fd5b809150505b92915050565b5f611b6c83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611c40565b905092915050565b5f42600e5460065f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611bc191906122dc565b108015611bd75750600f54611bd5836106a4565b115b9050919050565b5f838311158290611c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1c919061251d565b60405180910390fd5b505f8385611c33919061227c565b9050809150509392505050565b5f8083118290611c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7d919061251d565b60405180910390fd5b505f8385611c9491906123e5565b9050809150509392505050565b5080545f8255905f5260205f2090810190611cbc9190611cbf565b50565b5b80821115611cd6575f815f905550600101611cc0565b5090565b5f819050919050565b611cec81611cda565b82525050565b5f602082019050611d055f830184611ce3565b92915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611d3882611d0f565b9050919050565b611d4881611d2e565b8114611d52575f80fd5b50565b5f81359050611d6381611d3f565b92915050565b611d7281611cda565b8114611d7c575f80fd5b50565b5f81359050611d8d81611d69565b92915050565b5f8060408385031215611da957611da8611d0b565b5b5f611db685828601611d55565b9250506020611dc785828601611d7f565b9150509250929050565b5f60208284031215611de657611de5611d0b565b5b5f611df384828501611d55565b91505092915050565b5f8060408385031215611e1257611e11611d0b565b5b5f611e1f85828601611d7f565b9250506020611e3085828601611d7f565b9150509250929050565b5f819050919050565b5f611e5d611e58611e5384611d0f565b611e3a565b611d0f565b9050919050565b5f611e6e82611e43565b9050919050565b5f611e7f82611e64565b9050919050565b611e8f81611e75565b82525050565b5f602082019050611ea85f830184611e86565b92915050565b5f606082019050611ec15f830186611ce3565b611ece6020830185611ce3565b611edb6040830184611ce3565b949350505050565b5f60208284031215611ef857611ef7611d0b565b5b5f611f0584828501611d7f565b91505092915050565b611f1781611d2e565b82525050565b5f602082019050611f305f830184611f0e565b92915050565b5f81519050611f4481611d69565b92915050565b5f60208284031215611f5f57611f5e611d0b565b5b5f611f6c84828501611f36565b91505092915050565b5f82825260208201905092915050565b7f4e6f205257524420746f6b656e7320746f2072657363756500000000000000005f82015250565b5f611fb9601883611f75565b9150611fc482611f85565b602082019050919050565b5f6020820190508181035f830152611fe681611fad565b9050919050565b5f6040820190506120005f830185611f0e565b61200d6020830184611ce3565b9392505050565b5f8115159050919050565b61202881612014565b8114612032575f80fd5b50565b5f815190506120438161201f565b92915050565b5f6020828403121561205e5761205d611d0b565b5b5f61206b84828501612035565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6120d882611cda565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361210a576121096120a1565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f819050919050565b5f61216561216061215b84612142565b611e3a565b611cda565b9050919050565b6121758161214b565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6121ad81611d2e565b82525050565b5f6121be83836121a4565b60208301905092915050565b5f602082019050919050565b5f6121e08261217b565b6121ea8185612185565b93506121f583612195565b805f5b8381101561222557815161220c88826121b3565b9750612217836121ca565b9250506001810190506121f8565b5085935050505092915050565b5f6080820190506122455f83018761216c565b818103602083015261225781866121d6565b90506122666040830185611f0e565b6122736060830184611ce3565b95945050505050565b5f61228682611cda565b915061229183611cda565b92508282039050818111156122a9576122a86120a1565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b5f6122e682611cda565b91506122f183611cda565b9250828201905080821115612309576123086120a1565b5b92915050565b7f536166654d6174683a206164646974696f6e206f766572666c6f7700000000005f82015250565b5f612343601b83611f75565b915061234e8261230f565b602082019050919050565b5f6020820190508181035f83015261237081612337565b9050919050565b5f61238182611cda565b915061238c83611cda565b925082820261239a81611cda565b915082820484148315176123b1576123b06120a1565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6123ef82611cda565b91506123fa83611cda565b92508261240a576124096123b8565b5b828204905092915050565b7f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f5f8201527f7700000000000000000000000000000000000000000000000000000000000000602082015250565b5f61246f602183611f75565b915061247a82612415565b604082019050919050565b5f6020820190508181035f83015261249c81612463565b9050919050565b5f81519050919050565b5f5b838110156124ca5780820151818401526020810190506124af565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6124ef826124a3565b6124f98185611f75565b93506125098185602086016124ad565b612512816124d5565b840191505092915050565b5f6020820190508181035f83015261253581846124e5565b90509291505056fea26469706673582212205d6b4700cd822dcc9b978c3a007a481e9fdef4f8b6b15adad9a8747feba968bc64736f6c63430008140033