Contract 0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b

Contract Overview

Balance:
0 FTM

FTM Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe0b0231d0f383107cc0e122a9e6695996ac615f23fd3647220c98875eda86981Compound Dividen...293804102022-01-29 12:09:3327 mins ago0x11333e91fadec9ace3583cadf7555ed264abfb2c IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.424483529045
0xd0f720bfece42a7eebea24534f74162b81f201105986460061f3071a08debf9eCompound Dividen...293772992022-01-29 11:24:511 hr 12 mins ago0x28d90ef2735134dedd24c67e163d45f893c6f540 IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.436661200422
0x6b7c18f55a704b212dc3a03277618e4e9eee8e4efbf768e6bd5f9f29694ae9e8Compound Dividen...293737472022-01-29 10:36:332 hrs ago0xb73d499f70fdc40d875a2d2e73dc133de910ce32 IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.694107638
0x872ae6a8bfe3b5dadfc3ae14d298f586800bfd9e2e9bbbe867a20e0c1473ad48Compound Dividen...293712682022-01-29 10:03:332 hrs 33 mins ago0xed5c6b4a540320b489161bc88184634a9e7e75f1 IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.799690108997
0xf6b6db4f7aef1c972dc8f24082c461895130df9a8150096f2a6a452c816e0b9eCompound Dividen...293704232022-01-29 9:51:242 hrs 45 mins ago0x9290b15e8b9403d9471533e1b47964b3b2e9fdbb IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.794118533185
0x2bc2993cb142de6c764efefd9b5346aac87fe050db1d5c792587f96b8a810989Compound Dividen...293688992022-01-29 9:22:213 hrs 14 mins ago0x1d900608c195f76f746e793cea49394913400168 IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.691293942545
0xbbc01d8ec16154cd004123e47d22d17923106884a84e2ce23371966e1d721852Compound Dividen...293651952022-01-29 8:24:424 hrs 12 mins ago0x758b239186592e146ae0258e10078ae5bea6fe27 IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.493138733304
0x88c49896bc11244ac66fb2a045de3cc911b18b855b0ca8ea6f89b54ae7ee4542Compound Dividen...293624212022-01-29 7:44:054 hrs 52 mins ago0x53c4427b3439df3023af668ef893fc7c9c2c659f IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.377345632888
0x3665b2e9422c62d7bbf9e2a25cce6c82eedf1bcc69140a84702a72a6f1acc12fCompound Dividen...293513632022-01-29 5:05:257 hrs 31 mins ago0xd84b12d186d05e673f72f3a24d0bc0bd730eb569 IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.489488295576
0xfbf1805bc94d1aabeac592aa553012466498f4802b0819e88b3386188191fe7dCompound Dividen...293498532022-01-29 4:45:137 hrs 51 mins ago0x66890f616b03987c49316237de50d9a648486ee4 IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.6487545
0x0db19be9717b6736933d4ebb2eb08425cfb2ded005be8a7893d2f12f94837208Compound Dividen...293282242022-01-28 23:32:5913 hrs 3 mins ago0x7df7c638e88ee40d8e8ce30116b6f7945662d32d IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.772338464949
0xde40de21e93677a680a0879c811593fca59f13f29ab46da0d3ac3a1926de2b7eSet Fee293263532022-01-28 23:07:0113 hrs 29 mins ago0xa3879d47649a0598c25d2bf53610f9e08ec61537 IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.02176016652
0x2a0307c533d3d1e3acd184f79676d002b24bcb7b978de46f9328fcbcd601f1f0Set Fee293248652022-01-28 22:45:2913 hrs 51 mins ago0xa3879d47649a0598c25d2bf53610f9e08ec61537 IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.008317474204
0x5fda06efa9d130dfd7ef5e86a2645dd39bb6d72f1e9fb9fc86dce0a3806ad5b1Compound Dividen...293230522022-01-28 22:13:3714 hrs 23 mins ago0x73fd5e10d869ad885e364631bdb50b8ccef7e7eb IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.768539557561
0x921ebede205b8813941ac50af1bd739ab2f28fd3a257135762160588f5edb9faCompound Dividen...293073382022-01-28 18:23:2918 hrs 13 mins ago0x4af32ef2aa2a2ecc2b1a527247578528326db0ce IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.632970198271
0x4c9d810b53cdac39b9f840f28586c3a4ddbd285f0bea588bc43fa703618c92c4Compound Dividen...293049362022-01-28 17:50:2918 hrs 46 mins ago0x759a1a916c79876e92655aac545fe6a66da41f22 IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.666588228935
0x106d633645d644b9d9d58ae983d477d2613acc0eab9f1e5d3d3d8e5bc31e9f04Compound Dividen...293047162022-01-28 17:47:0118 hrs 49 mins ago0x9b3851cd442c8f87988c5c611a1215ce9765cb7d IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.709538098332
0x92e085c10bccdca132fb61721ccf9b0af69d557fe174bab0c789bf4fa5a0365aCompound Dividen...292742632022-01-28 10:22:411 day 2 hrs ago0xc5d4a8a0647bc347de2a8c6ff1a7a75437dab19b IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.828929191404
0x24b28cc3c13dfdac0dd3c50f82198888a4453dafa2c6232a58ef62394a448ba1Compound Dividen...292584542022-01-28 6:21:321 day 6 hrs ago0x53de8e90e24e8f6c4dee06939e4edfc8a073863a IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.787945440163
0xe5d56136813dbc3432b0f5cf5138e1ffe1a01267c69783706b55367e0ec4ee72Compound Dividen...292338082022-01-28 0:02:361 day 12 hrs ago0x6334d061f1c43f5a9b7fce55e65f4fdb4932e745 IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.848238965236
0x19b3e74271c4ad2a39f7f6158faf96046e1f7b4e264a61065c8c4b69646b50c7Compound Dividen...291995422022-01-27 14:41:251 day 21 hrs ago0x55fdae47ab71b741cafd50c870b3b0a0aff3deb6 IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM1.224188232796
0xd95de616688704bbac21f8539f136880414e933c6d0e1e22871051a4c0eee059Compound Dividen...291985342022-01-27 14:26:491 day 22 hrs ago0xe259bc0b82c40791b5c0b882bc1e25a477e1f5fb IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM1.220667527246
0x9c8fbd6a37406c5fc51d15fdcc9e188ff60d49f8ff72c3345abe717aebb80b93Compound Dividen...291967692022-01-27 13:57:161 day 22 hrs ago0x57277c3d7877af463057bed041c8e3663f2f9c46 IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.864710138463
0x7a085b1453c52b460d6009257ef41c2734e9901b723abbb84af725dc7fe94518Compound Dividen...291903132022-01-27 12:18:352 days 18 mins ago0x403fcbf6fc065bf25517fa8a2d6a8f0f615edb1b IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM1.155194704544
0x93ead8a6a6e7d9805324500c217e465278772350be425774b53d96119d9a706cCompound Dividen...291875712022-01-27 11:38:592 days 57 mins ago0x9ae9c7020d4c50587e42e551e9af976bcd811eea IN  0xfb0eeb2897b65729b9361e02e2f6442d7e75cb9b0 FTM0.591956603128
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x704870eeed98621e3338400de451338739a3d4e44a5157c20eda2cef55554af6279779412022-01-14 23:05:5614 days 13 hrs ago 0xa3879d47649a0598c25d2bf53610f9e08ec61537  Contract Creation0 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FTMPCompoundManager

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 11 : FTMPCompoundManager.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "./helpers/Auth.sol";
import "./interfaces/IUniswapV2Router02.sol";
import "./FTMPay.sol";
import "./helpers/DividendDistributor.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";


contract FTMPCompoundManager is Auth {

    uint256 public totalSupply = 1_000_000_000_000_000 * (10 ** 6);
    address public FantomPay = 0xAfF15DAe5C956f9D7d5B98F304863201EA47c656;
    address public USDC = 0x04068DA6C83AFCFA0e13ba15A6696662335D5B75;
    address public WFTM= 0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83;
    address public DEAD = 0x000000000000000000000000000000000000dEaD;
    address public pair = 0xA62d46ff9EB5CBe2aBa0F8E720650C159046200a;
    address public routerAddress = 0xF491e7B69E4244ad4002BC14e878a34207E38c29;
    IUniswapV2Router02 public router;
 
    uint256 liquidityFee = 200;
    uint256 reflectionFee = 950;
    uint256 marketingFee = 400;
    uint256 devFee = 150;
    uint256 feeDenominator = 10000;

    constructor () {
        router = IUniswapV2Router02(routerAddress);
    }

    function compoundDividend() external {
        uint256 before = IERC20(USDC).balanceOf(msg.sender); //Gets the current balance of USDC
        FTMPay(payable(FantomPay)).transfer(msg.sender, 1e9); //Workaround to claim dividend contractually.
        uint256 available = IERC20(USDC).balanceOf(msg.sender) - before; //Gets the new balance of USDC after dividend payout, but subtracts any previously held USDC.
        IERC20(USDC).transferFrom(msg.sender, address(this), available);

        address[] memory path = new address[](3); //Create the path for the swap. USDC -> WFTM -> FTMP
        path[0] = USDC;
        path[1] = WFTM;
        path[2] = FantomPay;

        IERC20(USDC).approve(routerAddress, available); //Approve the swap.
        FTMPay(payable(FantomPay)).setFees(0,0,0,0,feeDenominator); //Temporarily set fees to zero for compounding bonus.

        router.swapExactTokensForTokensSupportingFeeOnTransferTokens( //Performs the swap, sending proceeds to the user.
            available,
            0,
            path,
            address(this),
            block.timestamp
        );

        FTMPay(payable(FantomPay)).transfer(msg.sender, (FTMPay(payable(FantomPay)).balanceOf(address(this)) - 1e9)); //Send the FTMP. We leave a small 1 FTMP token fee to use in the workaround for the next user.
        FTMPay(payable(FantomPay)).setFees(liquidityFee, devFee, reflectionFee, marketingFee, feeDenominator); //Resets the fees on the contract.
    }

    function setFee(
        uint256 _liquidityFee,
        uint256 _devFee,
        uint256 _reflectionFee,
        uint256 _marketingFee,
        uint256 _feeDenominator
    ) external authorized {
        liquidityFee = _liquidityFee;
        devFee = _devFee;
        reflectionFee = _reflectionFee;
        marketingFee = _marketingFee;
        feeDenominator = _feeDenominator;
  }

}

File 2 of 11 : Auth.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/access/Ownable.sol";

contract Auth is Ownable {
    mapping (address => bool) internal authorizations;

    constructor() {
        authorizations[msg.sender] = true;
    }

    /**
     * Return address' authorization status
     */
    function isAuthorized(address adr) public view returns (bool) {
        return authorizations[adr];
    }

    /**
     * Authorize address. Owner only
     */
    function authorize(address adr) public onlyOwner {
        authorizations[adr] = true;
    }

    /**
     * Remove address' authorization. Owner only
     */
    function unauthorize(address adr) public onlyOwner {
        authorizations[adr] = false;
    }

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

    /** ======= MODIFIERS ======= */

    /**
     * Function modifier to require caller to be authorized
     */
    modifier authorized() {
        require(isAuthorized(msg.sender), "!AUTHORIZED"); _;
    }


}

File 3 of 11 : IUniswapV2Router02.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

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

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

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

File 4 of 11 : FTMPay.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

import "./interfaces/IUniswapV2Factory.sol";
import "./interfaces/IUniswapV2Router02.sol";

import "./helpers/Auth.sol";
import "./helpers/DividendDistributor.sol";

/*
Website: https://fantompayxyz.com
Discord: https://discord.gg/xes2v6C2ZR
Telegram: https://t.me/FTMPay
Twitter: https://twitter.com/FTM_Pay

Fantom Pay is a dividend token on the Fantom Opera blockchain. Hold FTMP and earn USDC. Claim your dividends using the dashboard on our website!

Liquidity will be locked on dx.app right after it has been added, and the proof posted on our website, docs and social media channels.

Use 16-20%+ Slippage to process transactions. 
If you have any issues, please change any zeros in the amount you are swapping to 1s, as this helps with rounding issues on DEXs. i.e Buying/Selling 261,111,111,111 instead of 260,000,000,000.
For all other questions, please join us in Discord where we will have dedicated support staff to help in chat.
*/

contract FTMPay is Auth {

  using SafeMath for uint256;

  /** ======= EVENTS ======= */

  event Transfer(address indexed from, address indexed to, uint256 value);
  event Approval(address indexed owner, address indexed spender, uint256 value);
  event AutoLiquify(uint256 _amountFTMLiquidity, uint256 _amountToLiquify);
  event BuybackMultiplierActive(uint256 _duration);

  /** ======= ERC20 PARAMS ======= */

  string constant _name =  "FTMPay";    
  string constant _symbol = "FTMP";        
  uint8 constant _decimals = 9;

  uint256 _totalSupply = 1_000_000_000_000_000 * (10 ** _decimals);
  
  mapping (address => uint256) _balances;
  mapping (address => mapping (address => uint256)) _allowances;

  /** ======= GLOBAL PARAMS ======= */

  uint256 public constant MASK = type(uint128).max;

  address DEAD = 0x000000000000000000000000000000000000dEaD;
  address ZERO = address(0);

  address public EP = address(0); 
  address public WFTM = 0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83;
  
  IUniswapV2Router02 public router;
  address public routerAddress; 
  address public pair;

  DividendDistributor distributor;
  address public distributorAddress;

  uint256 distributorGas = 500000;

  // 16% Fee in total; 
  uint256 totalFee = 1600;
  uint256 feeDenominator = 10000;
  
  // 3% goes to providing liquidity to the pair; 
  uint256 liquidityFee = 300;
  // 10% Goes to the reflections for token holders; 
  uint256 reflectionFee = 1000;
  // 1.5% Goes to the marketing team;
  uint256 marketingFee = 150;
  // 1.5% Goes to the dev team; 
  uint256 devFee = 150;

  uint256 buybackFee = 0;

  //liq address
  address public autoLiquidityReceiver= address(0); 

  // Address that gets the marketing fee's; 
  address public marketingFeeReceiver= address(0);

  // Dev address that recives the devFees;
  address public developerFeeReciver = address(0); 


  uint256 targetLiquidity = 5;
  uint256 targetLiquidityDenominator = 100;

  uint256 public _maxTxAmount = _totalSupply.div(100); // 1%
  uint256 public _maxWallet = _totalSupply.div(40); // 2.5%

  mapping (address => bool) isFeeExempt;        
  mapping (address => bool) isTxLimitExempt;    
  mapping (address => bool) isDividendExempt;   
  mapping (address => bool) public isFree;     

  // BlockNumber of launch; 
  uint256 public launchedAt;
  // Timestamp of launch; 
  uint256 public launchedAtTimestamp;

  uint256 buybackMultiplierNumerator = 200;
  uint256 buybackMultiplierDenominator = 100;
  uint256 buybackMultiplierLength = 30 minutes;

  uint256 buybackMultiplierTriggeredAt;

  bool public autoBuybackEnabled = false;

  mapping (address => bool) buyBacker;

  uint256 autoBuybackCap;
  uint256 autoBuybackAccumulator;
  uint256 autoBuybackAmount;
  uint256 autoBuybackBlockPeriod;
  uint256 autoBuybackBlockLast;

  bool public swapEnabled = true;
  uint256 public swapThreshold = _totalSupply / 1000; // 0.1%;

  bool inSwap;

  /** ======= CONSTRUCTOR ======= */

  constructor (
    address _router,
    address _marketer,
    address _ep
  ) {
    EP = _ep;

    autoLiquidityReceiver= msg.sender; 
    marketingFeeReceiver= _marketer;
    developerFeeReciver = msg.sender; 

    routerAddress = _router;
    // Initialize the router; 
    router = IUniswapV2Router02(_router);

    // Make a pair for WFTM/GSCRAB; 
    pair = IUniswapV2Factory(router.factory()).createPair(WFTM, address(this));

    _allowances[address(this)][address(_router)] = type(uint256).max;

    // Create a new Divdistributor contract; 
    distributor = new DividendDistributor(_router);

    // Set the address; 
    distributorAddress = address(distributor);

    isFeeExempt[msg.sender] = true;
    isTxLimitExempt[msg.sender] = true;
    isDividendExempt[pair] = true;
    isDividendExempt[address(this)] = true;
    isDividendExempt[DEAD] = true;
    buyBacker[msg.sender] = true;

    autoLiquidityReceiver = msg.sender;

    // Approve the router with totalSupply; 
    approve(_router, type(uint256).max);

    // Approve the pair with totalSupply; 
    approve(address(pair), type(uint256).max);
    
    // Send totalSupply to msg.sender; 
    _balances[msg.sender] = _totalSupply;

    // Emit transfer event; 
    emit Transfer(address(0), msg.sender, _totalSupply);

  }

  /** ======= PUBLIC VIEW FUNCTIONS ======= */

  function getTotalFee() public view returns (uint256) {
    return totalFee;
  }

  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;
  }


  /** ======= ERC20 FUNCTIONS ======= */

  function totalSupply() external view returns (uint256) { 
    return _totalSupply; 
  }

  function decimals() external pure returns (uint8) { 
    return _decimals; 
  }

  function symbol() external pure returns (string memory) { 
    return _symbol; 
  }

  function name() external pure  returns (string memory) { 
    return _name; 
  }

  function balanceOf(address account) public view returns (uint256) { 
    return _balances[account]; 
  }

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

  function approve(address spender, uint256 amount) public 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, _totalSupply);
  }

  function transfer(address recipient, uint256 amount) external returns (bool) {
    return _transferFrom(msg.sender, recipient, amount);
  }

  function transferFrom(address sender, address recipient, uint256 amount) external returns (bool) {
    if(_allowances[sender][msg.sender] != _totalSupply){
        _allowances[sender][msg.sender] = _allowances[sender][msg.sender].sub(amount, "Insufficient Allowance");
    }
    return _transferFrom(sender, recipient, amount);
  }


  function _transferFrom(address sender, address recipient, uint256 amount) internal returns (bool) {
    // If in swap just do a basic transfer. Same as normal ERC20 transferFrom function;
    if(inSwap) { 
        return _basicTransfer(sender, recipient, amount); 
    }
      
    bool isSell = recipient == pair || recipient == routerAddress;
    
    checkTxLimit(sender, amount);
    
    // Max wallet check excluding pair and router
    if (!isSell && !isFree[recipient]){
        require((_balances[recipient] + amount) < _maxWallet, "Max wallet has been triggered");
    }
    
    // No swapping on buy and tx
    if (isSell) {
        if(shouldSwapBack()){ 
            swapBack(); 
        }
        if(shouldAutoBuyback()){ 
            triggerAutoBuyback(); 
        }
    }
    

    _balances[sender] = _balances[sender].sub(amount, "Insufficient Balance");

    uint256 amountReceived = shouldTakeFee(sender) ? takeFee(sender, amount) : amount;

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

    if(!isDividendExempt[sender]){ try distributor.setShare(sender, _balances[sender]) {} catch {} }
    if(!isDividendExempt[recipient]){ try distributor.setShare(recipient, _balances[recipient]) {} catch {} }

    try distributor.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);
    return true;
  }

  /** ======= INTERNAL VIEW FUNCTIONS ======= */

 
  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 shouldSwapBack() internal view returns (bool) {
    return 
      msg.sender != pair
        && 
      !inSwap
        && 
      swapEnabled
        && 
      _balances[address(this)] >= swapThreshold;
  }

  function shouldAutoBuyback() internal view returns (bool) {
    return 
      msg.sender != pair
        && 
      !inSwap
        && 
      autoBuybackEnabled
        && 
      autoBuybackBlockLast + autoBuybackBlockPeriod <= block.number // After N blocks from last buyback
        && 
      address(this).balance >= autoBuybackAmount;
  }

  function launched() internal view returns (bool) {
    return launchedAt != 0;
  }

  /** ======= INTERNAL FUNCTIONS ======= */

  function takeFee(address _sender, uint256 _amount) internal returns (uint256) {
    // Calculate the fee amount; 
    uint256 feeAmount = _amount.mul(totalFee).div(feeDenominator);

    // Add the fee to the contract balance; 
    _balances[address(this)] = _balances[address(this)].add(feeAmount);

    emit Transfer(_sender, address(this), feeAmount);

    return _amount.sub(feeAmount);
  }

  function triggerAutoBuyback() internal {
    // Buy tokens and send them to burn address; 
    buyTokens(autoBuybackAmount, DEAD);
    // Update params: 
    autoBuybackBlockLast = block.number;
    autoBuybackAccumulator = autoBuybackAccumulator.add(autoBuybackAmount);
    // Set autoBuybackEnabled if needed;
    if(autoBuybackAccumulator > autoBuybackCap){ 
      autoBuybackEnabled = false; 
    }
  }

  function swapBack() internal swapping {

    uint256 dynamicLiquidityFee = isOverLiquified(targetLiquidity, targetLiquidityDenominator) ? 0 : liquidityFee;

    uint256 amountToLiquify = swapThreshold.mul(dynamicLiquidityFee).div(totalFee).div(2);

    uint256 amountToSwap = swapThreshold.sub(amountToLiquify);

    uint256 balanceBefore = address(this).balance;

    address[] memory path = new address[](2);
      path[0] = address(this);
      path[1] = WFTM;

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

    uint256 totalFTMFee = totalFee.sub(dynamicLiquidityFee.div(2));

    uint256 amountFTMLiquidity = amountFTM.mul(dynamicLiquidityFee).div(totalFTMFee).div(2);

    // Calculate the amount used for reflection fee's; 
    uint256 amountFTMReflection = amountFTM.mul(reflectionFee).div(totalFTMFee);
    // Calculate the amount used for marketing fee's: 
    uint256 amountFTMMarketing = amountFTM.mul(marketingFee).div(totalFTMFee);
    // Calculate the amount used for dev fee's: 
    uint256 amountFTMDev = amountFTM.mul(devFee).div(totalFTMFee);

    // Send the dividend fee's to the distributor; 
    distributor.deposit{value: amountFTMReflection}();

    // Send the marketing fee's; 
    payable(marketingFeeReceiver).transfer(amountFTMMarketing);
    // Send the dev fee's; 
    payable(developerFeeReciver).transfer(amountFTMDev);
    
    // Handle the liquidity adding; 
    if(amountToLiquify > 0){
        router.addLiquidityETH{value: amountFTMLiquidity}(
            address(this),
            amountToLiquify,
            0,
            0,
            autoLiquidityReceiver,
            block.timestamp
        );
        emit AutoLiquify(amountFTMLiquidity, amountToLiquify);
    }
  }

  function buyTokens(uint256 _amount, address _to) internal swapping {
    address[] memory path = new address[](2);
    path[0] = WFTM;
    path[1] = address(this);

    router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: _amount}(
        0,
        path,
        _to,
        block.timestamp
    );
  }

  

  /** ======= AUTHORIZED ONLY FUNCTIONS ======= */

  function clearBuybackMultiplier() external authorized {
    buybackMultiplierTriggeredAt = 0;
  }

  function launch() public authorized {
    require(launchedAt == 0, "Already launched");
    launchedAt = block.number;
    launchedAtTimestamp = block.timestamp;
  }
  
  function setAutoBuybackSettings(bool _enabled, uint256 _cap, uint256 _amount, uint256 _period) external authorized {
    autoBuybackEnabled = _enabled;
    autoBuybackCap = _cap;
    autoBuybackAccumulator = 0;
    autoBuybackAmount = _amount;
    autoBuybackBlockPeriod = _period;
    autoBuybackBlockLast = block.number;
  }

  function setBuybackMultiplierSettings(uint256 numerator, uint256 denominator, uint256 length) external authorized {
    require(numerator / denominator <= 2 && numerator > denominator);
    buybackMultiplierNumerator = numerator;
    buybackMultiplierDenominator = denominator;
    buybackMultiplierLength = length;
  }

  function setMaxWallet(uint256 amount) external authorized {
    require(amount >= _totalSupply / 1000);
    _maxWallet = amount;
  }

  function setTxLimit(uint256 amount) external authorized {
      require(amount >= _totalSupply / 1000);
      _maxTxAmount = amount;
  }

  function setIsDividendExempt(address holder, bool exempt) external authorized {
    require(holder != address(this) && holder != pair);
    isDividendExempt[holder] = exempt;
    if(exempt){
        distributor.setShare(holder, 0);
    }else{
        distributor.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 setFees(
    uint256 _liquidityFee, 
    uint256 _buybackFee, 
    uint256 _reflectionFee, 
    uint256 _marketingFee, 
    uint256 _feeDenominator
  ) external authorized {
    liquidityFee = _liquidityFee;
    buybackFee = _buybackFee;
    reflectionFee = _reflectionFee;
    marketingFee = _marketingFee;
    totalFee = _liquidityFee.add(_buybackFee).add(_reflectionFee).add(_marketingFee);
    feeDenominator = _feeDenominator;
    require(totalFee < feeDenominator/4);
  }

  function setFeeReceivers(address _autoLiquidityReceiver, address _marketingFeeReceiver) external authorized {
      autoLiquidityReceiver = _autoLiquidityReceiver;
      marketingFeeReceiver = _marketingFeeReceiver;
  }

  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 {
      distributor.setDistributionCriteria(_minPeriod, _minDistribution);
  }

  function setDistributorSettings(uint256 gas) external authorized {
      require(gas < 750000);
      distributorGas = gas;
  }

  /** ======= OWNER ONLY FUNCTION ======= */

  function Collect() external onlyOwner {
      uint256 balance = address(this).balance;
      payable(msg.sender).transfer(balance);
  }

  function setFree(address holder) public onlyOwner {
    isFree[holder] = true;
  }
  
  function unSetFree(address holder) public onlyOwner {
    isFree[holder] = false;
  }
  
  function checkFree(address holder) public view onlyOwner returns(bool){
    return isFree[holder];
  }

  /** ======= MODIFIERS ======= */

  modifier swapping() { 
    inSwap = true; 
    _; 
    inSwap = false; 
  }

  modifier onlyBuybacker() { 
    require(buyBacker[msg.sender] == true, "");
    _; 
  }

  // Make contract able to recive FTM; 
  receive() external payable {}
  
}

File 5 of 11 : DividendDistributor.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

import "../interfaces/IUniswapV2Router02.sol";

contract DividendDistributor  {
    using SafeMath for uint256;


    /** ======= GLOBAL PARAMS ======= */

    // Dividend Token;
    address token;

   
    // Tshare Token; 
    IERC20 EP = IERC20(0x04068DA6C83AFCFA0e13ba15A6696662335D5B75); // USDC

    // WFTM;
    address WFTM = 0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83;

    // Spookyswap Router; 
    IUniswapV2Router02 router;

    struct Share {
        uint256 amount;
        uint256 totalExcluded;// excluded dividend
        uint256 totalRealised;
    }

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

    mapping (address => Share) public shares;

    uint256 public totalShares;
    uint256 public totalDividends;
    uint256 public totalDistributed;
    uint256 public dividendsPerShare;
    uint256 public dividendsPerShareAccuracyFactor = 10 ** 36;

    uint256 public minPeriod = 1 seconds; //1 hours;
    uint256 public minDistribution = 10 * (10 ** 18);

    uint256 currentIndex;

    bool initialized;

    /** ======= CONSTRUCTOR ======= */

    /**
     *  Initializes the router and token address; 
     *  @param _router address of the router; 
     */
    constructor (address _router) {
        require(_router != address(0), "_router is zero address"); 

        // Initialize the router; 
        router = IUniswapV2Router02(_router);

        // Initialize the token; 
        token = msg.sender;
    }

    /** ======= EXTERNAL FUNCTIONS ======= */

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


    /** ======= TOKEN ONLY FUNCTIONS ======= */

    /**
     *  Sets the minPeriod and minDistribution values; 
     */
    function setDistributionCriteria(uint256 _minPeriod, uint256 _minDistribution) external onlyToken {
        minPeriod = _minPeriod;
        minDistribution = _minDistribution;
    }

    function setShare(address shareholder, uint256 amount) external 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);
    }

    /**
     *  Swaps ETH to TSHARE and updates totals; 
     */
    function deposit() external payable onlyToken {
        uint256 balanceBefore = EP.balanceOf(address(this));

        address[] memory path = new address[](2);
        path[0] = WFTM;
        path[1] = address(EP);

        router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(
            0,
            path,
            address(this),
            block.timestamp
        );

        uint256 amount = EP.balanceOf(address(this)).sub(balanceBefore);

        totalDividends = totalDividends.add(amount);
        dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares));
    }

    /**
     *  Distributes the earnings to shareholders;  
     *  @param _gas the amount of gas given to the transaction; 
     */
    function process(uint256 _gas) external onlyToken {
        // Get total shareholders; 
        uint256 shareholderCount = shareholders.length;

        if(shareholderCount == 0) { 
            return; 
        }

        uint256 gasUsed = 0;
        uint256 gasLeft = gasleft();

        uint256 iterations = 0;

        // Iterate untill theres no more gas AND we have no more shareholders to distribute;  
        while(gasUsed < _gas && iterations < shareholderCount) {
            if(currentIndex >= shareholderCount){
                currentIndex = 0;
            }
            // Distribute Shares; 
            if(shouldDistribute(shareholders[currentIndex])){
                distributeDividend(shareholders[currentIndex]);
            }

            gasUsed = gasUsed.add(gasLeft.sub(gasleft()));
            gasLeft = gasleft();
            currentIndex++;
            iterations++;
        }
    }


    /** ======= INTERNAL VIEW FUNCTIONS ======= */

    /**
     *  Checks if contract should distribute earnings to shareholder; 
     *  @param _shareholder address of the holder; 
     *  @return bool value of the result; 
     */
    function shouldDistribute(address _shareholder) internal view returns (bool) {
        // Check 
        // Check unpaid earnings are higher than minDistribution; 
        return 
            shareholderClaims[_shareholder] + minPeriod < block.timestamp
        && 
            getUnpaidEarnings(_shareholder) > minDistribution;
    }

    /**
     *  Calculates the unpaidEarnings for given shareholder;  
     *  @param _shareholder address of the holder;
     *  @return  value of unpaid earnings; 
     */
    function getUnpaidEarnings(address _shareholder) public view returns (uint256) {
        // Make shure address has shares; 
        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);
    }

    /**
     *  Calculates the dividends for given share amout;  
     *  @param _share amount of shares;
     *  @return  amount of dividends; 
     */
    function getCumulativeDividends(uint256 _share) internal view returns (uint256) {
        return _share.mul(dividendsPerShare).div(dividendsPerShareAccuracyFactor);
    }

    /** ======= INTERNAL FUNCTIONS ======= */

    /**
     *  Distributes the earnings to the shareholder;  
     *  @param _shareholder address of the holder; 
     */
    function distributeDividend(address _shareholder) internal {

        // Make shure the shareholder has shares; 
        if(shares[_shareholder].amount == 0){ 
            return; 
        }

        // Get the shareholder earnings; 
        uint256 amount = getUnpaidEarnings(_shareholder);

        // If shareholder has earnings distribute; 
        if(amount > 0){
            // Update totals; 
            totalDistributed = totalDistributed.add(amount);
            // Transfer the shares to holder; 
            EP.transfer(_shareholder, amount);
            // Update holderClaims; 
            shareholderClaims[_shareholder] = block.timestamp;
            // Update holder totals; 
            shares[_shareholder].totalRealised = shares[_shareholder].totalRealised.add(amount);
            shares[_shareholder].totalExcluded = getCumulativeDividends(shares[_shareholder].amount);
        }
    }

    /**
     *  Adds shareholder to the mapping and array;  
     *  @param _shareholder address of the new holder;
     */
    function addShareholder(address _shareholder) internal {
        shareholderIndexes[_shareholder] = shareholders.length;
        shareholders.push(_shareholder);
    }

    /**
     *  Remove shareholder from the mapping and array;  
     *  @param _shareholder address of the holder to remove;
     */
    function removeShareholder(address _shareholder) internal {
        shareholders[shareholderIndexes[_shareholder]] = shareholders[shareholders.length-1];
        shareholderIndexes[shareholders[shareholders.length-1]] = shareholderIndexes[_shareholder];
        shareholders.pop();
    }




    /** ======= MODIFIERS ======= */

    modifier initialization() {
        require(!initialized);
        _;
        initialized = true;
    }

    /**
     *  Modifier to make shure the function is only called by the divToken; 
     */
    modifier onlyToken() {
        require(msg.sender == token); _;
    }
}

File 6 of 11 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^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 7 of 11 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

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

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

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

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

File 8 of 11 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^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 meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

File 9 of 11 : IUniswapV2Router01.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2;

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

    function 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 10 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @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 a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 11 of 11 : IUniswapV2Factory.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2;

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

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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"},{"inputs":[],"name":"DEAD","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FantomPay","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WFTM","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"adr","type":"address"}],"name":"authorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"compoundDividend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"adr","type":"address"}],"name":"isAuthorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"routerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_devFee","type":"uint256"},{"internalType":"uint256","name":"_reflectionFee","type":"uint256"},{"internalType":"uint256","name":"_marketingFee","type":"uint256"},{"internalType":"uint256","name":"_feeDenominator","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"adr","type":"address"}],"name":"unauthorize","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052683635c9adc5dea00000600255600380546001600160a01b031990811673aff15dae5c956f9d7d5b98f304863201ea47c656179091556004805482167304068da6c83afcfa0e13ba15a6696662335d5b751790556005805482167321be370d5312f44cb42ce377bc9b8a0cef1a4c8317905560068054821661dead17905560078054821673a62d46ff9eb5cbe2aba0f8e720650c159046200a1790556008805490911673f491e7b69e4244ad4002bc14e878a34207e38c2917905560c8600a556103b6600b55610190600c556096600d55612710600e553480156100e757600080fd5b506100f133610136565b336000908152600160208190526040909120805460ff19169091179055600854600980546001600160a01b0319166001600160a01b0392909216919091179055610186565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610c64806101956000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c8063a2e00d6311610097578063f0b37c0411610066578063f0b37c04146101f4578063f2fde38b14610207578063f887ea401461021a578063fe9fbb801461022d57600080fd5b8063a2e00d63146101a8578063a8aa1b31146101bb578063aabd155b146101ce578063b6a5d7de146101e157600080fd5b80634de8ff21116100d35780634de8ff2114610172578063715018a61461017c57806389a30271146101845780638da5cb5b1461019757600080fd5b806303fd2a451461010557806318160ddd1461013557806321dbe8761461014c5780633268cc561461015f575b600080fd5b600654610118906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61013e60025481565b60405190815260200161012c565b600554610118906001600160a01b031681565b600854610118906001600160a01b031681565b61017a610269565b005b61017a610857565b600454610118906001600160a01b031681565b6000546001600160a01b0316610118565b61017a6101b6366004610b12565b610896565b600754610118906001600160a01b031681565b600354610118906001600160a01b031681565b61017a6101ef366004610aa7565b6108fa565b61017a610202366004610aa7565b61094b565b61017a610215366004610aa7565b610996565b600954610118906001600160a01b031681565b61025961023b366004610aa7565b6001600160a01b031660009081526001602052604090205460ff1690565b604051901515815260200161012c565b600480546040516370a0823160e01b815233928101929092526000916001600160a01b03909116906370a082319060240160206040518083038186803b1580156102b257600080fd5b505afa1580156102c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102ea9190610af9565b60035460405163a9059cbb60e01b8152336004820152633b9aca0060248201529192506001600160a01b03169063a9059cbb90604401602060405180830381600087803b15801561033a57600080fd5b505af115801561034e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103729190610ad7565b50600480546040516370a0823160e01b8152339281019290925260009183916001600160a01b0316906370a082319060240160206040518083038186803b1580156103bc57600080fd5b505afa1580156103d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f49190610af9565b6103fe9190610bf3565b600480546040516323b872dd60e01b81523392810192909252306024830152604482018390529192506001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561045657600080fd5b505af115801561046a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048e9190610ad7565b506040805160038082526080820190925260009160208201606080368337505060045482519293506001600160a01b0316918391506000906104d2576104d2610c18565b6001600160a01b03928316602091820292909201015260055482519116908290600190811061050357610503610c18565b6001600160a01b03928316602091820292909201015260035482519116908290600290811061053457610534610c18565b6001600160a01b0392831660209182029290920101526004805460085460405163095ea7b360e01b815290841692810192909252602482018590529091169063095ea7b390604401602060405180830381600087803b15801561059657600080fd5b505af11580156105aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ce9190610ad7565b50600354600e546040516294cd6960e31b81526000600482018190526024820181905260448201819052606482015260848101919091526001600160a01b03909116906304a66b489060a401600060405180830381600087803b15801561063457600080fd5b505af1158015610648573d6000803e3d6000fd5b5050600954604051635c11d79560e01b81526001600160a01b039091169250635c11d7959150610685908590600090869030904290600401610b82565b600060405180830381600087803b15801561069f57600080fd5b505af11580156106b3573d6000803e3d6000fd5b50506003546040516370a0823160e01b81523060048201526001600160a01b03909116925063a9059cbb91503390633b9aca009084906370a082319060240160206040518083038186803b15801561070a57600080fd5b505afa15801561071e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107429190610af9565b61074c9190610bf3565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561079257600080fd5b505af11580156107a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ca9190610ad7565b50600354600a54600d54600b54600c54600e546040516294cd6960e31b8152600481019590955260248501939093526044840191909152606483015260848201526001600160a01b03909116906304a66b489060a401600060405180830381600087803b15801561083a57600080fd5b505af115801561084e573d6000803e3d6000fd5b50505050505050565b6000546001600160a01b0316331461088a5760405162461bcd60e51b815260040161088190610b4d565b60405180910390fd5b6108946000610a57565b565b3360009081526001602052604090205460ff166108e35760405162461bcd60e51b815260206004820152600b60248201526a085055551213d49256915160aa1b6044820152606401610881565b600a94909455600d92909255600b55600c55600e55565b6000546001600160a01b031633146109245760405162461bcd60e51b815260040161088190610b4d565b6001600160a01b03166000908152600160208190526040909120805460ff19169091179055565b6000546001600160a01b031633146109755760405162461bcd60e51b815260040161088190610b4d565b6001600160a01b03166000908152600160205260409020805460ff19169055565b6000546001600160a01b031633146109c05760405162461bcd60e51b815260040161088190610b4d565b6001600160a01b038116610a255760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610881565b6001600160a01b0381166000908152600160208190526040909120805460ff19169091179055610a5481610a57565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610ab957600080fd5b81356001600160a01b0381168114610ad057600080fd5b9392505050565b600060208284031215610ae957600080fd5b81518015158114610ad057600080fd5b600060208284031215610b0b57600080fd5b5051919050565b600080600080600060a08688031215610b2a57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015610bd25784516001600160a01b031683529383019391830191600101610bad565b50506001600160a01b03969096166060850152505050608001529392505050565b600082821015610c1357634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603260045260246000fdfea26469706673582212206df9715c2bc78bf0ac743ac5ce7e8a31989fb78fcd7a701117cb4b765dc55db764736f6c63430008070033

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.