Contract 0x427d4496f271a0876a6ec97b2c837268d17c4e04

Txn Hash
Block
From
To
Value [Txn Fee]
0xbc0b6b82693c2f6f8986c72cdd1d0d9682c4f91a5d8d4ac4338236f2f339ebcc104567362021-06-23 18:50:162 hrs 5 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.029997843
0x1e7344ad5fc8bf9b97d87605756f263286fdd6ea26eb849054170b998764a973104567332021-06-23 18:50:132 hrs 5 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.030976278
0x11dc687521a222f140d8740581a4d2531f22281bd46d26082310ea63cde4dea7104567302021-06-23 18:50:102 hrs 5 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.032933607
0x5144161998a89b4c7454bb427ee720a7a35d8a5f1d11af720d1e49ceeba8483d104567212021-06-23 18:50:032 hrs 5 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.030989691
0xc70b7893b1ce21ca0af7d9cc76c593d4d9f102d8e76fe16c5265532ac46b4d6c104567122021-06-23 18:49:542 hrs 5 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.033101091
0xe3ae2b1b880caa05dd265d3339b07a7f5ef511095be870543cd24f3f8cb5cd82104566982021-06-23 18:49:412 hrs 6 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.030989691
0xbe226da57550515b13b587c8d0aa9ed5bc1dbc1078596ad7bfafc8bfabd2891a104566932021-06-23 18:49:382 hrs 6 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.03313113
0x146199de701c8b80b344b0a37d043cdde16d9cd9829fe9628a6dbb7dc1cf9667104566772021-06-23 18:49:272 hrs 6 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.030987396
0x976755d94e96656f4f47914617b3098adb4ec23253297b1aba660c5a6f086493104566742021-06-23 18:49:242 hrs 6 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.03313113
0x61c2a24146dfbfda23eeadca1328772d162ca80e50da15963629a93e8f9b37cf104566632021-06-23 18:49:162 hrs 6 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.031018047
0x061d767209a2ea622330be22d9a2c2017996bf82b0d19de371efbe7aa732109f104566592021-06-23 18:49:132 hrs 6 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.033139137
0x734fcc6e956cc070f2b61e2fdd4f9a90f1d36bf146537a11ee9f5a0aa0d13224104566512021-06-23 18:49:042 hrs 6 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.030989691
0x3f18dcb4d3e9c8822000f2c1904c64cf59f1d2c3afe594cdf4dab5c864a50f82104566422021-06-23 18:48:572 hrs 6 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.033071103
0x1229879bf16381ba9891925fb5b2e0b9a5b9cdb609d31100e363e651fe37ef7e104566342021-06-23 18:48:502 hrs 7 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.030989691
0x64065eb3eb51ae4673ab12a9941a450d47b3620e62773e5aea75080143d0561f104566312021-06-23 18:48:472 hrs 7 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.033121134
0x0ac5a6aaaa4006260999e2aea56cc94207ca2eedc05dc1a47820f763edef2d61104566262021-06-23 18:48:412 hrs 7 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.030989691
0x63fe625793f602514ba2a8059ab7231926262c4f25d6478d1befb798aab81ed2104566222021-06-23 18:48:382 hrs 7 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.033111138
0xd1aec04ba9b27f0e9ad16700e96162e6f9ab4dea7f1f4ee99fb5b7f01075a888104566132021-06-23 18:48:312 hrs 7 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.030991629
0x1b719bb74f566197ca7e1fd97be031b656e78c45689e0e485628bb58b5cc7d6b104566112021-06-23 18:48:282 hrs 7 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.03310563
0x8272ff5c19b9e97eb328b8c33b2a8538b624955f1f94de59af6db88eafbef47c104566032021-06-23 18:48:222 hrs 7 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.030987396
0xf2677cc4d2fcacee5f8f1718fa89fd46abe32d35e271dd86c8b98e51adfe2444104565992021-06-23 18:48:192 hrs 7 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.032931006
0xfcb8cf6a083e55b1382c7208e5925b9870f29ec909e0be590ac44bc560a078c6104565902021-06-23 18:48:102 hrs 7 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.031127646
0xf1e5396693a72559433ff1e6937f1fd3d60037e5d1ac727e50e888e6c58a6485104565872021-06-23 18:48:072 hrs 7 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.033150306
0xe201135d8c705822cc2378f75554d506d8ed41446ea50ee6d86a74f5ebee16b3104565832021-06-23 18:48:002 hrs 7 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.030989691
0x5c0524c60db26ab23a8175fa3c26d512e93958f9c7cf4f0bb3b352185f1316f0104565802021-06-23 18:47:572 hrs 7 mins ago0x603f4db07122bcbdc0a975829ec5377250adcd79 IN  0x427d4496f271a0876a6ec97b2c837268d17c4e040 FTM0.032900967
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0xa7b418f3a1ed4447e1c021cf01a794950fd0f5797298db0ef5f9e936751fa8c379722882021-05-28 7:43:2226 days 13 hrs ago 0x7011a4c26e2b04f8e399f014e850189ae105bfe9  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FeeDistributor

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 9999 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 13 : FeeDistributor.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.6.12;

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

import './libs/RouterHelper.sol';
import "./interfaces/IFeeReceiver.sol";

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

    uint256 public platformShareBP;

    address public rewardsReceiver;
    address public feeHolder;

    address public schedulerAddress;

    address constant public wftmAddress = address(0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83);

    event RescueTokens(address indexed user, address indexed token, uint256 amount);
    event UpdateFeeSettings(address indexed user, uint platformShareBP);
    event UpdateFeeReceivers(address indexed user, address rewardsReceiver, address feeHolder);
    event SetSchedulerAddress(address indexed user, address newAddr);

    constructor(
        address _rewardsReceiver,
        address _feeHolder,
        address _schedulerAddress
    ) public {
        rewardsReceiver = _rewardsReceiver;
        feeHolder = _feeHolder;
        schedulerAddress = _schedulerAddress;
    }

    modifier onlyAdmins(){
        require(msg.sender == schedulerAddress || msg.sender == owner(), "onlyAdmins: FORBIDDEN");
        _;
    }

    function removeLiquidity(address router, address lpToken) external onlyAdmins {
        uint256 amount = IERC20(lpToken).balanceOf(address(this));
        RouterHelper.removeLiquidity(router, lpToken, amount);
    }

    function sellTokens(address router, address inputToken, address outputToken, address[] memory path) external onlyAdmins {
        uint256 amount = IERC20(inputToken).balanceOf(address(this));
        RouterHelper.swapTokens(router, amount, inputToken, outputToken, path);
    }

    function distributeFees() external onlyAdmins {

        uint256 balance = IERC20(wftmAddress).balanceOf(address(this));

        uint256 platformAmount = balance.mul(platformShareBP).div(10000);
        uint256 receiverAmount = balance.sub(platformAmount);

        IERC20(wftmAddress).safeIncreaseAllowance(rewardsReceiver, receiverAmount);
        IFeeReceiver(rewardsReceiver).income(receiverAmount);

        safeTokenTransfer(feeHolder, platformAmount);
    }

    function safeTokenTransfer(address to, uint256 amount) internal {
        uint256 balance = IERC20(wftmAddress).balanceOf(address(this));
        if (amount > balance) {
            IERC20(wftmAddress).safeTransfer(to, balance);
        } else {
            IERC20(wftmAddress).safeTransfer(to, amount);
        }
    }

    function rescueToken(address token) external onlyOwner {
        uint256 balance = IERC20(token).balanceOf(address(this));
        IERC20(token).safeTransfer(feeHolder, balance);
        emit RescueTokens(msg.sender, token, balance);
    }

    function updateFeeSettings(uint256 _platformShareBP) external onlyOwner {
        platformShareBP = _platformShareBP;
        emit UpdateFeeSettings(msg.sender, platformShareBP);
    }

    function updateFeeReceivers(address _rewardsReceiver, address _feeHolder) external onlyOwner {
        rewardsReceiver = _rewardsReceiver;
        feeHolder = _feeHolder;
        emit UpdateFeeReceivers(msg.sender, rewardsReceiver, feeHolder);
    }

    function setSchedulerAddr(address newAddr) external onlyAdmins {
        schedulerAddress = newAddr;
        emit SetSchedulerAddress(msg.sender, newAddr);
    }
}

File 2 of 13 : IFeeReceiver.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.6.12;

interface IFeeReceiver {
    function income(uint256 dollarAmount) external;
}

File 3 of 13 : ISwapPair.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.5.0;

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

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

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

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

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

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 4 of 13 : ISwapRouter01.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.6.2;

interface ISwapRouter01 {
    function factory() external pure returns (address);
    function WETH() 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);
}

File 5 of 13 : ISwapRouter02.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.6.2;

import './ISwapRouter01.sol';

interface ISwapRouter02 is ISwapRouter01 {
    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;
}

File 6 of 13 : RouterHelper.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.6.0;

import '@openzeppelin/contracts/math/Math.sol';
import '@openzeppelin/contracts/math/SafeMath.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/SafeERC20.sol';

import '../interfaces/ISwapRouter02.sol';
import '../interfaces/ISwapPair.sol';

library RouterHelper {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    function getTxDeadline() private view returns (uint256){
        return block.timestamp + 60;
    }

    //Given X input tokens, return Y output tokens without concern about minimum/slippage
    function swapTokens(address router, uint256 amount, address inputToken, address outputToken, address[] memory path) internal returns (uint256) {
        if (inputToken == outputToken) {
            return amount;
        }

        require(path.length > 0, "swapTokens: INVALID PATH");
        require(path[0] == inputToken, "swapTokens: INVALID PATH");
        require(path[path.length - 1] == outputToken, "swapTokens: INVALID PATH");

        uint256 inputTokenBal = IERC20(inputToken).balanceOf(address(this));
        require(inputTokenBal >= amount, "swapTokens: INSUFFICIENT AMOUNT");

        uint256 outputTokenBal = IERC20(outputToken).balanceOf(address(this));

        IERC20(inputToken).safeIncreaseAllowance(router, amount);
        ISwapRouter02(router).swapExactTokensForTokensSupportingFeeOnTransferTokens(
            amount,
            0,
            path,
            address(this),
            getTxDeadline()
        );

        uint256 gains = IERC20(outputToken).balanceOf(address(this)).sub(outputTokenBal);
        return gains;
    }

    function addLiquidity(
        address router,
        address token0Address,
        address token1Address,
        uint256 token0Amt,
        uint256 token1Amt
    ) internal returns (uint256, uint256, uint256) {
        IERC20(token0Address).safeIncreaseAllowance(router, token0Amt);
        IERC20(token1Address).safeIncreaseAllowance(router, token1Amt);
        (uint amount0, uint amount1, uint liquidity) = ISwapRouter02(router).addLiquidity(
            token0Address,
            token1Address,
            token0Amt,
            token1Amt,
            0,
            0,
            address(this),
            getTxDeadline()
        );
        return (amount0, amount1, liquidity);
    }

    function removeLiquidity(
        address router,
        address pairAddress,
        uint256 pairAmount
    ) internal returns (uint256, uint256){
        address token0Address = ISwapPair(pairAddress).token0();
        address token1Address = ISwapPair(pairAddress).token1();

        IERC20(pairAddress).safeIncreaseAllowance(router, pairAmount);
        (uint256 amount0, uint256 amount1) = ISwapRouter02(router).removeLiquidity(
            token0Address,
            token1Address,
            pairAmount,
            0,
            0,
            address(this),
            getTxDeadline()
        );
        return (amount0, amount1);
    }

}

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

File 9 of 13 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

File 10 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

File 11 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

File 12 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 13 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

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

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

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

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

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

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

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 9999
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rewardsReceiver","type":"address"},{"internalType":"address","name":"_feeHolder","type":"address"},{"internalType":"address","name":"_schedulerAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RescueTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"newAddr","type":"address"}],"name":"SetSchedulerAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"rewardsReceiver","type":"address"},{"indexed":false,"internalType":"address","name":"feeHolder","type":"address"}],"name":"UpdateFeeReceivers","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"platformShareBP","type":"uint256"}],"name":"UpdateFeeSettings","type":"event"},{"inputs":[],"name":"distributeFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeHolder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformShareBP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"lpToken","type":"address"}],"name":"removeLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"rescueToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"schedulerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"router","type":"address"},{"internalType":"address","name":"inputToken","type":"address"},{"internalType":"address","name":"outputToken","type":"address"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"sellTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddr","type":"address"}],"name":"setSchedulerAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardsReceiver","type":"address"},{"internalType":"address","name":"_feeHolder","type":"address"}],"name":"updateFeeReceivers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_platformShareBP","type":"uint256"}],"name":"updateFeeSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wftmAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50604051611cc2380380611cc28339818101604052606081101561003357600080fd5b5080516020820151604090920151909190600061004e6100da565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600280546001600160a01b039485166001600160a01b0319918216179091556003805493851693821693909317909255600480549190931691161790556100de565b3390565b611bd5806100ed6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80639cf38f7c11610097578063cc6be5e411610066578063cc6be5e4146102b5578063d7236159146102bd578063f2fde38b146102eb578063fca11cb814610311576100f5565b80639cf38f7c1461025d578063ae45850b1461028b578063bb57ad2014610293578063c0d46b911461029b576100f5565b8063715018a6116100d3578063715018a6146101655780637a2829d21461016d5780637edd3da5146102315780638da5cb5b14610255576100f5565b8063208995cf146100fa57806343abd319146101195780634460d3cf1461013f575b600080fd5b6101176004803603602081101561011057600080fd5b5035610319565b005b6101176004803603602081101561012f57600080fd5b50356001600160a01b03166103c1565b6101176004803603602081101561015557600080fd5b50356001600160a01b03166104b2565b6101176105f8565b6101176004803603608081101561018357600080fd5b6001600160a01b03823581169260208101358216926040820135909216918101906080810160608201356401000000008111156101bf57600080fd5b8201836020820111156101d157600080fd5b803590602001918460208302840111640100000000831117156101f357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506106c4945050505050565b6102396107d8565b604080516001600160a01b039092168252519081900360200190f35b6102396107f0565b6101176004803603604081101561027357600080fd5b506001600160a01b03813581169160200135166107ff565b610239610910565b61011761091f565b6102a3610b34565b60408051918252519081900360200190f35b610239610b3a565b610117600480360360408110156102d357600080fd5b506001600160a01b0381358116916020013516610b49565b6101176004803603602081101561030157600080fd5b50356001600160a01b0316610c3d565b610239610d5f565b610321610d6e565b6000546001600160a01b03908116911614610383576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600181905560408051828152905133917f4707e55f0a09c2af9ce22cf5f17b652615a810a1ea25f650cb18276dee658d6e919081900360200190a250565b6004546001600160a01b03163314806103f257506103dd6107f0565b6001600160a01b0316336001600160a01b0316145b610443576040805162461bcd60e51b815260206004820152601560248201527f6f6e6c7941646d696e733a20464f5242494444454e0000000000000000000000604482015290519081900360640190fd5b600480546001600160a01b0383167fffffffffffffffffffffffff00000000000000000000000000000000000000009091168117909155604080519182525133917f3286106f3d6ecbfd95574eec1ebdfd0640a1d7bfea3ac1ef867907e32830ec3f919081900360200190a250565b6104ba610d6e565b6000546001600160a01b0390811691161461051c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561056b57600080fd5b505afa15801561057f573d6000803e3d6000fd5b505050506040513d602081101561059557600080fd5b50516003549091506105b4906001600160a01b03848116911683610d72565b6040805182815290516001600160a01b0384169133917f0de377c3f3362540c047602ad996510f81ec5d84f9ad151c7b6ebecce8ea6b7b9181900360200190a35050565b610600610d6e565b6000546001600160a01b03908116911614610662576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b6004546001600160a01b03163314806106f557506106e06107f0565b6001600160a01b0316336001600160a01b0316145b610746576040805162461bcd60e51b815260206004820152601560248201527f6f6e6c7941646d696e733a20464f5242494444454e0000000000000000000000604482015290519081900360640190fd5b6000836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561079557600080fd5b505afa1580156107a9573d6000803e3d6000fd5b505050506040513d60208110156107bf57600080fd5b505190506107d08582868686610df2565b505050505050565b7321be370d5312f44cb42ce377bc9b8a0cef1a4c8381565b6000546001600160a01b031690565b6004546001600160a01b0316331480610830575061081b6107f0565b6001600160a01b0316336001600160a01b0316145b610881576040805162461bcd60e51b815260206004820152601560248201527f6f6e6c7941646d696e733a20464f5242494444454e0000000000000000000000604482015290519081900360640190fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156108d057600080fd5b505afa1580156108e4573d6000803e3d6000fd5b505050506040513d60208110156108fa57600080fd5b50519050610909838383611226565b5050505050565b6004546001600160a01b031681565b6004546001600160a01b0316331480610950575061093b6107f0565b6001600160a01b0316336001600160a01b0316145b6109a1576040805162461bcd60e51b815260206004820152601560248201527f6f6e6c7941646d696e733a20464f5242494444454e0000000000000000000000604482015290519081900360640190fd5b604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000917321be370d5312f44cb42ce377bc9b8a0cef1a4c83916370a0823191602480820192602092909190829003018186803b158015610a0f57600080fd5b505afa158015610a23573d6000803e3d6000fd5b505050506040513d6020811015610a3957600080fd5b5051600154909150600090610a5d9061271090610a5790859061140f565b90611471565b90506000610a6b83836114b3565b600254909150610a9a907321be370d5312f44cb42ce377bc9b8a0cef1a4c83906001600160a01b0316836114f5565b600254604080517f84ed8c560000000000000000000000000000000000000000000000000000000081526004810184905290516001600160a01b03909216916384ed8c569160248082019260009290919082900301818387803b158015610b0057600080fd5b505af1158015610b14573d6000803e3d6000fd5b5050600354610b2f92506001600160a01b0316905083611614565b505050565b60015481565b6003546001600160a01b031681565b610b51610d6e565b6000546001600160a01b03908116911614610bb3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600280546001600160a01b038085167fffffffffffffffffffffffff00000000000000000000000000000000000000009283161792839055600380548583169316929092179182905560408051938216845291166020830152805133927fe21787ff2af43740120359435dbc79c3d7431032c8974862cbc5c8dbaa207fe692908290030190a25050565b610c45610d6e565b6000546001600160a01b03908116911614610ca7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610cec5760405162461bcd60e51b8152600401808060200182810382526026815260200180611b096026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610b2f9084906116fb565b6000826001600160a01b0316846001600160a01b03161415610e1557508361121d565b6000825111610e6b576040805162461bcd60e51b815260206004820152601860248201527f73776170546f6b656e733a20494e56414c494420504154480000000000000000604482015290519081900360640190fd5b836001600160a01b031682600081518110610e8257fe5b60200260200101516001600160a01b031614610ee5576040805162461bcd60e51b815260206004820152601860248201527f73776170546f6b656e733a20494e56414c494420504154480000000000000000604482015290519081900360640190fd5b826001600160a01b031682600184510381518110610eff57fe5b60200260200101516001600160a01b031614610f62576040805162461bcd60e51b815260206004820152601860248201527f73776170546f6b656e733a20494e56414c494420504154480000000000000000604482015290519081900360640190fd5b6000846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610fb157600080fd5b505afa158015610fc5573d6000803e3d6000fd5b505050506040513d6020811015610fdb57600080fd5b5051905085811015611034576040805162461bcd60e51b815260206004820152601f60248201527f73776170546f6b656e733a20494e53554646494349454e5420414d4f554e5400604482015290519081900360640190fd5b6000846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561108357600080fd5b505afa158015611097573d6000803e3d6000fd5b505050506040513d60208110156110ad57600080fd5b505190506110c56001600160a01b03871689896114f5565b876001600160a01b0316635c11d79588600087306110e16117ac565b6040518663ffffffff1660e01b81526004018086815260200185815260200180602001846001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019060200280838360005b83811015611151578181015183820152602001611139565b505050509050019650505050505050600060405180830381600087803b15801561117a57600080fd5b505af115801561118e573d6000803e3d6000fd5b50505050600061121782876001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156111e557600080fd5b505afa1580156111f9573d6000803e3d6000fd5b505050506040513d602081101561120f57600080fd5b5051906114b3565b93505050505b95945050505050565b6000806000846001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561126457600080fd5b505afa158015611278573d6000803e3d6000fd5b505050506040513d602081101561128e57600080fd5b5051604080517fd21220a700000000000000000000000000000000000000000000000000000000815290519192506000916001600160a01b0388169163d21220a7916004808301926020929190829003018186803b1580156112ef57600080fd5b505afa158015611303573d6000803e3d6000fd5b505050506040513d602081101561131957600080fd5b505190506113316001600160a01b03871688876114f5565b600080886001600160a01b031663baa2abde85858a600080306113526117ac565b6040518863ffffffff1660e01b815260040180886001600160a01b03168152602001876001600160a01b03168152602001868152602001858152602001848152602001836001600160a01b031681526020018281526020019750505050505050506040805180830381600087803b1580156113cc57600080fd5b505af11580156113e0573d6000803e3d6000fd5b505050506040513d60408110156113f657600080fd5b508051602090910151909a909950975050505050505050565b60008261141e5750600061146b565b8282028284828161142b57fe5b04146114685760405162461bcd60e51b8152600401808060200182810382526021815260200180611b556021913960400191505060405180910390fd5b90505b92915050565b600061146883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506117b3565b600061146883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611857565b600061158b82856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b15801561155957600080fd5b505afa15801561156d573d6000803e3d6000fd5b505050506040513d602081101561158357600080fd5b5051906118b1565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b30000000000000000000000000000000000000000000000000000000017905290915061160e9085906116fb565b50505050565b604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000917321be370d5312f44cb42ce377bc9b8a0cef1a4c83916370a0823191602480820192602092909190829003018186803b15801561168257600080fd5b505afa158015611696573d6000803e3d6000fd5b505050506040513d60208110156116ac57600080fd5b50519050808211156116dc576116d77321be370d5312f44cb42ce377bc9b8a0cef1a4c838483610d72565b610b2f565b610b2f7321be370d5312f44cb42ce377bc9b8a0cef1a4c838484610d72565b6060611750826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661190b9092919063ffffffff16565b805190915015610b2f5780806020019051602081101561176f57600080fd5b5051610b2f5760405162461bcd60e51b815260040180806020018281038252602a815260200180611b76602a913960400191505060405180910390fd5b603c420190565b6000818361183f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156118045781810151838201526020016117ec565b50505050905090810190601f1680156118315780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161184b57fe5b049150505b9392505050565b600081848411156118a95760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156118045781810151838201526020016117ec565b505050900390565b600082820183811015611468576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b606061191a8484600085611922565b949350505050565b6060824710156119635760405162461bcd60e51b8152600401808060200182810382526026815260200180611b2f6026913960400191505060405180910390fd5b61196c85611a9c565b6119bd576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611a1a57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016119dd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611a7c576040519150601f19603f3d011682016040523d82523d6000602084013e611a81565b606091505b5091509150611a91828286611aa2565b979650505050505050565b3b151590565b60608315611ab1575081611850565b825115611ac15782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156118045781810151838201526020016117ec56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220889b8e5d3c406bcdc29475c01c2bf1283dc0103caff25075c59ddea535f9bb9464736f6c634300060c00330000000000000000000000003a9445c7ace459ca81a7a228ac5213c621318070000000000000000000000000da0266dc187feb9f72c53c72787fc3a159193d4f000000000000000000000000603f4db07122bcbdc0a975829ec5377250adcd79

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

0000000000000000000000003a9445c7ace459ca81a7a228ac5213c621318070000000000000000000000000da0266dc187feb9f72c53c72787fc3a159193d4f000000000000000000000000603f4db07122bcbdc0a975829ec5377250adcd79

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000003a9445c7ace459ca81a7a228ac5213c621318070
Arg [1] : 000000000000000000000000da0266dc187feb9f72c53c72787fc3a159193d4f
Arg [2] : 000000000000000000000000603f4db07122bcbdc0a975829ec5377250adcd79


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.