Contract 0x7f1473cdef47c774a311fd0e9e6516a6591ec587

Contract Overview

Balance:
0 AVAX

AVAX Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x422eb3e3a66e66744805ca0888f84b05ff1b2c3f48f599674bf6a43dd4384a40Set Authorized A...168023652022-07-02 13:33:4448 days 4 mins ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍00116177525
0x620799004db7e5a6c495d6460f024ce10cb8cab02845d0bd796775f857bfd9420xf7c96e85152963832022-05-28 17:30:4782 days 20 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍001166925
0xb9f6334b6f2c0b6a90efd212596fa9fe5158b1e5e18d62335f17d9c551894cf80xf7c96e85150319852022-05-22 13:58:5188 days 23 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍001166925
0x8d0ff9edcb4ee4347ce6e31b7407e90a2668829915a4f5e7372990d5c0ed65d6Process149878402022-05-21 13:20:3890 days 18 mins ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍013570258 26
0x1038d9aba2f33ec85762dce11eaa51cf30719eac036d41593545412cd53fcdfdSet Swap Liquify149873072022-05-21 13:02:5490 days 35 mins ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍000747682 26
0x97d0c8926ebfaa695dd5c001b877cfadfbd0d0f6e33919aa4f9cf7c1535643c80xf7c96e85149872852022-05-21 13:02:0990 days 36 mins ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍001166925
0x64c65ed5b09114b043c1d13040ee32438873f066be99482cf1c713d88d116421Release149871912022-05-21 12:58:5890 days 39 mins ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍002242188 26
0xd09224025e3695cb2daf0b6acaec0f99b1e5f04db06b5522f022e852655cef26Release149871872022-05-21 12:58:4990 days 39 mins ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍0017979 26
0x5379b7b0b28bc67c8b7e8df8408ae0da8f6ddcd43631476cc449242c58263f75Set Authorized A...137968412022-04-23 13:38:35118 days ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍00370560262579.‍740109426
0x65545bf4f9df624fd268f48213bf206747814be8b8e96e18edf6447c8d340a99Set Authorized A...136006572022-04-18 23:45:42122 days 13 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍0046471100
0x86c8b47d493dbb4fc41f741874435e40d48a6cbde263f0d87f85495f3f404c32Set Authorized A...135306622022-04-17 8:26:49124 days 5 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍0046471100
0xf694ceb8902dac2a6156f4ee0540cf16af631be51d0ac4ec981b03aeea2bd2bbSet Authorized A...135120712022-04-16 22:03:25124 days 15 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍0013941330
0x3ae1aeb94c105e3c6d8a12b7bdef6a7c0de52b2f5df5f31b6faaffaefa25ee3dSet Authorized A...135103922022-04-16 21:07:16124 days 16 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍0046471100
0x0c7d689be052d2a76c95bb8e711110a7db6a0100dc0d179adff1a8e4d3c9192eSet Authorized A...135097312022-04-16 20:45:11124 days 16 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍00975891210
0xef5522ead52e440615ddaeaed1f66979b39e2696d56f4be13208da2368b96a3aSet Authorized A...135095452022-04-16 20:38:59124 days 16 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍00557991210
0x3c71a25011456e0938f8a29d543faf5bfa4a14cd87dc0f6711e2848038db6d6aSet Authorized A...135036132022-04-16 17:52:53124 days 19 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍00672598416144.‍735085538
0x05308a5a20cd6dcc18ac1b51561b9847d762d460c2fd581cca89263c1b21cbc3Set Swap Liquify129207732022-04-03 0:57:44138 days 12 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍0014947452
0xcf0608a43e7ce652aded64ce56ed78ba50618389d2bf5fb453186ac43f41e602Set Swap Liquify126977652022-03-28 19:10:47143 days 18 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍003817436203132.‍748068422
0x1a7d27a0a72bcf8b6901f69d08a279ff32f6c525771df8b92e1586c86094748eRelease126977322022-03-28 19:09:38143 days 18 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍011827646113 137.‍151210754
0x60f5bac4befebfa0b96855b2d559e7613677d5decf6ef2cea0a27100a64d73a6Release126977302022-03-28 19:09:34143 days 18 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍009456960541 136.‍760094601
0xe65d4c9fa04c9c0cc5032d3ae37b98476e0952e7836e49d6fc311553702985f5Set Swap Liquify126418922022-03-27 11:40:00145 days 1 hr ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍00071862525
0x76e594ded3ae846a7238b1f85b404786b343fd1b6efcf898cd9b3dc713a6c034Set Swap Liquify125244962022-03-24 17:22:05147 days 20 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍00165828048657.‍665281034
0x0964d50f5bcf886b7b149fb9af4874d7570457e1c99763844eeeb67c96a43686Release125244342022-03-24 17:20:01147 days 20 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍004947105383 57.‍365724897
0xe50996ceb1e2a4ff731f13aae7ccd16b80404733a90a5773666154b2ff47e62bRelease125244292022-03-24 17:19:51147 days 20 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍005017441822 58.‍173238523
0x9c56d3369f9deb3694a65b9c3c95a90804f39f36eb2f0d1e1d3134988de55528Set Swap Liquify124768472022-03-23 14:21:59148 days 23 hrs ago0xf69f9dbb10f76dd93f4023413dcc251633a1d62a IN  0x7f1473cdef47c774a311fd0e9e6516a6591ec5870 AVAX0.‍00216518313775.‍32381761
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xf43d333f80eb21395899416d5686f2db478352fe48b1d4b3e1ce006b81e2bc8c188463502022-08-19 13:22:5615 mins ago 0x7f1473cdef47c774a311fd0e9e6516a6591ec587 Trader Joe: Router0.‍450194878586427128 AVAX
0xf43d333f80eb21395899416d5686f2db478352fe48b1d4b3e1ce006b81e2bc8c188463502022-08-19 13:22:5615 mins ago Trader Joe: Router 0x7f1473cdef47c774a311fd0e9e6516a6591ec5870.‍450194878586427128 AVAX
0xf43d333f80eb21395899416d5686f2db478352fe48b1d4b3e1ce006b81e2bc8c188463502022-08-19 13:22:5615 mins ago 0x7f1473cdef47c774a311fd0e9e6516a6591ec5870x20b0013dcbb9697a8c3d0be2cfb004d6bd023b873.‍386385451345721125 AVAX
0xf43d333f80eb21395899416d5686f2db478352fe48b1d4b3e1ce006b81e2bc8c188463502022-08-19 13:22:5615 mins ago Trader Joe: Router 0x7f1473cdef47c774a311fd0e9e6516a6591ec5873.‍386385451345721125 AVAX
0x5594993a38c53150cbab1db4d07ec084f34767c4facb3402ed1202cbe3ba1309188462442022-08-19 13:19:2619 mins ago 0x7f1473cdef47c774a311fd0e9e6516a6591ec587 Trader Joe: Router0.‍278555640682970597 AVAX
0x5594993a38c53150cbab1db4d07ec084f34767c4facb3402ed1202cbe3ba1309188462442022-08-19 13:19:2619 mins ago Trader Joe: Router 0x7f1473cdef47c774a311fd0e9e6516a6591ec5870.‍278555640682970597 AVAX
0x5594993a38c53150cbab1db4d07ec084f34767c4facb3402ed1202cbe3ba1309188462442022-08-19 13:19:2619 mins ago 0x7f1473cdef47c774a311fd0e9e6516a6591ec5870x20b0013dcbb9697a8c3d0be2cfb004d6bd023b872.‍095090432640434437 AVAX
0x5594993a38c53150cbab1db4d07ec084f34767c4facb3402ed1202cbe3ba1309188462442022-08-19 13:19:2619 mins ago Trader Joe: Router 0x7f1473cdef47c774a311fd0e9e6516a6591ec5872.‍095090432640434437 AVAX
0xc6395fee0029893e713e0636fb9f4fa5ccb8c254be5429d6f37399e407b4f406188462062022-08-19 13:18:1020 mins ago 0x7f1473cdef47c774a311fd0e9e6516a6591ec587 Trader Joe: Router0.‍901052971959585577 AVAX
0xc6395fee0029893e713e0636fb9f4fa5ccb8c254be5429d6f37399e407b4f406188462062022-08-19 13:18:1020 mins ago Trader Joe: Router 0x7f1473cdef47c774a311fd0e9e6516a6591ec5870.‍901052971959585577 AVAX
0xc6395fee0029893e713e0636fb9f4fa5ccb8c254be5429d6f37399e407b4f406188462062022-08-19 13:18:1020 mins ago 0x7f1473cdef47c774a311fd0e9e6516a6591ec5870x20b0013dcbb9697a8c3d0be2cfb004d6bd023b876.‍779600787006714785 AVAX
0xc6395fee0029893e713e0636fb9f4fa5ccb8c254be5429d6f37399e407b4f406188462062022-08-19 13:18:1020 mins ago Trader Joe: Router 0x7f1473cdef47c774a311fd0e9e6516a6591ec5876.‍779600787006714785 AVAX
0x1412d0bc927f416fab74c3e37051995a0fe5dc28d55bf7e6f73f451bcf8b09f9188461892022-08-19 13:17:3521 mins ago 0x7f1473cdef47c774a311fd0e9e6516a6591ec587 Trader Joe: Router0.‍836319476782706882 AVAX
0x1412d0bc927f416fab74c3e37051995a0fe5dc28d55bf7e6f73f451bcf8b09f9188461892022-08-19 13:17:3521 mins ago Trader Joe: Router 0x7f1473cdef47c774a311fd0e9e6516a6591ec5870.‍836319476782706882 AVAX
0x1412d0bc927f416fab74c3e37051995a0fe5dc28d55bf7e6f73f451bcf8b09f9188461892022-08-19 13:17:3521 mins ago 0x7f1473cdef47c774a311fd0e9e6516a6591ec5870x20b0013dcbb9697a8c3d0be2cfb004d6bd023b876.‍292294764914400824 AVAX
0x1412d0bc927f416fab74c3e37051995a0fe5dc28d55bf7e6f73f451bcf8b09f9188461892022-08-19 13:17:3521 mins ago Trader Joe: Router 0x7f1473cdef47c774a311fd0e9e6516a6591ec5876.‍292294764914400824 AVAX
0x26203f0d989fa10916dff157903f29bc7c191c24f13c3fc1d050af86842a8015188455322022-08-19 12:55:3543 mins ago 0x7f1473cdef47c774a311fd0e9e6516a6591ec587 Trader Joe: Router0.‍213704262991450486 AVAX
0x26203f0d989fa10916dff157903f29bc7c191c24f13c3fc1d050af86842a8015188455322022-08-19 12:55:3543 mins ago Trader Joe: Router 0x7f1473cdef47c774a311fd0e9e6516a6591ec5870.‍213704262991450486 AVAX
0x26203f0d989fa10916dff157903f29bc7c191c24f13c3fc1d050af86842a8015188455322022-08-19 12:55:3543 mins ago 0x7f1473cdef47c774a311fd0e9e6516a6591ec5870x20b0013dcbb9697a8c3d0be2cfb004d6bd023b871.‍607262918571832356 AVAX
0x26203f0d989fa10916dff157903f29bc7c191c24f13c3fc1d050af86842a8015188455322022-08-19 12:55:3543 mins ago Trader Joe: Router 0x7f1473cdef47c774a311fd0e9e6516a6591ec5871.‍607262918571832356 AVAX
0xd0dd067fb13d9374bef8337bd4d71decf1a6cb95bbc63fcdf2bad8a898f3f521188451412022-08-19 12:42:3256 mins ago 0x7f1473cdef47c774a311fd0e9e6516a6591ec587 Trader Joe: Router0.‍978137819341650569 AVAX
0xd0dd067fb13d9374bef8337bd4d71decf1a6cb95bbc63fcdf2bad8a898f3f521188451412022-08-19 12:42:3256 mins ago Trader Joe: Router 0x7f1473cdef47c774a311fd0e9e6516a6591ec5870.‍978137819341650569 AVAX
0xd0dd067fb13d9374bef8337bd4d71decf1a6cb95bbc63fcdf2bad8a898f3f521188451412022-08-19 12:42:3256 mins ago 0x7f1473cdef47c774a311fd0e9e6516a6591ec5870x20b0013dcbb9697a8c3d0be2cfb004d6bd023b877.‍359937088026381115 AVAX
0xd0dd067fb13d9374bef8337bd4d71decf1a6cb95bbc63fcdf2bad8a898f3f521188451412022-08-19 12:42:3256 mins ago Trader Joe: Router 0x7f1473cdef47c774a311fd0e9e6516a6591ec5877.‍359937088026381115 AVAX
0x1f7fc0b663b7ce20fbd8f7ea09d683f17a643276c2f4881b24b76d55f4ab2411188448112022-08-19 12:31:341 hr 7 mins ago 0x7f1473cdef47c774a311fd0e9e6516a6591ec587 Trader Joe: Router0.‍231916143258862086 AVAX
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LiquidityController

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 13 : LiquidityController.sol
// SPDX-License-Identifier: MIT
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/finance/PaymentSplitter.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./Authorizable.sol";
import "./interfaces/IJoeRouter02.sol";
import "./interfaces/IJoeFactory.sol";

pragma solidity ^0.8.4;

contract LiquidityController is
  Ownable,
  PaymentSplitter,
  Authorizable,
  Pausable
{
  using SafeMath for uint256;

  struct Fees {
    uint256 teamPool;
    uint256 liquidityPool;
    uint256 rewards;
    uint256 rwSwap;
    uint256 total;
  }
  Fees public fees;

  address public joeRouterAddress = 0x60aE616a2155Ee3d9A68541Ba4544862310933d4;
  address public tokenAddress;
  address public stableAddress;
  address public joePair;
  address public teamPool;
  address public rewardsPool;

  uint256 public swapTokensAmount;
  bool public swapLiquifyEnabled = true;

  IJoeRouter02 private joeRouter;
  IERC20 private token;
  IERC20 private stableToken;

  uint256 private rwSwap;
  bool private swapping = false;
  bool private teamSwapStable = true;
  bool private rewardsSwapStable = false;

  mapping(address => bool) public automatedMarketMakerPairs;

  event UpdateJoeRouter(address indexed newAddress, address indexed oldAddress);
  event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
  event LiquidityWalletUpdated(
    address indexed newLiquidityWallet,
    address indexed oldLiquidityWallet
  );
  event SwapAndLiquify(
    uint256 tokensSwapped,
    uint256 ethReceived,
    uint256 tokensIntoLiqudity
  );

  constructor(
    address[] memory payees,
    uint256[] memory shares,
    address[] memory addresses,
    uint256[] memory _fees,
    uint256 swapAmount
  ) PaymentSplitter(payees, shares) {
    require(
      addresses[0] != address(0) &&
        addresses[1] != address(0) &&
        addresses[2] != address(0) &&
        addresses[3] != address(0) &&
        addresses[4] != address(0),
      "CONSTR:1"
    );
    teamPool = addresses[0];
    rewardsPool = addresses[1];
    token = IERC20(addresses[2]);
    joePair = addresses[3];

    tokenAddress = addresses[2];
    stableAddress = addresses[4];

    require(
      joeRouterAddress != address(0) && tokenAddress != address(0),
      "CONSTR:2"
    );
    joeRouter = IJoeRouter02(joeRouterAddress);

    _setAutomatedMarketMakerPair(joePair, true);

    require(
      _fees[0] != 0 && _fees[1] != 0 && _fees[2] != 0 && _fees[3] != 0,
      "CONSTR:3"
    );

    fees.teamPool = _fees[0];
    fees.rewards = _fees[1];
    fees.liquidityPool = _fees[2];
    fees.rwSwap = _fees[3];

    fees.total = fees.rewards.add(fees.liquidityPool).add(fees.teamPool);
    require(fees.total == 100, "CONSTR:4");
    require(swapAmount > 0, "CONSTR:5");
    swapTokensAmount = swapAmount * (10**18);
  }

  function updateJoeRouterAddress(address newAddress) external onlyOwner {
    require(newAddress != address(joeRouter), "UpdateJoeRouter: wrong address");
    emit UpdateJoeRouter(newAddress, address(joeRouter));
    IJoeRouter02 _joeRouter = IJoeRouter02(newAddress);
    address _joePair = IJoeFactory(joeRouter.factory()).createPair(
      tokenAddress,
      _joeRouter.WAVAX()
    );
    joePair = _joePair;
    joeRouterAddress = newAddress;
  }

  function getFees() external view returns (Fees memory) {
    return fees;
  }

  function setSwapTokensAmount(uint256 newVal) external onlyOwner {
    swapTokensAmount = newVal;
  }

  function setTeamPool(address payable newVal) external onlyOwner {
    teamPool = newVal;
  }

  function setRewardsPool(address payable newVal) external onlyOwner {
    rewardsPool = newVal;
  }

  function setRwSwapFee(uint256 newVal) external onlyOwner {
    rwSwap = newVal;
  }

  function setSwapLiquify(bool newVal) external onlyOwner {
    swapLiquifyEnabled = newVal;
  }

  function setFees(Fees memory _fees) external onlyOwner {
    fees = _fees;
  }

  function setTeamSwapStable(bool newVal) external onlyOwner {
    teamSwapStable = newVal;
  }

  function setRewardsSwapStable(bool newVal) external onlyOwner {
    rewardsSwapStable = newVal;
  }

  function setAutomatedMarketMakerPair(address pair, bool value)
    external
    onlyOwner
  {
    require(pair != joePair, "SetAutomatedMarketMakerPair: wrong pair");

    _setAutomatedMarketMakerPair(pair, value);
  }

  // Private methods

  function _setAutomatedMarketMakerPair(address pair, bool value) private {
    require(
      automatedMarketMakerPairs[pair] != value,
      "SetAutomatedMarketMakerPair: wrong value"
    );
    automatedMarketMakerPairs[pair] = value;

    emit SetAutomatedMarketMakerPair(pair, value);
  }

  function swapAndSendToFee(
    address destination,
    uint256 tokens,
    bool useStableToken
  ) private {
    if (useStableToken) {
      swapTokenForStable(tokens, destination);
    } else {
      uint256 initialAVAXBalance = address(this).balance;

      swapTokensForAVAX(tokens);

      uint256 newBalance = (address(this).balance).sub(initialAVAXBalance);
      payable(destination).transfer(newBalance);
    }
  }

  function swapAndLiquify(uint256 tokens) private {
    uint256 half = tokens.div(2);
    uint256 otherHalf = tokens.sub(half);
    uint256 initialBalance = address(this).balance;
    swapTokensForAVAX(half);

    uint256 newBalance = address(this).balance.sub(initialBalance);
    addLiquidity(otherHalf, newBalance);
    emit SwapAndLiquify(half, newBalance, otherHalf);
  }

  function swapTokensForAVAX(uint256 tokenAmount) private {
    require(
      token.approve(address(joeRouter), tokenAmount),
      "SwapAVAX: Approve failed"
    );

    if (tokenAmount > 0) {
      address[] memory path = new address[](2);
      path[0] = tokenAddress;
      path[1] = joeRouter.WAVAX();

      joeRouter.swapExactTokensForAVAXSupportingFeeOnTransferTokens(
        tokenAmount,
        0, // accept any amount of AVAX
        path,
        address(this),
        block.timestamp
      );
    }
  }

  function swapTokenForStable(uint256 tokenAmount, address destination)
    private
  {
    require(
      token.approve(address(joeRouter), tokenAmount),
      "SwapStable: Approve failed"
    );

    if (tokenAmount > 0) {
      address[] memory path = new address[](3);
      path[0] = tokenAddress;
      path[1] = joeRouter.WAVAX();
      path[2] = stableAddress;

      joeRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(
        tokenAmount,
        0, // accept any amount of AVAX
        path,
        destination,
        block.timestamp
      );
    }
  }

  function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
    require(
      token.approve(address(joeRouter), tokenAmount),
      "AddLiquidity: Approve failed"
    );

    // add the liquidity
    joeRouter.addLiquidityAVAX{ value: ethAmount }(
      tokenAddress,
      tokenAmount,
      0, // slippage is unavoidable
      0, // slippage is unavoidable
      rewardsPool,
      block.timestamp
    );
  }

  function process() external onlyAuthorized whenNotPaused returns (bool) {
    uint256 tokenBalance = token.balanceOf(address(this));
    bool swapAmountOk = tokenBalance >= swapTokensAmount;

    if (swapAmountOk && swapLiquifyEnabled && !swapping) {
      swapping = true;

      uint256 teamTokens = tokenBalance.mul(fees.teamPool).div(100);

      swapAndSendToFee(teamPool, teamTokens, teamSwapStable);

      uint256 rewardsTokens = tokenBalance.mul(fees.rewards).div(100);
      uint256 rewardsTokenstoSwap = rewardsTokens.mul(fees.rwSwap).div(100);

      swapAndSendToFee(rewardsPool, rewardsTokenstoSwap, rewardsSwapStable);
      token.transfer(rewardsPool, rewardsTokens.sub(rewardsTokenstoSwap));

      uint256 liquidityTokens = tokenBalance.mul(fees.liquidityPool).div(100);
      swapAndLiquify(liquidityTokens);

      swapping = false;
    }

    return true;
  }

  // Firewall methods

  function pause() external onlyAuthorized {
    _pause();
  }

  function unpause() external onlyAuthorized {
    _unpause();
  }
}

File 2 of 13 : 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 3 of 13 : 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 4 of 13 : PaymentSplitter.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/utils/SafeERC20.sol";
import "../utils/Address.sol";
import "../utils/Context.sol";

/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + totalReleased();
        uint256 payment = _pendingPayment(account, totalReceived, released(account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] += payment;
        _totalReleased += payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        uint256 payment = _pendingPayment(account, totalReceived, released(token, account));

        require(payment != 0, "PaymentSplitter: account is not due payment");

        _erc20Released[token][account] += payment;
        _erc20TotalReleased[token] += payment;

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

File 5 of 13 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 7 of 13 : Authorizable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

abstract contract Authorizable {
  mapping(address => bool) private _authorizedAddresses;

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

  modifier onlyAuthorized() {
    require(_authorizedAddresses[msg.sender], "Not authorized");
    _;
  }

  function setAuthorizedAddress(address _address, bool _value)
    public
    virtual
    onlyAuthorized
  {
    _authorizedAddresses[_address] = _value;
  }

  function isAuthorized(address _address) public view returns (bool) {
    return _authorizedAddresses[_address];
  }
}

File 8 of 13 : IJoeRouter02.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.6.2;

import "./IJoeRouter01.sol";

interface IJoeRouter02 is IJoeRouter01 {
    function removeLiquidityAVAXSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountAVAXMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountAVAX);

    function removeLiquidityAVAXWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountAVAXMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountAVAX);

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

    function swapExactAVAXForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForAVAXSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

File 9 of 13 : IJoeFactory.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.5.0;

interface IJoeFactory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint256);

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

    function migrator() external view returns (address);

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

    function allPairs(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

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

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;

    function setMigrator(address) external;
}

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 12 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 13 of 13 : IJoeRouter01.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity >=0.6.2;

interface IJoeRouter01 {
    function factory() external pure returns (address);

    function WAVAX() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityAVAX(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountAVAXMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountAVAX,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityAVAX(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountAVAXMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountAVAX);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityAVAXWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountAVAXMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountAVAX);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactAVAXForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactAVAX(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForAVAX(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapAVAXForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts);
}

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

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"payees","type":"address[]"},{"internalType":"uint256[]","name":"shares","type":"uint256[]"},{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"_fees","type":"uint256[]"},{"internalType":"uint256","name":"swapAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ERC20PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newLiquidityWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldLiquidityWallet","type":"address"}],"name":"LiquidityWalletUpdated","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"PayeeAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokensSwapped","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokensIntoLiqudity","type":"uint256"}],"name":"SwapAndLiquify","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateJoeRouter","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fees","outputs":[{"internalType":"uint256","name":"teamPool","type":"uint256"},{"internalType":"uint256","name":"liquidityPool","type":"uint256"},{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"rwSwap","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFees","outputs":[{"components":[{"internalType":"uint256","name":"teamPool","type":"uint256"},{"internalType":"uint256","name":"liquidityPool","type":"uint256"},{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"rwSwap","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"internalType":"struct LiquidityController.Fees","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isAuthorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"joePair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"joeRouterAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"payee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"process","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardsPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"setAuthorizedAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"teamPool","type":"uint256"},{"internalType":"uint256","name":"liquidityPool","type":"uint256"},{"internalType":"uint256","name":"rewards","type":"uint256"},{"internalType":"uint256","name":"rwSwap","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"internalType":"struct LiquidityController.Fees","name":"_fees","type":"tuple"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newVal","type":"address"}],"name":"setRewardsPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newVal","type":"bool"}],"name":"setRewardsSwapStable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setRwSwapFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newVal","type":"bool"}],"name":"setSwapLiquify","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"setSwapTokensAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newVal","type":"address"}],"name":"setTeamPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newVal","type":"bool"}],"name":"setTeamSwapStable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"shares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stableAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapLiquifyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalReleased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateJoeRouterAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600f80546001600160a01b0319167360ae616a2155ee3d9a68541ba4544862310933d41790556016805460ff19166001179055601a805462ffffff19166101001790553480156200005457600080fd5b506040516200360d3803806200360d833981016040819052620000779162000cb3565b848462000084336200089b565b8051825114620000f65760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620001495760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f207061796565730000000000006044820152606401620000ed565b60005b8251811015620001cd57620001b88382815181106200017b57634e487b7160e01b600052603260045260246000fd5b6020026020010151838381518110620001a457634e487b7160e01b600052603260045260246000fd5b6020026020010151620008eb60201b60201c565b80620001c48162000e07565b9150506200014c565b5050336000908152600860205260408120805460ff199081166001179091556009805490911690558451909150849082906200021957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415801562000275575060006001600160a01b0316836001815181106200026157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614155b8015620002be575060006001600160a01b031683600281518110620002aa57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614155b801562000307575060006001600160a01b031683600381518110620002f357634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614155b801562000350575060006001600160a01b0316836004815181106200033c57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614155b620003895760405162461bcd60e51b8152602060048201526008602482015267434f4e5354523a3160c01b6044820152606401620000ed565b82600081518110620003ab57634e487b7160e01b600052603260045260246000fd5b6020026020010151601360006101000a8154816001600160a01b0302191690836001600160a01b0316021790555082600181518110620003fb57634e487b7160e01b600052603260045260246000fd5b6020026020010151601460006101000a8154816001600160a01b0302191690836001600160a01b03160217905550826002815181106200044b57634e487b7160e01b600052603260045260246000fd5b6020026020010151601760006101000a8154816001600160a01b0302191690836001600160a01b03160217905550826003815181106200049b57634e487b7160e01b600052603260045260246000fd5b6020026020010151601260006101000a8154816001600160a01b0302191690836001600160a01b0316021790555082600281518110620004eb57634e487b7160e01b600052603260045260246000fd5b6020026020010151601060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550826004815181106200053b57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151601180546001600160a01b0319166001600160a01b03928316179055600f5416158015906200057f57506010546001600160a01b031615155b620005b85760405162461bcd60e51b815260206004820152600860248201526721a7a729aa291d1960c11b6044820152606401620000ed565b600f5460168054610100600160a81b0319166101006001600160a01b0393841602179055601254620005ed9116600162000ad8565b816000815181106200060f57634e487b7160e01b600052603260045260246000fd5b6020026020010151600014158015620006525750816001815181106200064557634e487b7160e01b600052603260045260246000fd5b6020026020010151600014155b8015620006895750816002815181106200067c57634e487b7160e01b600052603260045260246000fd5b6020026020010151600014155b8015620006c0575081600381518110620006b357634e487b7160e01b600052603260045260246000fd5b6020026020010151600014155b620006f95760405162461bcd60e51b8152602060048201526008602482015267434f4e5354523a3360c01b6044820152606401620000ed565b816000815181106200071b57634e487b7160e01b600052603260045260246000fd5b6020026020010151600a60000181905550816001815181106200074e57634e487b7160e01b600052603260045260246000fd5b6020026020010151600a60020181905550816002815181106200078157634e487b7160e01b600052603260045260246000fd5b6020026020010151600a6001018190555081600381518110620007b457634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600d55600a54600b54600c54620007fa93620007e69290620015a362000bae821b17901c565b62000bae60201b620015a31790919060201c565b600e8190556064146200083b5760405162461bcd60e51b815260206004820152600860248201526710d3d394d5148e8d60c21b6044820152606401620000ed565b60008111620008785760405162461bcd60e51b8152602060048201526008602482015267434f4e5354523a3560c01b6044820152606401620000ed565b6200088c81670de0b6b3a764000062000de5565b6015555062000e519350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620009585760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b6064820152608401620000ed565b60008111620009aa5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a207368617265732061726520300000006044820152606401620000ed565b6001600160a01b0382166000908152600360205260409020541562000a265760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b6064820152608401620000ed565b6005805460018082019092557f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b03851690811790915560009081526003602052604090208290555462000a8f90829062000dca565b600155604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b6001600160a01b0382166000908152601b602052604090205460ff161515811515141562000b5a5760405162461bcd60e51b815260206004820152602860248201527f5365744175746f6d617465644d61726b65744d616b6572506169723a2077726f6044820152676e672076616c756560c01b6064820152608401620000ed565b6001600160a01b0382166000818152601b6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b600062000bbc828462000dca565b9392505050565b600082601f83011262000bd4578081fd5b8151602062000bed62000be78362000da4565b62000d71565b80838252828201915082860187848660051b890101111562000c0d578586fd5b855b8581101562000c425781516001600160a01b038116811462000c2f578788fd5b8452928401929084019060010162000c0f565b5090979650505050505050565b600082601f83011262000c60578081fd5b8151602062000c7362000be78362000da4565b80838252828201915082860187848660051b890101111562000c93578586fd5b855b8581101562000c425781518452928401929084019060010162000c95565b600080600080600060a0868803121562000ccb578081fd5b85516001600160401b038082111562000ce2578283fd5b62000cf089838a0162000bc3565b9650602088015191508082111562000d06578283fd5b62000d1489838a0162000c4f565b9550604088015191508082111562000d2a578283fd5b62000d3889838a0162000bc3565b9450606088015191508082111562000d4e578283fd5b5062000d5d8882890162000c4f565b925050608086015190509295509295909350565b604051601f8201601f191681016001600160401b038111828210171562000d9c5762000d9c62000e3b565b604052919050565b60006001600160401b0382111562000dc05762000dc062000e3b565b5060051b60200190565b6000821982111562000de05762000de062000e25565b500190565b600081600019048311821515161562000e025762000e0262000e25565b500290565b600060001982141562000e1e5762000e1e62000e25565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6127ac8062000e616000396000f3fe6080604052600436106102345760003560e01c80638456cb591161012e578063c4c6c237116100ab578063e33b7de31161006f578063e33b7de31461078a578063f2fde38b1461079f578063f7c96e85146107bf578063fabc4035146107df578063fe9fbb80146107f957600080fd5b8063c4c6c23714610687578063ce7c2ac2146106a7578063d79779b2146106dd578063db8d55f114610713578063e159b3ae1461076a57600080fd5b80639a7a23d6116100f25780639a7a23d6146105b35780639af1d35a146105d35780639d76ea5814610622578063b62496f514610642578063c33fb8771461067257600080fd5b80638456cb591461050a5780638b83209b1461051f5780638da5cb5b1461053f57806395dc2b6e1461055d5780639852595c1461057d57600080fd5b806343e716fe116101bc5780635c975abb116101805780635c975abb1461047b5780635f1c31821461049f5780636bca89cb146104b5578063715018a6146104d55780637c000293146104ea57600080fd5b806343e716fe146103db57806348b75044146103fb5780634ad532231461041b5780634d3a0efa1461043b578063527509f31461045b57600080fd5b8063396365041161020357806339636504146103215780633a98ef39146103415780633f4ba83a146103605780633f9e923d14610375578063406072a91461039557600080fd5b80630359fea91461028257806310b5347a146102bf5780631351cf51146102e1578063191655871461030157600080fd5b3661027d577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561028e57600080fd5b506014546102a2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156102cb57600080fd5b506102df6102da366004612345565b610832565b005b3480156102ed57600080fd5b506102df6102fc36600461237d565b610887565b34801561030d57600080fd5b506102df61031c366004612345565b6108e1565b34801561032d57600080fd5b506013546102a2906001600160a01b031681565b34801561034d57600080fd5b506001545b6040519081526020016102b6565b34801561036c57600080fd5b506102df610a0f565b34801561038157600080fd5b506102df6103903660046123b5565b610a48565b3480156103a157600080fd5b506103526103b03660046123ed565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b3480156103e757600080fd5b506102df6103f6366004612495565b610a8e565b34801561040757600080fd5b506102df6104163660046123ed565b610abd565b34801561042757600080fd5b506102df6104363660046123b5565b610ca5565b34801561044757600080fd5b506102df610456366004612495565b610ce2565b34801561046757600080fd5b50600f546102a2906001600160a01b031681565b34801561048757600080fd5b5060095460ff165b60405190151581526020016102b6565b3480156104ab57600080fd5b5061035260155481565b3480156104c157600080fd5b506012546102a2906001600160a01b031681565b3480156104e157600080fd5b506102df610d11565b3480156104f657600080fd5b506102df610505366004612345565b610d45565b34801561051657600080fd5b506102df610d91565b34801561052b57600080fd5b506102a261053a366004612495565b610dc8565b34801561054b57600080fd5b506000546001600160a01b03166102a2565b34801561056957600080fd5b506102df6105783660046123b5565b610e06565b34801561058957600080fd5b50610352610598366004612345565b6001600160a01b031660009081526004602052604090205490565b3480156105bf57600080fd5b506102df6105ce36600461237d565b610e4a565b3480156105df57600080fd5b50600a54600b54600c54600d54600e546105fa949392919085565b604080519586526020860194909452928401919091526060830152608082015260a0016102b6565b34801561062e57600080fd5b506010546102a2906001600160a01b031681565b34801561064e57600080fd5b5061048f61065d366004612345565b601b6020526000908152604090205460ff1681565b34801561067e57600080fd5b5061048f610ef0565b34801561069357600080fd5b506011546102a2906001600160a01b031681565b3480156106b357600080fd5b506103526106c2366004612345565b6001600160a01b031660009081526003602052604090205490565b3480156106e957600080fd5b506103526106f8366004612345565b6001600160a01b031660009081526006602052604090205490565b34801561071f57600080fd5b506107286111ae565b6040516102b69190600060a082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015292915050565b34801561077657600080fd5b506102df610785366004612345565b611215565b34801561079657600080fd5b50600254610352565b3480156107ab57600080fd5b506102df6107ba366004612345565b6114b8565b3480156107cb57600080fd5b506102df6107da36600461241a565b611553565b3480156107eb57600080fd5b5060165461048f9060ff1681565b34801561080557600080fd5b5061048f610814366004612345565b6001600160a01b031660009081526008602052604090205460ff1690565b6000546001600160a01b031633146108655760405162461bcd60e51b815260040161085c906125d2565b60405180910390fd5b601380546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526008602052604090205460ff166108b65760405162461bcd60e51b815260040161085c90612607565b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6001600160a01b0381166000908152600360205260409020546109165760405162461bcd60e51b815260040161085c90612541565b600061092160025490565b61092b904761269f565b905060006109588383610953866001600160a01b031660009081526004602052604090205490565b6115b6565b9050806109775760405162461bcd60e51b815260040161085c90612587565b6001600160a01b0383166000908152600460205260408120805483929061099f90849061269f565b9250508190555080600260008282546109b8919061269f565b909155506109c8905083826115fc565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b3360009081526008602052604090205460ff16610a3e5760405162461bcd60e51b815260040161085c90612607565b610a4661171a565b565b6000546001600160a01b03163314610a725760405162461bcd60e51b815260040161085c906125d2565b601a8054911515620100000262ff000019909216919091179055565b6000546001600160a01b03163314610ab85760405162461bcd60e51b815260040161085c906125d2565b601555565b6001600160a01b038116600090815260036020526040902054610af25760405162461bcd60e51b815260040161085c90612541565b6001600160a01b0382166000908152600660205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b158015610b4a57600080fd5b505afa158015610b5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8291906124ad565b610b8c919061269f565b90506000610bc5838361095387876001600160a01b03918216600090815260076020908152604080832093909416825291909152205490565b905080610be45760405162461bcd60e51b815260040161085c90612587565b6001600160a01b03808516600090815260076020908152604080832093871683529290529081208054839290610c1b90849061269f565b90915550506001600160a01b03841660009081526006602052604081208054839290610c4890849061269f565b90915550610c5990508484836117ad565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000546001600160a01b03163314610ccf5760405162461bcd60e51b815260040161085c906125d2565b6016805460ff1916911515919091179055565b6000546001600160a01b03163314610d0c5760405162461bcd60e51b815260040161085c906125d2565b601955565b6000546001600160a01b03163314610d3b5760405162461bcd60e51b815260040161085c906125d2565b610a4660006117ff565b6000546001600160a01b03163314610d6f5760405162461bcd60e51b815260040161085c906125d2565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526008602052604090205460ff16610dc05760405162461bcd60e51b815260040161085c90612607565b610a4661184f565b600060058281548110610deb57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6000546001600160a01b03163314610e305760405162461bcd60e51b815260040161085c906125d2565b601a80549115156101000261ff0019909216919091179055565b6000546001600160a01b03163314610e745760405162461bcd60e51b815260040161085c906125d2565b6012546001600160a01b0383811691161415610ee25760405162461bcd60e51b815260206004820152602760248201527f5365744175746f6d617465644d61726b65744d616b6572506169723a2077726f6044820152663733903830b4b960c91b606482015260840161085c565b610eec82826118ca565b5050565b3360009081526008602052604081205460ff16610f1f5760405162461bcd60e51b815260040161085c90612607565b60095460ff1615610f655760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161085c565b6017546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610fa957600080fd5b505afa158015610fbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe191906124ad565b60155490915081108015908190610ffa575060165460ff165b80156110095750601a5460ff16155b156111a557601a805460ff19166001179055600a546000906110399060649061103390869061199e565b906119aa565b601354601a54919250611061916001600160a01b03909116908390610100900460ff166119b6565b60006110806064611033600a600201548761199e90919063ffffffff16565b905060006110a16064611033600a600301548561199e90919063ffffffff16565b601454601a549192506110ca916001600160a01b0390911690839062010000900460ff166119b6565b6017546014546001600160a01b039182169163a9059cbb91166110ed8585611a1d565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561113357600080fd5b505af1158015611147573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061116b91906123d1565b50600061118b6064611033600a600101548961199e90919063ffffffff16565b905061119681611a29565b5050601a805460ff1916905550505b60019250505090565b6111e06040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b506040805160a081018252600a548152600b546020820152600c5491810191909152600d546060820152600e54608082015290565b6000546001600160a01b0316331461123f5760405162461bcd60e51b815260040161085c906125d2565b6016546001600160a01b038281166101009092041614156112a25760405162461bcd60e51b815260206004820152601e60248201527f5570646174654a6f65526f757465723a2077726f6e6720616464726573730000604482015260640161085c565b6016546040516001600160a01b036101009092048216918316907fb172ff8de0a3afc7f2ad25e3396c86087d62f54aa2b1757e9c048e3712fddbcd90600090a360008190506000601660019054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561133757600080fd5b505afa15801561134b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136f9190612361565b6001600160a01b031663c9c65396601060009054906101000a90046001600160a01b0316846001600160a01b03166373b295c26040518163ffffffff1660e01b815260040160206040518083038186803b1580156113cc57600080fd5b505afa1580156113e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114049190612361565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b15801561144c57600080fd5b505af1158015611460573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114849190612361565b601280546001600160a01b039283166001600160a01b031991821617909155600f8054959092169416939093179092555050565b6000546001600160a01b031633146114e25760405162461bcd60e51b815260040161085c906125d2565b6001600160a01b0381166115475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161085c565b611550816117ff565b50565b6000546001600160a01b0316331461157d5760405162461bcd60e51b815260040161085c906125d2565b8051600a556020810151600b556040810151600c556060810151600d5560800151600e55565b60006115af828461269f565b9392505050565b6001546001600160a01b038416600090815260036020526040812054909183916115e090866126d7565b6115ea91906126b7565b6115f491906126f6565b949350505050565b8047101561164c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161085c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611699576040519150601f19603f3d011682016040523d82523d6000602084013e61169e565b606091505b50509050806117155760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161085c565b505050565b60095460ff166117635760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161085c565b6009805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611715908490611ab0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60095460ff16156118955760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161085c565b6009805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586117903390565b6001600160a01b0382166000908152601b602052604090205460ff161515811515141561194a5760405162461bcd60e51b815260206004820152602860248201527f5365744175746f6d617465644d61726b65744d616b6572506169723a2077726f6044820152676e672076616c756560c01b606482015260840161085c565b6001600160a01b0382166000818152601b6020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b60006115af82846126d7565b60006115af82846126b7565b80156119c6576117158284611b82565b476119d083611e3c565b60006119dc4783611a1d565b6040519091506001600160a01b0386169082156108fc029083906000818181858888f19350505050158015611a15573d6000803e3d6000fd5b505050505050565b60006115af82846126f6565b6000611a368260026119aa565b90506000611a448383611a1d565b905047611a5083611e3c565b6000611a5c4783611a1d565b9050611a6883826120ac565b60408051858152602081018390529081018490527f17bbfb9a6069321b6ded73bd96327c9e6b7212a5cd51ff219cd61370acafb5619060600160405180910390a15050505050565b6000611b05826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661223a9092919063ffffffff16565b8051909150156117155780806020019051810190611b2391906123d1565b6117155760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161085c565b60175460165460405163095ea7b360e01b81526001600160a01b03610100909204821660048201526024810185905291169063095ea7b390604401602060405180830381600087803b158015611bd757600080fd5b505af1158015611beb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0f91906123d1565b611c5b5760405162461bcd60e51b815260206004820152601a60248201527f53776170537461626c653a20417070726f7665206661696c6564000000000000604482015260640161085c565b8115610eec576040805160038082526080820190925260009160208201606080368337505060105482519293506001600160a01b031691839150600090611cb257634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050601660019054906101000a90046001600160a01b03166001600160a01b03166373b295c26040518163ffffffff1660e01b815260040160206040518083038186803b158015611d2057600080fd5b505afa158015611d34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d589190612361565b81600181518110611d7957634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152601154825191169082906002908110611db857634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152601654604051635c11d79560e01b815261010090910490911690635c11d79590611e0590869060009086908890429060040161262f565b600060405180830381600087803b158015611e1f57600080fd5b505af1158015611e33573d6000803e3d6000fd5b50505050505050565b60175460165460405163095ea7b360e01b81526001600160a01b03610100909204821660048201526024810184905291169063095ea7b390604401602060405180830381600087803b158015611e9157600080fd5b505af1158015611ea5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ec991906123d1565b611f155760405162461bcd60e51b815260206004820152601860248201527f53776170415641583a20417070726f7665206661696c65640000000000000000604482015260640161085c565b801561155057604080516002808252606082018352600092602083019080368337505060105482519293506001600160a01b031691839150600090611f6a57634e487b7160e01b600052603260045260246000fd5b60200260200101906001600160a01b031690816001600160a01b031681525050601660019054906101000a90046001600160a01b03166001600160a01b03166373b295c26040518163ffffffff1660e01b815260040160206040518083038186803b158015611fd857600080fd5b505afa158015611fec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120109190612361565b8160018151811061203157634e487b7160e01b600052603260045260246000fd5b6001600160a01b039283166020918202929092010152601654604051633b158ab160e11b81526101009091049091169063762b15629061207e90859060009086903090429060040161262f565b600060405180830381600087803b15801561209857600080fd5b505af1158015611a15573d6000803e3d6000fd5b60175460165460405163095ea7b360e01b81526001600160a01b03610100909204821660048201526024810185905291169063095ea7b390604401602060405180830381600087803b15801561210157600080fd5b505af1158015612115573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061213991906123d1565b6121855760405162461bcd60e51b815260206004820152601c60248201527f4164644c69717569646974793a20417070726f7665206661696c656400000000604482015260640161085c565b601654601054601454604051637c8d9fb960e11b81526001600160a01b03928316600482015260248101869052600060448201819052606482015290821660848201524260a4820152610100909204169063f91b3f7290839060c4016060604051808303818588803b1580156121fa57600080fd5b505af115801561220e573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061223391906124c5565b5050505050565b60606115f4848460008585843b6122935760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161085c565b600080866001600160a01b031685876040516122af91906124f2565b60006040518083038185875af1925050503d80600081146122ec576040519150601f19603f3d011682016040523d82523d6000602084013e6122f1565b606091505b509150915061230182828661230c565b979650505050505050565b6060831561231b5750816115af565b82511561232b5782518084602001fd5b8160405162461bcd60e51b815260040161085c919061250e565b600060208284031215612356578081fd5b81356115af81612753565b600060208284031215612372578081fd5b81516115af81612753565b6000806040838503121561238f578081fd5b823561239a81612753565b915060208301356123aa81612768565b809150509250929050565b6000602082840312156123c6578081fd5b81356115af81612768565b6000602082840312156123e2578081fd5b81516115af81612768565b600080604083850312156123ff578182fd5b823561240a81612753565b915060208301356123aa81612753565b600060a0828403121561242b578081fd5b60405160a0810181811067ffffffffffffffff8211171561245a57634e487b7160e01b83526041600452602483fd5b806040525082358152602083013560208201526040830135604082015260608301356060820152608083013560808201528091505092915050565b6000602082840312156124a6578081fd5b5035919050565b6000602082840312156124be578081fd5b5051919050565b6000806000606084860312156124d9578081fd5b8351925060208401519150604084015190509250925092565b6000825161250481846020870161270d565b9190910192915050565b602081526000825180602084015261252d81604085016020870161270d565b601f01601f19169190910160400192915050565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600e908201526d139bdd08185d5d1a1bdc9a5e995960921b604082015260600190565b600060a082018783526020878185015260a0604085015281875180845260c0860191508289019350845b8181101561267e5784516001600160a01b031683529383019391830191600101612659565b50506001600160a01b03969096166060850152505050608001529392505050565b600082198211156126b2576126b261273d565b500190565b6000826126d257634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156126f1576126f161273d565b500290565b6000828210156127085761270861273d565b500390565b60005b83811015612728578181015183820152602001612710565b83811115612737576000848401525b50505050565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461155057600080fd5b801515811461155057600080fdfea264697066735822122012a62e88517084fde03321601c8643670a82755f99b0614ee4e0f81bd8bfc85e64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000186a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000126dbf19b085cc71dd4ca9282013aefd6301599b0000000000000000000000001ffa9d8a224c7c582a898f003a2f3b6e5471271c0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000005000000000000000000000000fb1b52cff7bec3be6bea9837ea8052d9333700dd00000000000000000000000020b0013dcbb9697a8c3d0be2cfb004d6bd023b8700000000000000000000000083a283641c6b4df383bcddf807193284c84c53420000000000000000000000004cd20f3e2894ed1a0f4668d953a98e689c647bfe000000000000000000000000a7d7079b0fead91f3e65f86e8915cb59c1a4c6640000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001e

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000186a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000126dbf19b085cc71dd4ca9282013aefd6301599b0000000000000000000000001ffa9d8a224c7c582a898f003a2f3b6e5471271c0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000003200000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000005000000000000000000000000fb1b52cff7bec3be6bea9837ea8052d9333700dd00000000000000000000000020b0013dcbb9697a8c3d0be2cfb004d6bd023b8700000000000000000000000083a283641c6b4df383bcddf807193284c84c53420000000000000000000000004cd20f3e2894ed1a0f4668d953a98e689c647bfe000000000000000000000000a7d7079b0fead91f3e65f86e8915cb59c1a4c6640000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001e

-----Decoded View---------------
Arg [0] : payees (address[]): 0x126dbf19b085cc71dd4ca9282013aefd6301599b,0x1ffa9d8a224c7c582a898f003a2f3b6e5471271c
Arg [1] : shares (uint256[]): 50,50
Arg [2] : addresses (address[]): 0xfb1b52cff7bec3be6bea9837ea8052d9333700dd,0x20b0013dcbb9697a8c3d0be2cfb004d6bd023b87,0x83a283641c6b4df383bcddf807193284c84c5342,0x4cd20f3e2894ed1a0f4668d953a98e689c647bfe,0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664
Arg [3] : _fees (uint256[]): 10,80,10,30
Arg [4] : swapAmount (uint256): 100000

-----Encoded View---------------
22 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000220
Arg [4] : 00000000000000000000000000000000000000000000000000000000000186a0
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 000000000000000000000000126dbf19b085cc71dd4ca9282013aefd6301599b
Arg [7] : 0000000000000000000000001ffa9d8a224c7c582a898f003a2f3b6e5471271c
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [12] : 000000000000000000000000fb1b52cff7bec3be6bea9837ea8052d9333700dd
Arg [13] : 00000000000000000000000020b0013dcbb9697a8c3d0be2cfb004d6bd023b87
Arg [14] : 00000000000000000000000083a283641c6b4df383bcddf807193284c84c5342
Arg [15] : 0000000000000000000000004cd20f3e2894ed1a0f4668d953a98e689c647bfe
Arg [16] : 000000000000000000000000a7d7079b0fead91f3e65f86e8915cb59c1a4c664
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [18] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000050
Arg [20] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [21] : 000000000000000000000000000000000000000000000000000000000000001e


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.