Contract 0xaff15dae5c956f9d7d5b98f304863201ea47c656 3

Contract Overview

Balance:
6.895743041700407143 FTM

FTM Value:
$14.76 (@ $2.14/FTM)

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x929cd9cac09e1f855b127eb3128daa757570f64c238d6ae771e79651df80be19Approve289286792022-01-24 17:05:3239 mins ago0x85b08280c165bb8d10fa0cdae6c0ff821eb16f45 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.032262477273
0xa483c2b58f46a825f138435e45715a66b342c27babe993670f94560b15cf74d3Approve289272002022-01-24 16:45:1859 mins ago0xf81d666c218bce7bf0c57bacc142e71adb1e6100 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.016606962616
0xdfbf1c441733ed692ca80431dc0b825be58af163b4e95aae4474256b217e209bTransfer289166192022-01-24 13:53:073 hrs 51 mins ago0x39c986d78699e0c3d7445427f51175e65ece8fe2 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.114782700781
0xdee60d4b31312b2370d17e9f24e2cf089b1c365afa7140515d8cc2db897b2003Approve289106702022-01-24 12:31:555 hrs 12 mins ago0x73863a5c8656971ea565e9d07252cf5672be733a IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.030907557878
0xf2d9b6b41c37187a5d46f248fe22586e7a6666b291815d5f48e9b2f3e9a66ab3Approve289097662022-01-24 12:19:495 hrs 24 mins ago0x01139ba873206b968ef757f4ac2690f8a201f86f IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.040499950195
0xf34f34a95ecb5541f322d6190450ca5e2740c39dd1887a40299e25cde058a614Approve289061442022-01-24 11:26:066 hrs 18 mins ago0x53394d0eeae8b0632ed008111eceb6f52cb40231 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.05220060744
0x327077934d5c91a2125298b541dfca360a04bcc5646c061975987a91552c00d1Approve289038892022-01-24 10:43:287 hrs 1 min ago0xc7448d4a5436b0d9338a85b1b3d143c14787a901 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.044362954694
0xb0929e13d492bb9ee872817064cf762528a8704d49a37d05370aaa2517d8f7deApprove289035052022-01-24 10:36:347 hrs 8 mins ago0x7c802b37c8f1cfa271c791403831a93e5fe99917 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.041700682911
0x0943f6dd83dccb4c60b2ec13c78ac34c92e689aba629161c2f49adf6204a3df4Approve289034992022-01-24 10:36:287 hrs 8 mins ago0xca7b0587096910a09753f79244d8e710a56ed6ab IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.042013857532
0x6b0b7bdd6439a9309024e118aa17aa9cdc5ead5b9e8aa4462e2297928de0a8eaApprove289025502022-01-24 10:13:347 hrs 31 mins ago0x8e414b9dcc2e06246ea6102ee58da62fab96448d IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.020909645683
0xac5b9c780d9b4e0e5c5fc37b93589593b10fa4698d160e9bc60223971ea5fac7Approve288965442022-01-24 8:44:448 hrs 59 mins ago0x90b135ea415a2c9b8e8f49ec6f61aaac986ddd9b IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.019678711008
0x5ee9c39466097279587250113627da550e2db1771e84f068c9528cbfd66dc7afApprove288940702022-01-24 8:05:459 hrs 38 mins ago0xb04d5f3a7a124472cc5b0b5af4ecce8d9630a664 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.017038140654
0x00a7cf9a52bc8e68519134413d2c1cdc05094ac925ffd2ba9b828f614e9d7a97Approve288895862022-01-24 6:57:3010 hrs 47 mins ago0x263944285219b5b3fee31a91da95acab87e5d27d IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.022598209756
0x2d23fccc82c717ead5882fd00d8b54be7e4edfb777289ff2339a75e949c068bbApprove288886182022-01-24 6:43:1111 hrs 1 min ago0x33da71b6849fa95425a0054139e0b892e3458bcf IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.017753713464
0xfcdc8127a4a00972cb03635b8c2c02e1b3f01b4ec033fa49f19663b8bfc332a0Approve288855862022-01-24 5:54:3811 hrs 50 mins ago0x7d52db83a8ee55d16e9120c0b48752a633769255 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.018354991219
0x255416d2e6a7954e08e1f4b29fa60a7dbab007ea3e16ec8530c3aceaff68d043Approve288855742022-01-24 5:54:2211 hrs 50 mins ago0x7d52db83a8ee55d16e9120c0b48752a633769255 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.032297066611
0xc7aade6299306cae999ce7543dcd54e4b3564cbf1e259b1888ab92ed200935f4Approve288688362022-01-24 1:12:5916 hrs 31 mins ago0xe9843def8d31513c9dcd300497973b93adb1863c IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.013875581625
0xb838af93f865c0f812e86f26246956ccfbd4c25c654361127d1c3cc54b4df980Approve288633172022-01-23 23:55:0317 hrs 49 mins ago0xceb632d9619e5a113bba4e47214eb2dec0840ace IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.010041216
0x3233f769e53e2c38e15982b593eb296989b517d395c3534447d64997aab947e9Approve288541982022-01-23 21:34:5420 hrs 9 mins ago0xf058f2968b6dd66a35abaeaab12f34d5ce3164c9 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.016905226728
0xfc7a7a72bb2bc7fc9002dc40fead42ece0a9b950cb98d220ec7c459a112611eeApprove288538692022-01-23 21:30:1420 hrs 14 mins ago0x3551812874dc93a531577be5ae10ce46f3354371 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.017728525698
0xf04b87ebe8e23700e8bb18c583e9b39808292cd16f3f7a332010b2d60dc6a935Approve288511312022-01-23 20:51:4720 hrs 52 mins ago0xfe61a671a07a4b07c37f1a617c73441303947da0 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.022933938816
0x8cffe29bb28563deeb044251b90ad490baf01592ebcc48d2b00f8cbcf41750bfApprove288427722022-01-23 18:36:3823 hrs 8 mins ago0x22e4b72c7f5f2ba290491ceb15bd8101a3857faf IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.016614671232
0xb2f310671957cf23d58a9b598cab02ff10c0bd716874e458705e63e09f23d795Approve288427462022-01-23 18:36:0523 hrs 8 mins ago0x44687e9c9d8c51a48ccdd0c5f5b470a9872b6b70 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.016625007784
0x35a912e00691e15ffcb4b050bfb82a9e77842a588f41e935bd98aad6eed950baApprove288415462022-01-23 18:15:2223 hrs 29 mins ago0x95a07d7ecad9b010644188ea525dffa23d0b8ef3 IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.006800064
0xa48bc73c973036ee125714e2a8eec0221c2ab46f2becc1efd1cbd63bdb849580Approve288415212022-01-23 18:15:0423 hrs 29 mins ago0x1210decb57171b68fee64ff6ab709b926c30e2dd IN  0xaff15dae5c956f9d7d5b98f304863201ea47c6560 FTM0.00677888
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xb0c1f0206eabd5bce427e4d82d1d6d02549fde9521752cb99433a2076dead183289284912022-01-24 17:03:0541 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c656 SpookySwap: Router5.432699231351726386 FTM
0xb0c1f0206eabd5bce427e4d82d1d6d02549fde9521752cb99433a2076dead183289284912022-01-24 17:03:0541 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c6560xa3879d47649a0598c25d2bf53610f9e08ec615375.432699231351726386 FTM
0xb0c1f0206eabd5bce427e4d82d1d6d02549fde9521752cb99433a2076dead183289284912022-01-24 17:03:0541 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c6560xcc6ad4b4356c10e28da7847fc5b70dae7f7553b114.487197950271270363 FTM
0xb0c1f0206eabd5bce427e4d82d1d6d02549fde9521752cb99433a2076dead183289284912022-01-24 17:03:0541 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c656 0xb8e7a120af2cf9e786b32218d29d4c885f8ef29134.407095131894267113 FTM
0xb0c1f0206eabd5bce427e4d82d1d6d02549fde9521752cb99433a2076dead183289284912022-01-24 17:03:0541 mins ago SpookySwap: Router 0xaff15dae5c956f9d7d5b98f304863201ea47c65659.75969154486899025 FTM
0x238bdb24b40fdc1ca3a02fdf4468ca9673f1affdb60b372850c295718a70aa72289234202022-01-24 15:44:372 hrs ago 0xaff15dae5c956f9d7d5b98f304863201ea47c656 SpookySwap: Router5.416671802287736443 FTM
0x238bdb24b40fdc1ca3a02fdf4468ca9673f1affdb60b372850c295718a70aa72289234202022-01-24 15:44:372 hrs ago 0xaff15dae5c956f9d7d5b98f304863201ea47c6560xa3879d47649a0598c25d2bf53610f9e08ec615375.416671802287736443 FTM
0x238bdb24b40fdc1ca3a02fdf4468ca9673f1affdb60b372850c295718a70aa72289234202022-01-24 15:44:372 hrs ago 0xaff15dae5c956f9d7d5b98f304863201ea47c6560xcc6ad4b4356c10e28da7847fc5b70dae7f7553b114.444458139433963848 FTM
0x238bdb24b40fdc1ca3a02fdf4468ca9673f1affdb60b372850c295718a70aa72289234202022-01-24 15:44:372 hrs ago 0xaff15dae5c956f9d7d5b98f304863201ea47c656 0xb8e7a120af2cf9e786b32218d29d4c885f8ef29134.305588081155664141 FTM
0x238bdb24b40fdc1ca3a02fdf4468ca9673f1affdb60b372850c295718a70aa72289234202022-01-24 15:44:372 hrs ago SpookySwap: Router 0xaff15dae5c956f9d7d5b98f304863201ea47c65659.583389825165100877 FTM
0xbe01aea7253f1f8aadb5ece5ee0c5c3ad86023da5bfaa0f865bc0f8548ee2d21289185402022-01-24 14:24:043 hrs 20 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c656 SpookySwap: Router5.346594949562658629 FTM
0xbe01aea7253f1f8aadb5ece5ee0c5c3ad86023da5bfaa0f865bc0f8548ee2d21289185402022-01-24 14:24:043 hrs 20 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c6560xa3879d47649a0598c25d2bf53610f9e08ec615375.346594949562658629 FTM
0xbe01aea7253f1f8aadb5ece5ee0c5c3ad86023da5bfaa0f865bc0f8548ee2d21289185402022-01-24 14:24:043 hrs 20 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c6560xcc6ad4b4356c10e28da7847fc5b70dae7f7553b114.257586532167089677 FTM
0xbe01aea7253f1f8aadb5ece5ee0c5c3ad86023da5bfaa0f865bc0f8548ee2d21289185402022-01-24 14:24:043 hrs 20 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c656 0xb8e7a120af2cf9e786b32218d29d4c885f8ef29133.861768013896837984 FTM
0xbe01aea7253f1f8aadb5ece5ee0c5c3ad86023da5bfaa0f865bc0f8548ee2d21289185402022-01-24 14:24:043 hrs 20 mins ago SpookySwap: Router 0xaff15dae5c956f9d7d5b98f304863201ea47c65658.81254444518924492 FTM
0xddf2ed193a40a769cb95dc4cfa2ca8e60ae1cfec4c81d1d22deccf248397d440289133312022-01-24 13:08:314 hrs 36 mins ago SpookySwap: Router 0xaff15dae5c956f9d7d5b98f304863201ea47c6560.0007261323842313 FTM
0xddf2ed193a40a769cb95dc4cfa2ca8e60ae1cfec4c81d1d22deccf248397d440289133312022-01-24 13:08:314 hrs 36 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c656 SpookySwap: Router7.367887820222023541 FTM
0xddf2ed193a40a769cb95dc4cfa2ca8e60ae1cfec4c81d1d22deccf248397d440289133312022-01-24 13:08:314 hrs 36 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c6560xa3879d47649a0598c25d2bf53610f9e08ec615377.367887820222023541 FTM
0xddf2ed193a40a769cb95dc4cfa2ca8e60ae1cfec4c81d1d22deccf248397d440289133312022-01-24 13:08:314 hrs 36 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c6560xcc6ad4b4356c10e28da7847fc5b70dae7f7553b119.647700853925396109 FTM
0xddf2ed193a40a769cb95dc4cfa2ca8e60ae1cfec4c81d1d22deccf248397d440289133312022-01-24 13:08:314 hrs 36 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c656 0xb8e7a120af2cf9e786b32218d29d4c885f8ef29146.66328952807281576 FTM
0xddf2ed193a40a769cb95dc4cfa2ca8e60ae1cfec4c81d1d22deccf248397d440289133312022-01-24 13:08:314 hrs 36 mins ago SpookySwap: Router 0xaff15dae5c956f9d7d5b98f304863201ea47c65681.046766022442258953 FTM
0xd2b6b492ce4361a51b491b08d6e25b35a618b3de0caee17844f3b53a759889bf289076782022-01-24 11:49:075 hrs 55 mins ago SpookySwap: Router 0xaff15dae5c956f9d7d5b98f304863201ea47c6560.000767756906192724 FTM
0xd2b6b492ce4361a51b491b08d6e25b35a618b3de0caee17844f3b53a759889bf289076782022-01-24 11:49:075 hrs 55 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c656 SpookySwap: Router7.401390770131852422 FTM
0xd2b6b492ce4361a51b491b08d6e25b35a618b3de0caee17844f3b53a759889bf289076782022-01-24 11:49:075 hrs 55 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c6560xa3879d47649a0598c25d2bf53610f9e08ec615377.401390770131852422 FTM
0xd2b6b492ce4361a51b491b08d6e25b35a618b3de0caee17844f3b53a759889bf289076782022-01-24 11:49:075 hrs 55 mins ago 0xaff15dae5c956f9d7d5b98f304863201ea47c6560xcc6ad4b4356c10e28da7847fc5b70dae7f7553b119.737042053684939792 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FTMPay

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 10 : 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 2 of 10 : 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 3 of 10 : 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 4 of 10 : 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;
}

File 5 of 10 : 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 6 of 10 : 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 7 of 10 : 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 8 of 10 : 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 9 of 10 : 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 10 of 10 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_marketer","type":"address"},{"internalType":"address","name":"_ep","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amountFTMLiquidity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountToLiquify","type":"uint256"}],"name":"AutoLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"BuybackMultiplierActive","type":"event"},{"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"Collect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"EP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MASK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WFTM","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"approveMax","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"adr","type":"address"}],"name":"authorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoBuybackEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"autoLiquidityReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"checkFree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clearBuybackMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"developerFeeReciver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCirculatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"accuracy","type":"uint256"}],"name":"getLiquidityBacking","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"adr","type":"address"}],"name":"isAuthorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isFree","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"target","type":"uint256"},{"internalType":"uint256","name":"accuracy","type":"uint256"}],"name":"isOverLiquified","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"launchedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"launchedAtTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingFeeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","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":"bool","name":"_enabled","type":"bool"},{"internalType":"uint256","name":"_cap","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_period","type":"uint256"}],"name":"setAutoBuybackSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"setBuybackMultiplierSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minPeriod","type":"uint256"},{"internalType":"uint256","name":"_minDistribution","type":"uint256"}],"name":"setDistributionCriteria","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gas","type":"uint256"}],"name":"setDistributorSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_autoLiquidityReceiver","type":"address"},{"internalType":"address","name":"_marketingFeeReceiver","type":"address"}],"name":"setFeeReceivers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidityFee","type":"uint256"},{"internalType":"uint256","name":"_buybackFee","type":"uint256"},{"internalType":"uint256","name":"_reflectionFee","type":"uint256"},{"internalType":"uint256","name":"_marketingFee","type":"uint256"},{"internalType":"uint256","name":"_feeDenominator","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"setFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"bool","name":"exempt","type":"bool"}],"name":"setIsDividendExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"bool","name":"exempt","type":"bool"}],"name":"setIsFeeExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"bool","name":"exempt","type":"bool"}],"name":"setIsTxLimitExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setSwapBackSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_target","type":"uint256"},{"internalType":"uint256","name":"_denominator","type":"uint256"}],"name":"setTargetLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setTxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"}],"name":"unSetFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"adr","type":"address"}],"name":"unauthorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052620000126009600a62000662565b620000259066038d7ea4c6800062000721565b60028190556005805461dead6001600160a01b031991821617825560068054821690556007805482169055600880547321be370d5312f44cb42ce377bc9b8a0cef1a4c839083161790556207a120600e55610640600f5561271060105561012c6011556103e8601255609660138190556014556000601555601680548216905560178054821690556018805490911690556019556064601a819055620000d891906200048f602090811b6200152a17901c565b601b55620000f860286002546200048f60201b6200152a1790919060201c565b601c5560c860235560646024556107086025556027805460ff19908116909155602e8054909116600117905560025462000136906103e890620005f6565b602f553480156200014657600080fd5b5060405162003b6538038062003b658339810160408190526200016991620005ac565b6200017433620004a6565b33600081815260016020818152604092839020805460ff1916909217909155600780546001600160a01b038681166001600160a01b0319928316179092556016805482168617905560178054888416908316179055601880548216909517909455600a805491881691851682179055600980549094168117909355815163c45a015560e01b8152915163c45a0155926004808201939291829003018186803b1580156200022057600080fd5b505afa15801562000235573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200025b91906200058e565b6008546040516364e329cb60e11b81526001600160a01b03918216600482015230602482015291169063c9c6539690604401602060405180830381600087803b158015620002a857600080fd5b505af1158015620002bd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002e391906200058e565b600b80546001600160a01b0319166001600160a01b03928316179055306000908152600460209081526040808320938716835292905281902060001990555183906200032f9062000563565b6001600160a01b039091168152602001604051809103906000f0801580156200035c573d6000803e3d6000fd5b50600c80546001600160a01b039283166001600160a01b03199182168117909255600d80548216909217909155336000818152601d60209081526040808320805460ff199081166001908117909255601e84528285208054821683179055600b5488168552601f8452828520805482168317905530855282852080548216831790556005549097168452818420805488168217905584845260289092529091208054909416179092556016805490911690911790556200041f83600019620004f6565b50600b546200043a906001600160a01b0316600019620004f6565b5060025433600081815260036020908152604080832085905551938452919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a350505062000759565b60006200049d8284620005f6565b90505b92915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590620005529086815260200190565b60405180910390a350600192915050565b610e828062002ce383390190565b80516001600160a01b03811681146200058957600080fd5b919050565b600060208284031215620005a157600080fd5b6200049d8262000571565b600080600060608486031215620005c257600080fd5b620005cd8462000571565b9250620005dd6020850162000571565b9150620005ed6040850162000571565b90509250925092565b6000826200061457634e487b7160e01b600052601260045260246000fd5b500490565b600181815b808511156200065a5781600019048211156200063e576200063e62000743565b808516156200064c57918102915b93841c93908002906200061e565b509250929050565b60006200049d60ff8416836000826200067e57506001620004a0565b816200068d57506000620004a0565b8160018114620006a65760028114620006b157620006d1565b6001915050620004a0565b60ff841115620006c557620006c562000743565b50506001821b620004a0565b5060208310610133831016604e8410600b8410161715620006f6575081810a620004a0565b62000702838362000619565b806000190482111562000719576200071962000743565b029392505050565b60008160001904831182151516156200073e576200073e62000743565b500290565b634e487b7160e01b600052601160045260246000fd5b61257a80620007696000396000f3fe60806040526004361061037a5760003560e01c80637d1db4a5116101d1578063bf56b37111610102578063e91f214e116100a0578063f708a64f1161006f578063f708a64f14610a46578063f84ba65d14610a66578063f887ea4014610a86578063fe9fbb8014610aa657600080fd5b8063e91f214e146109c2578063e96fada2146109e6578063f0b37c0414610a06578063f2fde38b14610a2657600080fd5b8063ca33e64c116100dc578063ca33e64c1461091c578063d51ed1c81461093c578063dd62ed3e1461095c578063df20fd49146109a257600080fd5b8063bf56b371146108db578063c1826d78146108f1578063c6d2577d1461090657600080fd5b8063a51af4c51161016f578063ace1178311610149578063ace1178314610857578063b10abe4414610886578063b210b06d146108a6578063b6a5d7de146108bb57600080fd5b8063a51af4c5146107f7578063a8aa1b3114610817578063a9059cbb1461083757600080fd5b80638da5cb5b116101ab5780638da5cb5b1461076c57806395d89b411461078a5780639d1944f5146107b7578063a4b45c00146107d757600080fd5b80637d1db4a51461072057806382247ec01461073657806389ef69f61461074c57600080fd5b80632b112e49116102ab5780635c85974f116102495780636ddd1713116102235780636ddd1713146106a657806370a08231146106c0578063715018a6146106f65780637ae316d01461070b57600080fd5b80635c85974f146106465780635d0044ca14610666578063658d4b7f1461068657600080fd5b80633268cc56116102855780633268cc56146105cc5780633425c001146105ec5780633bb8a8d41461060c578063571ac8b01461062657600080fd5b80632b112e491461057b5780632d48e89614610590578063313ce567146105b057600080fd5b80631161ae39116103185780632119fd5a116102f25780632119fd5a146104e357806321dbe8761461051b5780632375ce401461053b57806323b872dd1461055b57600080fd5b80631161ae391461048e57806318160ddd146104ae578063201e7991146104c357600080fd5b806304a66b481161035457806304a66b48146103e657806306fdde031461040657806307c89fe81461043e578063095ea7b31461046e57600080fd5b806301339c21146103865780630445b6671461039d578063048c7baf146103c657600080fd5b3661038157005b600080fd5b34801561039257600080fd5b5061039b610ac6565b005b3480156103a957600080fd5b506103b3602f5481565b6040519081526020015b60405180910390f35b3480156103d257600080fd5b5061039b6103e136600461223b565b610b41565b3480156103f257600080fd5b5061039b610401366004612309565b610b8f565b34801561041257600080fd5b5060408051808201909152600681526546544d50617960d01b60208201525b6040516103bd91906123bd565b34801561044a57600080fd5b5061045e610459366004612141565b610c05565b60405190151581526020016103bd565b34801561047a57600080fd5b5061045e6104893660046121f5565b610c52565b34801561049a57600080fd5b5061045e6104a936600461228d565b610cbe565b3480156104ba57600080fd5b506002546103b3565b3480156104cf57600080fd5b5061039b6104de36600461228d565b610cd2565b3480156104ef57600080fd5b50601854610503906001600160a01b031681565b6040516001600160a01b0390911681526020016103bd565b34801561052757600080fd5b50600854610503906001600160a01b031681565b34801561054757600080fd5b5061039b6105563660046122af565b610d02565b34801561056757600080fd5b5061045e61057636600461218f565b610d57565b34801561058757600080fd5b506103b3610e1b565b34801561059c57600080fd5b5061039b6105ab36600461228d565b610e6d565b3480156105bc57600080fd5b50604051600981526020016103bd565b3480156105d857600080fd5b50600a54610503906001600160a01b031681565b3480156105f857600080fd5b5061039b610607366004612141565b610efc565b34801561061857600080fd5b5060275461045e9060ff1681565b34801561063257600080fd5b5061045e610641366004612141565b610f46565b34801561065257600080fd5b5061039b610661366004612274565b610f5a565b34801561067257600080fd5b5061039b610681366004612274565b610fa0565b34801561069257600080fd5b5061039b6106a13660046121cb565b610fe6565b3480156106b257600080fd5b50602e5461045e9060ff1681565b3480156106cc57600080fd5b506103b36106db366004612141565b6001600160a01b031660009081526003602052604090205490565b34801561070257600080fd5b5061039b611036565b34801561071757600080fd5b50600f546103b3565b34801561072c57600080fd5b506103b3601b5481565b34801561074257600080fd5b506103b3601c5481565b34801561075857600080fd5b5061039b610767366004612141565b61106c565b34801561077857600080fd5b506000546001600160a01b0316610503565b34801561079657600080fd5b50604080518082019091526004815263046544d560e41b6020820152610431565b3480156107c357600080fd5b5061039b6107d2366004612274565b6110b9565b3480156107e357600080fd5b5061039b6107f236600461215c565b6110f2565b34801561080357600080fd5b50600d54610503906001600160a01b031681565b34801561082357600080fd5b50600b54610503906001600160a01b031681565b34801561084357600080fd5b5061045e6108523660046121f5565b611145565b34801561086357600080fd5b5061045e610872366004612141565b602080526000908152604090205460ff1681565b34801561089257600080fd5b50600754610503906001600160a01b031681565b3480156108b257600080fd5b5061039b611152565b3480156108c757600080fd5b5061039b6108d6366004612141565b61117e565b3480156108e757600080fd5b506103b360215481565b3480156108fd57600080fd5b5061039b6111cf565b34801561091257600080fd5b506103b360225481565b34801561092857600080fd5b50601654610503906001600160a01b031681565b34801561094857600080fd5b506103b3610957366004612274565b61122c565b34801561096857600080fd5b506103b361097736600461215c565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205490565b3480156109ae57600080fd5b5061039b6109bd36600461221f565b611270565b3480156109ce57600080fd5b506103b36fffffffffffffffffffffffffffffffff81565b3480156109f257600080fd5b50601754610503906001600160a01b031681565b348015610a1257600080fd5b5061039b610a21366004612141565b6112ac565b348015610a3257600080fd5b5061039b610a41366004612141565b6112f7565b348015610a5257600080fd5b5061039b610a613660046121cb565b6113b8565b348015610a7257600080fd5b5061039b610a813660046121cb565b6114bc565b348015610a9257600080fd5b50600954610503906001600160a01b031681565b348015610ab257600080fd5b5061045e610ac1366004612141565b61150c565b610acf3361150c565b610af45760405162461bcd60e51b8152600401610aeb90612447565b60405180910390fd5b60215415610b375760405162461bcd60e51b815260206004820152601060248201526f105b1c9958591e481b185d5b98da195960821b6044820152606401610aeb565b4360215542602255565b610b4a3361150c565b610b665760405162461bcd60e51b8152600401610aeb90612447565b6027805460ff1916941515949094179093556029919091556000602a55602b55602c5543602d55565b610b983361150c565b610bb45760405162461bcd60e51b8152600401610aeb90612447565b6011859055601584905560128390556013829055610bde82610bd885818989611536565b90611536565b600f556010819055610bf16004826124c0565b600f5410610bfe57600080fd5b5050505050565b600080546001600160a01b03163314610c305760405162461bcd60e51b8152600401610aeb90612412565b506001600160a01b038116600090815260208052604090205460ff165b919050565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590610cad9086815260200190565b60405180910390a350600192915050565b600082610cca8361122c565b119392505050565b610cdb3361150c565b610cf75760405162461bcd60e51b8152600401610aeb90612447565b601991909155601a55565b610d0b3361150c565b610d275760405162461bcd60e51b8152600401610aeb90612447565b6002610d3383856124c0565b11158015610d4057508183115b610d4957600080fd5b602392909255602455602555565b6002546001600160a01b0384166000908152600460209081526040808320338452909152812054909114610e06576040805180820182526016815275496e73756666696369656e7420416c6c6f77616e636560501b6020808301919091526001600160a01b0387166000908152600482528381203382529091529190912054610de1918490611542565b6001600160a01b03851660009081526004602090815260408083203384529091529020555b610e1184848461156e565b90505b9392505050565b6006546001600160a01b0316600090815260036020526040812054610e68906005546001600160a01b0316600090815260036020526040902054610e62906002549061193e565b9061193e565b905090565b610e763361150c565b610e925760405162461bcd60e51b8152600401610aeb90612447565b600c546040516316a4744b60e11b815260048101849052602481018390526001600160a01b0390911690632d48e896906044015b600060405180830381600087803b158015610ee057600080fd5b505af1158015610ef4573d6000803e3d6000fd5b505050505050565b6000546001600160a01b03163314610f265760405162461bcd60e51b8152600401610aeb90612412565b6001600160a01b031660009081526020805260409020805460ff19169055565b6000610f5482600254610c52565b92915050565b610f633361150c565b610f7f5760405162461bcd60e51b8152600401610aeb90612447565b6103e8600254610f8f91906124c0565b811015610f9b57600080fd5b601b55565b610fa93361150c565b610fc55760405162461bcd60e51b8152600401610aeb90612447565b6103e8600254610fd591906124c0565b811015610fe157600080fd5b601c55565b610fef3361150c565b61100b5760405162461bcd60e51b8152600401610aeb90612447565b6001600160a01b03919091166000908152601d60205260409020805460ff1916911515919091179055565b6000546001600160a01b031633146110605760405162461bcd60e51b8152600401610aeb90612412565b61106a600061194a565b565b6000546001600160a01b031633146110965760405162461bcd60e51b8152600401610aeb90612412565b6001600160a01b031660009081526020805260409020805460ff19166001179055565b6110c23361150c565b6110de5760405162461bcd60e51b8152600401610aeb90612447565b620b71b081106110ed57600080fd5b600e55565b6110fb3361150c565b6111175760405162461bcd60e51b8152600401610aeb90612447565b601680546001600160a01b039384166001600160a01b03199182161790915560178054929093169116179055565b6000610e1433848461156e565b61115b3361150c565b6111775760405162461bcd60e51b8152600401610aeb90612447565b6000602655565b6000546001600160a01b031633146111a85760405162461bcd60e51b8152600401610aeb90612412565b6001600160a01b03166000908152600160208190526040909120805460ff19169091179055565b6000546001600160a01b031633146111f95760405162461bcd60e51b8152600401610aeb90612412565b6040514790339082156108fc029083906000818181858888f19350505050158015611228573d6000803e3d6000fd5b5050565b6000610f54611239610e1b565b600b546001600160a01b031660009081526003602052604090205461126a9061126390600261199a565b859061199a565b9061152a565b6112793361150c565b6112955760405162461bcd60e51b8152600401610aeb90612447565b602e805460ff191692151592909217909155602f55565b6000546001600160a01b031633146112d65760405162461bcd60e51b8152600401610aeb90612412565b6001600160a01b03166000908152600160205260409020805460ff19169055565b6000546001600160a01b031633146113215760405162461bcd60e51b8152600401610aeb90612412565b6001600160a01b0381166113865760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610aeb565b6001600160a01b0381166000908152600160208190526040909120805460ff191690911790556113b58161194a565b50565b6113c13361150c565b6113dd5760405162461bcd60e51b8152600401610aeb90612447565b6001600160a01b03821630148015906114045750600b546001600160a01b03838116911614155b61140d57600080fd5b6001600160a01b0382166000908152601f60205260409020805460ff1916821580159190911790915561147357600c54604051630a5b654b60e11b81526001600160a01b03848116600483015260006024830152909116906314b6ca9690604401610ec6565b600c546001600160a01b0383811660008181526003602052604090819020549051630a5b654b60e11b8152600481019290925260248201529116906314b6ca9690604401610ec6565b6114c53361150c565b6114e15760405162461bcd60e51b8152600401610aeb90612447565b6001600160a01b03919091166000908152601e60205260409020805460ff1916911515919091179055565b6001600160a01b031660009081526001602052604090205460ff1690565b6000610e1482846124c0565b6000610e1482846124a8565b600081848411156115665760405162461bcd60e51b8152600401610aeb91906123bd565b505050900390565b60305460009060ff161561158e576115878484846119a6565b9050610e14565b600b546000906001600160a01b03858116911614806115ba5750600a546001600160a01b038581169116145b90506115c68584611a49565b801580156115ec57506001600160a01b038416600090815260208052604090205460ff16155b1561166557601c546001600160a01b0385166000908152600360205260409020546116189085906124a8565b106116655760405162461bcd60e51b815260206004820152601d60248201527f4d61782077616c6c657420686173206265656e207472696767657265640000006044820152606401610aeb565b801561169557611673611ab2565b1561168057611680611b01565b611688611eca565b1561169557611695611f25565b6040805180820182526014815273496e73756666696369656e742042616c616e636560601b6020808301919091526001600160a01b0388166000908152600390915291909120546116e7918590611542565b6001600160a01b038616600090815260036020908152604080832093909355601d90529081205460ff161561171c5783611726565b6117268685611f6b565b6001600160a01b03861660009081526003602052604090205490915061174c9082611536565b6001600160a01b038087166000908152600360209081526040808320949094559189168152601f909152205460ff166117f057600c546001600160a01b0387811660008181526003602052604090819020549051630a5b654b60e11b8152600481019290925260248201529116906314b6ca9690604401600060405180830381600087803b1580156117dd57600080fd5b505af19250505080156117ee575060015b505b6001600160a01b0385166000908152601f602052604090205460ff1661188157600c546001600160a01b0386811660008181526003602052604090819020549051630a5b654b60e11b8152600481019290925260248201529116906314b6ca9690604401600060405180830381600087803b15801561186e57600080fd5b505af192505050801561187f575060015b505b600c54600e546040516001624d3b8760e01b031981526001600160a01b039092169163ffb2c479916118b99160040190815260200190565b600060405180830381600087803b1580156118d357600080fd5b505af19250505080156118e4575060015b50846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161192a91815260200190565b60405180910390a350600195945050505050565b6000610e148284612501565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610e1482846124e2565b6040805180820182526014815273496e73756666696369656e742042616c616e636560601b6020808301919091526001600160a01b03861660009081526003909152918220546119f7918490611542565b6001600160a01b038086166000908152600360205260408082209390935590851681522054611a269083611536565b6001600160a01b0384166000908152600360205260409020555060019392505050565b601b5481111580611a7257506001600160a01b0382166000908152601e602052604090205460ff165b6112285760405162461bcd60e51b8152602060048201526011602482015270151608131a5b5a5d08115e18d959591959607a1b6044820152606401610aeb565b600b546000906001600160a01b03163314801590611ad3575060305460ff16155b8015611ae15750602e5460ff165b8015610e68575050602f5430600090815260036020526040902054101590565b6030805460ff19166001179055601954601a54600091611b2091610cbe565b611b2c57601154611b2f565b60005b90506000611b53600261126a600f5461126a86602f5461199a90919063ffffffff16565b90506000611b6c82602f5461193e90919063ffffffff16565b60408051600280825260608201835292935047926000926020830190803683370190505090503081600081518110611ba657611ba661252e565b6001600160a01b039283166020918202929092010152600854825191169082906001908110611bd757611bd761252e565b6001600160a01b03928316602091820292909201015260095460405163791ac94760e01b815291169063791ac94790611c1d90869060009086903090429060040161246c565b600060405180830381600087803b158015611c3757600080fd5b505af1158015611c4b573d6000803e3d6000fd5b505050506000611c64834761193e90919063ffffffff16565b90506000611c7f611c7688600261152a565b600f549061193e565b90506000611c94600261126a8481878d61199a565b90506000611cb18361126a6012548761199a90919063ffffffff16565b90506000611cce8461126a6013548861199a90919063ffffffff16565b90506000611ceb8561126a6014548961199a90919063ffffffff16565b9050600c60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b158015611d3d57600080fd5b505af1158015611d51573d6000803e3d6000fd5b50506017546040516001600160a01b03909116935085156108fc0292508591506000818181858888f19350505050158015611d90573d6000803e3d6000fd5b506018546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611dcb573d6000803e3d6000fd5b508915611eb35760095460165460405163f305d71960e01b8152306004820152602481018d905260006044820181905260648201526001600160a01b0391821660848201524260a482015291169063f305d71990869060c4016060604051808303818588803b158015611e3d57600080fd5b505af1158015611e51573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190611e7691906122db565b505060408051868152602081018d90527f424db2872186fa7e7afa7a5e902ed3b49a2ef19c2f5431e672462495dd6b450692500160405180910390a15b50506030805460ff19169055505050505050505050565b600b546000906001600160a01b03163314801590611eeb575060305460ff16155b8015611ef9575060275460ff165b8015611f14575043602c54602d54611f1191906124a8565b11155b8015610e68575050602b5447101590565b602b54600554611f3e91906001600160a01b0316612011565b43602d55602b54602a54611f5191611536565b602a819055602954101561106a576027805460ff19169055565b600080611f8960105461126a600f548661199a90919063ffffffff16565b30600090815260036020526040902054909150611fa69082611536565b30600081815260036020526040908190209290925590516001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90611ff79085815260200190565b60405180910390a3612009838261193e565b949350505050565b6030805460ff19166001179055604080516002808252606082018352600092602083019080368337505060085482519293506001600160a01b03169183915060009061205f5761205f61252e565b60200260200101906001600160a01b031690816001600160a01b03168152505030816001815181106120935761209361252e565b6001600160a01b03928316602091820292909201015260095460405163b6f9de9560e01b815291169063b6f9de959085906120d990600090869088904290600401612388565b6000604051808303818588803b1580156120f257600080fd5b505af1158015612106573d6000803e3d6000fd5b50506030805460ff19169055505050505050565b80356001600160a01b0381168114610c4d57600080fd5b80358015158114610c4d57600080fd5b60006020828403121561215357600080fd5b610e148261211a565b6000806040838503121561216f57600080fd5b6121788361211a565b91506121866020840161211a565b90509250929050565b6000806000606084860312156121a457600080fd5b6121ad8461211a565b92506121bb6020850161211a565b9150604084013590509250925092565b600080604083850312156121de57600080fd5b6121e78361211a565b915061218660208401612131565b6000806040838503121561220857600080fd5b6122118361211a565b946020939093013593505050565b6000806040838503121561223257600080fd5b61221183612131565b6000806000806080858703121561225157600080fd5b61225a85612131565b966020860135965060408601359560600135945092505050565b60006020828403121561228657600080fd5b5035919050565b600080604083850312156122a057600080fd5b50508035926020909101359150565b6000806000606084860312156122c457600080fd5b505081359360208301359350604090920135919050565b6000806000606084860312156122f057600080fd5b8351925060208401519150604084015190509250925092565b600080600080600060a0868803121561232157600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b600081518084526020808501945080840160005b8381101561237d5781516001600160a01b031687529582019590820190600101612358565b509495945050505050565b8481526080602082015260006123a16080830186612344565b6001600160a01b03949094166040830152506060015292915050565b600060208083528351808285015260005b818110156123ea578581018301518582016040015282016123ce565b818111156123fc576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600b908201526a085055551213d49256915160aa1b604082015260600190565b85815284602082015260a06040820152600061248b60a0830186612344565b6001600160a01b0394909416606083015250608001529392505050565b600082198211156124bb576124bb612518565b500190565b6000826124dd57634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156124fc576124fc612518565b500290565b60008282101561251357612513612518565b500390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212202db7b8aa96a669647b152146ad9620a935e9ad671edc6052c7c3e875268c9fa164736f6c634300080700336080604052600180546001600160a01b03199081167304068da6c83afcfa0e13ba15a6696662335d5b75178255600280549091167321be370d5312f44cb42ce377bc9b8a0cef1a4c831790556ec097ce7bc90715b34b9f1000000000600c55600d55678ac7230489e80000600e5534801561007957600080fd5b50604051610e82380380610e8283398101604081905261009891610120565b6001600160a01b0381166100f25760405162461bcd60e51b815260206004820152601760248201527f5f726f75746572206973207a65726f2061646472657373000000000000000000604482015260640160405180910390fd5b600380546001600160a01b039092166001600160a01b03199283161790556000805490911633179055610150565b60006020828403121561013257600080fd5b81516001600160a01b038116811461014957600080fd5b9392505050565b610d238061015f6000396000f3fe6080604052600436106100dd5760003560e01c8063ce7c2ac21161007f578063efca2eed11610059578063efca2eed14610224578063f0fc6bca1461023a578063ffb2c4791461024f578063ffd49c841461026f57600080fd5b8063ce7c2ac2146101af578063d0e30db014610206578063e2d2e2191461020e57600080fd5b80632d48e896116100bb5780632d48e8961461014d5780633a98ef391461016d5780634fab0ae814610183578063997664d71461019957600080fd5b806311ce023d146100e257806314b6ca961461010b57806328fd31981461012d575b600080fd5b3480156100ee57600080fd5b506100f8600c5481565b6040519081526020015b60405180910390f35b34801561011757600080fd5b5061012b610126366004610b16565b610285565b005b34801561013957600080fd5b506100f8610148366004610afb565b6103fd565b34801561015957600080fd5b5061012b610168366004610b94565b610486565b34801561017957600080fd5b506100f860085481565b34801561018f57600080fd5b506100f8600e5481565b3480156101a557600080fd5b506100f860095481565b3480156101bb57600080fd5b506101eb6101ca366004610afb565b60076020526000908152604090208054600182015460029092015490919083565b60408051938452602084019290925290820152606001610102565b61012b6104a8565b34801561021a57600080fd5b506100f8600b5481565b34801561023057600080fd5b506100f8600a5481565b34801561024657600080fd5b5061012b6106f5565b34801561025b57600080fd5b5061012b61026a366004610b62565b610700565b34801561027b57600080fd5b506100f8600d5481565b6000546001600160a01b0316331461029c57600080fd5b6001600160a01b038216600090815260076020526040902054156102c3576102c382610800565b6000811180156102e957506001600160a01b038216600090815260076020526040902054155b1561034f57600480546001600160a01b0384166000818152600560205260408120839055600183018455929092527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319169091179055610382565b8015801561037457506001600160a01b03821660009081526007602052604090205415155b15610382576103828261092b565b6001600160a01b0382166000908152600760205260409020546008546103b39183916103ad91610a40565b90610a53565b6008556001600160a01b03821660009081526007602052604090208190556103da81610a5f565b6001600160a01b0390921660009081526007602052604090206001019190915550565b6001600160a01b03811660009081526007602052604081205461042257506000919050565b6001600160a01b03821660009081526007602052604081205461044490610a5f565b6001600160a01b038416600090815260076020526040902060010154909150808211610474575060009392505050565b61047e8282610a40565b949350505050565b6000546001600160a01b0316331461049d57600080fd5b600d91909155600e55565b6000546001600160a01b031633146104bf57600080fd5b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561050357600080fd5b505afa158015610517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053b9190610b7b565b6040805160028082526060820183529293506000929091602083019080368337505060025482519293506001600160a01b03169183915060009061058157610581610cd7565b6001600160a01b03928316602091820292909201015260018054835192169183919081106105b1576105b1610cd7565b6001600160a01b03928316602091820292909201015260035460405163b6f9de9560e01b815291169063b6f9de959034906105f790600090869030904290600401610bb6565b6000604051808303818588803b15801561061057600080fd5b505af1158015610624573d6000803e3d6000fd5b50506001546040516370a0823160e01b8152306004820152600094506106b393508692506001600160a01b03909116906370a082319060240160206040518083038186803b15801561067557600080fd5b505afa158015610689573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ad9190610b7b565b90610a40565b6009549091506106c39082610a53565b600955600854600c546106ed916106e4916106de9085610a82565b90610a8e565b600b5490610a53565b600b55505050565b6106fe33610800565b565b6000546001600160a01b0316331461071757600080fd5b60045480610723575050565b6000805a905060005b848310801561073a57508381105b156107f95783600f541061074e576000600f555b6107806004600f548154811061076657610766610cd7565b6000918252602090912001546001600160a01b0316610a9a565b156107b7576107b76004600f548154811061079d5761079d610cd7565b6000918252602090912001546001600160a01b0316610800565b6107cc6107c55a8490610a40565b8490610a53565b92505a600f805491935060006107e183610c90565b919050555080806107f190610c90565b91505061072c565b5050505050565b6001600160a01b0381166000908152600760205260409020546108205750565b600061082b826103fd565b9050801561092757600a546108409082610a53565b600a5560015460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb90604401602060405180830381600087803b15801561089157600080fd5b505af11580156108a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c99190610b40565b506001600160a01b038216600090815260066020908152604080832042905560079091529020600201546108fd9082610a53565b6001600160a01b03831660009081526007602052604090206002810191909155546103da90610a5f565b5050565b6004805461093b90600190610c79565b8154811061094b5761094b610cd7565b60009182526020808320909101546001600160a01b038481168452600590925260409092205460048054929093169291811061098957610989610cd7565b600091825260208083209190910180546001600160a01b0319166001600160a01b039485161790559183168152600591829052604081205460048054919392916109d590600190610c79565b815481106109e5576109e5610cd7565b60009182526020808320909101546001600160a01b031683528201929092526040019020556004805480610a1b57610a1b610cc1565b600082815260209020810160001990810180546001600160a01b031916905501905550565b6000610a4c8284610c79565b9392505050565b6000610a4c8284610c20565b6000610a7c600c546106de600b5485610a8290919063ffffffff16565b92915050565b6000610a4c8284610c5a565b6000610a4c8284610c38565b600d546001600160a01b03821660009081526006602052604081205490914291610ac49190610c20565b108015610a7c5750600e54610ad8836103fd565b1192915050565b80356001600160a01b0381168114610af657600080fd5b919050565b600060208284031215610b0d57600080fd5b610a4c82610adf565b60008060408385031215610b2957600080fd5b610b3283610adf565b946020939093013593505050565b600060208284031215610b5257600080fd5b81518015158114610a4c57600080fd5b600060208284031215610b7457600080fd5b5035919050565b600060208284031215610b8d57600080fd5b5051919050565b60008060408385031215610ba757600080fd5b50508035926020909101359150565b600060808201868352602060808185015281875180845260a086019150828901935060005b81811015610c005784516001600160a01b031683529383019391830191600101610bdb565b50506001600160a01b039690961660408501525050506060015292915050565b60008219821115610c3357610c33610cab565b500190565b600082610c5557634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615610c7457610c74610cab565b500290565b600082821015610c8b57610c8b610cab565b500390565b6000600019821415610ca457610ca4610cab565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea26469706673582212206e64a11d2d311594333df169202bf3578ba0d804adf5e5b6c58de42ad8f8de4a64736f6c63430008070033000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29000000000000000000000000cc6ad4b4356c10e28da7847fc5b70dae7f7553b100000000000000000000000004068da6c83afcfa0e13ba15a6696662335d5b75

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

000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29000000000000000000000000cc6ad4b4356c10e28da7847fc5b70dae7f7553b100000000000000000000000004068da6c83afcfa0e13ba15a6696662335d5b75

-----Decoded View---------------
Arg [0] : _router (address): 0xf491e7b69e4244ad4002bc14e878a34207e38c29
Arg [1] : _marketer (address): 0xcc6ad4b4356c10e28da7847fc5b70dae7f7553b1
Arg [2] : _ep (address): 0x04068da6c83afcfa0e13ba15a6696662335d5b75

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000f491e7b69e4244ad4002bc14e878a34207e38c29
Arg [1] : 000000000000000000000000cc6ad4b4356c10e28da7847fc5b70dae7f7553b1
Arg [2] : 00000000000000000000000004068da6c83afcfa0e13ba15a6696662335d5b75


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.