Contract 0xb6490141901fe1a16af2ada782ba897999683757 8

 

Contract Overview

Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x3babfc66c0e7cf598fa95e7dca053e8ebd5c953d0779bac7e611dc4ae00c7fe4Approve1756495132024-01-30 7:39:0858 days 2 hrs ago0x32ec95ff39425bd7f2c98d078a0b4afb03641521 IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00007066 0.1
0xca42debbcd16b9ae0915fd24f30042a17f0adfec60c51a80050ce5cbc4a5e669Approve1756493842024-01-30 7:38:3558 days 2 hrs ago0x32ec95ff39425bd7f2c98d078a0b4afb03641521 IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00007066 0.1
0x8b538c6b0dddae6ffa406ff964e689ecc242879e7a34a4f3633ccfefa43c0b2bSync1573921572023-12-06 9:40:13113 days 51 mins ago0x66b439c0a695cc3ed3d9f50aa4e6d2d917659ffd IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.0000851 0.1
0xac55b299e4378171560d657f7e823b8f31ebd23b2ba528afc93800d0eaf9b6bbApprove1109635392023-07-14 1:20:58258 days 9 hrs ago0xd2458a49cdb7ae8937a153709dce7b17b030a28a IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.000056060.1
0x976b9d486e1de76a3ea1d0fdae23264cd54ae09ec2a05342ffd81fed449cdd19Approve926592422023-05-20 16:30:27312 days 18 hrs ago0x00ba280c55643f707e23376c948be41b5468ef58 IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00007983 0.1
0xd87e5b86ff6548ee5250b650a71076a513456fd82d22237349df3f1a35b4e90cApprove871180372023-05-04 6:10:42329 days 4 hrs ago0x2b133847465ce196015044afbe675afdda482e1b IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.000091780.1
0xfccdbe4a48af8a16dc73fc6da84e0b790dc6f9d84d60a529df085ddd9cc2a90aApprove848645392023-04-27 14:53:51335 days 19 hrs ago0xcc98cfdc5f5480d8dd0a0d0a7f80506eb30d5159 IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00006824 0.1
0x55db3fe2611456a1bab320276cc3985f117311f3b76ba45fdf452e43ce636d7cApprove825286772023-04-20 19:09:10342 days 15 hrs ago0x849d4820395e07e51683b578acc1e981befe08c6 IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00009805 0.1
0x43e122745f93707e5fc0f6d7e5e4081b61ee4ae7a10b127c3f6d5af9f9b2e4a7Approve823874012023-04-20 9:24:00343 days 1 hr ago0xd26bfbbc1581eac337b5d05b5383c551a99342ac IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00008961 0.1
0x743744aa478a815be8815b6b57e174d59ad6e4ba7a6af00783e3c25eb56725e2Approve822593232023-04-20 0:26:27343 days 10 hrs ago0xb9c0aba138b98656ffea4309bfe2881b0b7c1d96 IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.000119730.1
0x2a241de2fd5377068794d62fe11fc9633701cc459d0ff66d916291786b580eebApprove822503052023-04-19 23:47:55343 days 10 hrs ago0xb9c0aba138b98656ffea4309bfe2881b0b7c1d96 IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.000175130.1
0x4d97aae3d299adf6bfed88b188b718aeed5a14b1404e2c41c306529edc291cc8Approve804385412023-04-14 17:42:34348 days 16 hrs ago0x096a11f594767e372cc41bc4db94fd9fa3bb4214 IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00004740.1
0xa1f46a2e6f4eee24e68bd45c2bbe491c2386d23582116b5e73086b3a65138153Approve801660592023-04-13 22:43:21349 days 11 hrs ago0x56e08babb8bf928bd8571d2a2a78235ae57ae5bd IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00005082 0.1
0xf1e4d68509a24171a5d3fc5235903baa3330954b6cd784a9e80f7d3df618fa1eApprove799725912023-04-13 9:10:31350 days 1 hr ago0xd26bfbbc1581eac337b5d05b5383c551a99342ac IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00007944 0.1
0x5d88fb6fb5f1385091d09e22de5fcf9657c5da8d1d7aa61ff271a93593345407Approve798464882023-04-13 0:14:20350 days 10 hrs ago0x897a7f6af47881c62d7ca7e3dc5bd8a1341ad8ae IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.000050080.1
0x8738a7cdb4990f452f7bf1fa7e2cb8fc2b9264292b98195aef72d7b8d0f45d7cApprove798429622023-04-12 23:58:34350 days 10 hrs ago0x897a7f6af47881c62d7ca7e3dc5bd8a1341ad8ae IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.000052090.1
0xbf4b217738957def9fe737df25b234bc681abc764a857dfc948b3d978d84b7bbApprove798276262023-04-12 22:49:50350 days 11 hrs ago0xd26bfbbc1581eac337b5d05b5383c551a99342ac IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.0000458 0.1
0x2d3b2902723cc6a10b1bdc768b7e56f2cab78384f9a95013dae7d4cd5d9a1a8bApprove798216022023-04-12 22:23:08350 days 12 hrs ago0x56e08babb8bf928bd8571d2a2a78235ae57ae5bd IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00004576 0.1
0x0fabeeee36a8b5a1ecc18fd579e934041f7c6edd230c901033a7aa1885202f6dApprove796695772023-04-12 11:40:40350 days 22 hrs ago0x096a11f594767e372cc41bc4db94fd9fa3bb4214 IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.000039480.1
0xcb4e399be30ee80c32ed6fecf84381ceb0362fdf762d0126f0a31931413edcadApprove796109112023-04-12 7:37:30351 days 2 hrs ago0x5edc1a3963319345ba93ecd7e50f59e65590a523 IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00004521 0.1
0xc83702a2ecfdaf5a7d6ac8471d29cc6f6c826cc3095fdb2b70f509785efa2a8fApprove793933912023-04-11 16:09:46351 days 18 hrs ago0xc26efa8199105d317ad00a2e90bc5ea445a3cf5f IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00006051 0.1
0x7ae68c57f29df4b8993c802de16bd5467981f0bbff42bd466d2b1175256b7238Approve791534332023-04-10 23:25:04352 days 11 hrs ago0xb5f983102a51348ac9ac0ab718bd4e7f1098b005 IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00003769 0.1
0x36f4f69cb086bfdc87f9c488b0b9c60775b4c09c7bbd2134db79cbc8e3f64245Approve790942702023-04-10 19:11:51352 days 15 hrs ago0xb5f983102a51348ac9ac0ab718bd4e7f1098b005 IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00005275 0.1
0x0315c8acd64a352778aace56061a7b67f231c4bf90dfd159ff2afc407dc99ebfApprove790235412023-04-10 14:17:00352 days 20 hrs ago0xc26efa8199105d317ad00a2e90bc5ea445a3cf5f IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00004906 0.1
0x5ae2154dfa6a8d5607a68a1db6d43e30a1d2c632f379a4b819d1ff483c40a27aApprove789333142023-04-10 8:03:02353 days 2 hrs ago0x7385f8b5ab1303c8e476d371973db768f1a43bb4 IN  0xb6490141901fe1a16af2ada782ba8979996837570 ETH0.00004644 0.1
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x9d4876895a6658cf708245674b31d32837bc848f6af0085855e3600ea7f35756720573232023-03-21 8:18:19373 days 2 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: DAI+ Token0 ETH
0x9d4876895a6658cf708245674b31d32837bc848f6af0085855e3600ea7f35756720573232023-03-21 8:18:19373 days 2 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: USD+ Token0 ETH
0x9d4876895a6658cf708245674b31d32837bc848f6af0085855e3600ea7f35756720573232023-03-21 8:18:19373 days 2 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: DAI+ Token0 ETH
0x9d4876895a6658cf708245674b31d32837bc848f6af0085855e3600ea7f35756720573232023-03-21 8:18:19373 days 2 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: USD+ Token0 ETH
0x9d4876895a6658cf708245674b31d32837bc848f6af0085855e3600ea7f35756720573232023-03-21 8:18:19373 days 2 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: DAI+ Token0 ETH
0x9d4876895a6658cf708245674b31d32837bc848f6af0085855e3600ea7f35756720573232023-03-21 8:18:19373 days 2 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: USD+ Token0 ETH
0x9d4876895a6658cf708245674b31d32837bc848f6af0085855e3600ea7f35756720573232023-03-21 8:18:19373 days 2 hrs ago Sterling Finance: Router 0xb6490141901fe1a16af2ada782ba8979996837570 ETH
0x9d4876895a6658cf708245674b31d32837bc848f6af0085855e3600ea7f35756720573232023-03-21 8:18:19373 days 2 hrs ago Sterling Finance: Router 0xb6490141901fe1a16af2ada782ba8979996837570 ETH
0xc6b60793f070954d0a9c5c15ab674dbdb3a18deeb40feea7767d4a2cacae39e0720571552023-03-21 8:17:37373 days 2 hrs ago 0x55d1f59e425456055c9d90e39448786b59a35e91 0xb6490141901fe1a16af2ada782ba8979996837570 ETH
0x0125f7fde4149d0ced5b8abd96234deb0842bf1e1d2ff089f79167e83ce301f6720385652023-03-21 7:01:18373 days 3 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: DAI+ Token0 ETH
0x0125f7fde4149d0ced5b8abd96234deb0842bf1e1d2ff089f79167e83ce301f6720385652023-03-21 7:01:18373 days 3 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: DAI+ Token0 ETH
0x0125f7fde4149d0ced5b8abd96234deb0842bf1e1d2ff089f79167e83ce301f6720385652023-03-21 7:01:18373 days 3 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: USD+ Token0 ETH
0x0125f7fde4149d0ced5b8abd96234deb0842bf1e1d2ff089f79167e83ce301f6720385652023-03-21 7:01:18373 days 3 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: USD+ Token0 ETH
0x0125f7fde4149d0ced5b8abd96234deb0842bf1e1d2ff089f79167e83ce301f6720385652023-03-21 7:01:18373 days 3 hrs ago 0x145f2a1aa70098031629606d856591da0c717554 0xb6490141901fe1a16af2ada782ba8979996837570 ETH
0x01579737af894bacee95edba390776eba951b49fb316b5df5806a217ada9897a720385552023-03-21 7:01:16373 days 3 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: DAI+ Token0 ETH
0x01579737af894bacee95edba390776eba951b49fb316b5df5806a217ada9897a720385552023-03-21 7:01:16373 days 3 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: DAI+ Token0 ETH
0x01579737af894bacee95edba390776eba951b49fb316b5df5806a217ada9897a720385552023-03-21 7:01:16373 days 3 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: USD+ Token0 ETH
0x01579737af894bacee95edba390776eba951b49fb316b5df5806a217ada9897a720385552023-03-21 7:01:16373 days 3 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: USD+ Token0 ETH
0x01579737af894bacee95edba390776eba951b49fb316b5df5806a217ada9897a720385552023-03-21 7:01:16373 days 3 hrs ago 0x145f2a1aa70098031629606d856591da0c717554 0xb6490141901fe1a16af2ada782ba8979996837570 ETH
0x3fd786db4355c1c81bbcf59f2e0db92c8ca986bd2c4d19d5d61b3c0bd6bc3bb1719780282023-03-21 2:51:11373 days 7 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: DAI+ Token0 ETH
0x3fd786db4355c1c81bbcf59f2e0db92c8ca986bd2c4d19d5d61b3c0bd6bc3bb1719780282023-03-21 2:51:11373 days 7 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: USD+ Token0 ETH
0x3fd786db4355c1c81bbcf59f2e0db92c8ca986bd2c4d19d5d61b3c0bd6bc3bb1719780282023-03-21 2:51:11373 days 7 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: DAI+ Token0 ETH
0x3fd786db4355c1c81bbcf59f2e0db92c8ca986bd2c4d19d5d61b3c0bd6bc3bb1719780282023-03-21 2:51:11373 days 7 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: USD+ Token0 ETH
0x3fd786db4355c1c81bbcf59f2e0db92c8ca986bd2c4d19d5d61b3c0bd6bc3bb1719780282023-03-21 2:51:11373 days 7 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: DAI+ Token0 ETH
0x3fd786db4355c1c81bbcf59f2e0db92c8ca986bd2c4d19d5d61b3c0bd6bc3bb1719780282023-03-21 2:51:11373 days 7 hrs ago 0xb6490141901fe1a16af2ada782ba897999683757 Overnight Finance: USD+ Token0 ETH
[ Download CSV Export 
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xb30D2814FAdA91C97c2FFbB27c9187a099617e3F
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
StrPair

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : PairFees.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import "../../interface/IERC20.sol";
import "../../lib/SafeERC20.sol";

/// @title Base V1 Fees contract is used as a 1:1 pair relationship to split out fees,
///        this ensures that the curve does not need to be modified for LP shares
contract PairFees {
  using SafeERC20 for IERC20;

  /// @dev The pair it is bonded to
  address internal immutable pair;
  /// @dev Token0 of pair, saved localy and statically for gas optimization
  address internal immutable token0;
  /// @dev Token1 of pair, saved localy and statically for gas optimization
  address internal immutable token1;

  constructor(address _token0, address _token1) {
    pair = msg.sender;
    token0 = _token0;
    token1 = _token1;
  }

  // Allow the pair to transfer fees to users
  function claimFeesFor(address recipient, uint amount0, uint amount1) external {
    require(msg.sender == pair, "Not pair");
    if (amount0 > 0) {
      IERC20(token0).safeTransfer(recipient, amount0);
    }
    if (amount1 > 0) {
      IERC20(token1).safeTransfer(recipient, amount1);
    }
  }

}

File 2 of 14 : StrPair.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import "../../interface/IERC20.sol";
import "../../interface/IERC721Metadata.sol";
import "../../interface/IPair.sol";
import "../../interface/IFactory.sol";
import "../../interface/ICallee.sol";
import "../../interface/IUnderlying.sol";
import "./PairFees.sol";
import "../../lib/Math.sol";
import "../../lib/SafeERC20.sol";
import "../Reentrancy.sol";

// The base pair of pools, either stable or volatile
contract StrPair is IERC20, IPair, Reentrancy {
  using SafeERC20 for IERC20;

  string public name;
  string public symbol;
  uint8 public constant decimals = 18;

  /// @dev Used to denote stable or volatile pair
  bool public immutable stable;

  uint public override totalSupply = 0;

  mapping(address => mapping(address => uint)) public override allowance;
  mapping(address => uint) public override balanceOf;

  bytes32 public immutable DOMAIN_SEPARATOR;
  // keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
  bytes32 public constant PERMIT_TYPEHASH = 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;
  uint internal constant _FEE_PRECISION = 1e32;
  mapping(address => uint) public nonces;
  uint public immutable chainId;

  uint internal constant MINIMUM_LIQUIDITY = 10 ** 3;
  /// @dev For example 500 = 0.02% OR 5000 = 0.002% swap fee
  uint public swapFeeChosen = 500;
  /// @dev Capture oracle reading every 30 minutes
  uint internal constant PERIOD_SIZE = 1800;

  address public immutable override token0;
  address public immutable override token1;
  address public immutable fees;
  address public immutable factory;
  address public immutable treasury;

  Observation[] public observations;

  uint internal immutable decimals0;
  uint internal immutable decimals1;

  uint public reserve0;
  uint public reserve1;
  uint public blockTimestampLast;

  uint public reserve0CumulativeLast;
  uint public reserve1CumulativeLast;

  // index0 and index1 are used to accumulate fees,
  // this is split out from normal trades to keep the swap "clean"
  // this further allows LP holders to easily claim fees for tokens they have/staked
  uint public index0 = 0;
  uint public index1 = 0;

  // position assigned to each LP to track their current index0 & index1 vs the global position
  mapping(address => uint) public supplyIndex0;
  mapping(address => uint) public supplyIndex1;

  // tracks the amount of unclaimed, but claimable tokens off of fees for token0 and token1
  mapping(address => uint) public claimable0;
  mapping(address => uint) public claimable1;

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

  constructor() {
    factory = msg.sender;
    treasury = IFactory(msg.sender).treasury();
    (address _token0, address _token1, bool _stable) = IFactory(msg.sender).getInitializable();
    (token0, token1, stable) = (_token0, _token1, _stable);
    fees = address(new PairFees(_token0, _token1));
    if (_stable) {
      name = string(abi.encodePacked("StableV1 AMM - ", IERC721Metadata(_token0).symbol(), "/", IERC721Metadata(_token1).symbol()));
      symbol = string(abi.encodePacked("sAMM-", IERC721Metadata(_token0).symbol(), "/", IERC721Metadata(_token1).symbol()));
      swapFeeChosen = 5000; // Defaults swapFeeChosen
    } else {
      name = string(abi.encodePacked("VolatileV1 AMM - ", IERC721Metadata(_token0).symbol(), "/", IERC721Metadata(_token1).symbol()));
      symbol = string(abi.encodePacked("vAMM-", IERC721Metadata(_token0).symbol(), "/", IERC721Metadata(_token1).symbol()));
      swapFeeChosen = 500; // Defaults swapFeeChosen
    }

    decimals0 = 10 ** IUnderlying(_token0).decimals();
    decimals1 = 10 ** IUnderlying(_token1).decimals();

    observations.push(Observation(block.timestamp, 0, 0));

    DOMAIN_SEPARATOR = keccak256(
      abi.encode(
        keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'),
        keccak256(bytes(name)),
        keccak256('1'),
        block.chainid,
        address(this)
      )
    );
    chainId = block.chainid;
  }

  function setSwapFeeChosen(uint _swapFeeChosen) external {
    require(IFactory(factory).treasury() == msg.sender, "StrPair: not StrFactory treasury");
    require(_swapFeeChosen > 50, "StrPair: Fee too high amount / _swapFeeChosen = feePaidAmount");
    swapFeeChosen = _swapFeeChosen;
  }

  function observationLength() external view returns (uint) {
    return observations.length;
  }

  function lastObservation() public view returns (Observation memory) {
    return observations[observations.length - 1];
  }

  function metadata() external view returns (
    uint dec0,
    uint dec1,
    uint r0,
    uint r1,
    bool st,
    address t0,
    address t1
  ) {
    return (decimals0, decimals1, reserve0, reserve1, stable, token0, token1);
  }

  function tokens() external view override returns (address, address) {
    return (token0, token1);
  }

  /// @dev Claim accumulated but unclaimed fees (viewable via claimable0 and claimable1)
  function claimFees() external override returns (uint claimed0, uint claimed1) {
    _updateFor(msg.sender);

    claimed0 = claimable0[msg.sender];
    claimed1 = claimable1[msg.sender];

    if (claimed0 > 0 || claimed1 > 0) {
      claimable0[msg.sender] = 0;
      claimable1[msg.sender] = 0;

      PairFees(fees).claimFeesFor(msg.sender, claimed0, claimed1);

      emit Claim(msg.sender, msg.sender, claimed0, claimed1);
    }
  }

  /// @dev Accrue fees on token0
  function _update0(uint amount) internal {
    uint toFees = amount;

    // transfer the fees out to PairFees and Treasury
    IERC20(token0).safeTransfer(fees, toFees);
    // 1e32 adjustment is removed during claim
    uint _ratio = toFees * _FEE_PRECISION / totalSupply;
    if (_ratio > 0) {
      index0 += _ratio;
    }
    // keep the same structure of events for compatability
    emit Fees(msg.sender, toFees, 0);
  }

  /// @dev Accrue fees on token1
  function _update1(uint amount) internal {
    uint toFees = amount;

    IERC20(token1).safeTransfer(fees, toFees);
    uint _ratio = toFees * _FEE_PRECISION / totalSupply;
    if (_ratio > 0) {
      index1 += _ratio;
    }
    // keep the same structure of events for compatability
    emit Fees(msg.sender, 0, toFees);
  }

  /// @dev This function MUST be called on any balance changes,
  ///      otherwise can be used to infinitely claim fees
  //       Fees are segregated from core funds, so fees can never put liquidity at risk
  function _updateFor(address recipient) internal {
    uint _supplied = balanceOf[recipient];
    // get LP balance of `recipient`
    if (_supplied > 0) {
      uint _supplyIndex0 = supplyIndex0[recipient];
      // get last adjusted index0 for recipient
      uint _supplyIndex1 = supplyIndex1[recipient];
      uint _index0 = index0;
      // get global index0 for accumulated fees
      uint _index1 = index1;
      supplyIndex0[recipient] = _index0;
      // update user current position to global position
      supplyIndex1[recipient] = _index1;
      uint _delta0 = _index0 - _supplyIndex0;
      // see if there is any difference that need to be accrued
      uint _delta1 = _index1 - _supplyIndex1;
      if (_delta0 > 0) {
        uint _share = _supplied * _delta0 / _FEE_PRECISION;
        // add accrued difference for each supplied token
        claimable0[recipient] += _share;
      }
      if (_delta1 > 0) {
        uint _share = _supplied * _delta1 / _FEE_PRECISION;
        claimable1[recipient] += _share;
      }
    } else {
      supplyIndex0[recipient] = index0;
      // new users are set to the default global state
      supplyIndex1[recipient] = index1;
    }
  }

  function getReserves() public view override returns (
    uint112 _reserve0,
    uint112 _reserve1,
    uint32 _blockTimestampLast
  ) {
    _reserve0 = uint112(reserve0);
    _reserve1 = uint112(reserve1);
    _blockTimestampLast = uint32(blockTimestampLast);
  }

  /// @dev Update reserves and, on the first call per block, price accumulators
  function _update(uint balance0, uint balance1, uint _reserve0, uint _reserve1) internal {
    uint blockTimestamp = block.timestamp;
    uint timeElapsed = blockTimestamp - blockTimestampLast;
    // overflow is desired
    if (timeElapsed > 0 && _reserve0 != 0 && _reserve1 != 0) {
    unchecked {
      reserve0CumulativeLast += _reserve0 * timeElapsed;
      reserve1CumulativeLast += _reserve1 * timeElapsed;
    }
    }

    Observation memory _point = lastObservation();
    timeElapsed = blockTimestamp - _point.timestamp;
    // compare the last observation with current timestamp,
    // if greater than 30 minutes, record a new event
    if (timeElapsed > PERIOD_SIZE) {
      observations.push(Observation(blockTimestamp, reserve0CumulativeLast, reserve1CumulativeLast));
    }
    reserve0 = balance0;
    reserve1 = balance1;
    blockTimestampLast = blockTimestamp;
    emit Sync(reserve0, reserve1);
  }

  /// @dev Produces the cumulative price using counterfactuals to save gas and avoid a call to sync.
  function currentCumulativePrices() public view returns (
    uint reserve0Cumulative,
    uint reserve1Cumulative,
    uint blockTimestamp
  ) {
    blockTimestamp = block.timestamp;
    reserve0Cumulative = reserve0CumulativeLast;
    reserve1Cumulative = reserve1CumulativeLast;

    // if time has elapsed since the last update on the pair, mock the accumulated price values
    (uint _reserve0, uint _reserve1, uint _blockTimestampLast) = getReserves();
    if (_blockTimestampLast != blockTimestamp) {
      // subtraction overflow is desired
      uint timeElapsed = blockTimestamp - _blockTimestampLast;
    unchecked {
      reserve0Cumulative += _reserve0 * timeElapsed;
      reserve1Cumulative += _reserve1 * timeElapsed;
    }
    }
  }

  /// @dev Gives the current twap price measured from amountIn * tokenIn gives amountOut
  function current(address tokenIn, uint amountIn) external view returns (uint amountOut) {
    Observation memory _observation = lastObservation();
    (uint reserve0Cumulative, uint reserve1Cumulative,) = currentCumulativePrices();
    if (block.timestamp == _observation.timestamp) {
      _observation = observations[observations.length - 2];
    }

    uint timeElapsed = block.timestamp - _observation.timestamp;
    uint _reserve0 = (reserve0Cumulative - _observation.reserve0Cumulative) / timeElapsed;
    uint _reserve1 = (reserve1Cumulative - _observation.reserve1Cumulative) / timeElapsed;
    amountOut = _getAmountOut(amountIn, tokenIn, _reserve0, _reserve1);
  }

  /// @dev As per `current`, however allows user configured granularity, up to the full window size
  function quote(address tokenIn, uint amountIn, uint granularity)
  external view returns (uint amountOut) {
    uint [] memory _prices = sample(tokenIn, amountIn, granularity, 1);
    uint priceAverageCumulative;
    for (uint i = 0; i < _prices.length; i++) {
      priceAverageCumulative += _prices[i];
    }
    return priceAverageCumulative / granularity;
  }

  /// @dev Returns a memory set of twap prices
  function prices(address tokenIn, uint amountIn, uint points)
  external view returns (uint[] memory) {
    return sample(tokenIn, amountIn, points, 1);
  }

  function sample(address tokenIn, uint amountIn, uint points, uint window)
  public view returns (uint[] memory) {
    uint[] memory _prices = new uint[](points);

    uint length = observations.length - 1;
    uint i = length - (points * window);
    uint nextIndex = 0;
    uint index = 0;

    for (; i < length; i += window) {
      nextIndex = i + window;
      uint timeElapsed = observations[nextIndex].timestamp - observations[i].timestamp;
      uint _reserve0 = (observations[nextIndex].reserve0Cumulative - observations[i].reserve0Cumulative) / timeElapsed;
      uint _reserve1 = (observations[nextIndex].reserve1Cumulative - observations[i].reserve1Cumulative) / timeElapsed;
      _prices[index] = _getAmountOut(amountIn, tokenIn, _reserve0, _reserve1);
      index = index + 1;
    }
    return _prices;
  }

  /// @dev This low-level function should be called from a contract which performs important safety checks
  ///      standard uniswap v2 implementation
  function mint(address to) external lock override returns (uint liquidity) {
    (uint _reserve0, uint _reserve1) = (reserve0, reserve1);
    uint _balance0 = IERC20(token0).balanceOf(address(this));
    uint _balance1 = IERC20(token1).balanceOf(address(this));
    uint _amount0 = _balance0 - _reserve0;
    uint _amount1 = _balance1 - _reserve1;

    uint _totalSupply = totalSupply;
    // gas savings, must be defined here since totalSupply can update in _mintFee
    if (_totalSupply == 0) {
      liquidity = Math.sqrt(_amount0 * _amount1) - MINIMUM_LIQUIDITY;
      // permanently lock the first MINIMUM_LIQUIDITY tokens
      _mint(address(0), MINIMUM_LIQUIDITY);
    } else {
      liquidity = Math.min(_amount0 * _totalSupply / _reserve0, _amount1 * _totalSupply / _reserve1);
    }
    require(liquidity > 0, 'StrPair: INSUFFICIENT_LIQUIDITY_MINTED');
    _mint(to, liquidity);

    _update(_balance0, _balance1, _reserve0, _reserve1);
    emit Mint(msg.sender, _amount0, _amount1);
  }

  /// @dev This low-level function should be called from a contract which performs important safety checks
  ///      standard uniswap v2 implementation
  function burn(address to) external lock override returns (uint amount0, uint amount1) {
    (uint _reserve0, uint _reserve1) = (reserve0, reserve1);
    (address _token0, address _token1) = (token0, token1);
    uint _balance0 = IERC20(_token0).balanceOf(address(this));
    uint _balance1 = IERC20(_token1).balanceOf(address(this));
    uint _liquidity = balanceOf[address(this)];

    // gas savings, must be defined here since totalSupply can update in _mintFee
    uint _totalSupply = totalSupply;
    // using balances ensures pro-rata distribution
    amount0 = _liquidity * _balance0 / _totalSupply;
    // using balances ensures pro-rata distribution
    amount1 = _liquidity * _balance1 / _totalSupply;
    require(amount0 > 0 && amount1 > 0, 'StrPair: INSUFFICIENT_LIQUIDITY_BURNED');
    _burn(address(this), _liquidity);
    IERC20(_token0).safeTransfer(to, amount0);
    IERC20(_token1).safeTransfer(to, amount1);
    _balance0 = IERC20(_token0).balanceOf(address(this));
    _balance1 = IERC20(_token1).balanceOf(address(this));

    _update(_balance0, _balance1, _reserve0, _reserve1);
    emit Burn(msg.sender, amount0, amount1, to);
  }

  /// @dev This low-level function should be called from a contract which performs important safety checks
  function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external override lock {
    require(!IFactory(factory).isPaused(), "StrPair: PAUSE");
    require(amount0Out > 0 || amount1Out > 0, 'StrPair: INSUFFICIENT_OUTPUT_AMOUNT');
    (uint _reserve0, uint _reserve1) = (reserve0, reserve1);
    require(amount0Out < _reserve0 && amount1Out < _reserve1, 'StrPair: INSUFFICIENT_LIQUIDITY');
    uint _balance0;
    uint _balance1;
    {// scope for _token{0,1}, avoids stack too deep errors
      (address _token0, address _token1) = (token0, token1);
      require(to != _token0 && to != _token1, 'StrPair: INVALID_TO');
      // optimistically transfer tokens
      if (amount0Out > 0) IERC20(_token0).safeTransfer(to, amount0Out);
      // optimistically transfer tokens
      if (amount1Out > 0) IERC20(_token1).safeTransfer(to, amount1Out);
      // callback, used for flash loans
      if (data.length > 0) ICallee(to).hook(msg.sender, amount0Out, amount1Out, data);
      _balance0 = IERC20(_token0).balanceOf(address(this));
      _balance1 = IERC20(_token1).balanceOf(address(this));
    }
    uint amount0In = _balance0 > _reserve0 - amount0Out ? _balance0 - (_reserve0 - amount0Out) : 0;
    uint amount1In = _balance1 > _reserve1 - amount1Out ? _balance1 - (_reserve1 - amount1Out) : 0;
    require(amount0In > 0 || amount1In > 0, 'StrPair: INSUFFICIENT_INPUT_AMOUNT');
    {// scope for reserve{0,1}Adjusted, avoids stack too deep errors
      (address _token0, address _token1) = (token0, token1);
      // accrue fees for token0 and move them out of pool
      if (amount0In > 0) _update0(amount0In / swapFeeChosen);
      // accrue fees for token1 and move them out of pool
      if (amount1In > 0) _update1(amount1In / swapFeeChosen);
      // since we removed tokens, we need to reconfirm balances,
      // can also simply use previous balance - amountIn/ swapFeeChosen,
      // but doing balanceOf again as safety check
      _balance0 = IERC20(_token0).balanceOf(address(this));
      _balance1 = IERC20(_token1).balanceOf(address(this));
      // The curve, either x3y+y3x for stable pools, or x*y for volatile pools
      require(_k(_balance0, _balance1) >= _k(_reserve0, _reserve1), 'StrPair: K');
    }

    _update(_balance0, _balance1, _reserve0, _reserve1);
    emit Swap(msg.sender, amount0In, amount1In, amount0Out, amount1Out, to);
  }

  /// @dev Force balances to match reserves
  function skim(address to) external lock {
    (address _token0, address _token1) = (token0, token1);
    IERC20(_token0).safeTransfer(to, IERC20(_token0).balanceOf(address(this)) - (reserve0));
    IERC20(_token1).safeTransfer(to, IERC20(_token1).balanceOf(address(this)) - (reserve1));
  }

  // force reserves to match balances
  function sync() external lock {
    _update(
      IERC20(token0).balanceOf(address(this)),
      IERC20(token1).balanceOf(address(this)),
      reserve0,
      reserve1
    );
  }

  function _f(uint x0, uint y) internal pure returns (uint) {
    return x0 * (y * y / 1e18 * y / 1e18) / 1e18 + (x0 * x0 / 1e18 * x0 / 1e18) * y / 1e18;
  }

  function _d(uint x0, uint y) internal pure returns (uint) {
    return 3 * x0 * (y * y / 1e18) / 1e18 + (x0 * x0 / 1e18 * x0 / 1e18);
  }

  function _getY(uint x0, uint xy, uint y) internal pure returns (uint) {
    for (uint i = 0; i < 255; i++) {
      uint yPrev = y;
      uint k = _f(x0, y);
      if (k < xy) {
        uint dy = (xy - k) * 1e18 / _d(x0, y);
        y = y + dy;
      } else {
        uint dy = (k - xy) * 1e18 / _d(x0, y);
        y = y - dy;
      }
      if (Math.closeTo(y, yPrev, 1)) {
        break;
      }
    }
    return y;
  }

  function getAmountOut(uint amountIn, address tokenIn) external view override returns (uint) {
    (uint _reserve0, uint _reserve1) = (reserve0, reserve1);
    // remove fee from amount received
    amountIn -= amountIn / swapFeeChosen;
    return _getAmountOut(amountIn, tokenIn, _reserve0, _reserve1);
  }

  function _getAmountOut(uint amountIn, address tokenIn, uint _reserve0, uint _reserve1) internal view returns (uint) {
    if (stable) {
      uint xy = _k(_reserve0, _reserve1);
      _reserve0 = _reserve0 * 1e18 / decimals0;
      _reserve1 = _reserve1 * 1e18 / decimals1;
      (uint reserveA, uint reserveB) = tokenIn == token0 ? (_reserve0, _reserve1) : (_reserve1, _reserve0);
      amountIn = tokenIn == token0 ? amountIn * 1e18 / decimals0 : amountIn * 1e18 / decimals1;
      uint y = reserveB - _getY(amountIn + reserveA, xy, reserveB);
      return y * (tokenIn == token0 ? decimals1 : decimals0) / 1e18;
    } else {
      (uint reserveA, uint reserveB) = tokenIn == token0 ? (_reserve0, _reserve1) : (_reserve1, _reserve0);
      return amountIn * reserveB / (reserveA + amountIn);
    }
  }

  function _k(uint x, uint y) internal view returns (uint) {
    if (stable) {
      uint _x = x * 1e18 / decimals0;
      uint _y = y * 1e18 / decimals1;
      uint _a = (_x * _y) / 1e18;
      uint _b = ((_x * _x) / 1e18 + (_y * _y) / 1e18);
      // x3y+y3x >= k
      return _a * _b / 1e18;
    } else {
      // xy >= k
      return x * y;
    }
  }

  //****************************************************************************
  //**************************** ERC20 *****************************************
  //****************************************************************************

  function _mint(address dst, uint amount) internal {
    // balances must be updated on mint/burn/transfer
    _updateFor(dst);
    totalSupply += amount;
    balanceOf[dst] += amount;
    emit Transfer(address(0), dst, amount);
  }

  function _burn(address dst, uint amount) internal {
    _updateFor(dst);
    totalSupply -= amount;
    balanceOf[dst] -= amount;
    emit Transfer(dst, address(0), amount);
  }

  function approve(address spender, uint amount) external override returns (bool) {
    require(spender != address(0), "StrPair: Approve to the zero address");
    allowance[msg.sender][spender] = amount;

    emit Approval(msg.sender, spender, amount);
    return true;
  }

  function permit(
    address owner,
    address spender,
    uint value,
    uint deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external override {
    require(deadline >= block.timestamp, 'StrPair: EXPIRED');
    bytes32 digest = keccak256(
      abi.encodePacked(
        '\x19\x01',
        DOMAIN_SEPARATOR,
        keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline))
      )
    );
    address recoveredAddress = ecrecover(digest, v, r, s);
    require(recoveredAddress != address(0) && recoveredAddress == owner, 'StrPair: INVALID_SIGNATURE');
    allowance[owner][spender] = value;

    emit Approval(owner, spender, value);
  }

  function transfer(address dst, uint amount) external override returns (bool) {
    _transferTokens(msg.sender, dst, amount);
    return true;
  }

  function transferFrom(address src, address dst, uint amount) external override returns (bool) {
    address spender = msg.sender;
    uint spenderAllowance = allowance[src][spender];

    if (spender != src && spenderAllowance != type(uint).max) {
      require(spenderAllowance >= amount, "StrPair: Insufficient allowance");
    unchecked {
      uint newAllowance = spenderAllowance - amount;
      allowance[src][spender] = newAllowance;
      emit Approval(src, spender, newAllowance);
    }
    }

    _transferTokens(src, dst, amount);
    return true;
  }

  function _transferTokens(address src, address dst, uint amount) internal {
    require(dst != address(0), "StrPair: Transfer to the zero address");

    // update fee position for src
    _updateFor(src);
    // update fee position for dst
    _updateFor(dst);

    uint srcBalance = balanceOf[src];
    require(srcBalance >= amount, "StrPair: Transfer amount exceeds balance");
  unchecked {
    balanceOf[src] = srcBalance - amount;
  }

    balanceOf[dst] += amount;

    emit Transfer(src, dst, amount);
  }
}

File 3 of 14 : Reentrancy.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

abstract contract Reentrancy {

  /// @dev simple re-entrancy check
  uint internal _unlocked = 1;

  modifier lock() {
    require(_unlocked == 1, "Reentrant call");
    _unlocked = 2;
    _;
    _unlocked = 1;
  }

}

File 4 of 14 : ICallee.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

interface ICallee {
  function hook(address sender, uint amount0, uint amount1, bytes calldata data) external;
}

File 5 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
  /**
   * @dev Returns true if this contract implements the interface defined by
   * `interfaceId`. See the corresponding
   * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
   * to learn more about how these ids are created.
   *
   * This function call must use less than 30 000 gas.
   */
  function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 6 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

/**
 * @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 14 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import "./IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
  /**
   * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
   */
  event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

  /**
   * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
   */
  event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

  /**
   * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
   */
  event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

  /**
   * @dev Returns the number of tokens in ``owner``'s account.
   */
  function balanceOf(address owner) external view returns (uint256 balance);

  /**
   * @dev Returns the owner of the `tokenId` token.
   *
   * Requirements:
   *
   * - `tokenId` must exist.
   */
  function ownerOf(uint256 tokenId) external view returns (address owner);

  /**
   * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
   * are aware of the ERC721 protocol to prevent tokens from being forever locked.
   *
   * Requirements:
   *
   * - `from` cannot be the zero address.
   * - `to` cannot be the zero address.
   * - `tokenId` token must exist and be owned by `from`.
   * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
   * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
   *
   * Emits a {Transfer} event.
   */
  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId
  ) external;

  /**
   * @dev Transfers `tokenId` token from `from` to `to`.
   *
   * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
   *
   * Requirements:
   *
   * - `from` cannot be the zero address.
   * - `to` cannot be the zero address.
   * - `tokenId` token must be owned by `from`.
   * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
   *
   * Emits a {Transfer} event.
   */
  function transferFrom(
    address from,
    address to,
    uint256 tokenId
  ) external;

  /**
   * @dev Gives permission to `to` to transfer `tokenId` token to another account.
   * The approval is cleared when the token is transferred.
   *
   * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
   *
   * Requirements:
   *
   * - The caller must own the token or be an approved operator.
   * - `tokenId` must exist.
   *
   * Emits an {Approval} event.
   */
  function approve(address to, uint256 tokenId) external;

  /**
   * @dev Returns the account approved for `tokenId` token.
   *
   * Requirements:
   *
   * - `tokenId` must exist.
   */
  function getApproved(uint256 tokenId) external view returns (address operator);

  /**
   * @dev Approve or remove `operator` as an operator for the caller.
   * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
   *
   * Requirements:
   *
   * - The `operator` cannot be the caller.
   *
   * Emits an {ApprovalForAll} event.
   */
  function setApprovalForAll(address operator, bool _approved) external;

  /**
   * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
   *
   * See {setApprovalForAll}
   */
  function isApprovedForAll(address owner, address operator) external view returns (bool);

  /**
   * @dev Safely transfers `tokenId` token from `from` to `to`.
   *
   * Requirements:
   *
   * - `from` cannot be the zero address.
   * - `to` cannot be the zero address.
   * - `tokenId` token must exist and be owned by `from`.
   * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
   * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
   *
   * Emits a {Transfer} event.
   */
  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId,
    bytes calldata data
  ) external;
}

File 8 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import "./IERC721.sol";

/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
  /**
  * @dev Returns the token collection name.
  */
  function name() external view returns (string memory);

  /**
  * @dev Returns the token collection symbol.
  */
  function symbol() external view returns (string memory);

  /**
  * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
  */
  function tokenURI(uint tokenId) external view returns (string memory);
}

File 9 of 14 : IFactory.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

interface IFactory {
  function treasury() external view returns (address);

  function isPair(address pair) external view returns (bool);

  function getInitializable() external view returns (address, address, bool);

  function isPaused() external view returns (bool);

  function pairCodeHash() external pure returns (bytes32);

  function getPair(address tokenA, address token, bool stable) external view returns (address);

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

File 10 of 14 : IPair.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

interface IPair {

  // Structure to capture time period obervations every 30 minutes, used for local oracles
  struct Observation {
    uint timestamp;
    uint reserve0Cumulative;
    uint reserve1Cumulative;
  }

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

  function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;

  function burn(address to) external returns (uint amount0, uint amount1);

  function mint(address to) external returns (uint liquidity);

  function getReserves() external view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast);

  function getAmountOut(uint, address) external view returns (uint);

  function claimFees() external returns (uint, uint);

  function tokens() external view returns (address, address);

  function token0() external view returns (address);

  function token1() external view returns (address);

  function stable() external view returns (bool);
}

File 11 of 14 : IUnderlying.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

interface IUnderlying {
  function approve(address spender, uint value) external returns (bool);

  function mint(address, uint) external;

  function totalSupply() external view returns (uint);

  function balanceOf(address) external view returns (uint);

  function transfer(address, uint) external returns (bool);

  function decimals() external returns (uint8);
}

File 12 of 14 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.13;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
  function isContract(address account) internal view returns (bool) {
    // This method relies on extcodesize/address.code.length, which returns 0
    // for contracts in construction, since the code is only stored at the end
    // of the constructor execution.

    return account.code.length > 0;
  }

  function functionCall(
    address target,
    bytes memory data,
    string memory errorMessage
  ) internal returns (bytes memory) {
    require(isContract(target), "Address: call to non-contract");
    (bool success, bytes memory returndata) = target.call(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 14 : Math.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

library Math {

  function max(uint a, uint b) internal pure returns (uint) {
    return a >= b ? a : b;
  }

  function min(uint a, uint b) internal pure returns (uint) {
    return a < b ? a : b;
  }

  function positiveInt128(int128 value) internal pure returns (int128) {
    return value < 0 ? int128(0) : value;
  }

  function closeTo(uint a, uint b, uint target) internal pure returns (bool) {
    if (a > b) {
      if (a - b <= target) {
        return true;
      }
    } else {
      if (b - a <= target) {
        return true;
      }
    }
    return false;
  }

  function sqrt(uint y) internal pure returns (uint z) {
    if (y > 3) {
      z = y;
      uint x = y / 2 + 1;
      while (x < z) {
        z = x;
        x = (y / x + x) / 2;
      }
    } else if (y != 0) {
      z = 1;
    }
  }

}

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

pragma solidity ^0.8.13;

import "../interface/IERC20.sol";
import "./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,
    uint value
  ) internal {
    _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
  }

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

  function safeIncreaseAllowance(
    IERC20 token,
    address spender,
    uint value
  ) internal {
    uint newAllowance = token.allowance(address(this), spender) + 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");
    }
  }

}

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Fees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1In","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0Out","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1Out","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reserve0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reserve1","type":"uint256"}],"name":"Sync","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Treasury","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blockTimestampLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"burn","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"chainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimFees","outputs":[{"internalType":"uint256","name":"claimed0","type":"uint256"},{"internalType":"uint256","name":"claimed1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimable0","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimable1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"current","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentCumulativePrices","outputs":[{"internalType":"uint256","name":"reserve0Cumulative","type":"uint256"},{"internalType":"uint256","name":"reserve1Cumulative","type":"uint256"},{"internalType":"uint256","name":"blockTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fees","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"tokenIn","type":"address"}],"name":"getAmountOut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReserves","outputs":[{"internalType":"uint112","name":"_reserve0","type":"uint112"},{"internalType":"uint112","name":"_reserve1","type":"uint112"},{"internalType":"uint32","name":"_blockTimestampLast","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"index0","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"index1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastObservation","outputs":[{"components":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"reserve0Cumulative","type":"uint256"},{"internalType":"uint256","name":"reserve1Cumulative","type":"uint256"}],"internalType":"struct IPair.Observation","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metadata","outputs":[{"internalType":"uint256","name":"dec0","type":"uint256"},{"internalType":"uint256","name":"dec1","type":"uint256"},{"internalType":"uint256","name":"r0","type":"uint256"},{"internalType":"uint256","name":"r1","type":"uint256"},{"internalType":"bool","name":"st","type":"bool"},{"internalType":"address","name":"t0","type":"address"},{"internalType":"address","name":"t1","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"observationLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"observations","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"},{"internalType":"uint256","name":"reserve0Cumulative","type":"uint256"},{"internalType":"uint256","name":"reserve1Cumulative","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"points","type":"uint256"}],"name":"prices","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"granularity","type":"uint256"}],"name":"quote","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reserve0","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reserve0CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reserve1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reserve1CumulativeLast","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"points","type":"uint256"},{"internalType":"uint256","name":"window","type":"uint256"}],"name":"sample","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_swapFeeChosen","type":"uint256"}],"name":"setSwapFeeChosen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"skim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"supplyIndex0","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"supplyIndex1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0Out","type":"uint256"},{"internalType":"uint256","name":"amount1Out","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapFeeChosen","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokens","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102f15760003560e01c80637ecebe001161019d578063bc25cf77116100e9578063d21220a7116100a2578063dd62ed3e1161007c578063dd62ed3e146108d8578063ebeb31db14610903578063f140a35a1461090b578063fff6cae91461091e57600080fd5b8063d21220a714610896578063d294f093146108bd578063d505accf146108c557600080fd5b8063bc25cf7714610838578063bda39cad1461084b578063bf944dbc14610854578063c245febc1461085d578063c45a015514610866578063c5700a021461088d57600080fd5b80639af1d35a116101565780639e8cc04b116101305780639e8cc04b146107d25780639f767c88146107e5578063a1ac4d1314610805578063a9059cbb1461082557600080fd5b80639af1d35a1461073a5780639c4f2483146107615780639d63848a1461077457600080fd5b80637ecebe0014610690578063886e40eb146106b057806389afcb44146106b95780638a7b8cf2146106e157806395d89b411461070b5780639a8a05921461071357600080fd5b806330adf81f1161025c5780634d5a9f8a116102155780635a76f25e116101ef5780635a76f25e1461062d57806361d027b3146106365780636a6278421461065d57806370a082311461067057600080fd5b80634d5a9f8a146105e7578063517b3f82146106075780635881c4751461061a57600080fd5b806330adf81f14610487578063313ce567146104ae57806332c0defd146104c85780633644e515146104d1578063392f37e9146104f8578063443cb4bc146105de57600080fd5b806318160ddd116102ae57806318160ddd146103e05780631df8c717146103f7578063205aabf11461041a57806322be3de11461043a57806323b872dd14610461578063252c09d71461047457600080fd5b8063022c0d9f146102f657806306fdde031461030b5780630902f1ac14610329578063095ea7b31461035e5780630dfe16811461038157806313345fe1146103c0575b600080fd5b610309610304366004613574565b610926565b005b610313610fe6565b604051610320919061363a565b60405180910390f35b600954600a54600b54604080516001600160701b03948516815293909216602084015263ffffffff1690820152606001610320565b61037161036c36600461366d565b611074565b6040519015158152602001610320565b6103a87f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca6581565b6040516001600160a01b039091168152602001610320565b6103d36103ce366004613699565b61113d565b60405161032091906136d4565b6103e960035481565b604051908152602001610320565b6103ff611345565b60408051938452602084019290925290820152606001610320565b6103e9610428366004613718565b60116020526000908152604090205481565b6103717f000000000000000000000000000000000000000000000000000000000000000181565b61037161046f366004613735565b6113ad565b6103ff610482366004613776565b6114bb565b6103e97f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b6104b6601281565b60405160ff9091168152602001610320565b6103e9600e5481565b6103e97ffed0439a626322a25cf1a48b45054a29bc716349e3148f6f11a10a013a0cb3d281565b600954600a54604080517f00000000000000000000000000000000000000000000000000000000000f424081527f0000000000000000000000000000000000000000000000000de0b6b3a764000060208201529081019290925260608201527f0000000000000000000000000000000000000000000000000000000000000001151560808201526001600160a01b037f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca65811660a08301527f000000000000000000000000eb8e93a0c7504bffd8a8ffa56cd754c63aaebfe81660c082015260e001610320565b6103e960095481565b6103e96105f5366004613718565b60126020526000908152604090205481565b6103e961061536600461366d565b6114ee565b6103d361062836600461378f565b6115d6565b6103e9600a5481565b6103a87f0000000000000000000000003bb9372989c81d56db64e8aad38401e677b9124481565b6103e961066b366004613718565b6115e5565b6103e961067e366004613718565b60056020526000908152604090205481565b6103e961069e366004613718565b60066020526000908152604090205481565b6103e960075481565b6106cc6106c7366004613718565b611884565b60408051928352602083019190915201610320565b6106e9611bf2565b6040805182518152602080840151908201529181015190820152606001610320565b610313611c72565b6103e97f000000000000000000000000000000000000000000000000000000000000a4b181565b6103a87f000000000000000000000000ae84cf29b67a07d94d1a9a51402c391cb3029f5981565b61030961076f366004613776565b611c7f565b604080516001600160a01b037f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca65811682527f000000000000000000000000eb8e93a0c7504bffd8a8ffa56cd754c63aaebfe816602082015201610320565b6103e96107e036600461378f565b611ddc565b6103e96107f3366004613718565b60106020526000908152604090205481565b6103e9610813366004613718565b60136020526000908152604090205481565b61037161083336600461366d565b611e49565b610309610846366004613718565b611e5f565b6103e9600f5481565b6103e9600c5481565b6103e9600d5481565b6103a87f000000000000000000000000f7a23b9a9dcb8d0aff67012565c5844c20c11afc81565b6103e9600b5481565b6103a87f000000000000000000000000eb8e93a0c7504bffd8a8ffa56cd754c63aaebfe881565b6106cc611fec565b6103096108d33660046137c4565b612113565b6103e96108e636600461383b565b600460209081526000928352604080842090915290825290205481565b6008546103e9565b6103e9610919366004613874565b612391565b6103096123ca565b6000546001146109515760405162461bcd60e51b815260040161094890613899565b60405180910390fd5b60026000819055507f000000000000000000000000f7a23b9a9dcb8d0aff67012565c5844c20c11afc6001600160a01b031663b187bd266040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109db91906138c1565b15610a195760405162461bcd60e51b815260206004820152600e60248201526d537472506169723a20504155534560901b6044820152606401610948565b6000851180610a285750600084115b610a805760405162461bcd60e51b815260206004820152602360248201527f537472506169723a20494e53554646494349454e545f4f55545055545f414d4f60448201526215539560ea1b6064820152608401610948565b600954600a548187108015610a9457508086105b610ae05760405162461bcd60e51b815260206004820152601f60248201527f537472506169723a20494e53554646494349454e545f4c4951554944495459006044820152606401610948565b6000807f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca657f000000000000000000000000eb8e93a0c7504bffd8a8ffa56cd754c63aaebfe86001600160a01b0389811690831614801590610b535750806001600160a01b0316896001600160a01b031614155b610b955760405162461bcd60e51b8152602060048201526013602482015272537472506169723a20494e56414c49445f544f60681b6044820152606401610948565b8a15610baf57610baf6001600160a01b0383168a8d612517565b8915610bc957610bc96001600160a01b0382168a8c612517565b8615610c3657604051639a7bff7960e01b81526001600160a01b038a1690639a7bff7990610c039033908f908f908e908e906004016138e3565b600060405180830381600087803b158015610c1d57600080fd5b505af1158015610c31573d6000803e3d6000fd5b505050505b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015610c7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9e919061392f565b6040516370a0823160e01b81523060048201529094506001600160a01b038216906370a0823190602401602060405180830381865afa158015610ce5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d09919061392f565b9250505060008985610d1b919061395e565b8311610d28576000610d3c565b610d328a8661395e565b610d3c908461395e565b90506000610d4a8a8661395e565b8311610d57576000610d6b565b610d618a8661395e565b610d6b908461395e565b90506000821180610d7c5750600081115b610dd35760405162461bcd60e51b815260206004820152602260248201527f537472506169723a20494e53554646494349454e545f494e5055545f414d4f55604482015261139560f21b6064820152608401610948565b7f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca657f000000000000000000000000eb8e93a0c7504bffd8a8ffa56cd754c63aaebfe88315610e3157610e3160075485610e2c9190613975565b61256e565b8215610e4d57610e4d60075484610e489190613975565b61264c565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015610e91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eb5919061392f565b6040516370a0823160e01b81523060048201529096506001600160a01b038216906370a0823190602401602060405180830381865afa158015610efc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f20919061392f565b9450610f2c8888612722565b610f368787612722565b1015610f715760405162461bcd60e51b815260206004820152600a602482015269537472506169723a204b60b01b6044820152606401610948565b5050610f7f8484888861286e565b60408051838152602081018390529081018c9052606081018b90526001600160a01b038a169033907fd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d8229060800160405180910390a350506001600055505050505050505050565b60018054610ff390613997565b80601f016020809104026020016040519081016040528092919081815260200182805461101f90613997565b801561106c5780601f106110415761010080835404028352916020019161106c565b820191906000526020600020905b81548152906001019060200180831161104f57829003601f168201915b505050505081565b60006001600160a01b0383166110d85760405162461bcd60e51b8152602060048201526024808201527f537472506169723a20417070726f766520746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610948565b3360008181526004602090815260408083206001600160a01b03881680855290835292819020869055518581529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060015b92915050565b606060008367ffffffffffffffff81111561115a5761115a6139cb565b604051908082528060200260200182016040528015611183578160200160208202803683370190505b506008549091506000906111999060019061395e565b905060006111a785876139e1565b6111b1908361395e565b90506000805b83831015611335576111c98784613a00565b91506000600884815481106111e0576111e0613a18565b9060005260206000209060030201600001546008848154811061120557611205613a18565b906000526020600020906003020160000154611221919061395e565b90506000816008868154811061123957611239613a18565b9060005260206000209060030201600101546008868154811061125e5761125e613a18565b90600052602060002090600302016001015461127a919061395e565b6112849190613975565b90506000826008878154811061129c5761129c613a18565b906000526020600020906003020160020154600887815481106112c1576112c1613a18565b9060005260206000209060030201600201546112dd919061395e565b6112e79190613975565b90506112f58c8e84846129d5565b88858151811061130757611307613a18565b602090810291909101015261131d846001613a00565b9350505050868361132e9190613a00565b92506111b7565b509293505050505b949350505050565b600c54600d544260008080611363600954600a54600b549192909190565b63ffffffff1692506001600160701b031692506001600160701b031692508381146113a5576000611394828661395e565b848102979097019683029590950194505b505050909192565b6001600160a01b0383166000818152600460209081526040808320338085529252822054919290919082148015906113e757506000198114155b156114a2578381101561143c5760405162461bcd60e51b815260206004820152601f60248201527f537472506169723a20496e73756666696369656e7420616c6c6f77616e6365006044820152606401610948565b6001600160a01b03868116600081815260046020908152604080832094871680845294825291829020888603908190559151828152919392917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505b6114ad868686612cca565b6001925050505b9392505050565b600881815481106114cb57600080fd5b600091825260209091206003909102018054600182015460029092015490925083565b6000806114f9611bf2565b9050600080611506611345565b5084519193509150420361156e57600880546115249060029061395e565b8154811061153457611534613a18565b9060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201548152505092505b825160009061157d904261395e565b9050600081856020015185611592919061395e565b61159c9190613975565b90506000828660400151856115b1919061395e565b6115bb9190613975565b90506115c9888a84846129d5565b9998505050505050505050565b606061133d848484600161113d565b600080546001146116085760405162461bcd60e51b815260040161094890613899565b60026000908155600954600a546040516370a0823160e01b8152306004820152919290917f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca656001600160a01b0316906370a0823190602401602060405180830381865afa15801561167d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a1919061392f565b6040516370a0823160e01b81523060048201529091506000906001600160a01b037f000000000000000000000000eb8e93a0c7504bffd8a8ffa56cd754c63aaebfe816906370a0823190602401602060405180830381865afa15801561170b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061172f919061392f565b9050600061173d858461395e565b9050600061174b858461395e565b600354909150600081900361178d576103e861176f61176a84866139e1565b612e4b565b611779919061395e565b975061178860006103e8612ebb565b6117c2565b6117bf8761179b83866139e1565b6117a59190613975565b876117b084866139e1565b6117ba9190613975565b612f4e565b97505b600088116118215760405162461bcd60e51b815260206004820152602660248201527f537472506169723a20494e53554646494349454e545f4c49515549444954595f60448201526513525395115160d21b6064820152608401610948565b61182b8989612ebb565b6118378585898961286e565b604080518481526020810184905233917f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f910160405180910390a250506001600055509395945050505050565b6000806000546001146118a95760405162461bcd60e51b815260040161094890613899565b60026000908155600954600a546040516370a0823160e01b8152306004820152919290917f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca65917f000000000000000000000000eb8e93a0c7504bffd8a8ffa56cd754c63aaebfe8916001600160a01b038416906370a0823190602401602060405180830381865afa158015611942573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611966919061392f565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156119b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d4919061392f565b3060009081526005602052604090205460035491925090806119f685846139e1565b611a009190613975565b995080611a0d84846139e1565b611a179190613975565b985060008a118015611a295750600089115b611a845760405162461bcd60e51b815260206004820152602660248201527f537472506169723a20494e53554646494349454e545f4c49515549444954595f60448201526510955493915160d21b6064820152608401610948565b611a8e3083612f64565b611aa26001600160a01b0387168c8c612517565b611ab66001600160a01b0386168c8b612517565b6040516370a0823160e01b81523060048201526001600160a01b038716906370a0823190602401602060405180830381865afa158015611afa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b1e919061392f565b6040516370a0823160e01b81523060048201529094506001600160a01b038616906370a0823190602401602060405180830381865afa158015611b65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b89919061392f565b9250611b9784848a8a61286e565b604080518b8152602081018b90526001600160a01b038d169133917fdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496910160405180910390a350505050505050506001600081905550915091565b611c1660405180606001604052806000815260200160008152602001600081525090565b60088054611c269060019061395e565b81548110611c3657611c36613a18565b90600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282015481525050905090565b60028054610ff390613997565b336001600160a01b03167f000000000000000000000000f7a23b9a9dcb8d0aff67012565c5844c20c11afc6001600160a01b03166361d027b36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ce7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d0b9190613a2e565b6001600160a01b031614611d615760405162461bcd60e51b815260206004820181905260248201527f537472506169723a206e6f7420537472466163746f72792074726561737572796044820152606401610948565b60328111611dd75760405162461bcd60e51b815260206004820152603d60248201527f537472506169723a2046656520746f6f206869676820616d6f756e74202f205f60448201527f7377617046656543686f73656e203d2066656550616964416d6f756e740000006064820152608401610948565b600755565b600080611dec858585600161113d565b90506000805b8251811015611e3457828181518110611e0d57611e0d613a18565b602002602001015182611e209190613a00565b915080611e2c81613a4b565b915050611df2565b50611e3f8482613975565b9695505050505050565b6000611e56338484612cca565b50600192915050565b600054600114611e815760405162461bcd60e51b815260040161094890613899565b60026000556009546040516370a0823160e01b81523060048201527f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca65917f000000000000000000000000eb8e93a0c7504bffd8a8ffa56cd754c63aaebfe891611f569185916001600160a01b038616906370a0823190602401602060405180830381865afa158015611f17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3b919061392f565b611f45919061395e565b6001600160a01b0385169190612517565b600a546040516370a0823160e01b8152306004820152611fe29185916001600160a01b038516906370a0823190602401602060405180830381865afa158015611fa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc7919061392f565b611fd1919061395e565b6001600160a01b0384169190612517565b5050600160005550565b600080611ff833612fef565b505033600090815260126020908152604080832054601390925290912054811515806120245750600081115b1561210f573360008181526012602090815260408083208390556013909152808220919091555163299e7ae760e11b8152600481019190915260248101839052604481018290526001600160a01b037f000000000000000000000000ae84cf29b67a07d94d1a9a51402c391cb3029f59169063533cf5ce90606401600060405180830381600087803b1580156120b957600080fd5b505af11580156120cd573d6000803e3d6000fd5b505060408051858152602081018590523393508392507f865ca08d59f5cb456e85cd2f7ef63664ea4f73327414e9d8152c4158b0e94645910160405180910390a35b9091565b428410156121565760405162461bcd60e51b815260206004820152601060248201526f14dd1c94185a5c8e881156141254915160821b6044820152606401610948565b6001600160a01b038716600090815260066020526040812080547ffed0439a626322a25cf1a48b45054a29bc716349e3148f6f11a10a013a0cb3d2917f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918b918b918b91876121c483613a4b565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810187905260e0016040516020818303038152906040528051906020012060405160200161223d92919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff88169284019290925260608301869052608083018590529092509060019060a0016020604051602081039080840390855afa1580156122a8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906122de5750886001600160a01b0316816001600160a01b0316145b61232a5760405162461bcd60e51b815260206004820152601a60248201527f537472506169723a20494e56414c49445f5349474e41545552450000000000006044820152606401610948565b6001600160a01b038981166000818152600460209081526040808320948d16808452948252918290208b905590518a81527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050505050505050565b600954600a5460075460009291906123a99086613975565b6123b3908661395e565b94506123c1858584846129d5565b95945050505050565b6000546001146123ec5760405162461bcd60e51b815260040161094890613899565b60026000556040516370a0823160e01b8152306004820152612510907f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca656001600160a01b0316906370a0823190602401602060405180830381865afa158015612459573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061247d919061392f565b6040516370a0823160e01b81523060048201527f000000000000000000000000eb8e93a0c7504bffd8a8ffa56cd754c63aaebfe86001600160a01b0316906370a0823190602401602060405180830381865afa1580156124e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612505919061392f565b600954600a5461286e565b6001600055565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261256990849061315b565b505050565b806125c36001600160a01b037f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca65167f000000000000000000000000ae84cf29b67a07d94d1a9a51402c391cb3029f5983612517565b6003546000906125e16d04ee2d6d415b85acef8100000000846139e1565b6125eb9190613975565b9050801561260b5780600e60008282546126059190613a00565b90915550505b604080518381526000602082015233917f112c256902bf554b6ed882d2936687aaeb4225e8cd5b51303c90ca6cf43a860291015b60405180910390a2505050565b806126a16001600160a01b037f000000000000000000000000eb8e93a0c7504bffd8a8ffa56cd754c63aaebfe8167f000000000000000000000000ae84cf29b67a07d94d1a9a51402c391cb3029f5983612517565b6003546000906126bf6d04ee2d6d415b85acef8100000000846139e1565b6126c99190613975565b905080156126e95780600f60008282546126e39190613a00565b90915550505b60408051600081526020810184905233917f112c256902bf554b6ed882d2936687aaeb4225e8cd5b51303c90ca6cf43a8602910161263f565b60007f00000000000000000000000000000000000000000000000000000000000000011561285d5760007f00000000000000000000000000000000000000000000000000000000000f424061277f85670de0b6b3a76400006139e1565b6127899190613975565b905060007f0000000000000000000000000000000000000000000000000de0b6b3a76400006127c085670de0b6b3a76400006139e1565b6127ca9190613975565b90506000670de0b6b3a76400006127e183856139e1565b6127eb9190613975565b90506000670de0b6b3a764000061280284806139e1565b61280c9190613975565b670de0b6b3a764000061281f86806139e1565b6128299190613975565b6128339190613a00565b9050670de0b6b3a764000061284882846139e1565b6128529190613975565b945050505050611137565b61286782846139e1565b9050611137565b600b544290600090612880908361395e565b905060008111801561289157508315155b801561289c57508215155b156128b657600c8054858302019055600d80548483020190555b60006128c0611bf2565b80519091506128cf908461395e565b91506107088211156129845760408051606081018252848152600c5460208201908152600d549282019283526008805460018101825560009190915291517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600390930292830155517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee482015590517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee5909101555b6009879055600a869055600b83905560408051888152602081018890527fcf2aa50876cdfbb541206f89af0ee78d44a2abf8d328e37fa4917f982149848a910160405180910390a150505050505050565b60007f000000000000000000000000000000000000000000000000000000000000000115612c58576000612a098484612722565b90507f00000000000000000000000000000000000000000000000000000000000f4240612a3e85670de0b6b3a76400006139e1565b612a489190613975565b93507f0000000000000000000000000000000000000000000000000de0b6b3a7640000612a7d84670de0b6b3a76400006139e1565b612a879190613975565b92506000807f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca656001600160a01b0316876001600160a01b031614612acc578486612acf565b85855b915091507f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca656001600160a01b0316876001600160a01b031614612b4e577f0000000000000000000000000000000000000000000000000de0b6b3a7640000612b3f89670de0b6b3a76400006139e1565b612b499190613975565b612b8b565b7f00000000000000000000000000000000000000000000000000000000000f4240612b8189670de0b6b3a76400006139e1565b612b8b9190613975565b97506000612ba3612b9c848b613a00565b858461322d565b612bad908361395e565b9050670de0b6b3a76400007f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca656001600160a01b0316896001600160a01b031614612c17577f00000000000000000000000000000000000000000000000000000000000f4240612c39565b7f0000000000000000000000000000000000000000000000000de0b6b3a76400005b612c4390836139e1565b612c4d9190613975565b94505050505061133d565b6000807f000000000000000000000000e80772eaf6e2e18b651f160bc9158b2a5cafca656001600160a01b0316866001600160a01b031614612c9b578385612c9e565b84845b9092509050612cad8783613a00565b612cb782896139e1565b612cc19190613975565b9250505061133d565b6001600160a01b038216612d2e5760405162461bcd60e51b815260206004820152602560248201527f537472506169723a205472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610948565b612d3783612fef565b612d4082612fef565b6001600160a01b03831660009081526005602052604090205481811015612dba5760405162461bcd60e51b815260206004820152602860248201527f537472506169723a205472616e7366657220616d6f756e7420657863656564736044820152672062616c616e636560c01b6064820152608401610948565b6001600160a01b03808516600090815260056020526040808220858503905591851681529081208054849290612df1908490613a00565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612e3d91815260200190565b60405180910390a350505050565b60006003821115612eac5750806000612e65600283613975565b612e70906001613a00565b90505b81811015612ea657905080600281612e8b8186613975565b612e959190613a00565b612e9f9190613975565b9050612e73565b50919050565b8115612eb6575060015b919050565b612ec482612fef565b8060036000828254612ed69190613a00565b90915550506001600160a01b03821660009081526005602052604081208054839290612f03908490613a00565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6000818310612f5d57816114b4565b5090919050565b612f6d82612fef565b8060036000828254612f7f919061395e565b90915550506001600160a01b03821660009081526005602052604081208054839290612fac90849061395e565b90915550506040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001612f42565b6001600160a01b0381166000908152600560205260409020548015613129576001600160a01b0382166000908152601060209081526040808320805460118085529285208054600e54600f54948190559490955282905593613051858461395e565b9050600061305f858461395e565b905081156130c05760006d04ee2d6d415b85acef8100000000613082848a6139e1565b61308c9190613975565b6001600160a01b038a166000908152601260205260408120805492935083929091906130b9908490613a00565b9091555050505b801561311f5760006d04ee2d6d415b85acef81000000006130e1838a6139e1565b6130eb9190613975565b6001600160a01b038a16600090815260136020526040812080549293508392909190613118908490613a00565b9091555050505b5050505050505050565b600e546001600160a01b038316600090815260106020908152604080832093909355600f546011909152919020555050565b60006131b0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661330f9092919063ffffffff16565b80519091501561256957808060200190518101906131ce91906138c1565b6125695760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610948565b6000805b60ff8110156133065782600061324787836133d5565b90508581101561329757600061325d8887613472565b613267838961395e565b61327990670de0b6b3a76400006139e1565b6132839190613975565b905061328f8187613a00565b9550506132d9565b60006132a38887613472565b6132ad888461395e565b6132bf90670de0b6b3a76400006139e1565b6132c99190613975565b90506132d5818761395e565b9550505b6132e5858360016134da565b156132f1575050613306565b505080806132fe90613a4b565b915050613231565b50909392505050565b60606001600160a01b0384163b6133685760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610948565b600080856001600160a01b0316856040516133839190613a64565b6000604051808303816000865af19150503d80600081146133c0576040519150601f19603f3d011682016040523d82523d6000602084013e6133c5565b606091505b5091509150611e3f828286613523565b6000670de0b6b3a7640000828185816133ee82806139e1565b6133f89190613975565b61340291906139e1565b61340c9190613975565b61341691906139e1565b6134209190613975565b670de0b6b3a764000080848161343682806139e1565b6134409190613975565b61344a91906139e1565b6134549190613975565b61345e90866139e1565b6134689190613975565b6114b49190613a00565b6000670de0b6b3a7640000838161348982806139e1565b6134939190613975565b61349d91906139e1565b6134a79190613975565b670de0b6b3a7640000806134bb85806139e1565b6134c59190613975565b6134d08660036139e1565b61345e91906139e1565b60008284111561350157816134ef848661395e565b116134fc575060016114b4565b613519565b8161350c858561395e565b11613519575060016114b4565b5060009392505050565b606083156135325750816114b4565b8251156135425782518084602001fd5b8160405162461bcd60e51b8152600401610948919061363a565b6001600160a01b038116811461357157600080fd5b50565b60008060008060006080868803121561358c57600080fd5b853594506020860135935060408601356135a58161355c565b9250606086013567ffffffffffffffff808211156135c257600080fd5b818801915088601f8301126135d657600080fd5b8135818111156135e557600080fd5b8960208285010111156135f757600080fd5b9699959850939650602001949392505050565b60005b8381101561362557818101518382015260200161360d565b83811115613634576000848401525b50505050565b602081526000825180602084015261365981604085016020870161360a565b601f01601f19169190910160400192915050565b6000806040838503121561368057600080fd5b823561368b8161355c565b946020939093013593505050565b600080600080608085870312156136af57600080fd5b84356136ba8161355c565b966020860135965060408601359560600135945092505050565b6020808252825182820181905260009190848201906040850190845b8181101561370c578351835292840192918401916001016136f0565b50909695505050505050565b60006020828403121561372a57600080fd5b81356114b48161355c565b60008060006060848603121561374a57600080fd5b83356137558161355c565b925060208401356137658161355c565b929592945050506040919091013590565b60006020828403121561378857600080fd5b5035919050565b6000806000606084860312156137a457600080fd5b83356137af8161355c565b95602085013595506040909401359392505050565b600080600080600080600060e0888a0312156137df57600080fd5b87356137ea8161355c565b965060208801356137fa8161355c565b95506040880135945060608801359350608088013560ff8116811461381e57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561384e57600080fd5b82356138598161355c565b915060208301356138698161355c565b809150509250929050565b6000806040838503121561388757600080fd5b8235915060208301356138698161355c565b6020808252600e908201526d1499595b9d1c985b9d0818d85b1b60921b604082015260600190565b6000602082840312156138d357600080fd5b815180151581146114b457600080fd5b60018060a01b038616815284602082015283604082015260806060820152816080820152818360a0830137600081830160a090810191909152601f909201601f19160101949350505050565b60006020828403121561394157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008282101561397057613970613948565b500390565b60008261399257634e487b7160e01b600052601260045260246000fd5b500490565b600181811c908216806139ab57607f821691505b602082108103612ea657634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60008160001904831182151516156139fb576139fb613948565b500290565b60008219821115613a1357613a13613948565b500190565b634e487b7160e01b600052603260045260246000fd5b600060208284031215613a4057600080fd5b81516114b48161355c565b600060018201613a5d57613a5d613948565b5060010190565b60008251613a7681846020870161360a565b919091019291505056fea264697066735822122075d3bf894731c1109d991bf2755bc58d506ea9dba8009c75910d42300072923f64736f6c634300080d0033

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.