Contract 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd 11

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x53b764fd4736c41e1bbaaa0dc28fbc3ff0df9756adf51823a93aa919ca5a5743Claim G Fly2040537812024-04-23 16:31:079 hrs 33 mins ago0xa82397eccf75526603c5f6e32fe9291467993cc7 IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000242 0.01
0x3cf48f467a85c4ce4eec0a6a67bd9623942f3ffec7dbe9c723cdc64232fedfb5Claim G Fly2039195282024-04-23 7:00:3019 hrs 3 mins ago0xfe52613d747e20f2f62e0a5cc36b0dfae771c442 IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000128 0.01
0x65c3a1349b530519c3c6972cefaa31e2a41071ac36a89f76b8332e10b5922cddClaim G Fly2035955802024-04-22 8:12:281 day 17 hrs ago0x8114e78965b7f7e52e35b2cfbe33973a4ef320cb IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000151 0.01
0x277969ed5e0b8be27ab3abab6b7f5501db0669447b5b48072e48e29446c7c9afClaim G Fly2035814152024-04-22 7:12:431 day 18 hrs ago0x78063ed58edea4ae4981946d6b4cc63d8928ccbc IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.000001980.01
0xc8c21768dbd6eb6f83401b9d35a17f17151a1437592a452d5315ec75d7a42e36Claim G Fly2033834362024-04-21 17:20:082 days 8 hrs ago0x9e15c6fc8089730e7c26aaf2d6193dfcfedbfdbe IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000161 0.01
0xb3b98af9d884f0d5c95e734b60579f7024387a6a2033d0084246fb7768f0c896Claim G Fly2030951982024-04-20 21:09:373 days 4 hrs ago0x9ca9a4abf331b4675a50b1e4489cf4a49ff2f293 IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000193 0.01
0xa0b14e2197d2082c20ed8c48eb5795d32357bc48cd9fb95ac8be6fad684c4fefClaim G Fly2026331902024-04-19 12:38:034 days 13 hrs ago0xa89b2b5a4f6b2e2666559144622f6867d850d1ba IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000211 0.01
0xc2acc477d91888fa5f66b79375fc1e38ba6a7d369c84638e30521644d7f3b878Claim G Fly2023289422024-04-18 14:55:295 days 11 hrs ago0x2fdd5c50e41af0f604d88d40cb57a56b856f1d2b IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000228 0.01
0x87df06d107582a1187fa143cda1c504128f9ca78c9622d56e6557ae931025a72Claim G Fly2022193222024-04-18 7:11:595 days 18 hrs ago0x87046466a53e9972db029364e564b0755ba12e7f IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000215 0.01
0xf6a649e420d8777f91faae7b328e590480123b97ec74bb5d09a3e18cd048955bClaim G Fly2022189362024-04-18 7:10:235 days 18 hrs ago0x3ff06dbd61eec8443c634ecabb765e4cce1ad2aa IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000209 0.01
0x7eb1352a8123c608ebca6ec5ba58e2f992fbc8a9577533d121ab61f9c13fcf07Claim G Fly2022161802024-04-18 6:58:435 days 19 hrs ago0xfe52613d747e20f2f62e0a5cc36b0dfae771c442 IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000204 0.01
0xcf6ee35428caf1674a81b242f1954ba2627d402b2851385de4b0afef7b4bfeefClaim G Fly2020640132024-04-17 20:14:316 days 5 hrs ago0x4ef500abe8c3524e93b67821224131e0591ba25f IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.0000016 0.01
0x02a918f4d8b2c24b07f1d44fa6696813c874678cabf53c444ad9bfb4b7818a95Claim G Fly2020387282024-04-17 18:27:326 days 7 hrs ago0x9ca9a4abf331b4675a50b1e4489cf4a49ff2f293 IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000237 0.01
0xd7ab8a599391bfb43fb766d9d0e332c75c068dc39c0afe02b9a681d5cbb95e00Claim G Fly2020030792024-04-17 15:56:186 days 10 hrs ago0x855bd65907484e5968e0f3c8651186da61d74be5 IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.0000079 0.047838
0x6cd0217aad4939f9a16778222b3ced27c805e088e7821c70549af11a08dca116Claim G Fly2013302462024-04-15 16:26:598 days 9 hrs ago0xd7ce367fa0e74f11ae934939712ff2e3d634b5e7 IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000154 0.01
0xa211b5bb3e05dc58030ed98d7dcda9033ece99a9c6a8fbdb88589ab98a5d0100Claim G Fly2013120682024-04-15 15:09:538 days 10 hrs ago0x9ca9a4abf331b4675a50b1e4489cf4a49ff2f293 IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00001846 0.10026
0x62f91b244a7310816096dd3478b45c335934ea20de312ee2dd84f3525870ce2aClaim G Fly2011472062024-04-15 3:36:518 days 22 hrs ago0x8966fdf202807726c4686a69e3b41f2f8ec5a19f IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000217 0.01
0x8b61f001e2c1b505270d4405f53bd44e42a111fae2512b1a7d07afbda5ea4840Claim G Fly2010670792024-04-14 22:00:479 days 4 hrs ago0xfe52613d747e20f2f62e0a5cc36b0dfae771c442 IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.0000028 0.014693
0x2f78459d5dcce9d7a2b39fa3f41f6667f7549e7e32e11a7808f555f7fcfb4c8dClaim G Fly2007324252024-04-13 22:27:0210 days 3 hrs ago0xfe52613d747e20f2f62e0a5cc36b0dfae771c442 IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00002494 0.129162
0x5e932bacc6ee40b37b2240f057e4f391973274c12b79436d42218b827d1e2d48Claim G Fly2006170232024-04-13 14:21:1010 days 11 hrs ago0x855bd65907484e5968e0f3c8651186da61d74be5 IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000163 0.01
0x1eb85abecfb39a5424712572ee5b79516005a1e7994369ab2964211dfe9d4db5Claim G Fly2002362472024-04-12 11:39:1311 days 14 hrs ago0xfe52613d747e20f2f62e0a5cc36b0dfae771c442 IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000199 0.01
0x8238c36d94c1efa94738a83079e73a1a4a3da2f7bb2c226d51bddfaaf3aba142Claim G Fly1998154402024-04-11 6:14:2712 days 19 hrs ago0x2fdd5c50e41af0f604d88d40cb57a56b856f1d2b IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000203 0.01
0xe5bc958f47af3bf593ce2a357c8f5b3a954c6ea1459b1dd4ec81506eafce0653Claim G Fly1994541252024-04-10 4:59:1113 days 21 hrs ago0x87046466a53e9972db029364e564b0755ba12e7f IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000224 0.01
0x0b368faddbbffde1c9b7691b956fb95dfb24d07aa4059625b5d31fa591eae539Claim G Fly1994505152024-04-10 4:44:0913 days 21 hrs ago0x3ff06dbd61eec8443c634ecabb765e4cce1ad2aa IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000206 0.01
0x6726c4f7107d82c06d3956926a386c4a2b9ea50b5c6d3dbc935721d728492aa6Claim G Fly1993178552024-04-09 19:28:5414 days 6 hrs ago0x9ca9a4abf331b4675a50b1e4489cf4a49ff2f293 IN  0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH0.00000249 0.01
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x9cf27a1fee309067b42386083a6b405a6ea96faa465ffb78a21db82545e773b7720848012023-03-21 10:11:06399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x97f21dcd1ab4ec94c4ca2041527be1457938096729bcb0f3a2a72a2b1ca1a03d720847742023-03-21 10:10:59399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x97f21dcd1ab4ec94c4ca2041527be1457938096729bcb0f3a2a72a2b1ca1a03d720847742023-03-21 10:10:59399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x97f21dcd1ab4ec94c4ca2041527be1457938096729bcb0f3a2a72a2b1ca1a03d720847742023-03-21 10:10:59399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x97f21dcd1ab4ec94c4ca2041527be1457938096729bcb0f3a2a72a2b1ca1a03d720847742023-03-21 10:10:59399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x900df6c007a8d01cd7f6402d875e301252a66304b2120d52dbc116357d4119ae720847302023-03-21 10:10:48399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x900df6c007a8d01cd7f6402d875e301252a66304b2120d52dbc116357d4119ae720847302023-03-21 10:10:48399 days 15 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x900df6c007a8d01cd7f6402d875e301252a66304b2120d52dbc116357d4119ae720847302023-03-21 10:10:48399 days 15 hrs ago 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd BattleFly: GFLY Token0 ETH
0x2e43a9ccadaab29e27e81451ea045908234ecf4782f04fb40ac65059c33c5042720702792023-03-21 9:11:18399 days 16 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x2e43a9ccadaab29e27e81451ea045908234ecf4782f04fb40ac65059c33c5042720702792023-03-21 9:11:18399 days 16 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x2e43a9ccadaab29e27e81451ea045908234ecf4782f04fb40ac65059c33c5042720702792023-03-21 9:11:18399 days 16 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
0x2e43a9ccadaab29e27e81451ea045908234ecf4782f04fb40ac65059c33c5042720702792023-03-21 9:11:18399 days 16 hrs ago BattleFly: GFLY Token 0x86d643b7f4a2a6772a4b1bfbee5ece46a1de3dfd0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VestedGFly

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 100 runs

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

pragma solidity 0.8.17;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/math/Math.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "abdk-libraries-solidity/ABDKMath64x64.sol";
import "../interfaces/gFly/IVestedGFly.sol";
import "../interfaces/gFly/IGFly.sol";

//MMMMWKl.                                            .:0WMMMM//
//MMMWk,                                                .dNMMM//
//MMNd.                                                  .lXMM//
//MWd.    .','''....                         .........    .lXM//
//Wk.     ';......'''''.                ..............     .dW//
//K;     .;,         ..,'.            ..'..         ...     'O//
//d.     .;;.           .''.        ..'.            .'.      c//
//:       .','.           .''.    ..'..           ....       '//
//'         .';.            .''...'..           ....         .//
//.           ';.             .''..             ..           .//
//.            ';.                             ...           .//
//,            .,,.                           .'.            .//
//c             .;.                           '.             ;//
//k.            .;.             .             '.            .d//
//Nl.           .;.           .;;'            '.            :K//
//MK:           .;.          .,,',.           '.           'OW//
//MM0;          .,,..       .''  .,.       ...'.          'kWM//
//MMMK:.          ..'''.....'..   .'..........           ,OWMM//
//MMMMXo.             ..'...        ......             .cKMMMM//
//MMMMMWO:.                                          .,kNMMMMM//
//MMMMMMMNk:.                                      .,xXMMMMMMM//
//MMMMMMMMMNOl'.                                 .ckXMMMMMMMMM//

contract VestedGFly is AccessControl, ERC20, ReentrancyGuard, IVestedGFly {
    using ABDKMath64x64 for uint256;
    using EnumerableSet for EnumerableSet.UintSet;

    /// @dev The identifier of the role which maintains other roles.
    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN");
    /// @dev The identifier of the role which allows accounts to manage vestings.
    bytes32 public constant VESTING_MANAGER_ROLE = keccak256("VESTING_MANAGER");

    int128 public COEFFICIENT_A;
    int128 public COEFFICIENT_B;
    uint256 private SECONDS_IN_MONTH;

    mapping(uint256 => uint128) public claimedByVestingId;
    mapping(uint256 => VestingPosition) public vestingPosition;
    mapping(address => EnumerableSet.UintSet) private vestingIdsByAddress;

    IGFly public gFly;

    uint256 public override unminted;
    uint256 public currentVestingId;

    constructor(address gFly_, address dao) ERC20("vgFLY", "VGFLY") {
        require(gFly_ != address(0), "VestedGFly:INVALID_ADDRESS");
        require(dao != address(0), "VestedGFly:INVALID_ADDRESS");

        _setupRole(ADMIN_ROLE, dao);
        _setupRole(ADMIN_ROLE, msg.sender); // This will be surrendered after deployment
        _setRoleAdmin(ADMIN_ROLE, ADMIN_ROLE);
        _setRoleAdmin(VESTING_MANAGER_ROLE, ADMIN_ROLE);

        gFly = IGFly(gFly_);
        COEFFICIENT_A = 510445346680717146; //  0.0276712976903175 in signed 64.64-bit fixed point number.
        COEFFICIENT_B = 934732469242685894; //  0.0506719486922830 in signed 64.64-bit fixed point number.
        SECONDS_IN_MONTH = 2628000;
    }

    modifier onlyAdmin() {
        require(hasRole(ADMIN_ROLE, msg.sender), "VestedGFly:ACCESS_DENIED");
        _;
    }

    modifier onlyVestingManager() {
        require(hasRole(VESTING_MANAGER_ROLE, msg.sender), "VestedGFly:ACCESS_DENIED");
        _;
    }

    /**
     * @dev Add a new vesting position for an account given the amount, burnable percentage and the initial unlockable amount
     */
    function addVestingPosition(
        address owner,
        uint256 amount,
        bool burnable,
        uint256 initialUnlockable,
        uint256 employmentTimestamp
    ) external override onlyAdmin {
        require(amount > 0, "VestedGFly:CANNOT_VEST_0");
        require(initialUnlockable <= amount, "VestedGFly:CANNOT_UNLOCK_MORE_THAN_TOTAL");
        require(
            unminted + totalSupply() + gFly.totalSupply() + amount <= gFly.MAX_SUPPLY(),
            "VestedGFly:SUPPLY_OVERFLOW"
        );
        if (burnable) {
            require(employmentTimestamp <= block.timestamp, "VestedGFly:CANNOT_SET_A_FUTURE_EMPLOYMENT_DATE");
        } else {
            employmentTimestamp = 0;
        }
        unminted += amount;
        currentVestingId++;
        vestingPosition[currentVestingId] = VestingPosition(
            burnable,
            false,
            owner,
            block.timestamp,
            block.timestamp,
            employmentTimestamp,
            amount,
            amount,
            initialUnlockable,
            0,
            0,
            0
        );
        vestingIdsByAddress[owner].add(currentVestingId);
        emit VestingPositionAdded(owner, currentVestingId, amount, burnable, initialUnlockable, block.timestamp);
    }

    /**
     * @dev Function to mint VestedGFly for vested positions
     */
    function mint() external override nonReentrant {
        for (uint256 i = 0; i < vestingIdsByAddress[msg.sender].values().length; i++) {
            uint256 vestingId = vestingIdsByAddress[msg.sender].at(i);
            if (!vestingPosition[vestingId].minted) {
                unminted -= vestingPosition[vestingId].initialAllocation;
                vestingPosition[vestingId].minted = true;
                _mint(msg.sender, vestingPosition[vestingId].initialAllocation);
                emit Minted(msg.sender, vestingId, vestingPosition[vestingId].initialAllocation);
            }
        }
    }

    /**
     * @dev Function to burn VestedGFly from vested positions
     */
    function burn(uint256 vestingId, uint256 amount) external override onlyAdmin {
        require(vestingPosition[vestingId].burnable, "VestedGFly:POSITION_NOT_BURNABLE");
        require(
            vestingPosition[vestingId].employeeBurnt + amount <= maxBurnable(vestingId),
            "VestedGFly:EMPLOYEE_BURN_AMOUNT_EXCEEDED"
        );
        _claimGFly(vestingId);
        _burnPosition(vestingId, amount);
        vestingPosition[vestingId].employeeBurnt += amount;
        emit Burned(vestingPosition[vestingId].owner, vestingId, amount);
    }

    /**
     * @dev Function to burn all VestedGFly from vested positions
     */
    function burnAll(uint256 vestingId) external override onlyAdmin {
        require(vestingPosition[vestingId].burnable, "VestedGFly:POSITION_NOT_BURNABLE");
        _claimGFly(vestingId);
        uint256 toBeVested = vestingPosition[vestingId].initialAllocation -
        vestingPosition[vestingId].burnt -
        claimedByVestingId[vestingId];
        uint256 burnable = Math.min(toBeVested,maxBurnable(vestingId));
        _burnPosition(vestingId, burnable);
        vestingPosition[vestingId].employeeBurnt += burnable;
        emit Burned(vestingPosition[vestingId].owner, vestingId, burnable);
    }

    /**
     * @dev Function to transfer a vested position for a specified amount to a new owner.
     * This function is created to facilitate the setup of an OTC market for vested positions.
     * The new vesting position will follow the emissions schedule of the old position.
     * The remaining to be vested tokens of the original vesting position will be: toBeVestedBeforeTransfer - amount
     */
    function transferVestingPosition(
        uint256 vestingId,
        uint256 amount,
        address newOwner
    ) external override onlyVestingManager {
        require(amount > 0, "VestedGFly:CANNOT_TRANSFER_0");
        _claimGFly(vestingId);
        uint256 previouslyBurnt = vestingPosition[vestingId].burnt;
        uint256 previouslyRemaining = vestingPosition[vestingId].remainingAllocation;
        uint256 toBeVested = vestingPosition[vestingId].initialAllocation -
            previouslyBurnt -
            claimedByVestingId[vestingId];
        require(toBeVested >= amount, "VestedGFly:INSUFFICIENT_VESTING_AMOUNT");
        _burnPosition(vestingId, amount);
        currentVestingId++;
        vestingPosition[currentVestingId] = VestingPosition(
            false,
            true,
            newOwner,
            vestingPosition[vestingId].startTime,
            block.timestamp,
            0,
            ((previouslyRemaining) * amount) / toBeVested,
            amount,
            0,
            0,
            0,
            0
        );
        vestingIdsByAddress[newOwner].add(currentVestingId);
        _mint(newOwner, amount);
        emit VestingPositionTransfered(vestingPosition[vestingId].owner, vestingId, newOwner, currentVestingId, amount);
    }

    /**
     * @dev Function to claim all GFly (burn VestedGFly following vesting schedule and mint GFly 1 to 1)
     */
    function claimAllGFly() external override nonReentrant {
        for (uint256 i = 0; i < vestingIdsByAddress[msg.sender].values().length; i++) {
            uint256 vestingId = vestingIdsByAddress[msg.sender].at(i);
            if (vestingPosition[vestingId].minted) {
                _claimGFly(vestingId);
            }
        }
    }

    /**
     * @dev Function to claim GFly for a specific vestingId (burn VestedGFly following vesting schedule and mint GFly 1 to 1)
     */
    function claimGFly(uint256 vestingId) external override nonReentrant {
        require(vestingPosition[vestingId].owner == msg.sender, "VestedGFly:NOT_OWNER_OF_VESTING");
        _claimGFly(vestingId);
    }

    /**
     * @dev Get the total amount of vested tokens of an account.
     */
    function totalVestedOf(address account) external view override returns (uint256 total) {
        for (uint256 i = 0; i < vestingIdsByAddress[account].values().length; i++) {
            uint256 vestingId = vestingIdsByAddress[account].at(i);
            (uint256 vested, , ) = _vestingSnapshot(vestingId, block.timestamp);
            total += vested;
        }
    }

    /**
     * @dev Get the amount of vested tokens of vesting object.
     */
    function vestedOf(uint256 vestingId) external view override returns (uint256) {
        (uint256 vested, , ) = _vestingSnapshot(vestingId, block.timestamp);
        return vested;
    }

    /**
     * @dev Get the total amount of claimable GFly of an account.
     */
    function totalClaimableOf(address account) external view override returns (uint256 total) {
        for (uint256 i = 0; i < vestingIdsByAddress[account].values().length; i++) {
            uint256 vestingId = vestingIdsByAddress[account].at(i);
            (uint256 vested, uint256 claimed, uint256 balance) = _vestingSnapshot(vestingId, block.timestamp);
            uint256 claimable = vested >= claimed ? vested - claimed : 0;
            total += Math.min(claimable, balance);
        }
    }

    /**
     * @dev Get the amount of claimable GFly of a vesting object.
     */
    function claimableOf(uint256 vestingId) public view override returns (uint256) {
        (uint256 vested, uint256 claimed, uint256 balance) = _vestingSnapshot(vestingId, block.timestamp);
        uint256 claimable = vested >= claimed ? vested - claimed : 0;
        return Math.min(claimable, balance);
    }

    /**
     * @dev Get the total claimed amount of VestedGFly of an account.
     */
    function totalClaimedOf(address account) external view override returns (uint256 total) {
        for (uint256 i = 0; i < vestingIdsByAddress[account].values().length; i++) {
            uint256 vestingId = vestingIdsByAddress[account].at(i);
            (, uint256 claimed, ) = _vestingSnapshot(vestingId, block.timestamp);
            total += claimed;
        }
    }

    /**
     * @dev Get the claimed amount of VestedGFly of a vesting object
     */
    function claimedOf(uint256 vestingId) external view override returns (uint256) {
        (, uint256 claimed, ) = _vestingSnapshot(vestingId, block.timestamp);
        return claimed;
    }

    /**
     * @dev Get the total balance of vestedGFly of an account.
     */
    function totalBalance(address account) external view override returns (uint256 total) {
        total = balanceOf(account);
    }

    /**
     * @dev Get the VestedGFly balance of a vesting object.
     */
    function balanceOfVesting(uint256 vestingId) external view override returns (uint256) {
        (, , uint256 balance) = _vestingSnapshot(vestingId, block.timestamp);
        return balance;
    }

    /**
     * @dev Get the amount of claimable GFly of a vesting object at a certain point in time.
     */
    function claimableOfAtTimestamp(uint256 vestingId, uint256 timestamp) external view override returns (uint256) {
        (uint256 vested, uint256 claimed, uint256 balance) = _vestingSnapshot(
            vestingId,
            Math.max(block.timestamp, timestamp)
        );
        uint256 claimable = vested >= claimed ? vested - claimed : 0;
        return Math.min(claimable, balance);
    }

    /**
     * @dev Get the vestingIds of an address
     */
    function getVestingIdsOfAddress(address account) external view override returns (uint256[] memory) {
        return vestingIdsByAddress[account].values();
    }

    /**
     * @dev Get maximum burnable amount of a vesting object.
     * This is based on the time difference since when an employee started working and the current time on a 36 months timeline.
     */
    function maxBurnable(uint256 vestingId) public view override returns (uint256 burnable) {
        burnable = 0;
        if (vestingPosition[vestingId].burnable) {
            uint256 elapsedTime = Math.min(
                block.timestamp - vestingPosition[vestingId].employmentTimestamp,
                SECONDS_IN_MONTH * 36
            );
            burnable =
                vestingPosition[vestingId].initialAllocation -
                ((elapsedTime * vestingPosition[vestingId].initialAllocation) / (SECONDS_IN_MONTH * 36));
        }
    }

    function _burnPosition(uint256 vestingId, uint256 amount) internal {
        if (vestingPosition[vestingId].initialAllocation > 0 && amount > 0) {
            uint256 vestedAtLastBurn = claimedByVestingId[vestingId];
            vestingPosition[vestingId].vestedAtLastBurn = vestedAtLastBurn;
            vestingPosition[vestingId].lastBurnTime = block.timestamp;
            uint256 toBeVested = vestingPosition[vestingId].initialAllocation -
                vestingPosition[vestingId].burnt -
                vestedAtLastBurn;
            require(amount <= toBeVested, "VestedGFly:NOT_ENOUGH_AVAILABLE_FOR_BURN");
            vestingPosition[vestingId].burnt += amount;
            vestingPosition[vestingId].remainingAllocation =
                (vestingPosition[vestingId].remainingAllocation * (toBeVested - amount)) /
                toBeVested;
            _burn(vestingPosition[vestingId].owner, amount);
        }
    }

    function _claimGFly(uint256 vestingId) internal {
        require(vestingPosition[vestingId].initialAllocation > 0, "VestedGFly:UNEXISTING_VESTING_POSITION");
        require(vestingPosition[vestingId].minted, "VestedGFly:CANNOT_CLAIM_UNMINTED_POSITION");
        address owner = vestingPosition[vestingId].owner;
        uint256 claimable = _claim(vestingId);
        if (claimable > 0) {
            gFly.mint(owner, claimable);
        }
    }

    function _claim(uint256 vestingId) private returns (uint128 claimable) {
        claimable = uint128(claimableOf(vestingId));
        if (claimable > 0) {
            claimedByVestingId[vestingId] += claimable;
            _burn(vestingPosition[vestingId].owner, claimable);
            emit GFlyClaimed(vestingPosition[vestingId].owner, vestingId, claimable);
        }
    }

    function _partlyBurned(uint256 vestingId) internal view returns (bool) {
        return vestingPosition[vestingId].lastBurnTime > vestingPosition[vestingId].startTime;
    }

    function _getVestingStartAndEnd(uint256 vestingId, uint256 currentTime)
        internal
        view
        returns (
            uint256 startMonth,
            uint256 currentMonth,
            uint256 secondsInStartMonth,
            uint256 secondsInCurrentMonth
        )
    {
        startMonth = 1;

        if (_partlyBurned(vestingId)) {
            startMonth +=
                (vestingPosition[vestingId].lastBurnTime - vestingPosition[vestingId].startTime) /
                SECONDS_IN_MONTH;
        }
        uint256 passedSeconds = currentTime - vestingPosition[vestingId].startTime;
        currentMonth = passedSeconds / SECONDS_IN_MONTH;
        secondsInCurrentMonth = passedSeconds - (currentMonth * SECONDS_IN_MONTH);

        passedSeconds = vestingPosition[vestingId].lastBurnTime - vestingPosition[vestingId].startTime;
        uint256 lastBurnMonth = passedSeconds / SECONDS_IN_MONTH;
        secondsInStartMonth = SECONDS_IN_MONTH - (passedSeconds - (lastBurnMonth * SECONDS_IN_MONTH));
        if (currentMonth == lastBurnMonth) {
            secondsInStartMonth -= (SECONDS_IN_MONTH - secondsInCurrentMonth);
        }
        currentMonth += 1;
    }

    function _vestingSnapshot(uint256 vestingId, uint256 timestamp)
        internal
        view
        returns (
            uint256,
            uint256,
            uint256
        )
    {
        uint128 claimed = claimedByVestingId[vestingId];
        uint256 balance = vestingPosition[vestingId].minted
            ? (vestingPosition[vestingId].initialAllocation - vestingPosition[vestingId].burnt - claimed)
            : 0;
        return (_totalVestedOf(vestingId, vestingPosition[vestingId].remainingAllocation, timestamp), claimed, balance);
    }

    /**
     * @dev Internal function to calculate the total amount of vested tokens at a certain moment in time.
     * This follows the following equation: y = a*P*e^(b*x), where:
     * a = coefficient a (0.0276712976903175)
     * b = coefficient b (0.0506719486922830)
     * P = percentage of tokens allocated on a total of 8.5 million.
     * e = eulers number
     * x = month since start
     */
    function _totalVestedOf(
        uint256 vestingId,
        uint256 remainingAllocation,
        uint256 currentTime
    ) internal view returns (uint256 total) {
        if (currentTime < vestingPosition[vestingId].startTime) {
            return 0;
        }
        (
            uint256 startMonth,
            uint256 currentMonth,
            uint256 secondsInStartMonth,
            uint256 secondsInCurrentMonth
        ) = _getVestingStartAndEnd(vestingId, currentTime);

        int128 percentageAllocation = ABDKMath64x64.divu(remainingAllocation, 85e5 * 1 ether);
        if (_partlyBurned(vestingId)) {
            total += vestingPosition[vestingId].vestedAtLastBurn;
        } else {
            total += vestingPosition[vestingId].initialUnlockable;
        }

        for (uint256 month = startMonth; month <= Math.min(currentMonth, 36); month++) {
            uint256 secondsInMonth = SECONDS_IN_MONTH;
            if (month == startMonth && _partlyBurned(vestingId)) {
                secondsInMonth = secondsInStartMonth;
            } else if (month == currentMonth) {
                secondsInMonth = secondsInCurrentMonth;
            }
            total +=
                secondsInMonth *
                ABDKMath64x64.mulu(
                    ABDKMath64x64.mul(
                        COEFFICIENT_A,
                        ABDKMath64x64.mul(
                            percentageAllocation,
                            ABDKMath64x64.exp(ABDKMath64x64.mul(COEFFICIENT_B, ABDKMath64x64.fromUInt(month)))
                        )
                    ),
                    1e18
                );
        }
        total = Math.min(total, vestingPosition[vestingId].initialAllocation - vestingPosition[vestingId].burnt);
    }

    function _beforeTokenTransfer(
        address from,
        address to,
        uint256
    ) internal virtual override {
        //Allow only mint and burn
        require(from == address(0) || to == address(0), "VestedGFly:TRANSFER_DENIED");
    }
}

File 2 of 16 : IGFly.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IGFly is IERC20 {
    function MAX_SUPPLY() external returns (uint256);

    function mint(address to, uint256 amount) external;

    function burn(uint256 amount) external;
}

File 3 of 16 : IVestedGFly.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;

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

interface IVestedGFly is IERC20 {
    struct VestingPosition {
        bool burnable;
        bool minted;
        address owner;
        uint256 startTime;
        uint256 lastBurnTime;
        uint256 employmentTimestamp;
        uint256 remainingAllocation;
        uint256 initialAllocation;
        uint256 initialUnlockable;
        uint256 burnt;
        uint256 vestedAtLastBurn;
        uint256 employeeBurnt;
    }

    function addVestingPosition(
        address owner,
        uint256 amount,
        bool burnable,
        uint256 initialUnlockable,
        uint256 employmentTimestamp
    ) external;

    function mint() external;

    function burn(uint256 vestingId, uint256 amount) external;

    function burnAll(uint256 vestingId) external;

    function transferVestingPosition(
        uint256 vestingId,
        uint256 amount,
        address newOwner
    ) external;

    function claimAllGFly() external;

    function claimGFly(uint256 vestingId) external;

    function totalVestedOf(address account) external view returns (uint256 total);

    function vestedOf(uint256 vestingId) external view returns (uint256);

    function totalClaimableOf(address account) external view returns (uint256 total);

    function claimableOf(uint256 vestingId) external view returns (uint256);

    function totalClaimedOf(address account) external view returns (uint256 total);

    function claimedOf(uint256 vestingId) external view returns (uint256);

    function totalBalance(address account) external view returns (uint256 total);

    function balanceOfVesting(uint256 vestingId) external view returns (uint256);

    function getVestingIdsOfAddress(address account) external view returns (uint256[] memory);

    function maxBurnable(uint256 vestingId) external view returns (uint256 burnable);

    function claimableOfAtTimestamp(uint256 vestingId, uint256 timestamp) external view returns (uint256);

    function unminted() external returns (uint256);

    event VestingPositionAdded(
        address indexed owner,
        uint256 indexed vestingId,
        uint256 amount,
        bool burnable,
        uint256 initialUnlockable,
        uint256 startTime
    );
    event Minted(address indexed owner, uint256 indexed vestingId, uint256 amount);
    event Burned(address indexed owner, uint256 indexed vestingId, uint256 amount);
    event GFlyClaimed(address indexed owner, uint256 indexed vestingId, uint256 amount);
    event VestingPositionTransfered(
        address indexed owner,
        uint256 indexed vestingId,
        address indexed newOwner,
        uint256 newVestingId,
        uint256 amount
    );
}

File 4 of 16 : ABDKMath64x64.sol
// SPDX-License-Identifier: BSD-4-Clause
/*
 * ABDK Math 64.64 Smart Contract Library.  Copyright © 2019 by ABDK Consulting.
 * Author: Mikhail Vladimirov <[email protected]>
 */
pragma solidity ^0.8.0;

/**
 * Smart contract library of mathematical functions operating with signed
 * 64.64-bit fixed point numbers.  Signed 64.64-bit fixed point number is
 * basically a simple fraction whose numerator is signed 128-bit integer and
 * denominator is 2^64.  As long as denominator is always the same, there is no
 * need to store it, thus in Solidity signed 64.64-bit fixed point numbers are
 * represented by int128 type holding only the numerator.
 */
library ABDKMath64x64 {
  /*
   * Minimum value signed 64.64-bit fixed point number may have. 
   */
  int128 private constant MIN_64x64 = -0x80000000000000000000000000000000;

  /*
   * Maximum value signed 64.64-bit fixed point number may have. 
   */
  int128 private constant MAX_64x64 = 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;

  /**
   * Convert signed 256-bit integer number into signed 64.64-bit fixed point
   * number.  Revert on overflow.
   *
   * @param x signed 256-bit integer number
   * @return signed 64.64-bit fixed point number
   */
  function fromInt (int256 x) internal pure returns (int128) {
    unchecked {
      require (x >= -0x8000000000000000 && x <= 0x7FFFFFFFFFFFFFFF);
      return int128 (x << 64);
    }
  }

  /**
   * Convert signed 64.64 fixed point number into signed 64-bit integer number
   * rounding down.
   *
   * @param x signed 64.64-bit fixed point number
   * @return signed 64-bit integer number
   */
  function toInt (int128 x) internal pure returns (int64) {
    unchecked {
      return int64 (x >> 64);
    }
  }

  /**
   * Convert unsigned 256-bit integer number into signed 64.64-bit fixed point
   * number.  Revert on overflow.
   *
   * @param x unsigned 256-bit integer number
   * @return signed 64.64-bit fixed point number
   */
  function fromUInt (uint256 x) internal pure returns (int128) {
    unchecked {
      require (x <= 0x7FFFFFFFFFFFFFFF);
      return int128 (int256 (x << 64));
    }
  }

  /**
   * Convert signed 64.64 fixed point number into unsigned 64-bit integer
   * number rounding down.  Revert on underflow.
   *
   * @param x signed 64.64-bit fixed point number
   * @return unsigned 64-bit integer number
   */
  function toUInt (int128 x) internal pure returns (uint64) {
    unchecked {
      require (x >= 0);
      return uint64 (uint128 (x >> 64));
    }
  }

  /**
   * Convert signed 128.128 fixed point number into signed 64.64-bit fixed point
   * number rounding down.  Revert on overflow.
   *
   * @param x signed 128.128-bin fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function from128x128 (int256 x) internal pure returns (int128) {
    unchecked {
      int256 result = x >> 64;
      require (result >= MIN_64x64 && result <= MAX_64x64);
      return int128 (result);
    }
  }

  /**
   * Convert signed 64.64 fixed point number into signed 128.128 fixed point
   * number.
   *
   * @param x signed 64.64-bit fixed point number
   * @return signed 128.128 fixed point number
   */
  function to128x128 (int128 x) internal pure returns (int256) {
    unchecked {
      return int256 (x) << 64;
    }
  }

  /**
   * Calculate x + y.  Revert on overflow.
   *
   * @param x signed 64.64-bit fixed point number
   * @param y signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function add (int128 x, int128 y) internal pure returns (int128) {
    unchecked {
      int256 result = int256(x) + y;
      require (result >= MIN_64x64 && result <= MAX_64x64);
      return int128 (result);
    }
  }

  /**
   * Calculate x - y.  Revert on overflow.
   *
   * @param x signed 64.64-bit fixed point number
   * @param y signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function sub (int128 x, int128 y) internal pure returns (int128) {
    unchecked {
      int256 result = int256(x) - y;
      require (result >= MIN_64x64 && result <= MAX_64x64);
      return int128 (result);
    }
  }

  /**
   * Calculate x * y rounding down.  Revert on overflow.
   *
   * @param x signed 64.64-bit fixed point number
   * @param y signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function mul (int128 x, int128 y) internal pure returns (int128) {
    unchecked {
      int256 result = int256(x) * y >> 64;
      require (result >= MIN_64x64 && result <= MAX_64x64);
      return int128 (result);
    }
  }

  /**
   * Calculate x * y rounding towards zero, where x is signed 64.64 fixed point
   * number and y is signed 256-bit integer number.  Revert on overflow.
   *
   * @param x signed 64.64 fixed point number
   * @param y signed 256-bit integer number
   * @return signed 256-bit integer number
   */
  function muli (int128 x, int256 y) internal pure returns (int256) {
    unchecked {
      if (x == MIN_64x64) {
        require (y >= -0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF &&
          y <= 0x1000000000000000000000000000000000000000000000000);
        return -y << 63;
      } else {
        bool negativeResult = false;
        if (x < 0) {
          x = -x;
          negativeResult = true;
        }
        if (y < 0) {
          y = -y; // We rely on overflow behavior here
          negativeResult = !negativeResult;
        }
        uint256 absoluteResult = mulu (x, uint256 (y));
        if (negativeResult) {
          require (absoluteResult <=
            0x8000000000000000000000000000000000000000000000000000000000000000);
          return -int256 (absoluteResult); // We rely on overflow behavior here
        } else {
          require (absoluteResult <=
            0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);
          return int256 (absoluteResult);
        }
      }
    }
  }

  /**
   * Calculate x * y rounding down, where x is signed 64.64 fixed point number
   * and y is unsigned 256-bit integer number.  Revert on overflow.
   *
   * @param x signed 64.64 fixed point number
   * @param y unsigned 256-bit integer number
   * @return unsigned 256-bit integer number
   */
  function mulu (int128 x, uint256 y) internal pure returns (uint256) {
    unchecked {
      if (y == 0) return 0;

      require (x >= 0);

      uint256 lo = (uint256 (int256 (x)) * (y & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)) >> 64;
      uint256 hi = uint256 (int256 (x)) * (y >> 128);

      require (hi <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);
      hi <<= 64;

      require (hi <=
        0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF - lo);
      return hi + lo;
    }
  }

  /**
   * Calculate x / y rounding towards zero.  Revert on overflow or when y is
   * zero.
   *
   * @param x signed 64.64-bit fixed point number
   * @param y signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function div (int128 x, int128 y) internal pure returns (int128) {
    unchecked {
      require (y != 0);
      int256 result = (int256 (x) << 64) / y;
      require (result >= MIN_64x64 && result <= MAX_64x64);
      return int128 (result);
    }
  }

  /**
   * Calculate x / y rounding towards zero, where x and y are signed 256-bit
   * integer numbers.  Revert on overflow or when y is zero.
   *
   * @param x signed 256-bit integer number
   * @param y signed 256-bit integer number
   * @return signed 64.64-bit fixed point number
   */
  function divi (int256 x, int256 y) internal pure returns (int128) {
    unchecked {
      require (y != 0);

      bool negativeResult = false;
      if (x < 0) {
        x = -x; // We rely on overflow behavior here
        negativeResult = true;
      }
      if (y < 0) {
        y = -y; // We rely on overflow behavior here
        negativeResult = !negativeResult;
      }
      uint128 absoluteResult = divuu (uint256 (x), uint256 (y));
      if (negativeResult) {
        require (absoluteResult <= 0x80000000000000000000000000000000);
        return -int128 (absoluteResult); // We rely on overflow behavior here
      } else {
        require (absoluteResult <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);
        return int128 (absoluteResult); // We rely on overflow behavior here
      }
    }
  }

  /**
   * Calculate x / y rounding towards zero, where x and y are unsigned 256-bit
   * integer numbers.  Revert on overflow or when y is zero.
   *
   * @param x unsigned 256-bit integer number
   * @param y unsigned 256-bit integer number
   * @return signed 64.64-bit fixed point number
   */
  function divu (uint256 x, uint256 y) internal pure returns (int128) {
    unchecked {
      require (y != 0);
      uint128 result = divuu (x, y);
      require (result <= uint128 (MAX_64x64));
      return int128 (result);
    }
  }

  /**
   * Calculate -x.  Revert on overflow.
   *
   * @param x signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function neg (int128 x) internal pure returns (int128) {
    unchecked {
      require (x != MIN_64x64);
      return -x;
    }
  }

  /**
   * Calculate |x|.  Revert on overflow.
   *
   * @param x signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function abs (int128 x) internal pure returns (int128) {
    unchecked {
      require (x != MIN_64x64);
      return x < 0 ? -x : x;
    }
  }

  /**
   * Calculate 1 / x rounding towards zero.  Revert on overflow or when x is
   * zero.
   *
   * @param x signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function inv (int128 x) internal pure returns (int128) {
    unchecked {
      require (x != 0);
      int256 result = int256 (0x100000000000000000000000000000000) / x;
      require (result >= MIN_64x64 && result <= MAX_64x64);
      return int128 (result);
    }
  }

  /**
   * Calculate arithmetics average of x and y, i.e. (x + y) / 2 rounding down.
   *
   * @param x signed 64.64-bit fixed point number
   * @param y signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function avg (int128 x, int128 y) internal pure returns (int128) {
    unchecked {
      return int128 ((int256 (x) + int256 (y)) >> 1);
    }
  }

  /**
   * Calculate geometric average of x and y, i.e. sqrt (x * y) rounding down.
   * Revert on overflow or in case x * y is negative.
   *
   * @param x signed 64.64-bit fixed point number
   * @param y signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function gavg (int128 x, int128 y) internal pure returns (int128) {
    unchecked {
      int256 m = int256 (x) * int256 (y);
      require (m >= 0);
      require (m <
          0x4000000000000000000000000000000000000000000000000000000000000000);
      return int128 (sqrtu (uint256 (m)));
    }
  }

  /**
   * Calculate x^y assuming 0^0 is 1, where x is signed 64.64 fixed point number
   * and y is unsigned 256-bit integer number.  Revert on overflow.
   *
   * @param x signed 64.64-bit fixed point number
   * @param y uint256 value
   * @return signed 64.64-bit fixed point number
   */
  function pow (int128 x, uint256 y) internal pure returns (int128) {
    unchecked {
      bool negative = x < 0 && y & 1 == 1;

      uint256 absX = uint128 (x < 0 ? -x : x);
      uint256 absResult;
      absResult = 0x100000000000000000000000000000000;

      if (absX <= 0x10000000000000000) {
        absX <<= 63;
        while (y != 0) {
          if (y & 0x1 != 0) {
            absResult = absResult * absX >> 127;
          }
          absX = absX * absX >> 127;

          if (y & 0x2 != 0) {
            absResult = absResult * absX >> 127;
          }
          absX = absX * absX >> 127;

          if (y & 0x4 != 0) {
            absResult = absResult * absX >> 127;
          }
          absX = absX * absX >> 127;

          if (y & 0x8 != 0) {
            absResult = absResult * absX >> 127;
          }
          absX = absX * absX >> 127;

          y >>= 4;
        }

        absResult >>= 64;
      } else {
        uint256 absXShift = 63;
        if (absX < 0x1000000000000000000000000) { absX <<= 32; absXShift -= 32; }
        if (absX < 0x10000000000000000000000000000) { absX <<= 16; absXShift -= 16; }
        if (absX < 0x1000000000000000000000000000000) { absX <<= 8; absXShift -= 8; }
        if (absX < 0x10000000000000000000000000000000) { absX <<= 4; absXShift -= 4; }
        if (absX < 0x40000000000000000000000000000000) { absX <<= 2; absXShift -= 2; }
        if (absX < 0x80000000000000000000000000000000) { absX <<= 1; absXShift -= 1; }

        uint256 resultShift = 0;
        while (y != 0) {
          require (absXShift < 64);

          if (y & 0x1 != 0) {
            absResult = absResult * absX >> 127;
            resultShift += absXShift;
            if (absResult > 0x100000000000000000000000000000000) {
              absResult >>= 1;
              resultShift += 1;
            }
          }
          absX = absX * absX >> 127;
          absXShift <<= 1;
          if (absX >= 0x100000000000000000000000000000000) {
              absX >>= 1;
              absXShift += 1;
          }

          y >>= 1;
        }

        require (resultShift < 64);
        absResult >>= 64 - resultShift;
      }
      int256 result = negative ? -int256 (absResult) : int256 (absResult);
      require (result >= MIN_64x64 && result <= MAX_64x64);
      return int128 (result);
    }
  }

  /**
   * Calculate sqrt (x) rounding down.  Revert if x < 0.
   *
   * @param x signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function sqrt (int128 x) internal pure returns (int128) {
    unchecked {
      require (x >= 0);
      return int128 (sqrtu (uint256 (int256 (x)) << 64));
    }
  }

  /**
   * Calculate binary logarithm of x.  Revert if x <= 0.
   *
   * @param x signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function log_2 (int128 x) internal pure returns (int128) {
    unchecked {
      require (x > 0);

      int256 msb = 0;
      int256 xc = x;
      if (xc >= 0x10000000000000000) { xc >>= 64; msb += 64; }
      if (xc >= 0x100000000) { xc >>= 32; msb += 32; }
      if (xc >= 0x10000) { xc >>= 16; msb += 16; }
      if (xc >= 0x100) { xc >>= 8; msb += 8; }
      if (xc >= 0x10) { xc >>= 4; msb += 4; }
      if (xc >= 0x4) { xc >>= 2; msb += 2; }
      if (xc >= 0x2) msb += 1;  // No need to shift xc anymore

      int256 result = msb - 64 << 64;
      uint256 ux = uint256 (int256 (x)) << uint256 (127 - msb);
      for (int256 bit = 0x8000000000000000; bit > 0; bit >>= 1) {
        ux *= ux;
        uint256 b = ux >> 255;
        ux >>= 127 + b;
        result += bit * int256 (b);
      }

      return int128 (result);
    }
  }

  /**
   * Calculate natural logarithm of x.  Revert if x <= 0.
   *
   * @param x signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function ln (int128 x) internal pure returns (int128) {
    unchecked {
      require (x > 0);

      return int128 (int256 (
          uint256 (int256 (log_2 (x))) * 0xB17217F7D1CF79ABC9E3B39803F2F6AF >> 128));
    }
  }

  /**
   * Calculate binary exponent of x.  Revert on overflow.
   *
   * @param x signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function exp_2 (int128 x) internal pure returns (int128) {
    unchecked {
      require (x < 0x400000000000000000); // Overflow

      if (x < -0x400000000000000000) return 0; // Underflow

      uint256 result = 0x80000000000000000000000000000000;

      if (x & 0x8000000000000000 > 0)
        result = result * 0x16A09E667F3BCC908B2FB1366EA957D3E >> 128;
      if (x & 0x4000000000000000 > 0)
        result = result * 0x1306FE0A31B7152DE8D5A46305C85EDEC >> 128;
      if (x & 0x2000000000000000 > 0)
        result = result * 0x1172B83C7D517ADCDF7C8C50EB14A791F >> 128;
      if (x & 0x1000000000000000 > 0)
        result = result * 0x10B5586CF9890F6298B92B71842A98363 >> 128;
      if (x & 0x800000000000000 > 0)
        result = result * 0x1059B0D31585743AE7C548EB68CA417FD >> 128;
      if (x & 0x400000000000000 > 0)
        result = result * 0x102C9A3E778060EE6F7CACA4F7A29BDE8 >> 128;
      if (x & 0x200000000000000 > 0)
        result = result * 0x10163DA9FB33356D84A66AE336DCDFA3F >> 128;
      if (x & 0x100000000000000 > 0)
        result = result * 0x100B1AFA5ABCBED6129AB13EC11DC9543 >> 128;
      if (x & 0x80000000000000 > 0)
        result = result * 0x10058C86DA1C09EA1FF19D294CF2F679B >> 128;
      if (x & 0x40000000000000 > 0)
        result = result * 0x1002C605E2E8CEC506D21BFC89A23A00F >> 128;
      if (x & 0x20000000000000 > 0)
        result = result * 0x100162F3904051FA128BCA9C55C31E5DF >> 128;
      if (x & 0x10000000000000 > 0)
        result = result * 0x1000B175EFFDC76BA38E31671CA939725 >> 128;
      if (x & 0x8000000000000 > 0)
        result = result * 0x100058BA01FB9F96D6CACD4B180917C3D >> 128;
      if (x & 0x4000000000000 > 0)
        result = result * 0x10002C5CC37DA9491D0985C348C68E7B3 >> 128;
      if (x & 0x2000000000000 > 0)
        result = result * 0x1000162E525EE054754457D5995292026 >> 128;
      if (x & 0x1000000000000 > 0)
        result = result * 0x10000B17255775C040618BF4A4ADE83FC >> 128;
      if (x & 0x800000000000 > 0)
        result = result * 0x1000058B91B5BC9AE2EED81E9B7D4CFAB >> 128;
      if (x & 0x400000000000 > 0)
        result = result * 0x100002C5C89D5EC6CA4D7C8ACC017B7C9 >> 128;
      if (x & 0x200000000000 > 0)
        result = result * 0x10000162E43F4F831060E02D839A9D16D >> 128;
      if (x & 0x100000000000 > 0)
        result = result * 0x100000B1721BCFC99D9F890EA06911763 >> 128;
      if (x & 0x80000000000 > 0)
        result = result * 0x10000058B90CF1E6D97F9CA14DBCC1628 >> 128;
      if (x & 0x40000000000 > 0)
        result = result * 0x1000002C5C863B73F016468F6BAC5CA2B >> 128;
      if (x & 0x20000000000 > 0)
        result = result * 0x100000162E430E5A18F6119E3C02282A5 >> 128;
      if (x & 0x10000000000 > 0)
        result = result * 0x1000000B1721835514B86E6D96EFD1BFE >> 128;
      if (x & 0x8000000000 > 0)
        result = result * 0x100000058B90C0B48C6BE5DF846C5B2EF >> 128;
      if (x & 0x4000000000 > 0)
        result = result * 0x10000002C5C8601CC6B9E94213C72737A >> 128;
      if (x & 0x2000000000 > 0)
        result = result * 0x1000000162E42FFF037DF38AA2B219F06 >> 128;
      if (x & 0x1000000000 > 0)
        result = result * 0x10000000B17217FBA9C739AA5819F44F9 >> 128;
      if (x & 0x800000000 > 0)
        result = result * 0x1000000058B90BFCDEE5ACD3C1CEDC823 >> 128;
      if (x & 0x400000000 > 0)
        result = result * 0x100000002C5C85FE31F35A6A30DA1BE50 >> 128;
      if (x & 0x200000000 > 0)
        result = result * 0x10000000162E42FF0999CE3541B9FFFCF >> 128;
      if (x & 0x100000000 > 0)
        result = result * 0x100000000B17217F80F4EF5AADDA45554 >> 128;
      if (x & 0x80000000 > 0)
        result = result * 0x10000000058B90BFBF8479BD5A81B51AD >> 128;
      if (x & 0x40000000 > 0)
        result = result * 0x1000000002C5C85FDF84BD62AE30A74CC >> 128;
      if (x & 0x20000000 > 0)
        result = result * 0x100000000162E42FEFB2FED257559BDAA >> 128;
      if (x & 0x10000000 > 0)
        result = result * 0x1000000000B17217F7D5A7716BBA4A9AE >> 128;
      if (x & 0x8000000 > 0)
        result = result * 0x100000000058B90BFBE9DDBAC5E109CCE >> 128;
      if (x & 0x4000000 > 0)
        result = result * 0x10000000002C5C85FDF4B15DE6F17EB0D >> 128;
      if (x & 0x2000000 > 0)
        result = result * 0x1000000000162E42FEFA494F1478FDE05 >> 128;
      if (x & 0x1000000 > 0)
        result = result * 0x10000000000B17217F7D20CF927C8E94C >> 128;
      if (x & 0x800000 > 0)
        result = result * 0x1000000000058B90BFBE8F71CB4E4B33D >> 128;
      if (x & 0x400000 > 0)
        result = result * 0x100000000002C5C85FDF477B662B26945 >> 128;
      if (x & 0x200000 > 0)
        result = result * 0x10000000000162E42FEFA3AE53369388C >> 128;
      if (x & 0x100000 > 0)
        result = result * 0x100000000000B17217F7D1D351A389D40 >> 128;
      if (x & 0x80000 > 0)
        result = result * 0x10000000000058B90BFBE8E8B2D3D4EDE >> 128;
      if (x & 0x40000 > 0)
        result = result * 0x1000000000002C5C85FDF4741BEA6E77E >> 128;
      if (x & 0x20000 > 0)
        result = result * 0x100000000000162E42FEFA39FE95583C2 >> 128;
      if (x & 0x10000 > 0)
        result = result * 0x1000000000000B17217F7D1CFB72B45E1 >> 128;
      if (x & 0x8000 > 0)
        result = result * 0x100000000000058B90BFBE8E7CC35C3F0 >> 128;
      if (x & 0x4000 > 0)
        result = result * 0x10000000000002C5C85FDF473E242EA38 >> 128;
      if (x & 0x2000 > 0)
        result = result * 0x1000000000000162E42FEFA39F02B772C >> 128;
      if (x & 0x1000 > 0)
        result = result * 0x10000000000000B17217F7D1CF7D83C1A >> 128;
      if (x & 0x800 > 0)
        result = result * 0x1000000000000058B90BFBE8E7BDCBE2E >> 128;
      if (x & 0x400 > 0)
        result = result * 0x100000000000002C5C85FDF473DEA871F >> 128;
      if (x & 0x200 > 0)
        result = result * 0x10000000000000162E42FEFA39EF44D91 >> 128;
      if (x & 0x100 > 0)
        result = result * 0x100000000000000B17217F7D1CF79E949 >> 128;
      if (x & 0x80 > 0)
        result = result * 0x10000000000000058B90BFBE8E7BCE544 >> 128;
      if (x & 0x40 > 0)
        result = result * 0x1000000000000002C5C85FDF473DE6ECA >> 128;
      if (x & 0x20 > 0)
        result = result * 0x100000000000000162E42FEFA39EF366F >> 128;
      if (x & 0x10 > 0)
        result = result * 0x1000000000000000B17217F7D1CF79AFA >> 128;
      if (x & 0x8 > 0)
        result = result * 0x100000000000000058B90BFBE8E7BCD6D >> 128;
      if (x & 0x4 > 0)
        result = result * 0x10000000000000002C5C85FDF473DE6B2 >> 128;
      if (x & 0x2 > 0)
        result = result * 0x1000000000000000162E42FEFA39EF358 >> 128;
      if (x & 0x1 > 0)
        result = result * 0x10000000000000000B17217F7D1CF79AB >> 128;

      result >>= uint256 (int256 (63 - (x >> 64)));
      require (result <= uint256 (int256 (MAX_64x64)));

      return int128 (int256 (result));
    }
  }

  /**
   * Calculate natural exponent of x.  Revert on overflow.
   *
   * @param x signed 64.64-bit fixed point number
   * @return signed 64.64-bit fixed point number
   */
  function exp (int128 x) internal pure returns (int128) {
    unchecked {
      require (x < 0x400000000000000000); // Overflow

      if (x < -0x400000000000000000) return 0; // Underflow

      return exp_2 (
          int128 (int256 (x) * 0x171547652B82FE1777D0FFDA0D23A7D12 >> 128));
    }
  }

  /**
   * Calculate x / y rounding towards zero, where x and y are unsigned 256-bit
   * integer numbers.  Revert on overflow or when y is zero.
   *
   * @param x unsigned 256-bit integer number
   * @param y unsigned 256-bit integer number
   * @return unsigned 64.64-bit fixed point number
   */
  function divuu (uint256 x, uint256 y) private pure returns (uint128) {
    unchecked {
      require (y != 0);

      uint256 result;

      if (x <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)
        result = (x << 64) / y;
      else {
        uint256 msb = 192;
        uint256 xc = x >> 192;
        if (xc >= 0x100000000) { xc >>= 32; msb += 32; }
        if (xc >= 0x10000) { xc >>= 16; msb += 16; }
        if (xc >= 0x100) { xc >>= 8; msb += 8; }
        if (xc >= 0x10) { xc >>= 4; msb += 4; }
        if (xc >= 0x4) { xc >>= 2; msb += 2; }
        if (xc >= 0x2) msb += 1;  // No need to shift xc anymore

        result = (x << 255 - msb) / ((y - 1 >> msb - 191) + 1);
        require (result <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);

        uint256 hi = result * (y >> 128);
        uint256 lo = result * (y & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);

        uint256 xh = x >> 192;
        uint256 xl = x << 64;

        if (xl < lo) xh -= 1;
        xl -= lo; // We rely on overflow behavior here
        lo = hi << 128;
        if (xl < lo) xh -= 1;
        xl -= lo; // We rely on overflow behavior here

        assert (xh == hi >> 128);

        result += xl / y;
      }

      require (result <= 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF);
      return uint128 (result);
    }
  }

  /**
   * Calculate sqrt (x) rounding down, where x is unsigned 256-bit integer
   * number.
   *
   * @param x unsigned 256-bit integer number
   * @return unsigned 128-bit integer number
   */
  function sqrtu (uint256 x) private pure returns (uint128) {
    unchecked {
      if (x == 0) return 0;
      else {
        uint256 xx = x;
        uint256 r = 1;
        if (xx >= 0x100000000000000000000000000000000) { xx >>= 128; r <<= 64; }
        if (xx >= 0x10000000000000000) { xx >>= 64; r <<= 32; }
        if (xx >= 0x100000000) { xx >>= 32; r <<= 16; }
        if (xx >= 0x10000) { xx >>= 16; r <<= 8; }
        if (xx >= 0x100) { xx >>= 8; r <<= 4; }
        if (xx >= 0x10) { xx >>= 4; r <<= 2; }
        if (xx >= 0x4) { r <<= 1; }
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1; // Seven iterations should be enough
        uint256 r1 = x / r;
        return uint128 (r < r1 ? r : r1);
      }
    }
  }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 6 of 16 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 7 of 16 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. It the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`.
        // We also know that `k`, the position of the most significant bit, is such that `msb(a) = 2**k`.
        // This gives `2**k < a <= 2**(k+1)` → `2**(k/2) <= sqrt(a) < 2 ** (k/2+1)`.
        // Using an algorithm similar to the msb conmputation, we are able to compute `result = 2**(k/2)` which is a
        // good first aproximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1;
        uint256 x = a;
        if (x >> 128 > 0) {
            x >>= 128;
            result <<= 64;
        }
        if (x >> 64 > 0) {
            x >>= 64;
            result <<= 32;
        }
        if (x >> 32 > 0) {
            x >>= 32;
            result <<= 16;
        }
        if (x >> 16 > 0) {
            x >>= 16;
            result <<= 8;
        }
        if (x >> 8 > 0) {
            x >>= 8;
            result <<= 4;
        }
        if (x >> 4 > 0) {
            x >>= 4;
            result <<= 2;
        }
        if (x >> 2 > 0) {
            result <<= 1;
        }

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        uint256 result = sqrt(a);
        if (rounding == Rounding.Up && result * result < a) {
            result += 1;
        }
        return result;
    }
}

File 8 of 16 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 9 of 16 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 10 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 11 of 16 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

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

pragma solidity ^0.8.0;

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

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

File 13 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 14 of 16 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 15 of 16 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @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 16 of 16 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"gFly_","type":"address"},{"internalType":"address","name":"dao","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"vestingId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"vestingId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"GFlyClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"vestingId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","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":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"vestingId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"burnable","type":"bool"},{"indexed":false,"internalType":"uint256","name":"initialUnlockable","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"VestingPositionAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"vestingId","type":"uint256"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"},{"indexed":false,"internalType":"uint256","name":"newVestingId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"VestingPositionTransfered","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COEFFICIENT_A","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COEFFICIENT_B","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VESTING_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"burnable","type":"bool"},{"internalType":"uint256","name":"initialUnlockable","type":"uint256"},{"internalType":"uint256","name":"employmentTimestamp","type":"uint256"}],"name":"addVestingPosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingId","type":"uint256"}],"name":"balanceOfVesting","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingId","type":"uint256"}],"name":"burnAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAllGFly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingId","type":"uint256"}],"name":"claimGFly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingId","type":"uint256"}],"name":"claimableOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingId","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"claimableOfAtTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedByVestingId","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingId","type":"uint256"}],"name":"claimedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentVestingId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"gFly","outputs":[{"internalType":"contract IGFly","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getVestingIdsOfAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingId","type":"uint256"}],"name":"maxBurnable","outputs":[{"internalType":"uint256","name":"burnable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"totalBalance","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"totalClaimableOf","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"totalClaimedOf","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"totalVestedOf","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferVestingPosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unminted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vestingId","type":"uint256"}],"name":"vestedOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vestingPosition","outputs":[{"internalType":"bool","name":"burnable","type":"bool"},{"internalType":"bool","name":"minted","type":"bool"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"lastBurnTime","type":"uint256"},{"internalType":"uint256","name":"employmentTimestamp","type":"uint256"},{"internalType":"uint256","name":"remainingAllocation","type":"uint256"},{"internalType":"uint256","name":"initialAllocation","type":"uint256"},{"internalType":"uint256","name":"initialUnlockable","type":"uint256"},{"internalType":"uint256","name":"burnt","type":"uint256"},{"internalType":"uint256","name":"vestedAtLastBurn","type":"uint256"},{"internalType":"uint256","name":"employeeBurnt","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040516200441a3803806200441a83398101604081905262000034916200033a565b604051806040016040528060058152602001647667464c5960d81b815250604051806040016040528060058152602001645647464c5960d81b815250816004908162000081919062000417565b50600562000090828262000417565b50506001600655506001600160a01b038216620000f45760405162461bcd60e51b815260206004820152601a60248201527f56657374656447466c793a494e56414c49445f4144445245535300000000000060448201526064015b60405180910390fd5b6001600160a01b0381166200014c5760405162461bcd60e51b815260206004820152601a60248201527f56657374656447466c793a494e56414c49445f414444524553530000000000006044820152606401620000eb565b62000167600080516020620043fa8339815191528262000222565b62000182600080516020620043fa8339815191523362000222565b6200019d600080516020620043fa8339815191528062000232565b620001d87f842693f29231e6ec9f0d05508dbecff8eee59d0ddd46a9f7ffa553c25f01fed0600080516020620043fa83398151915262000232565b50600c80546001600160a01b0319166001600160a01b0392909216919091179055770cf8d63a753be9c60000000000000000071577569e27bf5a600755622819a0600855620004e3565b6200022e82826200027d565b5050565b600082815260208190526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200022e576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620002d93390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b80516001600160a01b03811681146200033557600080fd5b919050565b600080604083850312156200034e57600080fd5b62000359836200031d565b915062000369602084016200031d565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200039d57607f821691505b602082108103620003be57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200041257600081815260208120601f850160051c81016020861015620003ed5750805b601f850160051c820191505b818110156200040e57828155600101620003f9565b5050505b505050565b81516001600160401b0381111562000433576200043362000372565b6200044b8162000444845462000388565b84620003c4565b602080601f8311600181146200048357600084156200046a5750858301515b600019600386901b1c1916600185901b1785556200040e565b600085815260208120601f198616915b82811015620004b45788860151825594840194600190910190840162000493565b5085821015620004d35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613f0780620004f36000396000f3fe608060405234801561001057600080fd5b506004361061027f5760003560e01c80636eacd3981161015c578063a457c2d7116100ce578063d6d789b711610087578063d6d789b7146106a5578063d8dbdd9e146106b8578063dd62ed3e146106cb578063e4bd38e3146106de578063e8d54fb714610705578063ff4ff86f1461071257600080fd5b8063a457c2d71461061f578063a9059cbb14610632578063b390c0ab14610645578063b8664dca14610658578063bac61fa61461067f578063d547741f1461069257600080fd5b806386f298a71161012057806386f298a7146105a05780638ed0784b146105a8578063913f9d91146105e957806391d14854146105fc57806395d89b411461060f578063a217fddf1461061757600080fd5b80636eacd3981461052957806370a082311461053c57806374fd10921461056557806375b238fc146105785780637b1db3711461058d57600080fd5b8063313ce567116101f55780633eef2ec1116101b95780633eef2ec1146103df57806349e8e06a146103f257806350a38f4214610405578063513bed12146104e357806360c57fee146104f6578063665079861461051657600080fd5b8063313ce5671461038e57806336568abe1461039d578063369a7683146103b057806337321589146103c357806339509351146103cc57600080fd5b80631249c58b116102475780631249c58b1461030857806318160ddd146103125780631fdbd6701461031a57806323b872dd14610345578063248a9ca3146103585780632f2ff15d1461037b57600080fd5b806301ffc9a71461028457806306fdde03146102ac57806307257746146102c1578063095ea7b3146102e25780630a78096d146102f5575b600080fd5b61029761029236600461399b565b61071b565b60405190151581526020015b60405180910390f35b6102b4610752565b6040516102a391906139e9565b6102d46102cf366004613a1c565b6107e4565b6040519081526020016102a3565b6102976102f0366004613a4c565b6107fb565b6102d4610303366004613a1c565b610813565b610310610829565b005b6003546102d4565b600c5461032d906001600160a01b031681565b6040516001600160a01b0390911681526020016102a3565b610297610353366004613a76565b61096d565b6102d4610366366004613a1c565b60009081526020819052604090206001015490565b610310610389366004613ab2565b610993565b604051601281526020016102a3565b6103106103ab366004613ab2565b6109bd565b6103106103be366004613a1c565b610a3b565b6102d4600d5481565b6102976103da366004613a4c565b610b8d565b6102d46103ed366004613ade565b610baf565b6102d4610400366004613a1c565b610c66565b61047a610413366004613a1c565b600a60205260009081526040902080546001820154600283015460038401546004850154600586015460068701546007880154600889015460099099015460ff808a169a6101008b04909116996201000090046001600160a01b031698979695949392918c565b604080519c15158d529a151560208d01526001600160a01b03909916998b019990995260608a0196909652608089019490945260a088019290925260c087015260e0860152610100850152610120840152610140830191909152610160820152610180016102a3565b6102d46104f1366004613a1c565b610c7c565b610509610504366004613ade565b610cc3565b6040516102a39190613af9565b6102d4610524366004613a1c565b610ce7565b6102d4610537366004613ade565b610d88565b6102d461054a366004613ade565b6001600160a01b031660009081526001602052604090205490565b610310610573366004613a1c565b610da6565b6102d4600080516020613e9283398151915281565b61031061059b366004613b3d565b610e42565b61031061118b565b6105d16105b6366004613a1c565b6009602052600090815260409020546001600160801b031681565b6040516001600160801b0390911681526020016102a3565b6102d46105f7366004613ade565b611229565b61029761060a366004613ab2565b6112ad565b6102b46112d6565b6102d4600081565b61029761062d366004613a4c565b6112e5565b610297610640366004613a4c565b61136b565b610310610653366004613b72565b611379565b6102d47f842693f29231e6ec9f0d05508dbecff8eee59d0ddd46a9f7ffa553c25f01fed081565b61031061068d366004613b94565b6114f2565b6103106106a0366004613ab2565b6119a9565b6102d46106b3366004613ade565b6119ce565b6102d46106c6366004613b72565b611a51565b6102d46106d9366004613be9565b611aa2565b6007546106f290600160801b9004600f0b81565b604051600f9190910b81526020016102a3565b6007546106f290600f0b81565b6102d4600e5481565b60006001600160e01b03198216637965db0b60e01b148061074c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606004805461076190613c13565b80601f016020809104026020016040519081016040528092919081815260200182805461078d90613c13565b80156107da5780601f106107af576101008083540402835291602001916107da565b820191906000526020600020905b8154815290600101906020018083116107bd57829003601f168201915b5050505050905090565b6000806107f18342611acd565b5090949350505050565b600033610809818585611b7b565b5060019392505050565b6000806108208342611acd565b95945050505050565b6002600654036108545760405162461bcd60e51b815260040161084b90613c47565b60405180910390fd5b600260065560005b336000908152600b6020526040902061087490611c97565b5181101561096557336000908152600b602052604081206108959083611ca4565b6000818152600a6020526040902054909150610100900460ff16610952576000818152600a6020526040812060050154600d8054919290916108d8908490613c94565b90915550506000818152600a60205260409020805461ff00191661010017815560050154610907903390611cb0565b6000818152600a6020908152604091829020600501549151918252829133917f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff910160405180910390a35b508061095d81613ca7565b91505061085c565b506001600655565b60003361097b858285611d89565b610986858585611e03565b60019150505b9392505050565b6000828152602081905260409020600101546109ae81611fca565b6109b88383611fd7565b505050565b6001600160a01b0381163314610a2d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161084b565b610a37828261205b565b5050565b610a53600080516020613e92833981519152336112ad565b610a6f5760405162461bcd60e51b815260040161084b90613cc0565b6000818152600a602052604090205460ff16610a9d5760405162461bcd60e51b815260040161084b90613cf2565b610aa6816120c0565b600081815260096020908152604080832054600a909252822060078101546005909101546001600160801b0390921691610ae09190613c94565b610aea9190613c94565b90506000610b0082610afb85610ce7565b612246565b9050610b0c838261225c565b6000838152600a602052604081206009018054839290610b2d908490613d27565b90915550506000838152600a602090815260409182902054915183815285926201000090046001600160a01b0316917f23ff0e75edf108e3d0392d92e13e8c8a868ef19001bd49f9e94876dc46dff87f91015b60405180910390a3505050565b600033610809818585610ba08383611aa2565b610baa9190613d27565b611b7b565b6000805b6001600160a01b0383166000908152600b60205260409020610bd490611c97565b51811015610c60576001600160a01b0383166000908152600b60205260408120610bfe9083611ca4565b90506000806000610c0f8442611acd565b925092509250600082841015610c26576000610c30565b610c308385613c94565b9050610c3c8183612246565b610c469088613d27565b965050505050508080610c5890613ca7565b915050610bb3565b50919050565b600080610c738342611acd565b50949350505050565b600080600080610c8c8542611acd565b925092509250600082841015610ca3576000610cad565b610cad8385613c94565b9050610cb98183612246565b9695505050505050565b6001600160a01b0381166000908152600b6020526040902060609061074c90611c97565b6000818152600a602052604081205460ff1615610d83576000828152600a6020526040812060030154610d2c90610d1e9042613c94565b600854610afb906024613d3a565b90506008546024610d3d9190613d3a565b6000848152600a6020526040902060050154610d599083613d3a565b610d639190613d67565b6000848152600a6020526040902060050154610d7f9190613c94565b9150505b919050565b6001600160a01b03811660009081526001602052604081205461074c565b600260065403610dc85760405162461bcd60e51b815260040161084b90613c47565b60026006556000818152600a60205260409020546201000090046001600160a01b03163314610e395760405162461bcd60e51b815260206004820152601f60248201527f56657374656447466c793a4e4f545f4f574e45525f4f465f56455354494e4700604482015260640161084b565b610965816120c0565b610e6c7f842693f29231e6ec9f0d05508dbecff8eee59d0ddd46a9f7ffa553c25f01fed0336112ad565b610e885760405162461bcd60e51b815260040161084b90613cc0565b60008211610ed85760405162461bcd60e51b815260206004820152601c60248201527f56657374656447466c793a43414e4e4f545f5452414e534645525f3000000000604482015260640161084b565b610ee1836120c0565b6000838152600a6020818152604080842060078101546004820154600985529286205494909352600501549193909290916001600160801b0390911690610f29908590613c94565b610f339190613c94565b905084811015610f945760405162461bcd60e51b815260206004820152602660248201527f56657374656447466c793a494e53554646494349454e545f56455354494e475f604482015265105353d5539560d21b606482015260840161084b565b610f9e868661225c565b600e8054906000610fae83613ca7565b909155505060408051610180810182526000808252600160208084018290526001600160a01b038916848601528a8352600a905292812090920154606082015242608082015260a081019190915260c081018261100b8886613d3a565b6110159190613d67565b81526020808201889052600060408084018290526060808501839052608080860184905260a0958601849052600e80548552600a8652838520885181548a8901518b88015161ffff1990921692151561ff0019169290921761010092151583021762010000600160b01b031916620100006001600160a01b0392831602178355948a0151600183015592890151600282015596880151600388015560c0880151600488015560e08801516005880155908701516006870155610120870151600787015561014087015160088701556101609096015160099095019490945593549288168152600b9091529190912061110c916123c1565b506111178486611cb0565b6000868152600a60205260409081902054600e5491516001600160a01b03808816938a93620100009004909116917fb6c017d169ccb4869b64329e21c90b013dcc2cf6e72aa635b2287e87e06f74b49161117b918b90918252602082015260400190565b60405180910390a4505050505050565b6002600654036111ad5760405162461bcd60e51b815260040161084b90613c47565b600260065560005b336000908152600b602052604090206111cd90611c97565b5181101561096557336000908152600b602052604081206111ee9083611ca4565b6000818152600a6020526040902054909150610100900460ff161561121657611216816120c0565b508061122181613ca7565b9150506111b5565b6000805b6001600160a01b0383166000908152600b6020526040902061124e90611c97565b51811015610c60576001600160a01b0383166000908152600b602052604081206112789083611ca4565b905060006112868242611acd565b5050905080846112969190613d27565b9350505080806112a590613ca7565b91505061122d565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606005805461076190613c13565b600033816112f38286611aa2565b9050838110156113535760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161084b565b6113608286868403611b7b565b506001949350505050565b600033610809818585611e03565b611391600080516020613e92833981519152336112ad565b6113ad5760405162461bcd60e51b815260040161084b90613cc0565b6000828152600a602052604090205460ff166113db5760405162461bcd60e51b815260040161084b90613cf2565b6113e482610ce7565b6000838152600a6020526040902060090154611401908390613d27565b11156114605760405162461bcd60e51b815260206004820152602860248201527f56657374656447466c793a454d504c4f5945455f4255524e5f414d4f554e545f604482015267115610d15151115160c21b606482015260840161084b565b611469826120c0565b611473828261225c565b6000828152600a602052604081206009018054839290611494908490613d27565b90915550506000828152600a602090815260409182902054915183815284926201000090046001600160a01b0316917f23ff0e75edf108e3d0392d92e13e8c8a868ef19001bd49f9e94876dc46dff87f910160405180910390a35050565b61150a600080516020613e92833981519152336112ad565b6115265760405162461bcd60e51b815260040161084b90613cc0565b600084116115715760405162461bcd60e51b8152602060048201526018602482015277056657374656447466c793a43414e4e4f545f564553545f360441b604482015260640161084b565b838211156115d25760405162461bcd60e51b815260206004820152602860248201527f56657374656447466c793a43414e4e4f545f554e4c4f434b5f4d4f52455f5448604482015267105397d513d5105360c21b606482015260840161084b565b600c60009054906101000a90046001600160a01b03166001600160a01b03166332cb6b0c6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611627573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164b9190613d89565b600c54604080516318160ddd60e01b8152905187926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015611694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b89190613d89565b600354600d546116c89190613d27565b6116d29190613d27565b6116dc9190613d27565b111561172a5760405162461bcd60e51b815260206004820152601a60248201527f56657374656447466c793a535550504c595f4f564552464c4f57000000000000604482015260640161084b565b821561179c57428111156117975760405162461bcd60e51b815260206004820152602e60248201527f56657374656447466c793a43414e4e4f545f5345545f415f4655545552455f4560448201526d4d504c4f594d454e545f4441544560901b606482015260840161084b565b6117a0565b5060005b83600d60008282546117b29190613d27565b9091555050600e80549060006117c783613ca7565b91905055506040518061018001604052808415158152602001600015158152602001866001600160a01b0316815260200142815260200142815260200182815260200185815260200185815260200183815260200160008152602001600081526020016000815250600a6000600e54815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a8154816001600160a01b0302191690836001600160a01b03160217905550606082015181600101556080820151816002015560a0820151816003015560c0820151816004015560e08201518160050155610100820151816006015561012082015181600701556101408201518160080155610160820151816009015590505061194b600e54600b6000886001600160a01b03166001600160a01b031681526020019081526020016000206123c190919063ffffffff16565b50600e546040805186815285151560208201529081018490524260608201526001600160a01b038716907fdfd4cfa990b568f34b7dbd8b44cdb986dae77eea468f2d87b2163f2c1e1c1b379060800160405180910390a35050505050565b6000828152602081905260409020600101546119c481611fca565b6109b8838361205b565b6000805b6001600160a01b0383166000908152600b602052604090206119f390611c97565b51811015610c60576001600160a01b0383166000908152600b60205260408120611a1d9083611ca4565b90506000611a2b8242611acd565b509150611a3a90508185613d27565b935050508080611a4990613ca7565b9150506119d2565b600080600080611a6a86611a6542886123cd565b611acd565b925092509250600082841015611a81576000611a8b565b611a8b8385613c94565b9050611a978183612246565b979650505050505050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b600082815260096020908152604080832054600a909252822054829182916001600160801b03909116908290610100900460ff16611b0c576000611b43565b6000878152600a6020526040902060078101546005909101546001600160801b03841691611b3991613c94565b611b439190613c94565b6000888152600a6020526040902060040154909150611b64908890886123dd565b976001600160801b03929092169650945092505050565b6001600160a01b038316611bdd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161084b565b6001600160a01b038216611c3e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161084b565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610b80565b6060600061098c8361258e565b600061098c83836125ea565b6001600160a01b038216611d065760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161084b565b611d1260008383612614565b8060036000828254611d249190613d27565b90915550506001600160a01b03821660009081526001602052604081208054839290611d51908490613d27565b90915550506040518181526001600160a01b03831690600090600080516020613eb28339815191529060200160405180910390a35050565b6000611d958484611aa2565b90506000198114611dfd5781811015611df05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161084b565b611dfd8484848403611b7b565b50505050565b6001600160a01b038316611e675760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161084b565b6001600160a01b038216611ec95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161084b565b611ed4838383612614565b6001600160a01b03831660009081526001602052604090205481811015611f4c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161084b565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290611f83908490613d27565b92505081905550826001600160a01b0316846001600160a01b0316600080516020613eb283398151915284604051611fbd91815260200190565b60405180910390a3611dfd565b611fd4813361267d565b50565b611fe182826112ad565b610a37576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556120173390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61206582826112ad565b15610a37576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600a602052604090206005015461212d5760405162461bcd60e51b815260206004820152602660248201527f56657374656447466c793a554e4558495354494e475f56455354494e475f504f60448201526529a4aa24a7a760d11b606482015260840161084b565b6000818152600a6020526040902054610100900460ff166121a25760405162461bcd60e51b815260206004820152602960248201527f56657374656447466c793a43414e4e4f545f434c41494d5f554e4d494e5445446044820152682fa827a9a4aa24a7a760b91b606482015260840161084b565b6000818152600a60205260408120546201000090046001600160a01b0316906121ca836126e1565b6001600160801b0316905080156109b857600c546040516340c10f1960e01b81526001600160a01b03848116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b15801561222957600080fd5b505af115801561223d573d6000803e3d6000fd5b50505050505050565b6000818310612255578161098c565b5090919050565b6000828152600a60205260409020600501541580159061227c5750600081115b15610a3757600082815260096020908152604080832054600a90925282206001600160801b0390911660088201819055426002830155600782015460059092015490929183916122cc9190613c94565b6122d69190613c94565b9050808311156123395760405162461bcd60e51b815260206004820152602860248201527f56657374656447466c793a4e4f545f454e4f5547485f415641494c41424c455f6044820152672327a92fa12aa92760c11b606482015260840161084b565b6000848152600a60205260408120600701805485929061235a908490613d27565b9091555081905061236b8482613c94565b6000868152600a60205260409020600401546123879190613d3a565b6123919190613d67565b6000858152600a60205260409020600481019190915554611dfd906201000090046001600160a01b0316846127d2565b600061098c838361291a565b600081831015612255578161098c565b6000838152600a60205260408120600101548210156123fe5750600061098c565b60008060008061240e8887612969565b9350935093509350600061242d886a0707f1ec5dcde3d8800000612ab2565b9050612450896000908152600a6020526040902060018101546002909101541190565b15612478576000898152600a60205260409020600801546124719087613d27565b9550612497565b6000898152600a60205260409020600601546124949087613d27565b95505b845b6124a4856024612246565b81116125575760085481871480156124d2575060008b8152600a602052604090206001810154600290910154115b156124de5750836124e8565b8582036124e85750825b60075461252d9061251f90600f81810b91612515918891839161251a91600160801b9004900b828a612aec565b612b0a565b612b41565b670de0b6b3a7640000612b96565b6125379082613d3a565b6125419089613d27565b975050808061254f90613ca7565b915050612499565b506000898152600a602052604090206007810154600590910154612581918891610afb9190613c94565b9998505050505050505050565b6060816000018054806020026020016040519081016040528092919081815260200182805480156125de57602002820191906000526020600020905b8154815260200190600101908083116125ca575b50505050509050919050565b600082600001828154811061260157612601613da2565b9060005260206000200154905092915050565b6001600160a01b038316158061263157506001600160a01b038216155b6109b85760405162461bcd60e51b815260206004820152601a60248201527f56657374656447466c793a5452414e534645525f44454e494544000000000000604482015260640161084b565b61268782826112ad565b610a375761269f816001600160a01b03166014612c01565b6126aa836020612c01565b6040516020016126bb929190613db8565b60408051601f198184030181529082905262461bcd60e51b825261084b916004016139e9565b60006126ec82610c7c565b90506001600160801b03811615610d8357600082815260096020526040812080548392906127249084906001600160801b0316613e27565b82546101009290920a6001600160801b038181021990931691831602179091556000848152600a602052604090205461276f92506201000090046001600160a01b03169083166127d2565b6000828152600a60209081526040918290205491516001600160801b038416815284926201000090046001600160a01b0316917feadeaa4695b18105a5807bb20d08cfc76000c586f59a8ef452e1d6c0e3af5206910160405180910390a3919050565b6001600160a01b0382166128325760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161084b565b61283e82600083612614565b6001600160a01b038216600090815260016020526040902054818110156128b25760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161084b565b6001600160a01b03831660009081526001602052604081208383039055600380548492906128e1908490613c94565b90915550506040518281526000906001600160a01b03851690600080516020613eb28339815191529060200160405180910390a3505050565b60008181526001830160205260408120546129615750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561074c565b50600061074c565b600160008080612990866000908152600a6020526040902060018101546002909101541190565b156129d2576008546000878152600a6020526040902060018101546002909101546129bb9190613c94565b6129c59190613d67565b6129cf9085613d27565b93505b6000868152600a60205260408120600101546129ee9087613c94565b9050600854816129fe9190613d67565b935060085484612a0e9190613d3a565b612a189082613c94565b6000888152600a602052604090206001810154600290910154919350612a3d91613c94565b9050600060085482612a4f9190613d67565b905060085481612a5f9190613d3a565b612a699083613c94565b600854612a769190613c94565b9350808503612a9a5782600854612a8d9190613c94565b612a979085613c94565b93505b612aa5600186613d27565b9450505092959194509250565b600081600003612ac157600080fd5b6000612acd8484612d9d565b905060016001607f1b036001600160801b038216111561098c57600080fd5b6000677fffffffffffffff821115612b0357600080fd5b5060401b90565b6000600f83810b9083900b0260401d60016001607f1b03198112801590612b38575060016001607f1b038113155b61098c57600080fd5b6000600160461b82600f0b12612b5657600080fd5b683fffffffffffffffff1982600f0b1215612b7357506000919050565b61074c608083600f0b700171547652b82fe1777d0ffda0d23a7d1202901d612f02565b600081600003612ba85750600061074c565b600083600f0b1215612bb957600080fd5b600f83900b6001600160801b038316810260401c90608084901c026001600160c01b03811115612be857600080fd5b60401b8119811115612bf957600080fd5b019392505050565b60606000612c10836002613d3a565b612c1b906002613d27565b67ffffffffffffffff811115612c3357612c33613e4e565b6040519080825280601f01601f191660200182016040528015612c5d576020820181803683370190505b509050600360fc1b81600081518110612c7857612c78613da2565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612ca757612ca7613da2565b60200101906001600160f81b031916908160001a9053506000612ccb846002613d3a565b612cd6906001613d27565b90505b6001811115612d4e576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612d0a57612d0a613da2565b1a60f81b828281518110612d2057612d20613da2565b60200101906001600160f81b031916908160001a90535060049490941c93612d4781613e64565b9050612cd9565b50831561098c5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161084b565b600081600003612dac57600080fd5b60006001600160c01b038411612dd75782604085901b81612dcf57612dcf613d51565b049050612eee565b60c084811c6401000000008110612df0576020918201911c5b620100008110612e02576010918201911c5b6101008110612e13576008918201911c5b60108110612e23576004918201911c5b60048110612e33576002918201911c5b60028110612e42576001820191505b60bf820360018603901c6001018260ff0387901b81612e6357612e63613d51565b0492506001600160801b03831115612e7a57600080fd5b608085901c83026001600160801b038616840260c088901c604089901b82811015612ea6576001820391505b608084901b92900382811015612ebd576001820391505b829003608084901c8214612ed357612ed3613e7b565b888181612ee257612ee2613d51565b04870196505050505050505b6001600160801b0381111561098c57600080fd5b6000600160461b82600f0b12612f1757600080fd5b683fffffffffffffffff1982600f0b1215612f3457506000919050565b6001607f1b60006001603f1b8416600f0b1315612f625770016a09e667f3bcc908b2fb1366ea957d3e0260801c5b6000836001603e1b16600f0b1315612f8b577001306fe0a31b7152de8d5a46305c85edec0260801c5b6000836001603d1b16600f0b1315612fb4577001172b83c7d517adcdf7c8c50eb14a791f0260801c5b6000836001603c1b16600f0b1315612fdd5770010b5586cf9890f6298b92b71842a983630260801c5b6000836001603b1b16600f0b1315613006577001059b0d31585743ae7c548eb68ca417fd0260801c5b6000836001603a1b16600f0b131561302f57700102c9a3e778060ee6f7caca4f7a29bde80260801c5b600083600160391b16600f0b13156130585770010163da9fb33356d84a66ae336dcdfa3f0260801c5b600083600160381b16600f0b131561308157700100b1afa5abcbed6129ab13ec11dc95430260801c5b600083668000000000000016600f0b13156130ad5770010058c86da1c09ea1ff19d294cf2f679b0260801c5b600083664000000000000016600f0b13156130d9577001002c605e2e8cec506d21bfc89a23a00f0260801c5b600083662000000000000016600f0b131561310557700100162f3904051fa128bca9c55c31e5df0260801c5b600083661000000000000016600f0b1315613131577001000b175effdc76ba38e31671ca9397250260801c5b600083660800000000000016600f0b131561315d57700100058ba01fb9f96d6cacd4b180917c3d0260801c5b600083660400000000000016600f0b13156131895770010002c5cc37da9491d0985c348c68e7b30260801c5b600083660200000000000016600f0b13156131b5577001000162e525ee054754457d59952920260260801c5b600083660100000000000016600f0b13156131e15770010000b17255775c040618bf4a4ade83fc0260801c5b6000836580000000000016600f0b131561320c577001000058b91b5bc9ae2eed81e9b7d4cfab0260801c5b6000836540000000000016600f0b131561323757700100002c5c89d5ec6ca4d7c8acc017b7c90260801c5b6000836520000000000016600f0b13156132625770010000162e43f4f831060e02d839a9d16d0260801c5b6000836510000000000016600f0b131561328d57700100000b1721bcfc99d9f890ea069117630260801c5b6000836508000000000016600f0b13156132b85770010000058b90cf1e6d97f9ca14dbcc16280260801c5b6000836504000000000016600f0b13156132e3577001000002c5c863b73f016468f6bac5ca2b0260801c5b6000836502000000000016600f0b131561330e57700100000162e430e5a18f6119e3c02282a50260801c5b6000836501000000000016600f0b1315613339577001000000b1721835514b86e6d96efd1bfe0260801c5b60008364800000000016600f0b131561336357700100000058b90c0b48c6be5df846c5b2ef0260801c5b60008364400000000016600f0b131561338d5770010000002c5c8601cc6b9e94213c72737a0260801c5b60008364200000000016600f0b13156133b7577001000000162e42fff037df38aa2b219f060260801c5b60008364100000000016600f0b13156133e15770010000000b17217fba9c739aa5819f44f90260801c5b60008364080000000016600f0b131561340b577001000000058b90bfcdee5acd3c1cedc8230260801c5b60008364040000000016600f0b131561343557700100000002c5c85fe31f35a6a30da1be500260801c5b60008364020000000016600f0b131561345f5770010000000162e42ff0999ce3541b9fffcf0260801c5b60008364010000000016600f0b131561348957700100000000b17217f80f4ef5aadda455540260801c5b600083638000000016600f0b13156134b25770010000000058b90bfbf8479bd5a81b51ad0260801c5b600083634000000016600f0b13156134db577001000000002c5c85fdf84bd62ae30a74cc0260801c5b600083632000000016600f0b131561350457700100000000162e42fefb2fed257559bdaa0260801c5b600083631000000016600f0b131561352d577001000000000b17217f7d5a7716bba4a9ae0260801c5b600083630800000016600f0b131561355657700100000000058b90bfbe9ddbac5e109cce0260801c5b600083630400000016600f0b131561357f5770010000000002c5c85fdf4b15de6f17eb0d0260801c5b600083630200000016600f0b13156135a8577001000000000162e42fefa494f1478fde050260801c5b600083630100000016600f0b13156135d15770010000000000b17217f7d20cf927c8e94c0260801c5b6000836280000016600f0b13156135f9577001000000000058b90bfbe8f71cb4e4b33d0260801c5b6000836240000016600f0b131561362157700100000000002c5c85fdf477b662b269450260801c5b6000836220000016600f0b13156136495770010000000000162e42fefa3ae53369388c0260801c5b6000836210000016600f0b131561367157700100000000000b17217f7d1d351a389d400260801c5b6000836208000016600f0b13156136995770010000000000058b90bfbe8e8b2d3d4ede0260801c5b6000836204000016600f0b13156136c1577001000000000002c5c85fdf4741bea6e77e0260801c5b6000836202000016600f0b13156136e957700100000000000162e42fefa39fe95583c20260801c5b6000836201000016600f0b1315613711577001000000000000b17217f7d1cfb72b45e10260801c5b60008361800016600f0b131561373857700100000000000058b90bfbe8e7cc35c3f00260801c5b60008361400016600f0b131561375f5770010000000000002c5c85fdf473e242ea380260801c5b60008361200016600f0b1315613786577001000000000000162e42fefa39f02b772c0260801c5b60008361100016600f0b13156137ad5770010000000000000b17217f7d1cf7d83c1a0260801c5b60008361080016600f0b13156137d4577001000000000000058b90bfbe8e7bdcbe2e0260801c5b60008361040016600f0b13156137fb57700100000000000002c5c85fdf473dea871f0260801c5b60008361020016600f0b13156138225770010000000000000162e42fefa39ef44d910260801c5b60008361010016600f0b131561384957700100000000000000b17217f7d1cf79e9490260801c5b600083608016600f0b131561386f5770010000000000000058b90bfbe8e7bce5440260801c5b600083604016600f0b1315613895577001000000000000002c5c85fdf473de6eca0260801c5b600083602016600f0b13156138bb57700100000000000000162e42fefa39ef366f0260801c5b600083601016600f0b13156138e1577001000000000000000b17217f7d1cf79afa0260801c5b600083600816600f0b131561390757700100000000000000058b90bfbe8e7bcd6d0260801c5b600083600416600f0b131561392d5770010000000000000002c5c85fdf473de6b20260801c5b600083600216600f0b1315613953577001000000000000000162e42fefa39ef3580260801c5b600083600116600f0b13156139795770010000000000000000b17217f7d1cf79ab0260801c5b600f83810b60401d603f03900b1c60016001607f1b0381111561074c57600080fd5b6000602082840312156139ad57600080fd5b81356001600160e01b03198116811461098c57600080fd5b60005b838110156139e05781810151838201526020016139c8565b50506000910152565b6020815260008251806020840152613a088160408501602087016139c5565b601f01601f19169190910160400192915050565b600060208284031215613a2e57600080fd5b5035919050565b80356001600160a01b0381168114610d8357600080fd5b60008060408385031215613a5f57600080fd5b613a6883613a35565b946020939093013593505050565b600080600060608486031215613a8b57600080fd5b613a9484613a35565b9250613aa260208501613a35565b9150604084013590509250925092565b60008060408385031215613ac557600080fd5b82359150613ad560208401613a35565b90509250929050565b600060208284031215613af057600080fd5b61098c82613a35565b6020808252825182820181905260009190848201906040850190845b81811015613b3157835183529284019291840191600101613b15565b50909695505050505050565b600080600060608486031215613b5257600080fd5b8335925060208401359150613b6960408501613a35565b90509250925092565b60008060408385031215613b8557600080fd5b50508035926020909101359150565b600080600080600060a08688031215613bac57600080fd5b613bb586613a35565b94506020860135935060408601358015158114613bd157600080fd5b94979396509394606081013594506080013592915050565b60008060408385031215613bfc57600080fd5b613c0583613a35565b9150613ad560208401613a35565b600181811c90821680613c2757607f821691505b602082108103610c6057634e487b7160e01b600052602260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561074c5761074c613c7e565b600060018201613cb957613cb9613c7e565b5060010190565b60208082526018908201527715995cdd195911d19b1e4e9050d0d154d4d7d1115392515160421b604082015260600190565b6020808252818101527f56657374656447466c793a504f534954494f4e5f4e4f545f4255524e41424c45604082015260600190565b8082018082111561074c5761074c613c7e565b808202811582820484141761074c5761074c613c7e565b634e487b7160e01b600052601260045260246000fd5b600082613d8457634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613d9b57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351613dea8160178501602088016139c5565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613e1b8160288401602088016139c5565b01602801949350505050565b6001600160801b03818116838216019080821115613e4757613e47613c7e565b5092915050565b634e487b7160e01b600052604160045260246000fd5b600081613e7357613e73613c7e565b506000190190565b634e487b7160e01b600052600160045260246000fdfedf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220d61235d6fdc7e4eea4274ea3df92f5fc9107a10502930bf693fb4a00926284a864736f6c63430008110033df8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42000000000000000000000000872bad41cfc8ba731f811fea8b2d0b9fd6369585000000000000000000000000f5411006eefd66c213d2fd2033a1d340458b7226

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061027f5760003560e01c80636eacd3981161015c578063a457c2d7116100ce578063d6d789b711610087578063d6d789b7146106a5578063d8dbdd9e146106b8578063dd62ed3e146106cb578063e4bd38e3146106de578063e8d54fb714610705578063ff4ff86f1461071257600080fd5b8063a457c2d71461061f578063a9059cbb14610632578063b390c0ab14610645578063b8664dca14610658578063bac61fa61461067f578063d547741f1461069257600080fd5b806386f298a71161012057806386f298a7146105a05780638ed0784b146105a8578063913f9d91146105e957806391d14854146105fc57806395d89b411461060f578063a217fddf1461061757600080fd5b80636eacd3981461052957806370a082311461053c57806374fd10921461056557806375b238fc146105785780637b1db3711461058d57600080fd5b8063313ce567116101f55780633eef2ec1116101b95780633eef2ec1146103df57806349e8e06a146103f257806350a38f4214610405578063513bed12146104e357806360c57fee146104f6578063665079861461051657600080fd5b8063313ce5671461038e57806336568abe1461039d578063369a7683146103b057806337321589146103c357806339509351146103cc57600080fd5b80631249c58b116102475780631249c58b1461030857806318160ddd146103125780631fdbd6701461031a57806323b872dd14610345578063248a9ca3146103585780632f2ff15d1461037b57600080fd5b806301ffc9a71461028457806306fdde03146102ac57806307257746146102c1578063095ea7b3146102e25780630a78096d146102f5575b600080fd5b61029761029236600461399b565b61071b565b60405190151581526020015b60405180910390f35b6102b4610752565b6040516102a391906139e9565b6102d46102cf366004613a1c565b6107e4565b6040519081526020016102a3565b6102976102f0366004613a4c565b6107fb565b6102d4610303366004613a1c565b610813565b610310610829565b005b6003546102d4565b600c5461032d906001600160a01b031681565b6040516001600160a01b0390911681526020016102a3565b610297610353366004613a76565b61096d565b6102d4610366366004613a1c565b60009081526020819052604090206001015490565b610310610389366004613ab2565b610993565b604051601281526020016102a3565b6103106103ab366004613ab2565b6109bd565b6103106103be366004613a1c565b610a3b565b6102d4600d5481565b6102976103da366004613a4c565b610b8d565b6102d46103ed366004613ade565b610baf565b6102d4610400366004613a1c565b610c66565b61047a610413366004613a1c565b600a60205260009081526040902080546001820154600283015460038401546004850154600586015460068701546007880154600889015460099099015460ff808a169a6101008b04909116996201000090046001600160a01b031698979695949392918c565b604080519c15158d529a151560208d01526001600160a01b03909916998b019990995260608a0196909652608089019490945260a088019290925260c087015260e0860152610100850152610120840152610140830191909152610160820152610180016102a3565b6102d46104f1366004613a1c565b610c7c565b610509610504366004613ade565b610cc3565b6040516102a39190613af9565b6102d4610524366004613a1c565b610ce7565b6102d4610537366004613ade565b610d88565b6102d461054a366004613ade565b6001600160a01b031660009081526001602052604090205490565b610310610573366004613a1c565b610da6565b6102d4600080516020613e9283398151915281565b61031061059b366004613b3d565b610e42565b61031061118b565b6105d16105b6366004613a1c565b6009602052600090815260409020546001600160801b031681565b6040516001600160801b0390911681526020016102a3565b6102d46105f7366004613ade565b611229565b61029761060a366004613ab2565b6112ad565b6102b46112d6565b6102d4600081565b61029761062d366004613a4c565b6112e5565b610297610640366004613a4c565b61136b565b610310610653366004613b72565b611379565b6102d47f842693f29231e6ec9f0d05508dbecff8eee59d0ddd46a9f7ffa553c25f01fed081565b61031061068d366004613b94565b6114f2565b6103106106a0366004613ab2565b6119a9565b6102d46106b3366004613ade565b6119ce565b6102d46106c6366004613b72565b611a51565b6102d46106d9366004613be9565b611aa2565b6007546106f290600160801b9004600f0b81565b604051600f9190910b81526020016102a3565b6007546106f290600f0b81565b6102d4600e5481565b60006001600160e01b03198216637965db0b60e01b148061074c57506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606004805461076190613c13565b80601f016020809104026020016040519081016040528092919081815260200182805461078d90613c13565b80156107da5780601f106107af576101008083540402835291602001916107da565b820191906000526020600020905b8154815290600101906020018083116107bd57829003601f168201915b5050505050905090565b6000806107f18342611acd565b5090949350505050565b600033610809818585611b7b565b5060019392505050565b6000806108208342611acd565b95945050505050565b6002600654036108545760405162461bcd60e51b815260040161084b90613c47565b60405180910390fd5b600260065560005b336000908152600b6020526040902061087490611c97565b5181101561096557336000908152600b602052604081206108959083611ca4565b6000818152600a6020526040902054909150610100900460ff16610952576000818152600a6020526040812060050154600d8054919290916108d8908490613c94565b90915550506000818152600a60205260409020805461ff00191661010017815560050154610907903390611cb0565b6000818152600a6020908152604091829020600501549151918252829133917f25b428dfde728ccfaddad7e29e4ac23c24ed7fd1a6e3e3f91894a9a073f5dfff910160405180910390a35b508061095d81613ca7565b91505061085c565b506001600655565b60003361097b858285611d89565b610986858585611e03565b60019150505b9392505050565b6000828152602081905260409020600101546109ae81611fca565b6109b88383611fd7565b505050565b6001600160a01b0381163314610a2d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161084b565b610a37828261205b565b5050565b610a53600080516020613e92833981519152336112ad565b610a6f5760405162461bcd60e51b815260040161084b90613cc0565b6000818152600a602052604090205460ff16610a9d5760405162461bcd60e51b815260040161084b90613cf2565b610aa6816120c0565b600081815260096020908152604080832054600a909252822060078101546005909101546001600160801b0390921691610ae09190613c94565b610aea9190613c94565b90506000610b0082610afb85610ce7565b612246565b9050610b0c838261225c565b6000838152600a602052604081206009018054839290610b2d908490613d27565b90915550506000838152600a602090815260409182902054915183815285926201000090046001600160a01b0316917f23ff0e75edf108e3d0392d92e13e8c8a868ef19001bd49f9e94876dc46dff87f91015b60405180910390a3505050565b600033610809818585610ba08383611aa2565b610baa9190613d27565b611b7b565b6000805b6001600160a01b0383166000908152600b60205260409020610bd490611c97565b51811015610c60576001600160a01b0383166000908152600b60205260408120610bfe9083611ca4565b90506000806000610c0f8442611acd565b925092509250600082841015610c26576000610c30565b610c308385613c94565b9050610c3c8183612246565b610c469088613d27565b965050505050508080610c5890613ca7565b915050610bb3565b50919050565b600080610c738342611acd565b50949350505050565b600080600080610c8c8542611acd565b925092509250600082841015610ca3576000610cad565b610cad8385613c94565b9050610cb98183612246565b9695505050505050565b6001600160a01b0381166000908152600b6020526040902060609061074c90611c97565b6000818152600a602052604081205460ff1615610d83576000828152600a6020526040812060030154610d2c90610d1e9042613c94565b600854610afb906024613d3a565b90506008546024610d3d9190613d3a565b6000848152600a6020526040902060050154610d599083613d3a565b610d639190613d67565b6000848152600a6020526040902060050154610d7f9190613c94565b9150505b919050565b6001600160a01b03811660009081526001602052604081205461074c565b600260065403610dc85760405162461bcd60e51b815260040161084b90613c47565b60026006556000818152600a60205260409020546201000090046001600160a01b03163314610e395760405162461bcd60e51b815260206004820152601f60248201527f56657374656447466c793a4e4f545f4f574e45525f4f465f56455354494e4700604482015260640161084b565b610965816120c0565b610e6c7f842693f29231e6ec9f0d05508dbecff8eee59d0ddd46a9f7ffa553c25f01fed0336112ad565b610e885760405162461bcd60e51b815260040161084b90613cc0565b60008211610ed85760405162461bcd60e51b815260206004820152601c60248201527f56657374656447466c793a43414e4e4f545f5452414e534645525f3000000000604482015260640161084b565b610ee1836120c0565b6000838152600a6020818152604080842060078101546004820154600985529286205494909352600501549193909290916001600160801b0390911690610f29908590613c94565b610f339190613c94565b905084811015610f945760405162461bcd60e51b815260206004820152602660248201527f56657374656447466c793a494e53554646494349454e545f56455354494e475f604482015265105353d5539560d21b606482015260840161084b565b610f9e868661225c565b600e8054906000610fae83613ca7565b909155505060408051610180810182526000808252600160208084018290526001600160a01b038916848601528a8352600a905292812090920154606082015242608082015260a081019190915260c081018261100b8886613d3a565b6110159190613d67565b81526020808201889052600060408084018290526060808501839052608080860184905260a0958601849052600e80548552600a8652838520885181548a8901518b88015161ffff1990921692151561ff0019169290921761010092151583021762010000600160b01b031916620100006001600160a01b0392831602178355948a0151600183015592890151600282015596880151600388015560c0880151600488015560e08801516005880155908701516006870155610120870151600787015561014087015160088701556101609096015160099095019490945593549288168152600b9091529190912061110c916123c1565b506111178486611cb0565b6000868152600a60205260409081902054600e5491516001600160a01b03808816938a93620100009004909116917fb6c017d169ccb4869b64329e21c90b013dcc2cf6e72aa635b2287e87e06f74b49161117b918b90918252602082015260400190565b60405180910390a4505050505050565b6002600654036111ad5760405162461bcd60e51b815260040161084b90613c47565b600260065560005b336000908152600b602052604090206111cd90611c97565b5181101561096557336000908152600b602052604081206111ee9083611ca4565b6000818152600a6020526040902054909150610100900460ff161561121657611216816120c0565b508061122181613ca7565b9150506111b5565b6000805b6001600160a01b0383166000908152600b6020526040902061124e90611c97565b51811015610c60576001600160a01b0383166000908152600b602052604081206112789083611ca4565b905060006112868242611acd565b5050905080846112969190613d27565b9350505080806112a590613ca7565b91505061122d565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606005805461076190613c13565b600033816112f38286611aa2565b9050838110156113535760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161084b565b6113608286868403611b7b565b506001949350505050565b600033610809818585611e03565b611391600080516020613e92833981519152336112ad565b6113ad5760405162461bcd60e51b815260040161084b90613cc0565b6000828152600a602052604090205460ff166113db5760405162461bcd60e51b815260040161084b90613cf2565b6113e482610ce7565b6000838152600a6020526040902060090154611401908390613d27565b11156114605760405162461bcd60e51b815260206004820152602860248201527f56657374656447466c793a454d504c4f5945455f4255524e5f414d4f554e545f604482015267115610d15151115160c21b606482015260840161084b565b611469826120c0565b611473828261225c565b6000828152600a602052604081206009018054839290611494908490613d27565b90915550506000828152600a602090815260409182902054915183815284926201000090046001600160a01b0316917f23ff0e75edf108e3d0392d92e13e8c8a868ef19001bd49f9e94876dc46dff87f910160405180910390a35050565b61150a600080516020613e92833981519152336112ad565b6115265760405162461bcd60e51b815260040161084b90613cc0565b600084116115715760405162461bcd60e51b8152602060048201526018602482015277056657374656447466c793a43414e4e4f545f564553545f360441b604482015260640161084b565b838211156115d25760405162461bcd60e51b815260206004820152602860248201527f56657374656447466c793a43414e4e4f545f554e4c4f434b5f4d4f52455f5448604482015267105397d513d5105360c21b606482015260840161084b565b600c60009054906101000a90046001600160a01b03166001600160a01b03166332cb6b0c6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015611627573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164b9190613d89565b600c54604080516318160ddd60e01b8152905187926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015611694573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b89190613d89565b600354600d546116c89190613d27565b6116d29190613d27565b6116dc9190613d27565b111561172a5760405162461bcd60e51b815260206004820152601a60248201527f56657374656447466c793a535550504c595f4f564552464c4f57000000000000604482015260640161084b565b821561179c57428111156117975760405162461bcd60e51b815260206004820152602e60248201527f56657374656447466c793a43414e4e4f545f5345545f415f4655545552455f4560448201526d4d504c4f594d454e545f4441544560901b606482015260840161084b565b6117a0565b5060005b83600d60008282546117b29190613d27565b9091555050600e80549060006117c783613ca7565b91905055506040518061018001604052808415158152602001600015158152602001866001600160a01b0316815260200142815260200142815260200182815260200185815260200185815260200183815260200160008152602001600081526020016000815250600a6000600e54815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548160ff02191690831515021790555060408201518160000160026101000a8154816001600160a01b0302191690836001600160a01b03160217905550606082015181600101556080820151816002015560a0820151816003015560c0820151816004015560e08201518160050155610100820151816006015561012082015181600701556101408201518160080155610160820151816009015590505061194b600e54600b6000886001600160a01b03166001600160a01b031681526020019081526020016000206123c190919063ffffffff16565b50600e546040805186815285151560208201529081018490524260608201526001600160a01b038716907fdfd4cfa990b568f34b7dbd8b44cdb986dae77eea468f2d87b2163f2c1e1c1b379060800160405180910390a35050505050565b6000828152602081905260409020600101546119c481611fca565b6109b8838361205b565b6000805b6001600160a01b0383166000908152600b602052604090206119f390611c97565b51811015610c60576001600160a01b0383166000908152600b60205260408120611a1d9083611ca4565b90506000611a2b8242611acd565b509150611a3a90508185613d27565b935050508080611a4990613ca7565b9150506119d2565b600080600080611a6a86611a6542886123cd565b611acd565b925092509250600082841015611a81576000611a8b565b611a8b8385613c94565b9050611a978183612246565b979650505050505050565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b600082815260096020908152604080832054600a909252822054829182916001600160801b03909116908290610100900460ff16611b0c576000611b43565b6000878152600a6020526040902060078101546005909101546001600160801b03841691611b3991613c94565b611b439190613c94565b6000888152600a6020526040902060040154909150611b64908890886123dd565b976001600160801b03929092169650945092505050565b6001600160a01b038316611bdd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161084b565b6001600160a01b038216611c3e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161084b565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610b80565b6060600061098c8361258e565b600061098c83836125ea565b6001600160a01b038216611d065760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161084b565b611d1260008383612614565b8060036000828254611d249190613d27565b90915550506001600160a01b03821660009081526001602052604081208054839290611d51908490613d27565b90915550506040518181526001600160a01b03831690600090600080516020613eb28339815191529060200160405180910390a35050565b6000611d958484611aa2565b90506000198114611dfd5781811015611df05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161084b565b611dfd8484848403611b7b565b50505050565b6001600160a01b038316611e675760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161084b565b6001600160a01b038216611ec95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161084b565b611ed4838383612614565b6001600160a01b03831660009081526001602052604090205481811015611f4c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161084b565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290611f83908490613d27565b92505081905550826001600160a01b0316846001600160a01b0316600080516020613eb283398151915284604051611fbd91815260200190565b60405180910390a3611dfd565b611fd4813361267d565b50565b611fe182826112ad565b610a37576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556120173390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61206582826112ad565b15610a37576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818152600a602052604090206005015461212d5760405162461bcd60e51b815260206004820152602660248201527f56657374656447466c793a554e4558495354494e475f56455354494e475f504f60448201526529a4aa24a7a760d11b606482015260840161084b565b6000818152600a6020526040902054610100900460ff166121a25760405162461bcd60e51b815260206004820152602960248201527f56657374656447466c793a43414e4e4f545f434c41494d5f554e4d494e5445446044820152682fa827a9a4aa24a7a760b91b606482015260840161084b565b6000818152600a60205260408120546201000090046001600160a01b0316906121ca836126e1565b6001600160801b0316905080156109b857600c546040516340c10f1960e01b81526001600160a01b03848116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b15801561222957600080fd5b505af115801561223d573d6000803e3d6000fd5b50505050505050565b6000818310612255578161098c565b5090919050565b6000828152600a60205260409020600501541580159061227c5750600081115b15610a3757600082815260096020908152604080832054600a90925282206001600160801b0390911660088201819055426002830155600782015460059092015490929183916122cc9190613c94565b6122d69190613c94565b9050808311156123395760405162461bcd60e51b815260206004820152602860248201527f56657374656447466c793a4e4f545f454e4f5547485f415641494c41424c455f6044820152672327a92fa12aa92760c11b606482015260840161084b565b6000848152600a60205260408120600701805485929061235a908490613d27565b9091555081905061236b8482613c94565b6000868152600a60205260409020600401546123879190613d3a565b6123919190613d67565b6000858152600a60205260409020600481019190915554611dfd906201000090046001600160a01b0316846127d2565b600061098c838361291a565b600081831015612255578161098c565b6000838152600a60205260408120600101548210156123fe5750600061098c565b60008060008061240e8887612969565b9350935093509350600061242d886a0707f1ec5dcde3d8800000612ab2565b9050612450896000908152600a6020526040902060018101546002909101541190565b15612478576000898152600a60205260409020600801546124719087613d27565b9550612497565b6000898152600a60205260409020600601546124949087613d27565b95505b845b6124a4856024612246565b81116125575760085481871480156124d2575060008b8152600a602052604090206001810154600290910154115b156124de5750836124e8565b8582036124e85750825b60075461252d9061251f90600f81810b91612515918891839161251a91600160801b9004900b828a612aec565b612b0a565b612b41565b670de0b6b3a7640000612b96565b6125379082613d3a565b6125419089613d27565b975050808061254f90613ca7565b915050612499565b506000898152600a602052604090206007810154600590910154612581918891610afb9190613c94565b9998505050505050505050565b6060816000018054806020026020016040519081016040528092919081815260200182805480156125de57602002820191906000526020600020905b8154815260200190600101908083116125ca575b50505050509050919050565b600082600001828154811061260157612601613da2565b9060005260206000200154905092915050565b6001600160a01b038316158061263157506001600160a01b038216155b6109b85760405162461bcd60e51b815260206004820152601a60248201527f56657374656447466c793a5452414e534645525f44454e494544000000000000604482015260640161084b565b61268782826112ad565b610a375761269f816001600160a01b03166014612c01565b6126aa836020612c01565b6040516020016126bb929190613db8565b60408051601f198184030181529082905262461bcd60e51b825261084b916004016139e9565b60006126ec82610c7c565b90506001600160801b03811615610d8357600082815260096020526040812080548392906127249084906001600160801b0316613e27565b82546101009290920a6001600160801b038181021990931691831602179091556000848152600a602052604090205461276f92506201000090046001600160a01b03169083166127d2565b6000828152600a60209081526040918290205491516001600160801b038416815284926201000090046001600160a01b0316917feadeaa4695b18105a5807bb20d08cfc76000c586f59a8ef452e1d6c0e3af5206910160405180910390a3919050565b6001600160a01b0382166128325760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161084b565b61283e82600083612614565b6001600160a01b038216600090815260016020526040902054818110156128b25760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161084b565b6001600160a01b03831660009081526001602052604081208383039055600380548492906128e1908490613c94565b90915550506040518281526000906001600160a01b03851690600080516020613eb28339815191529060200160405180910390a3505050565b60008181526001830160205260408120546129615750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561074c565b50600061074c565b600160008080612990866000908152600a6020526040902060018101546002909101541190565b156129d2576008546000878152600a6020526040902060018101546002909101546129bb9190613c94565b6129c59190613d67565b6129cf9085613d27565b93505b6000868152600a60205260408120600101546129ee9087613c94565b9050600854816129fe9190613d67565b935060085484612a0e9190613d3a565b612a189082613c94565b6000888152600a602052604090206001810154600290910154919350612a3d91613c94565b9050600060085482612a4f9190613d67565b905060085481612a5f9190613d3a565b612a699083613c94565b600854612a769190613c94565b9350808503612a9a5782600854612a8d9190613c94565b612a979085613c94565b93505b612aa5600186613d27565b9450505092959194509250565b600081600003612ac157600080fd5b6000612acd8484612d9d565b905060016001607f1b036001600160801b038216111561098c57600080fd5b6000677fffffffffffffff821115612b0357600080fd5b5060401b90565b6000600f83810b9083900b0260401d60016001607f1b03198112801590612b38575060016001607f1b038113155b61098c57600080fd5b6000600160461b82600f0b12612b5657600080fd5b683fffffffffffffffff1982600f0b1215612b7357506000919050565b61074c608083600f0b700171547652b82fe1777d0ffda0d23a7d1202901d612f02565b600081600003612ba85750600061074c565b600083600f0b1215612bb957600080fd5b600f83900b6001600160801b038316810260401c90608084901c026001600160c01b03811115612be857600080fd5b60401b8119811115612bf957600080fd5b019392505050565b60606000612c10836002613d3a565b612c1b906002613d27565b67ffffffffffffffff811115612c3357612c33613e4e565b6040519080825280601f01601f191660200182016040528015612c5d576020820181803683370190505b509050600360fc1b81600081518110612c7857612c78613da2565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612ca757612ca7613da2565b60200101906001600160f81b031916908160001a9053506000612ccb846002613d3a565b612cd6906001613d27565b90505b6001811115612d4e576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612d0a57612d0a613da2565b1a60f81b828281518110612d2057612d20613da2565b60200101906001600160f81b031916908160001a90535060049490941c93612d4781613e64565b9050612cd9565b50831561098c5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161084b565b600081600003612dac57600080fd5b60006001600160c01b038411612dd75782604085901b81612dcf57612dcf613d51565b049050612eee565b60c084811c6401000000008110612df0576020918201911c5b620100008110612e02576010918201911c5b6101008110612e13576008918201911c5b60108110612e23576004918201911c5b60048110612e33576002918201911c5b60028110612e42576001820191505b60bf820360018603901c6001018260ff0387901b81612e6357612e63613d51565b0492506001600160801b03831115612e7a57600080fd5b608085901c83026001600160801b038616840260c088901c604089901b82811015612ea6576001820391505b608084901b92900382811015612ebd576001820391505b829003608084901c8214612ed357612ed3613e7b565b888181612ee257612ee2613d51565b04870196505050505050505b6001600160801b0381111561098c57600080fd5b6000600160461b82600f0b12612f1757600080fd5b683fffffffffffffffff1982600f0b1215612f3457506000919050565b6001607f1b60006001603f1b8416600f0b1315612f625770016a09e667f3bcc908b2fb1366ea957d3e0260801c5b6000836001603e1b16600f0b1315612f8b577001306fe0a31b7152de8d5a46305c85edec0260801c5b6000836001603d1b16600f0b1315612fb4577001172b83c7d517adcdf7c8c50eb14a791f0260801c5b6000836001603c1b16600f0b1315612fdd5770010b5586cf9890f6298b92b71842a983630260801c5b6000836001603b1b16600f0b1315613006577001059b0d31585743ae7c548eb68ca417fd0260801c5b6000836001603a1b16600f0b131561302f57700102c9a3e778060ee6f7caca4f7a29bde80260801c5b600083600160391b16600f0b13156130585770010163da9fb33356d84a66ae336dcdfa3f0260801c5b600083600160381b16600f0b131561308157700100b1afa5abcbed6129ab13ec11dc95430260801c5b600083668000000000000016600f0b13156130ad5770010058c86da1c09ea1ff19d294cf2f679b0260801c5b600083664000000000000016600f0b13156130d9577001002c605e2e8cec506d21bfc89a23a00f0260801c5b600083662000000000000016600f0b131561310557700100162f3904051fa128bca9c55c31e5df0260801c5b600083661000000000000016600f0b1315613131577001000b175effdc76ba38e31671ca9397250260801c5b600083660800000000000016600f0b131561315d57700100058ba01fb9f96d6cacd4b180917c3d0260801c5b600083660400000000000016600f0b13156131895770010002c5cc37da9491d0985c348c68e7b30260801c5b600083660200000000000016600f0b13156131b5577001000162e525ee054754457d59952920260260801c5b600083660100000000000016600f0b13156131e15770010000b17255775c040618bf4a4ade83fc0260801c5b6000836580000000000016600f0b131561320c577001000058b91b5bc9ae2eed81e9b7d4cfab0260801c5b6000836540000000000016600f0b131561323757700100002c5c89d5ec6ca4d7c8acc017b7c90260801c5b6000836520000000000016600f0b13156132625770010000162e43f4f831060e02d839a9d16d0260801c5b6000836510000000000016600f0b131561328d57700100000b1721bcfc99d9f890ea069117630260801c5b6000836508000000000016600f0b13156132b85770010000058b90cf1e6d97f9ca14dbcc16280260801c5b6000836504000000000016600f0b13156132e3577001000002c5c863b73f016468f6bac5ca2b0260801c5b6000836502000000000016600f0b131561330e57700100000162e430e5a18f6119e3c02282a50260801c5b6000836501000000000016600f0b1315613339577001000000b1721835514b86e6d96efd1bfe0260801c5b60008364800000000016600f0b131561336357700100000058b90c0b48c6be5df846c5b2ef0260801c5b60008364400000000016600f0b131561338d5770010000002c5c8601cc6b9e94213c72737a0260801c5b60008364200000000016600f0b13156133b7577001000000162e42fff037df38aa2b219f060260801c5b60008364100000000016600f0b13156133e15770010000000b17217fba9c739aa5819f44f90260801c5b60008364080000000016600f0b131561340b577001000000058b90bfcdee5acd3c1cedc8230260801c5b60008364040000000016600f0b131561343557700100000002c5c85fe31f35a6a30da1be500260801c5b60008364020000000016600f0b131561345f5770010000000162e42ff0999ce3541b9fffcf0260801c5b60008364010000000016600f0b131561348957700100000000b17217f80f4ef5aadda455540260801c5b600083638000000016600f0b13156134b25770010000000058b90bfbf8479bd5a81b51ad0260801c5b600083634000000016600f0b13156134db577001000000002c5c85fdf84bd62ae30a74cc0260801c5b600083632000000016600f0b131561350457700100000000162e42fefb2fed257559bdaa0260801c5b600083631000000016600f0b131561352d577001000000000b17217f7d5a7716bba4a9ae0260801c5b600083630800000016600f0b131561355657700100000000058b90bfbe9ddbac5e109cce0260801c5b600083630400000016600f0b131561357f5770010000000002c5c85fdf4b15de6f17eb0d0260801c5b600083630200000016600f0b13156135a8577001000000000162e42fefa494f1478fde050260801c5b600083630100000016600f0b13156135d15770010000000000b17217f7d20cf927c8e94c0260801c5b6000836280000016600f0b13156135f9577001000000000058b90bfbe8f71cb4e4b33d0260801c5b6000836240000016600f0b131561362157700100000000002c5c85fdf477b662b269450260801c5b6000836220000016600f0b13156136495770010000000000162e42fefa3ae53369388c0260801c5b6000836210000016600f0b131561367157700100000000000b17217f7d1d351a389d400260801c5b6000836208000016600f0b13156136995770010000000000058b90bfbe8e8b2d3d4ede0260801c5b6000836204000016600f0b13156136c1577001000000000002c5c85fdf4741bea6e77e0260801c5b6000836202000016600f0b13156136e957700100000000000162e42fefa39fe95583c20260801c5b6000836201000016600f0b1315613711577001000000000000b17217f7d1cfb72b45e10260801c5b60008361800016600f0b131561373857700100000000000058b90bfbe8e7cc35c3f00260801c5b60008361400016600f0b131561375f5770010000000000002c5c85fdf473e242ea380260801c5b60008361200016600f0b1315613786577001000000000000162e42fefa39f02b772c0260801c5b60008361100016600f0b13156137ad5770010000000000000b17217f7d1cf7d83c1a0260801c5b60008361080016600f0b13156137d4577001000000000000058b90bfbe8e7bdcbe2e0260801c5b60008361040016600f0b13156137fb57700100000000000002c5c85fdf473dea871f0260801c5b60008361020016600f0b13156138225770010000000000000162e42fefa39ef44d910260801c5b60008361010016600f0b131561384957700100000000000000b17217f7d1cf79e9490260801c5b600083608016600f0b131561386f5770010000000000000058b90bfbe8e7bce5440260801c5b600083604016600f0b1315613895577001000000000000002c5c85fdf473de6eca0260801c5b600083602016600f0b13156138bb57700100000000000000162e42fefa39ef366f0260801c5b600083601016600f0b13156138e1577001000000000000000b17217f7d1cf79afa0260801c5b600083600816600f0b131561390757700100000000000000058b90bfbe8e7bcd6d0260801c5b600083600416600f0b131561392d5770010000000000000002c5c85fdf473de6b20260801c5b600083600216600f0b1315613953577001000000000000000162e42fefa39ef3580260801c5b600083600116600f0b13156139795770010000000000000000b17217f7d1cf79ab0260801c5b600f83810b60401d603f03900b1c60016001607f1b0381111561074c57600080fd5b6000602082840312156139ad57600080fd5b81356001600160e01b03198116811461098c57600080fd5b60005b838110156139e05781810151838201526020016139c8565b50506000910152565b6020815260008251806020840152613a088160408501602087016139c5565b601f01601f19169190910160400192915050565b600060208284031215613a2e57600080fd5b5035919050565b80356001600160a01b0381168114610d8357600080fd5b60008060408385031215613a5f57600080fd5b613a6883613a35565b946020939093013593505050565b600080600060608486031215613a8b57600080fd5b613a9484613a35565b9250613aa260208501613a35565b9150604084013590509250925092565b60008060408385031215613ac557600080fd5b82359150613ad560208401613a35565b90509250929050565b600060208284031215613af057600080fd5b61098c82613a35565b6020808252825182820181905260009190848201906040850190845b81811015613b3157835183529284019291840191600101613b15565b50909695505050505050565b600080600060608486031215613b5257600080fd5b8335925060208401359150613b6960408501613a35565b90509250925092565b60008060408385031215613b8557600080fd5b50508035926020909101359150565b600080600080600060a08688031215613bac57600080fd5b613bb586613a35565b94506020860135935060408601358015158114613bd157600080fd5b94979396509394606081013594506080013592915050565b60008060408385031215613bfc57600080fd5b613c0583613a35565b9150613ad560208401613a35565b600181811c90821680613c2757607f821691505b602082108103610c6057634e487b7160e01b600052602260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8181038181111561074c5761074c613c7e565b600060018201613cb957613cb9613c7e565b5060010190565b60208082526018908201527715995cdd195911d19b1e4e9050d0d154d4d7d1115392515160421b604082015260600190565b6020808252818101527f56657374656447466c793a504f534954494f4e5f4e4f545f4255524e41424c45604082015260600190565b8082018082111561074c5761074c613c7e565b808202811582820484141761074c5761074c613c7e565b634e487b7160e01b600052601260045260246000fd5b600082613d8457634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215613d9b57600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b815260008351613dea8160178501602088016139c5565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613e1b8160288401602088016139c5565b01602801949350505050565b6001600160801b03818116838216019080821115613e4757613e47613c7e565b5092915050565b634e487b7160e01b600052604160045260246000fd5b600081613e7357613e73613c7e565b506000190190565b634e487b7160e01b600052600160045260246000fdfedf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220d61235d6fdc7e4eea4274ea3df92f5fc9107a10502930bf693fb4a00926284a864736f6c63430008110033

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

000000000000000000000000872bad41cfc8ba731f811fea8b2d0b9fd6369585000000000000000000000000f5411006eefd66c213d2fd2033a1d340458b7226

-----Decoded View---------------
Arg [0] : gFly_ (address): 0x872bAD41CFc8BA731f811fEa8B2d0b9fd6369585
Arg [1] : dao (address): 0xF5411006eEfD66c213d2fd2033a1d340458B7226

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000872bad41cfc8ba731f811fea8b2d0b9fd6369585
Arg [1] : 000000000000000000000000f5411006eefd66c213d2fd2033a1d340458b7226


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.