false
true
0

Contract Address Details

0xD21999158bd081c712D54Ae96CdDde20F494B9be

Contract Name
ArtistTokenFactory
Creator
0x756639–797eec at 0x32f0d7–da7131
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
9 Transactions
Transfers
2 Transfers
Gas Used
1,382,822
Last Balance Update
26327422
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
ArtistTokenFactory




Optimization enabled
true
Compiler version
v0.8.34+commit.80d5c536




Optimization runs
200
EVM Version
paris




Verified at
2026-04-14T20:19:35.827260Z

Constructor Arguments

00000000000000000000000017e7b189982d8df2539d059b46467a09a7bcb91d000000000000000000000000086c1a316d8868c9324a3de699ea130c67f466d60000000000000000000000004e988b163aab47fae182ec32bfe3c4d5908f4f30000000000000000000000000d7a138d66251ec49333e6a2c4b50781e7f49702d000000000000000000000000086c1a316d8868c9324a3de699ea130c67f466d6000000000000000000000000756639c761e228143780e022a175325d79797eec

Arg [0] (address) : 0x17e7b189982d8df2539d059b46467a09a7bcb91d
Arg [1] (address) : 0x086c1a316d8868c9324a3de699ea130c67f466d6
Arg [2] (address) : 0x4e988b163aab47fae182ec32bfe3c4d5908f4f30
Arg [3] (address) : 0xd7a138d66251ec49333e6a2c4b50781e7f49702d
Arg [4] (address) : 0x086c1a316d8868c9324a3de699ea130c67f466d6
Arg [5] (address) : 0x756639c761e228143780e022a175325d79797eec

              

contracts/AER/ArtistTokenFactoryV3.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

// ─────────────────────────────────────────────────────────────────────────────
//  ArtistToken — Minimal ERC20
//
//  V2 CHANGES vs V1:
//  - factory address is now updatable via setFactory() (onlyFactory guard)
//    This allows migrating to a new factory without redeploying artist tokens.
// ─────────────────────────────────────────────────────────────────────────────

contract ArtistToken {

bytes32 private _name;
bytes32 private _symbol;
uint256 public  totalSupply;

mapping(address => uint256)                     public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;

address public factory;
address public artist;

event Transfer(address indexed from, address indexed to,       uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event FactoryUpdated(address indexed oldFactory, address indexed newFactory);

modifier onlyFactory() {
    require(msg.sender == factory, "Only factory");
    _;
}

constructor(
    bytes32 name_,
    bytes32 symbol_,
    address _factory,
    address _artist
) {
    require(_factory != address(0), "Zero factory");
    require(_artist  != address(0), "Zero artist");
    _name   = name_;
    _symbol = symbol_;
    factory = _factory;
    artist  = _artist;
}

// ─── V2: Factory migration escape hatch ───────────────────────────────────
function setFactory(address newFactory) external onlyFactory {
    require(newFactory != address(0), "Zero");
    emit FactoryUpdated(factory, newFactory);
    factory = newFactory;
}

function name()     external view returns (string memory) { return _bytes32ToString(_name);   }
function symbol()   external view returns (string memory) { return _bytes32ToString(_symbol); }
function decimals() external pure  returns (uint8)        { return 18; }

function transfer(address to, uint256 amount) external returns (bool) {
    _transfer(msg.sender, to, amount);
    return true;
}

function approve(address spender, uint256 amount) external returns (bool) {
    allowance[msg.sender][spender] = amount;
    emit Approval(msg.sender, spender, amount);
    return true;
}

function transferFrom(address from, address to, uint256 amount) external returns (bool) {
    uint256 allowed = allowance[from][msg.sender];
    if (allowed != type(uint256).max)
        allowance[from][msg.sender] = allowed - amount;
    _transfer(from, to, amount);
    return true;
}

function mint(address to, uint256 amount) external onlyFactory {
    totalSupply   += amount;
    balanceOf[to] += amount;
    emit Transfer(address(0), to, amount);
}

function burn(address from, uint256 amount) external onlyFactory {
    require(balanceOf[from] >= amount, "ERC20: burn exceeds balance");
    balanceOf[from] -= amount;
    totalSupply     -= amount;
    emit Transfer(from, address(0), amount);
}

function _transfer(address from, address to, uint256 amount) internal {
    require(to != address(0),          "ERC20: transfer to zero address");
    require(balanceOf[from] >= amount, "ERC20: insufficient balance");
    balanceOf[from] -= amount;
    balanceOf[to]   += amount;
    emit Transfer(from, to, amount);
}

function _bytes32ToString(bytes32 b) internal pure returns (string memory) {
    uint256 len;
    while (len < 32 && b[len] != 0) len++;
    bytes memory result = new bytes(len);
    for (uint256 i = 0; i < len; i++) result[i] = b[i];
    return string(result);
}

}

// ─────────────────────────────────────────────────────────────────────────────
//  ArtistTokenFactory V2
//
//  DEPLOYMENT:
//  1. Compile this single file (optimizer: enabled, 200 runs, EVM: paris)
//  2. Deploy ArtistTokenFactory with constructor args
//  3. Call MEFI.setMinter(factoryAddress, true)
//  4. Call StreamingRewards.setArtistFactory(factoryAddress)
//  5. Artists call registerArtist() then confirmArtist()
//
//  V2 CHANGES vs V1:
//  - minTier = 0 now enforces isEligibleStaker (any KEY staker) instead of
//    bypassing the check entirely. Earning is always gated behind KEY staking.
//  - Separate streamingRewardsAddress for mintForStream (was sharing oracleSigner)
//  - mintForStream is pausable via whenNotPaused
//  - Per-artist eDAI balance tracking instead of shared factory pool
//    Prevents graduated artists draining eDAI meant for bonding curve artists
//  - ArtistToken.setFactory() allows future factory migration without
//    redeploying individual artist tokens
// ─────────────────────────────────────────────────────────────────────────────

interface IMefiContract {
function depositTax(address recipient, uint256 edaiAmount)
external returns (uint256 mefiMinted);
}

interface IKEYStaking {
function getTierId(address user) external view returns (uint8);
function isEligibleStaker(address user) external view returns (bool);
}

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

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

}

interface IArtistToken {
function mint(address to, uint256 amount) external;
function burn(address from, uint256 amount) external;
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function setFactory(address newFactory) external;
}

contract ArtistTokenFactory is Ownable, ReentrancyGuard, Pausable {
using SafeERC20 for IERC20;

address public constant EDAI          = 0xefD766cCb38EaF1dfd701853BFCe31359239F305;
address public constant DEAD          = 0x000000000000000000000000000000000000dEaD;
address public constant PULSEX_ROUTER = 0x165C3410fC91EF562C50559f7d2289fEbed552d9;

uint256 public constant BPS_DENOMINATOR = 10000;
uint256 public constant MAX_CREATOR_TAX = 2000;

uint256 public baseRateUSD = 1e15;

uint256 public defaultFloorPrice     = 5_000_000_000;
uint256 public defaultPriceIncrement = 99_990;
uint256 public defaultGradThreshold  = 50_000 * 1e18;

uint256 public creatorTaxBps = 1000;
uint256 public lpFeeBps      = 500;

address public lpFeeRecipient;

uint256 public liquidityBps = 2000;
uint256 public artistBps    = 4000;
uint256 public jackpotBps   = 3000;
uint256 public reserveBps   = 1000;

IMefiContract  public mefiContract;
IKEYStaking    public keyStaking;
IPulseXRouter  public router;

// ─── V2: Separated oracle and streaming rewards addresses ─────────────────
address public oracleSigner;          // launchCurve, admin operations
address public streamingRewards;      // mintForStream only

address public jackpotAddress;

enum ArtistStatus { NONE, PENDING, ACTIVE }

struct PendingArtist {
    bytes32 name;
    bytes32 symbol;
    uint8   minTier;
    uint256 registeredAt;
}

mapping(address => ArtistStatus)  public artistStatus;
mapping(address => PendingArtist) public pendingArtists;

struct ArtistCurve {
    address tokenAddress;
    uint256 totalMinted;
    uint256 totalMefiValue;
    uint256 floorPrice;
    uint256 priceIncrement;
    uint256 graduationThreshold;
    uint256 postGradReserve;
    bool    graduated;
    bool    isSpecial;
    uint8   minTierRequired;
    // ─── V2: Per-artist eDAI balance ──────────────────────────────────────
    uint256 edaiBalance;
}

mapping(address => ArtistCurve) public curves;
address[] public registeredArtists;
mapping(address => bool) public isRegistered;

uint256 public totalArtistTokensMinted;
uint256 public totalEdaiToArtists;
uint256 public totalEdaiLpFees;
uint256 public totalGraduations;

event CurveLaunched(address indexed artist, address indexed tokenAddress, string name, string symbol);
event StreamMinted(address indexed user, address indexed artist, uint256 tokensToMint, uint256 edaiValue, uint256 newPrice);
event PostGradBuy(address indexed user, address indexed artist, uint256 edaiSpent, uint256 tokensReceived);
event ArtistTokensRedeemed(address indexed user, address indexed artist, uint256 tokensBurned, uint256 edaiValue);
event CurveGraduated(address indexed artist, address indexed tokenAddress, uint256 edaiForLiquidity, uint256 edaiToArtist, uint256 edaiToJackpot, uint256 edaiToReserve);
event GraduationLiquidityAdded(address indexed artist, uint256 edaiAdded, uint256 tokensAdded, uint256 lpTokensBurned);
event GraduationLiquidityFailed(address indexed artist, uint256 edaiMovedToReserve);
event SpecialArtistRegistered(address indexed artist, address indexed tokenAddress);
event ArtistRegistered(address indexed artist, string name, string symbol, uint8 minTier);
event ArtistConfirmed(address indexed artist, address indexed tokenAddress, string name, string symbol);
event TierRequirementSet(address indexed artist, uint8 minTier);
event OracleSignerChanged(address indexed oldSigner, address indexed newSigner);
event StreamingRewardsChanged(address indexed oldSR, address indexed newSR);
event MefiContractUpdated(address indexed oldMefi, address indexed newMefi);
event EdaiDeposited(address indexed artist, uint256 amount);
event ArtistFactoryMigrated(address indexed artist, address indexed newFactory);

modifier onlyOracle() {
    require(msg.sender == oracleSigner || msg.sender == owner(), "AUTH");
    _;
}

// ─── V2: mintForStream restricted to streamingRewards address only ────────
modifier onlyStreamingRewards() {
    require(msg.sender == streamingRewards || msg.sender == owner(), "AUTH_SR");
    _;
}

constructor(
    address _oracleSigner,
    address _streamingRewards,
    address _mefiContract,
    address _keyStaking,
    address _jackpotAddress,
    address initialOwner
) Ownable(initialOwner) {
    require(_oracleSigner    != address(0), "ZERO");
    require(_mefiContract    != address(0), "ZERO");
    oracleSigner     = _oracleSigner;
    streamingRewards = _streamingRewards;
    mefiContract     = IMefiContract(_mefiContract);
    keyStaking       = IKEYStaking(_keyStaking);
    jackpotAddress   = _jackpotAddress;
    router           = IPulseXRouter(PULSEX_ROUTER);
    IERC20(EDAI).approve(_mefiContract, type(uint256).max);
}

// ─── STEP 1 — Artist registers ────────────────────────────────────────────

function registerArtist(
    string calldata name,
    string calldata symbol,
    uint8  minTier
) external {
    require(bytes(name).length > 0   && bytes(name).length   <= 32, "BAD_NAME");
    require(bytes(symbol).length > 0 && bytes(symbol).length <= 8,  "BAD_SYM");
    require(minTier <= 3,                                            "BAD_TIER");
    require(artistStatus[msg.sender] != ArtistStatus.ACTIVE,        "ACTIVE");
    require(!isRegistered[msg.sender],                               "CONFIRMED");

    pendingArtists[msg.sender] = PendingArtist({
        name:         _toBytes32(name),
        symbol:       _toBytes32(symbol),
        minTier:      minTier,
        registeredAt: block.timestamp
    });
    artistStatus[msg.sender] = ArtistStatus.PENDING;
    emit ArtistRegistered(msg.sender, name, symbol, minTier);
}

// ─── STEP 2 — Artist confirms and activates ───────────────────────────────

function confirmArtist(address artist) external {
    require(msg.sender == artist || msg.sender == owner(), "AUTH");
    require(artistStatus[artist] == ArtistStatus.PENDING, "NOT_PENDING");

    PendingArtist memory p = pendingArtists[artist];
    require(p.name != bytes32(0), "NO_REG");

    address tokenAddr = _deployAndInit(artist, p.name, p.symbol);
    curves[artist].minTierRequired = p.minTier;
    artistStatus[artist] = ArtistStatus.ACTIVE;
    delete pendingArtists[artist];

    emit ArtistConfirmed(artist, tokenAddr, _bytes32ToString(p.name), _bytes32ToString(p.symbol));
}

// ─── ORACLE — launchCurve ─────────────────────────────────────────────────

function launchCurve(
    address artist,
    string calldata tokenName,
    string calldata tokenSymbol
) external onlyOracle {
    require(artist != address(0),          "ZERO");
    require(!isRegistered[artist],         "EXISTS");
    require(bytes(tokenName).length > 0,   "EMPTY");
    require(bytes(tokenSymbol).length > 0, "EMPTY");

    address tokenAddr = _deployAndInit(artist, _toBytes32(tokenName), _toBytes32(tokenSymbol));
    artistStatus[artist] = ArtistStatus.ACTIVE;
    emit ArtistConfirmed(artist, tokenAddr, tokenName, tokenSymbol);
}

// ─── STREAMING REWARDS — mintForStream ────────────────────────────────────
// V2: restricted to streamingRewards address, pausable

function mintForStream(
    address user,
    address artist,
    uint256 boostedDelta
) external nonReentrant onlyStreamingRewards whenNotPaused {
    require(user   != address(0), "ZERO");
    require(artist != address(0), "ZERO");
    if (boostedDelta == 0) return;
    if (artistStatus[artist] != ArtistStatus.ACTIVE) return;

    ArtistCurve storage c = curves[artist];

    // ─── V2: minTier = 0 now enforces isEligibleStaker ───────────────────
    // Any artist token earn requires at minimum an active KEY stake.
    // minTier 0 = any staker, 1 = Fan+, 2 = Collector+, 3 = Curator/Legend
    if (!_meetsMinTier(user, c.minTierRequired)) return;

    if (c.isSpecial || c.graduated) {
        _buyFromPulseX(user, artist, boostedDelta, c);
        return;
    }

    uint256 edaiValue = (boostedDelta * baseRateUSD) / 1e18;
    if (edaiValue == 0) return;

    // ─── V2: use per-artist eDAI balance ─────────────────────────────────
    if (c.edaiBalance < edaiValue) {
        // Scale down to available balance
        if (c.edaiBalance == 0) return;
        edaiValue = c.edaiBalance;
    }

    uint256 creatorCut   = (edaiValue * creatorTaxBps) / BPS_DENOMINATOR;
    uint256 lpCut        = (edaiValue * lpFeeBps)      / BPS_DENOMINATOR;
    uint256 edaiForCurve = edaiValue - creatorCut - lpCut;
    if (edaiForCurve == 0) return;

    c.edaiBalance -= edaiValue;

    if (creatorCut > 0) {
        totalEdaiToArtists += creatorCut;
        try mefiContract.depositTax(artist, creatorCut) {}
        catch { totalEdaiToArtists -= creatorCut; c.edaiBalance += creatorCut; }
    }

    if (lpCut > 0 && lpFeeRecipient != address(0)) {
        totalEdaiLpFees += lpCut;
        try mefiContract.depositTax(lpFeeRecipient, lpCut) {}
        catch { totalEdaiLpFees -= lpCut; c.edaiBalance += lpCut; }
    }

    uint256 tokensToMint = (edaiForCurve * 1e18) / _currentPrice(c);
    if (tokensToMint == 0) return;

    c.totalMinted           += tokensToMint;
    c.totalMefiValue        += edaiValue;
    totalArtistTokensMinted += tokensToMint;

    IArtistToken(c.tokenAddress).mint(user, tokensToMint);
    emit StreamMinted(user, artist, tokensToMint, edaiValue, _currentPrice(c));

    if (c.totalMefiValue >= c.graduationThreshold) {
        _graduate(artist);
    }
}

// ─── V2: Deposit eDAI into a specific artist's balance ───────────────────
// Called by BatchBuyer when sending eDAI to the factory.
// If artist == address(0), deposits into a shared reserve for distribution.

function depositEdai(address artist, uint256 amount) external nonReentrant {
    require(amount > 0, "ZERO");
    IERC20(EDAI).safeTransferFrom(msg.sender, address(this), amount);

    if (artist != address(0) && isRegistered[artist]) {
        curves[artist].edaiBalance += amount;
    } else {
        // Distribute evenly across all non-graduated active artists
        _distributeEdai(amount);
    }
    emit EdaiDeposited(artist, amount);
}

// Also accept raw eDAI transfers and distribute them
function notifyEdaiReceived(uint256 amount) external onlyOwner {
    _distributeEdai(amount);
}

function _distributeEdai(uint256 amount) internal {
    uint256 activeCount;
    for (uint256 i = 0; i < registeredArtists.length; i++) {
        ArtistCurve storage c = curves[registeredArtists[i]];
        if (!c.graduated && !c.isSpecial && artistStatus[registeredArtists[i]] == ArtistStatus.ACTIVE) {
            activeCount++;
        }
    }
    if (activeCount == 0) return;

    uint256 perArtist = amount / activeCount;
    if (perArtist == 0) return;

    for (uint256 i = 0; i < registeredArtists.length; i++) {
        address a = registeredArtists[i];
        ArtistCurve storage c = curves[a];
        if (!c.graduated && !c.isSpecial && artistStatus[a] == ArtistStatus.ACTIVE) {
            c.edaiBalance += perArtist;
        }
    }
}

// ─── POST-GRADUATION ──────────────────────────────────────────────────────

function _buyFromPulseX(
    address user,
    address artist,
    uint256 boostedDelta,
    ArtistCurve storage c
) internal {
    uint256 edaiValue = (boostedDelta * baseRateUSD) / 1e18;
    if (edaiValue == 0) return;

    uint256 creatorCut  = (edaiValue * creatorTaxBps) / BPS_DENOMINATOR;
    uint256 lpCut       = (edaiValue * lpFeeBps)      / BPS_DENOMINATOR;
    uint256 edaiForSwap = edaiValue - creatorCut - lpCut;

    // ─── V2: use postGradReserve + per-artist edaiBalance ─────────────────
    uint256 available = c.postGradReserve + c.edaiBalance;
    if (available == 0) return;

    if (edaiValue > available) {
        uint256 scale = (available * 1e18) / edaiValue;
        creatorCut  = (creatorCut  * scale) / 1e18;
        lpCut       = (lpCut       * scale) / 1e18;
        edaiForSwap = available - creatorCut - lpCut;
    }

    uint256 total = creatorCut + lpCut + edaiForSwap;
    if (total <= c.postGradReserve) {
        c.postGradReserve -= total;
    } else {
        uint256 fromReserve = c.postGradReserve;
        c.postGradReserve = 0;
        uint256 fromBalance = total - fromReserve;
        if (fromBalance <= c.edaiBalance) {
            c.edaiBalance -= fromBalance;
        } else {
            c.edaiBalance = 0;
        }
    }

    if (creatorCut > 0) {
        totalEdaiToArtists += creatorCut;
        try mefiContract.depositTax(artist, creatorCut) {} catch { totalEdaiToArtists -= creatorCut; }
    }
    if (lpCut > 0 && lpFeeRecipient != address(0)) {
        totalEdaiLpFees += lpCut;
        try mefiContract.depositTax(lpFeeRecipient, lpCut) {} catch { totalEdaiLpFees -= lpCut; }
    }
    if (edaiForSwap > 0) {
        _swapMefiForArtistToken(user, artist, c.tokenAddress, edaiForSwap);
    }
}

function _swapMefiForArtistToken(
    address user,
    address artist,
    address tokenAddress,
    uint256 edaiForSwap
) internal {
    address mefiToken = address(mefiContract);
    uint256 mefiBalBefore = IERC20(mefiToken).balanceOf(address(this));

    try mefiContract.depositTax(address(this), edaiForSwap) {
        uint256 mefiMinted = IERC20(mefiToken).balanceOf(address(this)) - mefiBalBefore;
        if (mefiMinted == 0) return;

        address[] memory path = new address[](2);
        path[0] = mefiToken;
        path[1] = tokenAddress;
        IERC20(mefiToken).safeIncreaseAllowance(address(router), mefiMinted);

        try router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
            mefiMinted, 0, path, user, block.timestamp + 300
        ) {
            emit PostGradBuy(user, artist, edaiForSwap, IERC20(tokenAddress).balanceOf(user));
        } catch {
            IERC20(mefiToken).safeDecreaseAllowance(address(router), mefiMinted);
        }
    } catch {}
}

// ─── GRADUATION ───────────────────────────────────────────────────────────

function _graduate(address artist) internal {
    ArtistCurve storage c = curves[artist];
    if (c.graduated || c.isSpecial) return;

    c.graduated = true;
    totalGraduations++;

    uint256 gradAllocation = c.graduationThreshold;
    if (gradAllocation > c.edaiBalance)
        gradAllocation = c.edaiBalance;

    uint256 forLiquidity = (gradAllocation * liquidityBps) / BPS_DENOMINATOR;
    uint256 forArtist    = (gradAllocation * artistBps)    / BPS_DENOMINATOR;
    uint256 forJackpot   = (gradAllocation * jackpotBps)   / BPS_DENOMINATOR;
    uint256 forReserve   = gradAllocation - forLiquidity - forArtist - forJackpot;

    c.edaiBalance    -= gradAllocation;
    c.postGradReserve = forReserve;

    if (forArtist > 0)  { try mefiContract.depositTax(artist, forArtist) {} catch {} }
    if (forJackpot > 0 && jackpotAddress != address(0)) { try mefiContract.depositTax(jackpotAddress, forJackpot) {} catch {} }

    if (forLiquidity > 0) {
        bool lpAdded = _addGraduationLiquidity(artist, forLiquidity, c);
        if (!lpAdded) {
            c.postGradReserve += forLiquidity;
            emit GraduationLiquidityFailed(artist, forLiquidity);
        }
    }

    emit CurveGraduated(artist, c.tokenAddress, forLiquidity, forArtist, forJackpot, c.postGradReserve);
}

function _addGraduationLiquidity(
    address artist,
    uint256 edaiAmount,
    ArtistCurve storage c
) internal returns (bool) {
    address mefiToken = address(mefiContract);
    uint256 mefiBefore = IERC20(mefiToken).balanceOf(address(this));

    try mefiContract.depositTax(address(this), edaiAmount) {} catch { return false; }

    uint256 mefiForLP = IERC20(mefiToken).balanceOf(address(this)) - mefiBefore;
    if (mefiForLP == 0) return false;

    uint256 price = _currentPrice(c);
    if (price == 0) return false;

    uint256 artistTokensForLP = (mefiForLP * 1e18) / price;
    if (artistTokensForLP == 0) return false;

    IArtistToken(c.tokenAddress).mint(address(this), artistTokensForLP);
    c.totalMinted += artistTokensForLP;

    IERC20(mefiToken).safeIncreaseAllowance(address(router), mefiForLP);
    IERC20(c.tokenAddress).approve(address(router), artistTokensForLP);

    try router.addLiquidity(
        c.tokenAddress, mefiToken,
        artistTokensForLP, mefiForLP,
        0, 0, DEAD, block.timestamp + 300
    ) returns (uint256 amtA, uint256 amtB, uint256 lp) {
        emit GraduationLiquidityAdded(artist, amtB, amtA, lp);
        if (amtA < artistTokensForLP) {
            IERC20(c.tokenAddress).approve(address(router), 0);
            IArtistToken(c.tokenAddress).burn(address(this), artistTokensForLP - amtA);
            c.totalMinted -= (artistTokensForLP - amtA);
        }
        if (amtB < mefiForLP) {
            IERC20(mefiToken).safeDecreaseAllowance(address(router), mefiForLP - amtB);
        }
        return true;
    } catch {
        IERC20(mefiToken).safeDecreaseAllowance(address(router), mefiForLP);
        IERC20(c.tokenAddress).approve(address(router), 0);
        IArtistToken(c.tokenAddress).burn(address(this), artistTokensForLP);
        c.totalMinted -= artistTokensForLP;
        return false;
    }
}

// ─── REDEMPTION ───────────────────────────────────────────────────────────

function redeemForMefi(address artist, uint256 tokenAmount) external nonReentrant {
    require(isRegistered[artist], "UNK");
    require(tokenAmount > 0,      "ZERO");

    ArtistCurve storage c = curves[artist];
    require(!c.isSpecial, "SPECIAL");

    // ─── V2: use per-artist balance ───────────────────────────────────────
    uint256 available = c.graduated ? c.postGradReserve : c.edaiBalance;
    require(available > 0, "NO_EDAI");
    require(IERC20(c.tokenAddress).balanceOf(msg.sender) >= tokenAmount, "BAL");

    uint256 price      = _currentPrice(c);
    uint256 edaiReturn = (tokenAmount * price) / 1e18;
    if (edaiReturn > available) edaiReturn = available;
    require(edaiReturn > 0, "SMALL");

    if (c.graduated) {
        c.postGradReserve -= edaiReturn;
    } else {
        c.edaiBalance -= edaiReturn;
        if (c.totalMinted >= tokenAmount) c.totalMinted -= tokenAmount;
    }

    IArtistToken(c.tokenAddress).burn(msg.sender, tokenAmount);

    try mefiContract.depositTax(msg.sender, edaiReturn) {
        emit ArtistTokensRedeemed(msg.sender, artist, tokenAmount, edaiReturn);
    } catch {
        if (c.graduated) {
            c.postGradReserve += edaiReturn;
        } else {
            c.edaiBalance += edaiReturn;
            c.totalMinted += tokenAmount;
        }
        IArtistToken(c.tokenAddress).mint(msg.sender, tokenAmount);
        revert("DTX_FAIL");
    }
}

// ─── SPECIAL ARTIST ───────────────────────────────────────────────────────

function registerSpecialArtist(address artist, address tokenAddress) external onlyOwner {
    require(artist != address(0) && tokenAddress != address(0), "ZERO");
    require(!isRegistered[artist], "EXISTS");

    curves[artist] = ArtistCurve({
        tokenAddress:        tokenAddress,
        totalMinted:         0,
        totalMefiValue:      0,
        floorPrice:          defaultFloorPrice,
        priceIncrement:      defaultPriceIncrement,
        graduationThreshold: defaultGradThreshold,
        postGradReserve:     0,
        graduated:           true,
        isSpecial:           true,
        minTierRequired:     0,
        edaiBalance:         0
    });

    isRegistered[artist]  = true;
    artistStatus[artist]  = ArtistStatus.ACTIVE;
    registeredArtists.push(artist);
    emit SpecialArtistRegistered(artist, tokenAddress);
}

// ─── V2: Migrate artist token to new factory ──────────────────────────────

function migrateArtistToken(address artist, address newFactory) external onlyOwner {
    require(isRegistered[artist], "UNK");
    require(newFactory != address(0), "ZERO");
    IArtistToken(curves[artist].tokenAddress).setFactory(newFactory);
    emit ArtistFactoryMigrated(artist, newFactory);
}

// ─── ARTIST CONTROLS ──────────────────────────────────────────────────────

function setTierRequirement(address artist, uint8 minTier) external {
    require(msg.sender == artist || msg.sender == owner(), "AUTH");
    require(minTier <= 3, "BAD_TIER");

    if (artistStatus[artist] == ArtistStatus.PENDING) {
        pendingArtists[artist].minTier = minTier;
    } else if (artistStatus[artist] == ArtistStatus.ACTIVE) {
        require(isRegistered[artist], "UNK");
        curves[artist].minTierRequired = minTier;
    } else {
        revert("UNK");
    }
    emit TierRequirementSet(artist, minTier);
}

// ─── INTERNAL HELPERS ─────────────────────────────────────────────────────

function _currentPrice(ArtistCurve storage c) internal view returns (uint256) {
    return c.floorPrice + (c.totalMinted / 1e18) * c.priceIncrement;
}

// ─── V2: minTier = 0 now requires isEligibleStaker ───────────────────────
function _meetsMinTier(address user, uint8 minTier) internal view returns (bool) {
    if (address(keyStaking) == address(0)) return false;
    try keyStaking.isEligibleStaker(user) returns (bool eligible) {
        if (!eligible) return false;
        if (minTier == 0) return true; // Any active staker qualifies
        try keyStaking.getTierId(user) returns (uint8 tierId) {
            if (tierId == 255) return false;
            return tierId >= minTier;
        } catch { return false; }
    } catch { return false; }
}

function _deployAndInit(
    address artist,
    bytes32 tokenName,
    bytes32 tokenSymbol
) internal returns (address tokenAddress) {
    ArtistToken token = new ArtistToken(tokenName, tokenSymbol, address(this), artist);
    tokenAddress = address(token);

    curves[artist] = ArtistCurve({
        tokenAddress:        tokenAddress,
        totalMinted:         0,
        totalMefiValue:      0,
        floorPrice:          defaultFloorPrice,
        priceIncrement:      defaultPriceIncrement,
        graduationThreshold: defaultGradThreshold,
        postGradReserve:     0,
        graduated:           false,
        isSpecial:           false,
        minTierRequired:     0,
        edaiBalance:         0
    });

    isRegistered[artist] = true;
    registeredArtists.push(artist);
}

function _toBytes32(string calldata s) internal pure returns (bytes32 result) {
    bytes memory b = bytes(s);
    assembly { result := mload(add(b, 32)) }
}

function _bytes32ToString(bytes32 b) internal pure returns (string memory) {
    uint256 len;
    while (len < 32 && b[len] != 0) len++;
    bytes memory result = new bytes(len);
    for (uint256 i = 0; i < len; i++) result[i] = b[i];
    return string(result);
}

// ─── VIEW FUNCTIONS ───────────────────────────────────────────────────────

function getCurrentPrice(address artist) external view returns (uint256) {
    require(isRegistered[artist], "UNK");
    return _currentPrice(curves[artist]);
}

function getPendingArtist(address artist) external view returns (
    bytes32 name, bytes32 symbol, uint8 minTier, uint256 registeredAt, ArtistStatus status
) {
    PendingArtist memory p = pendingArtists[artist];
    return (p.name, p.symbol, p.minTier, p.registeredAt, artistStatus[artist]);
}

function getArtistStatus(address artist) external view returns (ArtistStatus) {
    return artistStatus[artist];
}

function getEarningPreview(address artist, uint256 boostedDelta) external view returns (
    uint256 tokensToMint, uint256 edaiValue_, uint256 creatorCutEstimate, uint256 lpCutEstimate, uint256 currentPrice_
) {
    if (!isRegistered[artist]) return (0, 0, 0, 0, 0);
    ArtistCurve storage c = curves[artist];
    if (c.graduated || c.isSpecial) return (0, 0, 0, 0, _currentPrice(c));

    uint256 ev    = (boostedDelta * baseRateUSD) / 1e18;
    uint256 cCut  = (ev * creatorTaxBps) / BPS_DENOMINATOR;
    uint256 lCut  = (ev * lpFeeBps)      / BPS_DENOMINATOR;
    uint256 forC  = ev - cCut - lCut;
    uint256 price = _currentPrice(c);
    if (price == 0 || forC == 0) return (0, 0, 0, 0, price);

    tokensToMint       = (forC * 1e18) / price;
    edaiValue_         = ev;
    creatorCutEstimate = cCut;
    lpCutEstimate      = lCut;
    currentPrice_      = price;
}

function getArtistInfo(address artist) external view returns (
    address tokenAddress, uint256 totalMinted_, uint256 totalMefiValue_,
    uint256 currentPrice_, uint256 graduationThreshold_, uint256 graduationProgress,
    uint256 postGradReserve_, bool graduated_, bool isSpecial_, uint8 minTierRequired_,
    uint256 edaiBalance_
) {
    require(isRegistered[artist], "UNK");
    ArtistCurve storage c = curves[artist];
    uint256 progress = c.graduationThreshold > 0
        ? (c.totalMefiValue * 100) / c.graduationThreshold : 0;
    if (progress > 100) progress = 100;
    return (
        c.tokenAddress, c.totalMinted, c.totalMefiValue,
        _currentPrice(c), c.graduationThreshold, progress,
        c.postGradReserve, c.graduated, c.isSpecial, c.minTierRequired,
        c.edaiBalance
    );
}

function estimateRedemption(address artist, uint256 tokenAmount) external view returns (uint256 edaiReturn) {
    if (!isRegistered[artist] || tokenAmount == 0) return 0;
    ArtistCurve storage c = curves[artist];
    if (c.isSpecial) return 0;
    uint256 avail = c.graduated ? c.postGradReserve : c.edaiBalance;
    uint256 ret   = (tokenAmount * _currentPrice(c)) / 1e18;
    return ret > avail ? avail : ret;
}

function getPoolStatus() external view returns (
    uint256 totalEdaiBalance, uint256 totalToArtists_, uint256 totalLpFees_,
    uint256 artistCount_, uint256 graduationCount_, address mefiToken
) {
    uint256 total;
    for (uint256 i = 0; i < registeredArtists.length; i++) {
        total += curves[registeredArtists[i]].edaiBalance;
    }
    return (
        total,
        totalEdaiToArtists, totalEdaiLpFees,
        registeredArtists.length, totalGraduations,
        address(mefiContract)
    );
}

function getRegisteredArtists() external view returns (address[] memory) {
    return registeredArtists;
}

// ─── ADMIN ────────────────────────────────────────────────────────────────

function setOracleSigner(address _oracle) external onlyOwner {
    require(_oracle != address(0), "ZERO");
    emit OracleSignerChanged(oracleSigner, _oracle);
    oracleSigner = _oracle;
}

// ─── V2: Separate setter for streaming rewards address ───────────────────
function setStreamingRewards(address _sr) external onlyOwner {
    emit StreamingRewardsChanged(streamingRewards, _sr);
    streamingRewards = _sr;
}

function setMefiContract(address _mefi) external onlyOwner {
    require(_mefi != address(0), "ZERO");
    address old = address(mefiContract);
    IERC20(EDAI).approve(old, 0);
    mefiContract = IMefiContract(_mefi);
    IERC20(EDAI).approve(_mefi, type(uint256).max);
    emit MefiContractUpdated(old, _mefi);
}

function setKeyStaking(address _ks)          external onlyOwner { keyStaking    = IKEYStaking(_ks); }
function setJackpotAddress(address _j)        external onlyOwner { jackpotAddress = _j; }
function setLpFeeRecipient(address _lp)       external onlyOwner { lpFeeRecipient = _lp; }
function setBaseRateUSD(uint256 _rate)        external onlyOwner { require(_rate > 0, "BAD"); baseRateUSD = _rate; }
function setDefaultFloorPrice(uint256 _p)     external onlyOwner { require(_p > 0, "BAD"); defaultFloorPrice = _p; }
function setDefaultPriceIncrement(uint256 _i) external onlyOwner { defaultPriceIncrement = _i; }
function setDefaultGradThreshold(uint256 _t)  external onlyOwner { require(_t > 0, "BAD"); defaultGradThreshold = _t; }

function setArtistGradThreshold(address artist, uint256 _threshold) external onlyOwner {
    require(isRegistered[artist], "UNK");
    require(_threshold > 0, "BAD");
    curves[artist].graduationThreshold = _threshold;
}

function setCreatorTaxBps(uint256 _bps) external onlyOwner {
    require(_bps <= MAX_CREATOR_TAX, "MAX");
    creatorTaxBps = _bps;
}

function setLpFeeBps(uint256 _bps) external onlyOwner {
    require(_bps <= 1000, "MAX");
    lpFeeBps = _bps;
}

function setGraduationSplit(uint256 _liq, uint256 _art, uint256 _jkp, uint256 _res) external onlyOwner {
    require(_liq + _art + _jkp + _res == BPS_DENOMINATOR, "SUM");
    liquidityBps = _liq; artistBps = _art; jackpotBps = _jkp; reserveBps = _res;
}

function forceGraduate(address artist) external onlyOwner {
    require(isRegistered[artist], "UNK");
    ArtistCurve storage c = curves[artist];
    require(!c.graduated && !c.isSpecial, "GRAD");
    _graduate(artist);
}

// ─── V2: Pause/unpause mintForStream ─────────────────────────────────────
function pause()   external onlyOwner { _pause(); }
function unpause() external onlyOwner { _unpause(); }

function rescueToken(address token, uint256 amount) external onlyOwner {
    require(token != EDAI,                  "EDAI");
    require(token != address(mefiContract), "MEFI");
    IERC20(token).safeTransfer(owner(), amount);
}

function rescueEdai(uint256 amount) external onlyOwner {
    require(amount <= IERC20(EDAI).balanceOf(address(this)), "BAL");
    IERC20(EDAI).safeTransfer(owner(), amount);
}

}
        

/IERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * 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[ERC 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);
}
          

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)

pragma solidity >=0.4.16;

import {IERC165} from "../utils/introspection/IERC165.sol";
          

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)

pragma solidity >=0.4.16;

import {IERC20} from "../token/ERC20/IERC20.sol";
          

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)

pragma solidity >=0.6.2;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}
          

/utils/SafeERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";

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

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        if (!_safeTransfer(token, to, value, true)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        if (!_safeTransferFrom(token, from, to, value, true)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _safeTransfer(token, to, value, false);
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _safeTransferFrom(token, from, to, value, false);
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        if (!_safeApprove(token, spender, value, false)) {
            if (!_safeApprove(token, spender, 0, true)) revert SafeERC20FailedOperation(address(token));
            if (!_safeApprove(token, spender, value, true)) revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that relies on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Oppositely, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity `token.transfer(to, value)` call, relaxing the requirement on the return value: the
     * return value is optional (but if data is returned, it must not be false).
     *
     * @param token The token targeted by the call.
     * @param to The recipient of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeTransfer(IERC20 token, address to, uint256 value, bool bubble) private returns (bool success) {
        bytes4 selector = IERC20.transfer.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(to, shr(96, not(0))))
            mstore(0x24, value)
            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
        }
    }

    /**
     * @dev Imitates a Solidity `token.transferFrom(from, to, value)` call, relaxing the requirement on the return
     * value: the return value is optional (but if data is returned, it must not be false).
     *
     * @param token The token targeted by the call.
     * @param from The sender of the tokens
     * @param to The recipient of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value,
        bool bubble
    ) private returns (bool success) {
        bytes4 selector = IERC20.transferFrom.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(from, shr(96, not(0))))
            mstore(0x24, and(to, shr(96, not(0))))
            mstore(0x44, value)
            success := call(gas(), token, 0, 0x00, 0x64, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
            mstore(0x60, 0)
        }
    }

    /**
     * @dev Imitates a Solidity `token.approve(spender, value)` call, relaxing the requirement on the return value:
     * the return value is optional (but if data is returned, it must not be false).
     *
     * @param token The token targeted by the call.
     * @param spender The spender of the tokens
     * @param value The amount of token to transfer
     * @param bubble Behavior switch if the transfer call reverts: bubble the revert reason or return a false boolean.
     */
    function _safeApprove(IERC20 token, address spender, uint256 value, bool bubble) private returns (bool success) {
        bytes4 selector = IERC20.approve.selector;

        assembly ("memory-safe") {
            let fmp := mload(0x40)
            mstore(0x00, selector)
            mstore(0x04, and(spender, shr(96, not(0))))
            mstore(0x24, value)
            success := call(gas(), token, 0, 0x00, 0x44, 0x00, 0x20)
            // if call success and return is true, all is good.
            // otherwise (not success or return is not true), we need to perform further checks
            if iszero(and(success, eq(mload(0x00), 1))) {
                // if the call was a failure and bubble is enabled, bubble the error
                if and(iszero(success), bubble) {
                    returndatacopy(fmp, 0x00, returndatasize())
                    revert(fmp, returndatasize())
                }
                // if the return value is not true, then the call is only successful if:
                // - the token address has code
                // - the returndata is empty
                success := and(success, and(iszero(returndatasize()), gt(extcodesize(token), 0)))
            }
            mstore(0x40, fmp)
        }
    }
}
          

/IERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}
          

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

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

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

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

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

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

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC-1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * TIP: Consider using this library along with {SlotDerivation}.
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct Int256Slot {
        int256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Int256Slot` with member `value` located at `slot`.
     */
    function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        assembly ("memory-safe") {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns a `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        assembly ("memory-safe") {
            r.slot := store.slot
        }
    }
}
          

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.5.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

import {StorageSlot} from "./StorageSlot.sol";

/**
 * @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 EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * 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].
 *
 * IMPORTANT: Deprecated. This storage-based reentrancy guard will be removed and replaced
 * by the {ReentrancyGuardTransient} variant in v6.0.
 *
 * @custom:stateless
 */
abstract contract ReentrancyGuard {
    using StorageSlot for bytes32;

    // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.ReentrancyGuard")) - 1)) & ~bytes32(uint256(0xff))
    bytes32 private constant REENTRANCY_GUARD_STORAGE =
        0x9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00;

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

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _reentrancyGuardStorageSlot().getUint256Slot().value = 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() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    /**
     * @dev A `view` only version of {nonReentrant}. Use to block view functions
     * from being called, preventing reading from inconsistent contract state.
     *
     * CAUTION: This is a "view" modifier and does not change the reentrancy
     * status. Use it only on view functions. For payable or non-payable functions,
     * use the standard {nonReentrant} modifier instead.
     */
    modifier nonReentrantView() {
        _nonReentrantBeforeView();
        _;
    }

    function _nonReentrantBeforeView() private view {
        if (_reentrancyGuardEntered()) {
            revert ReentrancyGuardReentrantCall();
        }
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        _nonReentrantBeforeView();

        // Any calls to nonReentrant after this point will fail
        _reentrancyGuardStorageSlot().getUint256Slot().value = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _reentrancyGuardStorageSlot().getUint256Slot().value == ENTERED;
    }

    function _reentrancyGuardStorageSlot() internal pure virtual returns (bytes32) {
        return REENTRANCY_GUARD_STORAGE;
    }
}
          

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}
          

/

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

Compiler Settings

{"remappings":[],"optimizer":{"runs":200,"enabled":true},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"paris","compilationTarget":{"contracts/AER/ArtistTokenFactoryV3.sol":"ArtistTokenFactory"}}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_oracleSigner","internalType":"address"},{"type":"address","name":"_streamingRewards","internalType":"address"},{"type":"address","name":"_mefiContract","internalType":"address"},{"type":"address","name":"_keyStaking","internalType":"address"},{"type":"address","name":"_jackpotAddress","internalType":"address"},{"type":"address","name":"initialOwner","internalType":"address"}]},{"type":"error","name":"EnforcedPause","inputs":[]},{"type":"error","name":"ExpectedPause","inputs":[]},{"type":"error","name":"OwnableInvalidOwner","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"error","name":"OwnableUnauthorizedAccount","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"error","name":"SafeERC20FailedDecreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"currentAllowance","internalType":"uint256"},{"type":"uint256","name":"requestedDecrease","internalType":"uint256"}]},{"type":"error","name":"SafeERC20FailedOperation","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"event","name":"ArtistConfirmed","inputs":[{"type":"address","name":"artist","internalType":"address","indexed":true},{"type":"address","name":"tokenAddress","internalType":"address","indexed":true},{"type":"string","name":"name","internalType":"string","indexed":false},{"type":"string","name":"symbol","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"ArtistFactoryMigrated","inputs":[{"type":"address","name":"artist","internalType":"address","indexed":true},{"type":"address","name":"newFactory","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"ArtistRegistered","inputs":[{"type":"address","name":"artist","internalType":"address","indexed":true},{"type":"string","name":"name","internalType":"string","indexed":false},{"type":"string","name":"symbol","internalType":"string","indexed":false},{"type":"uint8","name":"minTier","internalType":"uint8","indexed":false}],"anonymous":false},{"type":"event","name":"ArtistTokensRedeemed","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"artist","internalType":"address","indexed":true},{"type":"uint256","name":"tokensBurned","internalType":"uint256","indexed":false},{"type":"uint256","name":"edaiValue","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"CurveGraduated","inputs":[{"type":"address","name":"artist","internalType":"address","indexed":true},{"type":"address","name":"tokenAddress","internalType":"address","indexed":true},{"type":"uint256","name":"edaiForLiquidity","internalType":"uint256","indexed":false},{"type":"uint256","name":"edaiToArtist","internalType":"uint256","indexed":false},{"type":"uint256","name":"edaiToJackpot","internalType":"uint256","indexed":false},{"type":"uint256","name":"edaiToReserve","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"CurveLaunched","inputs":[{"type":"address","name":"artist","internalType":"address","indexed":true},{"type":"address","name":"tokenAddress","internalType":"address","indexed":true},{"type":"string","name":"name","internalType":"string","indexed":false},{"type":"string","name":"symbol","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"EdaiDeposited","inputs":[{"type":"address","name":"artist","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"GraduationLiquidityAdded","inputs":[{"type":"address","name":"artist","internalType":"address","indexed":true},{"type":"uint256","name":"edaiAdded","internalType":"uint256","indexed":false},{"type":"uint256","name":"tokensAdded","internalType":"uint256","indexed":false},{"type":"uint256","name":"lpTokensBurned","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"GraduationLiquidityFailed","inputs":[{"type":"address","name":"artist","internalType":"address","indexed":true},{"type":"uint256","name":"edaiMovedToReserve","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"MefiContractUpdated","inputs":[{"type":"address","name":"oldMefi","internalType":"address","indexed":true},{"type":"address","name":"newMefi","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"OracleSignerChanged","inputs":[{"type":"address","name":"oldSigner","internalType":"address","indexed":true},{"type":"address","name":"newSigner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Paused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"PostGradBuy","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"artist","internalType":"address","indexed":true},{"type":"uint256","name":"edaiSpent","internalType":"uint256","indexed":false},{"type":"uint256","name":"tokensReceived","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SpecialArtistRegistered","inputs":[{"type":"address","name":"artist","internalType":"address","indexed":true},{"type":"address","name":"tokenAddress","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"StreamMinted","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"artist","internalType":"address","indexed":true},{"type":"uint256","name":"tokensToMint","internalType":"uint256","indexed":false},{"type":"uint256","name":"edaiValue","internalType":"uint256","indexed":false},{"type":"uint256","name":"newPrice","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"StreamingRewardsChanged","inputs":[{"type":"address","name":"oldSR","internalType":"address","indexed":true},{"type":"address","name":"newSR","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"TierRequirementSet","inputs":[{"type":"address","name":"artist","internalType":"address","indexed":true},{"type":"uint8","name":"minTier","internalType":"uint8","indexed":false}],"anonymous":false},{"type":"event","name":"Unpaused","inputs":[{"type":"address","name":"account","internalType":"address","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"BPS_DENOMINATOR","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"DEAD","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"EDAI","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_CREATOR_TAX","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"PULSEX_ROUTER","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"artistBps","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"enum ArtistTokenFactory.ArtistStatus"}],"name":"artistStatus","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"baseRateUSD","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"confirmArtist","inputs":[{"type":"address","name":"artist","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"creatorTaxBps","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"tokenAddress","internalType":"address"},{"type":"uint256","name":"totalMinted","internalType":"uint256"},{"type":"uint256","name":"totalMefiValue","internalType":"uint256"},{"type":"uint256","name":"floorPrice","internalType":"uint256"},{"type":"uint256","name":"priceIncrement","internalType":"uint256"},{"type":"uint256","name":"graduationThreshold","internalType":"uint256"},{"type":"uint256","name":"postGradReserve","internalType":"uint256"},{"type":"bool","name":"graduated","internalType":"bool"},{"type":"bool","name":"isSpecial","internalType":"bool"},{"type":"uint8","name":"minTierRequired","internalType":"uint8"},{"type":"uint256","name":"edaiBalance","internalType":"uint256"}],"name":"curves","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"defaultFloorPrice","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"defaultGradThreshold","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"defaultPriceIncrement","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"depositEdai","inputs":[{"type":"address","name":"artist","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"edaiReturn","internalType":"uint256"}],"name":"estimateRedemption","inputs":[{"type":"address","name":"artist","internalType":"address"},{"type":"uint256","name":"tokenAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"forceGraduate","inputs":[{"type":"address","name":"artist","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"tokenAddress","internalType":"address"},{"type":"uint256","name":"totalMinted_","internalType":"uint256"},{"type":"uint256","name":"totalMefiValue_","internalType":"uint256"},{"type":"uint256","name":"currentPrice_","internalType":"uint256"},{"type":"uint256","name":"graduationThreshold_","internalType":"uint256"},{"type":"uint256","name":"graduationProgress","internalType":"uint256"},{"type":"uint256","name":"postGradReserve_","internalType":"uint256"},{"type":"bool","name":"graduated_","internalType":"bool"},{"type":"bool","name":"isSpecial_","internalType":"bool"},{"type":"uint8","name":"minTierRequired_","internalType":"uint8"},{"type":"uint256","name":"edaiBalance_","internalType":"uint256"}],"name":"getArtistInfo","inputs":[{"type":"address","name":"artist","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"enum ArtistTokenFactory.ArtistStatus"}],"name":"getArtistStatus","inputs":[{"type":"address","name":"artist","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getCurrentPrice","inputs":[{"type":"address","name":"artist","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"tokensToMint","internalType":"uint256"},{"type":"uint256","name":"edaiValue_","internalType":"uint256"},{"type":"uint256","name":"creatorCutEstimate","internalType":"uint256"},{"type":"uint256","name":"lpCutEstimate","internalType":"uint256"},{"type":"uint256","name":"currentPrice_","internalType":"uint256"}],"name":"getEarningPreview","inputs":[{"type":"address","name":"artist","internalType":"address"},{"type":"uint256","name":"boostedDelta","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"name","internalType":"bytes32"},{"type":"bytes32","name":"symbol","internalType":"bytes32"},{"type":"uint8","name":"minTier","internalType":"uint8"},{"type":"uint256","name":"registeredAt","internalType":"uint256"},{"type":"uint8","name":"status","internalType":"enum ArtistTokenFactory.ArtistStatus"}],"name":"getPendingArtist","inputs":[{"type":"address","name":"artist","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"totalEdaiBalance","internalType":"uint256"},{"type":"uint256","name":"totalToArtists_","internalType":"uint256"},{"type":"uint256","name":"totalLpFees_","internalType":"uint256"},{"type":"uint256","name":"artistCount_","internalType":"uint256"},{"type":"uint256","name":"graduationCount_","internalType":"uint256"},{"type":"address","name":"mefiToken","internalType":"address"}],"name":"getPoolStatus","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address[]","name":"","internalType":"address[]"}],"name":"getRegisteredArtists","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isRegistered","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"jackpotAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"jackpotBps","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IKEYStaking"}],"name":"keyStaking","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"launchCurve","inputs":[{"type":"address","name":"artist","internalType":"address"},{"type":"string","name":"tokenName","internalType":"string"},{"type":"string","name":"tokenSymbol","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"liquidityBps","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lpFeeBps","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"lpFeeRecipient","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IMefiContract"}],"name":"mefiContract","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"migrateArtistToken","inputs":[{"type":"address","name":"artist","internalType":"address"},{"type":"address","name":"newFactory","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mintForStream","inputs":[{"type":"address","name":"user","internalType":"address"},{"type":"address","name":"artist","internalType":"address"},{"type":"uint256","name":"boostedDelta","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"notifyEdaiReceived","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"oracleSigner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"pause","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"paused","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"name","internalType":"bytes32"},{"type":"bytes32","name":"symbol","internalType":"bytes32"},{"type":"uint8","name":"minTier","internalType":"uint8"},{"type":"uint256","name":"registeredAt","internalType":"uint256"}],"name":"pendingArtists","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"redeemForMefi","inputs":[{"type":"address","name":"artist","internalType":"address"},{"type":"uint256","name":"tokenAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"registerArtist","inputs":[{"type":"string","name":"name","internalType":"string"},{"type":"string","name":"symbol","internalType":"string"},{"type":"uint8","name":"minTier","internalType":"uint8"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"registerSpecialArtist","inputs":[{"type":"address","name":"artist","internalType":"address"},{"type":"address","name":"tokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"registeredArtists","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueEdai","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueToken","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"reserveBps","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IPulseXRouter"}],"name":"router","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setArtistGradThreshold","inputs":[{"type":"address","name":"artist","internalType":"address"},{"type":"uint256","name":"_threshold","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBaseRateUSD","inputs":[{"type":"uint256","name":"_rate","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setCreatorTaxBps","inputs":[{"type":"uint256","name":"_bps","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDefaultFloorPrice","inputs":[{"type":"uint256","name":"_p","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDefaultGradThreshold","inputs":[{"type":"uint256","name":"_t","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDefaultPriceIncrement","inputs":[{"type":"uint256","name":"_i","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setGraduationSplit","inputs":[{"type":"uint256","name":"_liq","internalType":"uint256"},{"type":"uint256","name":"_art","internalType":"uint256"},{"type":"uint256","name":"_jkp","internalType":"uint256"},{"type":"uint256","name":"_res","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setJackpotAddress","inputs":[{"type":"address","name":"_j","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setKeyStaking","inputs":[{"type":"address","name":"_ks","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLpFeeBps","inputs":[{"type":"uint256","name":"_bps","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLpFeeRecipient","inputs":[{"type":"address","name":"_lp","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMefiContract","inputs":[{"type":"address","name":"_mefi","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setOracleSigner","inputs":[{"type":"address","name":"_oracle","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setStreamingRewards","inputs":[{"type":"address","name":"_sr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTierRequirement","inputs":[{"type":"address","name":"artist","internalType":"address"},{"type":"uint8","name":"minTier","internalType":"uint8"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"streamingRewards","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalArtistTokensMinted","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalEdaiLpFees","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalEdaiToArtists","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalGraduations","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"unpause","inputs":[]}]
              

Contract Creation Code

0x608060405266038d7ea4c6800060015564012a05f20060025562018696600355690a968163f0a57b4000006004556103e86005556101f46006556107d0600855610fa0600955610bb8600a556103e8600b5534801561005d57600080fd5b5060405161618e38038061618e83398101604081905261007c916102c7565b806001600160a01b0381166100ac57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6100b58161025b565b5060017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00556001600160a01b0386166101195760405162461bcd60e51b81526004016100a3906020808252600490820152635a45524f60e01b604082015260600190565b6001600160a01b0384166101585760405162461bcd60e51b81526004016100a3906020808252600490820152635a45524f60e01b604082015260600190565b600f80546001600160a01b038881166001600160a01b03199283161790925560108054888416908316179055600c80548784169083168117909155600d80548785169084161790556011805493861693831693909317909255600e805490911673165c3410fc91ef562c50559f7d2289febed552d917905560405163095ea7b360e01b81526004810191909152600019602482015273efd766ccb38eaf1dfd701853bfce31359239f3059063095ea7b3906044016020604051808303816000875af115801561022b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061024f919061033b565b50505050505050610364565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146102c257600080fd5b919050565b60008060008060008060c087890312156102e057600080fd5b6102e9876102ab565b95506102f7602088016102ab565b9450610305604088016102ab565b9350610313606088016102ab565b9250610321608088016102ab565b915061032f60a088016102ab565b90509295509295509295565b60006020828403121561034d57600080fd5b8151801515811461035d57600080fd5b9392505050565b615e1b806103736000396000f3fe608060405234801561001057600080fd5b50600436106104285760003560e01c80637f79496c1161022b578063c3c5a54711610130578063de5b54cb116100b8578063e7f090a311610087578063e7f090a314610a62578063ea92c1f014610aea578063f2829bc514610afd578063f2fde38b14610b06578063f887ea4014610b1957600080fd5b8063de5b54cb146109cf578063e1a45218146109e2578063e3c3daca146109eb578063e7a52ea714610a4f57600080fd5b8063c9f62af2116100ff578063c9f62af214610944578063cc9c01ef1461094d578063d87dbaca1461097d578063dac47bba14610990578063db6604c6146109a357600080fd5b8063c3c5a547146108ea578063c68778221461090d578063c87134bd14610928578063c90901da1461093b57600080fd5b8063a7900220116101b3578063bb4f949d11610182578063bb4f949d1461089f578063bdbe193e146108a8578063c1bb8901146108bb578063c247620d146108c4578063c2812faf146108d757600080fd5b8063a79002201461085d578063a97f999d14610870578063ab6054e814610879578063ade65d5a1461088c57600080fd5b806384cc315b116101fa57806384cc315b146108145780638da5cb5b1461082757806396d74b76146108385780639ae9b64c1461084b578063a2db68701461085457600080fd5b80637f79496c146107a857806382b8f130146107e657806383642d82146107f95780638456cb591461080c57600080fd5b80633c14a7b9116103315780635ea1719d116102b957806371424249116102885780637142424914610756578063715018a61461075f5780637262f55714610767578063773174d61461077a5780637aabea951461078d57600080fd5b80635ea1719d146107125780636bc0b3ba1461071b5780636e3645131461072e57806371303c421461074357600080fd5b80635095a755116103005780635095a7551461068a57806351b82364146106c557806355f5e9ec146106d85780635902a869146106eb5780635c975abb146106f457600080fd5b80633c14a7b9146106535780633d5c5068146106665780633f4ba83a1461066f57806349d42e771461067757600080fd5b80631aa81184116103b45780632cc3dc6e116103835780632cc3dc6e1461053357806333f3d6281461061157806336ee5fb81461062457806337b7e15214610637578063389254491461064a57600080fd5b80631aa81184146104e7578063205eba2f146104fa57806328bff9db1461050d5780632b773a191461052057600080fd5b80630e135853116103fb5780630e1358531461049257806310e7e29b146104a557806314e88536146104b8578063151e564d146104c15780631709a61b146104d457600080fd5b806301e024751461042d57806303fd2a451461044257806309d2f841146104685780630a3dadc01461047b575b600080fd5b61044061043b366004614bcb565b610b2c565b005b61044b61dead81565b6040516001600160a01b0390911681526020015b60405180910390f35b610440610476366004614c51565b610ce6565b610484601a5481565b60405190815260200161045f565b6104406104a0366004614c6c565b610e7f565b6104406104b3366004614c85565b610eac565b61048460185481565b6104406104cf366004614c6c565b610f1e565b600f5461044b906001600160a01b031681565b6104406104f5366004614cb7565b610f32565b600c5461044b906001600160a01b031681565b61044061051b366004614c51565b611042565b61044061052e366004614cea565b6110cc565b6105ad610541366004614c51565b6014602052600090815260409020805460018201546002830154600384015460048501546005860154600687015460078801546008909801546001600160a01b039097169795969495939492939192909160ff808216926101008304821692620100009004909116908b565b604080516001600160a01b03909c168c5260208c019a909a52988a01979097526060890195909552608088019390935260a087019190915260c0860152151560e0850152151561010084015260ff166101208301526101408201526101600161045f565b61044061061f366004614cea565b6111e6565b610440610632366004614cea565b6112b1565b600d5461044b906001600160a01b031681565b610484600b5481565b60075461044b906001600160a01b031681565b61048460065481565b610440611330565b610440610685366004614c51565b611342565b61069d610698366004614cea565b6113a6565b604080519586526020860194909452928401919091526060830152608082015260a00161045f565b6104406106d3366004614cb7565b611524565b6104406106e6366004614c51565b61182c565b6104846107d081565b600054600160a01b900460ff165b604051901515815260200161045f565b61048460195481565b60115461044b906001600160a01b031681565b610736611a4d565b60405161045f9190614d59565b610440610751366004614c51565b611aaf565b61048460095481565b610440611ad9565b610484610775366004614cea565b611aeb565b60105461044b906001600160a01b031681565b61044b73efd766ccb38eaf1dfd701853bfce31359239f30581565b6107b0611bb8565b60408051968752602087019590955293850192909252606084015260808301526001600160a01b031660a082015260c00161045f565b6104406107f4366004614c6c565b611c4c565b610440610807366004614c51565b611c91565b610440611cbb565b610484610822366004614c51565b611ccb565b6000546001600160a01b031661044b565b61044b610846366004614c6c565b611d24565b610484600a5481565b61048460045481565b61044061086b366004614c51565b611d4e565b61048460015481565b610440610887366004614d6c565b611d78565b61044061089a366004614c6c565b6122e3565b61048460025481565b6104406108b6366004614c6c565b6123c4565b61048460055481565b6105ad6108d2366004614c51565b612409565b6104406108e5366004614c51565b61253c565b6107026108f8366004614c51565b60166020526000908152604090205460ff1681565b61044b73165c3410fc91ef562c50559f7d2289febed552d981565b610440610936366004614c6c565b6125f1565b61048460175481565b61048460085481565b61097061095b366004614c51565b60126020526000908152604090205460ff1681565b60405161045f9190614de1565b61044061098b366004614dfe565b61261e565b61044061099e366004614c6c565b6127f8565b6109706109b1366004614c51565b6001600160a01b031660009081526012602052604090205460ff1690565b6104406109dd366004614cea565b612805565b61048461271081565b610a266109f9366004614c51565b60136020526000908152604090208054600182015460028301546003909301549192909160ff9091169084565b60405161045f9493929190938452602084019290925260ff166040830152606082015260800190565b610440610a5d366004614c6c565b612cc5565b610ad9610a70366004614c51565b6001600160a01b03166000818152601360209081526040808320815160808101835281548082526001830154828601819052600284015460ff90811684870181905260039095015460609094018490529787526012909552929094205491959294909392911690565b60405161045f959493929190614e35565b610440610af8366004614e6a565b612cf2565b61048460035481565b610440610b14366004614c51565b612f3b565b600e5461044b906001600160a01b031681565b600f546001600160a01b0316331480610b4f57506000546001600160a01b031633145b610b745760405162461bcd60e51b8152600401610b6b90614ef3565b60405180910390fd5b6001600160a01b038516610b9a5760405162461bcd60e51b8152600401610b6b90614f11565b6001600160a01b03851660009081526016602052604090205460ff1615610bec5760405162461bcd60e51b815260206004820152600660248201526545584953545360d01b6044820152606401610b6b565b82610c215760405162461bcd60e51b8152602060048201526005602482015264454d50545960d81b6044820152606401610b6b565b80610c565760405162461bcd60e51b8152602060048201526005602482015264454d50545960d81b6044820152606401610b6b565b6000610c7586610c668787612f76565b610c708686612f76565b612fbb565b6001600160a01b0387811660008181526012602052604090819020805460ff1916600217905551929350908316917fa16264a8821ab9e25302bd31fb70ed62e2eb79de34d3a95a24fd0c5f51e9a7fe90610cd6908990899089908990614f58565b60405180910390a3505050505050565b610cee61320b565b6001600160a01b038116610d145760405162461bcd60e51b8152600401610b6b90614f11565b600c5460405163095ea7b360e01b81526001600160a01b039091169073efd766ccb38eaf1dfd701853bfce31359239f3059063095ea7b390610d5d908490600090600401614f8a565b6020604051808303816000875af1158015610d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da09190614fa3565b50600c80546001600160a01b0319166001600160a01b03841617905560405163095ea7b360e01b815273efd766ccb38eaf1dfd701853bfce31359239f3059063095ea7b390610df790859060001990600401614f8a565b6020604051808303816000875af1158015610e16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3a9190614fa3565b50816001600160a01b0316816001600160a01b03167fc34f53cf3ec48c1da8c663567c8fe0c93a1e5cd9d378d55bde71d2945dc4963f60405160405180910390a35050565b610e8761320b565b60008111610ea75760405162461bcd60e51b8152600401610b6b90614fc5565b600155565b610eb461320b565b6127108183610ec38688614ff8565b610ecd9190614ff8565b610ed79190614ff8565b14610f0a5760405162461bcd60e51b815260206004820152600360248201526253554d60e81b6044820152606401610b6b565b600893909355600991909155600a55600b55565b610f2661320b565b610f2f81613238565b50565b610f3a61320b565b6001600160a01b03821660009081526016602052604090205460ff16610f725760405162461bcd60e51b8152600401610b6b9061500b565b6001600160a01b038116610f985760405162461bcd60e51b8152600401610b6b90614f11565b6001600160a01b0382811660009081526014602052604090819020549051630b768f0160e31b81528383166004820152911690635bb4780890602401600060405180830381600087803b158015610fee57600080fd5b505af1158015611002573d6000803e3d6000fd5b50506040516001600160a01b038085169350851691507f9c5fae0dd28998cddac9315770f7bb4fa9460feae28ee147005b87874d4fd88690600090a35050565b61104a61320b565b6001600160a01b0381166110705760405162461bcd60e51b8152600401610b6b90614f11565b600f546040516001600160a01b038084169216907f9275b597b6188dcd901ecae14175fd5b02a5c9dee8bcce5af021f420af6cd1a390600090a3600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6110d4613414565b600081116110f45760405162461bcd60e51b8152600401610b6b90614f11565b61111473efd766ccb38eaf1dfd701853bfce31359239f305333084613430565b6001600160a01b0382161580159061114457506001600160a01b03821660009081526016602052604090205460ff165b1561117f576001600160a01b03821660009081526014602052604081206008018054839290611174908490614ff8565b909155506111889050565b61118881613238565b816001600160a01b03167f72558651798c6a1b42d887d034a62c447a357a5d4234216a059cd66f034d4fab826040516111c391815260200190565b60405180910390a26111e26001600080516020615dc683398151915255565b5050565b6111ee61320b565b73efd766ccb38eaf1dfd701853bfce31359239f304196001600160a01b038316016112445760405162461bcd60e51b8152600401610b6b906020808252600490820152634544414960e01b604082015260600190565b600c546001600160a01b039081169083160361128b5760405162461bcd60e51b8152600401610b6b906020808252600490820152634d45464960e01b604082015260600190565b6111e26112a06000546001600160a01b031690565b6001600160a01b0384169083613466565b6112b961320b565b6001600160a01b03821660009081526016602052604090205460ff166112f15760405162461bcd60e51b8152600401610b6b9061500b565b600081116113115760405162461bcd60e51b8152600401610b6b90614fc5565b6001600160a01b03909116600090815260146020526040902060050155565b61133861320b565b61134061349b565b565b61134a61320b565b6010546040516001600160a01b038084169216907f38290b2bc265aac8c7719f09494749cfc6104c24dc86df60a483d0cb36eb0c8d90600090a3601080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216600090815260166020526040812054819081908190819060ff166113e25750600093508392508291508190508061151a565b6001600160a01b0387166000908152601460205260409020600781015460ff168061141657506007810154610100900460ff165b1561143a5760008060008061142a856134f0565b955095509550955095505061151a565b6000670de0b6b3a7640000600154896114539190615028565b61145d919061503f565b90506000612710600554836114729190615028565b61147c919061503f565b90506000612710600654846114919190615028565b61149b919061503f565b90506000816114aa8486615061565b6114b49190615061565b905060006114c1866134f0565b90508015806114ce575081155b156114ed5760009a508a9950899850889750955061151a945050505050565b8061150083670de0b6b3a7640000615028565b61150a919061503f565b9a50939850919650945090925050505b9295509295909350565b61152c61320b565b6001600160a01b0382161580159061154c57506001600160a01b03811615155b6115685760405162461bcd60e51b8152600401610b6b90614f11565b6001600160a01b03821660009081526016602052604090205460ff16156115ba5760405162461bcd60e51b815260206004820152600660248201526545584953545360d01b6044820152606401610b6b565b604051806101600160405280826001600160a01b03168152602001600081526020016000815260200160025481526020016003548152602001600454815260200160008152602001600115158152602001600115158152602001600060ff168152602001600081525060146000846001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a81548160ff0219169083151502179055506101008201518160070160016101000a81548160ff0219169083151502179055506101208201518160070160026101000a81548160ff021916908360ff1602179055506101408201518160080155905050600160166000846001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600260126000846001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360028111156117a8576117a8614da9565b02179055506015805460018101825560009182527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4750180546001600160a01b0319166001600160a01b038581169182179092556040519184169290917fdd5cb7e44489730b80bd628e183cb468c757c508bfe2d6f60351914fc48263ba9190a35050565b336001600160a01b038216148061184d57506000546001600160a01b031633145b6118695760405162461bcd60e51b8152600401610b6b90614ef3565b60016001600160a01b03821660009081526012602052604090205460ff16600281111561189857611898614da9565b146118d35760405162461bcd60e51b815260206004820152600b60248201526a4e4f545f50454e44494e4760a81b6044820152606401610b6b565b6001600160a01b03811660009081526013602090815260409182902082516080810184528154808252600183015493820193909352600282015460ff16938101939093526003015460608301526119555760405162461bcd60e51b81526020600482015260066024820152654e4f5f52454760d01b6044820152606401610b6b565b600061196a8383600001518460200151612fbb565b6040808401516001600160a01b038616600090815260146020908152838220600701805460ff909416620100000262ff00001990941693909317909255601290915220805491925060029160ff191660018302179055506001600160a01b0380841660008181526013602052604081208181556001810182905560028101805460ff19169055600301558351918316917fa16264a8821ab9e25302bd31fb70ed62e2eb79de34d3a95a24fd0c5f51e9a7fe90611a2590613528565b611a328660200151613528565b604051611a409291906150ba565b60405180910390a3505050565b60606015805480602002602001604051908101604052809291908181526020018280548015611aa557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611a87575b5050505050905090565b611ab761320b565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b611ae161320b565b6113406000613614565b6001600160a01b03821660009081526016602052604081205460ff161580611b11575081155b15611b1e57506000611bb2565b6001600160a01b03831660009081526014602052604090206007810154610100900460ff1615611b52576000915050611bb2565b600781015460009060ff16611b6b578160080154611b71565b81600601545b90506000670de0b6b3a7640000611b87846134f0565b611b919087615028565b611b9b919061503f565b9050818111611baa5780611bac565b815b93505050505b92915050565b6000808080808080805b601554811015611c1f576014600060158381548110611be357611be36150e8565b60009182526020808320909101546001600160a01b03168352820192909252604001902060080154611c159083614ff8565b9150600101611bc2565b50601854601954601554601a54600c54949b939a50919850965094506001600160a01b0390911692509050565b611c5461320b565b6103e8811115611c8c5760405162461bcd60e51b815260206004820152600360248201526209a82b60eb1b6044820152606401610b6b565b600655565b611c9961320b565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b611cc361320b565b611340613664565b6001600160a01b03811660009081526016602052604081205460ff16611d035760405162461bcd60e51b8152600401610b6b9061500b565b6001600160a01b0382166000908152601460205260409020611bb2906134f0565b60158181548110611d3457600080fd5b6000918252602090912001546001600160a01b0316905081565b611d5661320b565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b611d80613414565b6010546001600160a01b0316331480611da357506000546001600160a01b031633145b611dd95760405162461bcd60e51b815260206004820152600760248201526620aaaa242fa9a960c91b6044820152606401610b6b565b611de16136a7565b6001600160a01b038316611e075760405162461bcd60e51b8152600401610b6b90614f11565b6001600160a01b038216611e2d5760405162461bcd60e51b8152600401610b6b90614f11565b80156122c75760026001600160a01b03831660009081526012602052604090205460ff166002811115611e6257611e62614da9565b036122c7576001600160a01b03821660009081526014602052604090206007810154611e9890859062010000900460ff166136d2565b611ea257506122c7565b6007810154610100900460ff1680611ebe5750600781015460ff165b15611ed557611ecf84848484613820565b506122c7565b6000670de0b6b3a764000060015484611eee9190615028565b611ef8919061503f565b905080600003611f095750506122c7565b8082600801541015611f2f578160080154600003611f285750506122c7565b5060088101545b600061271060055483611f429190615028565b611f4c919061503f565b9050600061271060065484611f619190615028565b611f6b919061503f565b9050600081611f7a8486615061565b611f849190615061565b905080600003611f985750505050506122c7565b83856008016000828254611fac9190615061565b90915550508215612079578260186000828254611fc99190614ff8565b9091555050600c54604051631f0242dd60e01b81526001600160a01b0390911690631f0242dd90612000908a908790600401614f8a565b6020604051808303816000875af192505050801561203b575060408051601f3d908101601f19168201909252612038918101906150fe565b60015b6120775782601860008282546120519190615061565b925050819055508285600801600082825461206c9190614ff8565b909155506120799050565b505b60008211801561209357506007546001600160a01b031615155b1561215e5781601960008282546120aa9190614ff8565b9091555050600c54600754604051631f0242dd60e01b81526001600160a01b0392831692631f0242dd926120e5929116908690600401614f8a565b6020604051808303816000875af1925050508015612120575060408051601f3d908101601f1916820190925261211d918101906150fe565b60015b61215c5781601960008282546121369190615061565b92505081905550818560080160008282546121519190614ff8565b9091555061215e9050565b505b6000612169866134f0565b61217b83670de0b6b3a7640000615028565b612185919061503f565b90508060000361219a575050505050506122c7565b808660010160008282546121ae9190614ff8565b92505081905550848660020160008282546121c99190614ff8565b9250508190555080601760008282546121e29190614ff8565b909155505085546040516340c10f1960e01b81526001600160a01b03909116906340c10f1990612218908c908590600401614f8a565b600060405180830381600087803b15801561223257600080fd5b505af1158015612246573d6000803e3d6000fd5b50505050876001600160a01b0316896001600160a01b03167f0665098902a4275cd138ac0b72d830c576b5e85a9d1cc59594eb1af6122e8683838861228a8b6134f0565b6040805193845260208401929092529082015260600160405180910390a385600501548660020154106122c0576122c088613b87565b5050505050505b6122de6001600080516020615dc683398151915255565b505050565b6122eb61320b565b6040516370a0823160e01b815230600482015273efd766ccb38eaf1dfd701853bfce31359239f305906370a0823190602401602060405180830381865afa15801561233a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061235e91906150fe565b8111156123935760405162461bcd60e51b815260206004820152600360248201526210905360ea1b6044820152606401610b6b565b610f2f6123a86000546001600160a01b031690565b73efd766ccb38eaf1dfd701853bfce31359239f3059083613466565b6123cc61320b565b6107d08111156124045760405162461bcd60e51b815260206004820152600360248201526209a82b60eb1b6044820152606401610b6b565b600555565b6001600160a01b038116600090815260166020526040812054819081908190819081908190819081908190819060ff166124555760405162461bcd60e51b8152600401610b6b9061500b565b6001600160a01b038c166000908152601460205260408120600581015490919061248057600061249f565b60058201546002830154612495906064615028565b61249f919061503f565b905060648111156124ae575060645b8154600183015460028401546001600160a01b03909216916124cf856134f0565b85600501548587600601548860070160009054906101000a900460ff168960070160019054906101000a900460ff168a60070160029054906101000a900460ff168b600801549c509c509c509c509c509c509c509c509c509c509c50505091939597999b90929496989a50565b61254461320b565b6001600160a01b03811660009081526016602052604090205460ff1661257c5760405162461bcd60e51b8152600401610b6b9061500b565b6001600160a01b0381166000908152601460205260409020600781015460ff161580156125b357506007810154610100900460ff16155b6125e85760405162461bcd60e51b8152600401610b6b9060208082526004908201526311d4905160e21b604082015260600190565b6111e282613b87565b6125f961320b565b600081116126195760405162461bcd60e51b8152600401610b6b90614fc5565b600455565b336001600160a01b038316148061263f57506000546001600160a01b031633145b61265b5760405162461bcd60e51b8152600401610b6b90614ef3565b60038160ff16111561269a5760405162461bcd60e51b81526020600482015260086024820152672120a22faa24a2a960c11b6044820152606401610b6b565b60016001600160a01b03831660009081526012602052604090205460ff1660028111156126c9576126c9614da9565b036126fb576001600160a01b0382166000908152601360205260409020600201805460ff191660ff83161790556127b3565b60026001600160a01b03831660009081526012602052604090205460ff16600281111561272a5761272a614da9565b0361279b576001600160a01b03821660009081526016602052604090205460ff166127675760405162461bcd60e51b8152600401610b6b9061500b565b6001600160a01b0382166000908152601460205260409020600701805462ff000019166201000060ff8416021790556127b3565b60405162461bcd60e51b8152600401610b6b9061500b565b60405160ff821681526001600160a01b038316907f1d214423bbad73b04fa137aa046aac07447064bc32b84b043c45e5ca3839200b9060200160405180910390a25050565b61280061320b565b600355565b61280d613414565b6001600160a01b03821660009081526016602052604090205460ff166128455760405162461bcd60e51b8152600401610b6b9061500b565b600081116128655760405162461bcd60e51b8152600401610b6b90614f11565b6001600160a01b03821660009081526014602052604090206007810154610100900460ff16156128c15760405162461bcd60e51b815260206004820152600760248201526614d41150d2505360ca1b6044820152606401610b6b565b600781015460009060ff166128da5781600801546128e0565b81600601545b90506000811161291c5760405162461bcd60e51b81526020600482015260076024820152664e4f5f4544414960c81b6044820152606401610b6b565b81546040516370a0823160e01b815233600482015284916001600160a01b0316906370a0823190602401602060405180830381865afa158015612963573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298791906150fe565b10156129bb5760405162461bcd60e51b815260206004820152600360248201526210905360ea1b6044820152606401610b6b565b60006129c6836134f0565b90506000670de0b6b3a76400006129dd8387615028565b6129e7919061503f565b9050828111156129f45750815b60008111612a2c5760405162461bcd60e51b815260206004820152600560248201526414d350531360da1b6044820152606401610b6b565b600784015460ff1615612a585780846006016000828254612a4d9190615061565b90915550612a969050565b80846008016000828254612a6c9190615061565b909155505060018401548511612a965784846001016000828254612a909190615061565b90915550505b8354604051632770a7eb60e21b81526001600160a01b0390911690639dc29fac90612ac79033908990600401614f8a565b600060405180830381600087803b158015612ae157600080fd5b505af1158015612af5573d6000803e3d6000fd5b5050600c54604051631f0242dd60e01b81526001600160a01b039091169250631f0242dd9150612b2b9033908590600401614f8a565b6020604051808303816000875af1925050508015612b66575060408051601f3d908101601f19168201909252612b63918101906150fe565b60015b612c6357600784015460ff1615612b965780846006016000828254612b8b9190614ff8565b90915550612bcb9050565b80846008016000828254612baa9190614ff8565b9250508190555084846001016000828254612bc59190614ff8565b90915550505b83546040516340c10f1960e01b81526001600160a01b03909116906340c10f1990612bfc9033908990600401614f8a565b600060405180830381600087803b158015612c1657600080fd5b505af1158015612c2a573d6000803e3d6000fd5b505060405162461bcd60e51b815260206004820152600860248201526711151617d190525360c21b60448201526064019150610b6b9050565b5060408051868152602081018390526001600160a01b0388169133917f1314c4a32e30cc5829197726f9ad61b2dd0940df4d469f03425361089b7ee187910160405180910390a3505050506111e26001600080516020615dc683398151915255565b612ccd61320b565b60008111612ced5760405162461bcd60e51b8152600401610b6b90614fc5565b600255565b8315801590612d02575060208411155b612d395760405162461bcd60e51b81526020600482015260086024820152674241445f4e414d4560c01b6044820152606401610b6b565b8115801590612d49575060088211155b612d7f5760405162461bcd60e51b81526020600482015260076024820152664241445f53594d60c81b6044820152606401610b6b565b60038160ff161115612dbe5760405162461bcd60e51b81526020600482015260086024820152672120a22faa24a2a960c11b6044820152606401610b6b565b60023360009081526012602052604090205460ff166002811115612de457612de4614da9565b03612e1a5760405162461bcd60e51b815260206004820152600660248201526541435449564560d01b6044820152606401610b6b565b3360009081526016602052604090205460ff1615612e665760405162461bcd60e51b815260206004820152600960248201526810d3d391925493515160ba1b6044820152606401610b6b565b6040518060800160405280612e7b8787612f76565b8152602001612e8a8585612f76565b815260ff83811660208084019190915242604093840152336000818152601383528481208651815586840151600180830191909155878701516002830180549190971660ff199182161790965560609097015160039091015560129092529083902080549092169093179055517f1d0fbaabbeb400df633d977c1cbae36a6dae2560b13865232d42a232a5fd950690612f2c9088908890889088908890615117565b60405180910390a25050505050565b612f4361320b565b6001600160a01b038116612f6d57604051631e4fbdf760e01b815260006004820152602401610b6b565b610f2f81613614565b60008083838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050505060200151949350505050565b60008083833087604051612fce90614b59565b93845260208401929092526001600160a01b039081166040840152166060820152608001604051809103906000f08015801561300e573d6000803e3d6000fd5b509050809150604051806101600160405280836001600160a01b03168152602001600081526020016000815260200160025481526020016003548152602001600454815260200160008152602001600015158152602001600015158152602001600060ff168152602001600081525060146000876001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a81548160ff0219169083151502179055506101008201518160070160016101000a81548160ff0219169083151502179055506101208201518160070160026101000a81548160ff021916908360ff1602179055506101408201518160080155905050600160166000876001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055506015859080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b03160217905550509392505050565b6000546001600160a01b031633146113405760405163118cdaa760e01b8152336004820152602401610b6b565b6000805b60155481101561331c576000601460006015848154811061325f5761325f6150e8565b60009182526020808320909101546001600160a01b031683528201929092526040019020600781015490915060ff161580156132a557506007810154610100900460ff16155b80156133005750600260126000601585815481106132c5576132c56150e8565b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff1660028111156132fe576132fe614da9565b145b15613313578261330f81615154565b9350505b5060010161323c565b5080600003613329575050565b6000613335828461503f565b90508060000361334457505050565b60005b60155481101561340e57600060158281548110613366576133666150e8565b60009182526020808320909101546001600160a01b03168083526014909152604090912060078101549192509060ff161580156133ad57506007810154610100900460ff16155b80156133e5575060026001600160a01b03831660009081526012602052604090205460ff1660028111156133e3576133e3614da9565b145b1561340457838160080160008282546133fe9190614ff8565b90915550505b5050600101613347565b50505050565b61341c613e8e565b6002600080516020615dc683398151915255565b61343e848484846001613ebe565b61340e57604051635274afe760e01b81526001600160a01b0385166004820152602401610b6b565b6134738383836001613f30565b6122de57604051635274afe760e01b81526001600160a01b0384166004820152602401610b6b565b6134a3613f96565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60008160040154670de0b6b3a7640000836001015461350f919061503f565b6135199190615028565b8260030154611bb29190614ff8565b606060005b60208110801561355b575082816020811061354a5761354a6150e8565b1a60f81b6001600160f81b03191615155b15613572578061356a81615154565b91505061352d565b60008167ffffffffffffffff81111561358d5761358d61516d565b6040519080825280601f01601f1916602001820160405280156135b7576020820181803683370190505b50905060005b8281101561360c578481602081106135d7576135d76150e8565b1a60f81b8282815181106135ed576135ed6150e8565b60200101906001600160f81b031916908160001a9053506001016135bd565b509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61366c6136a7565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586134d33390565b600054600160a01b900460ff16156113405760405163d93c066560e01b815260040160405180910390fd5b600d546000906001600160a01b03166136ed57506000611bb2565b600d54604051633ed403d360e11b81526001600160a01b03858116600483015290911690637da807a690602401602060405180830381865afa925050508015613753575060408051601f3d908101601f1916820190925261375091810190614fa3565b60015b61375f57506000611bb2565b8061376e576000915050611bb2565b8260ff16600003613783576001915050611bb2565b600d54604051630edf617560e41b81526001600160a01b0386811660048301529091169063edf6175090602401602060405180830381865afa9250505080156137e9575060408051601f3d908101601f191682019092526137e691810190615183565b60015b6137f7576000915050611bb2565b8060ff1660ff0361380d57600092505050611bb2565b8360ff168160ff16101592505050611bb2565b6000670de0b6b3a7640000600154846138399190615028565b613843919061503f565b905080600003613853575061340e565b6000612710600554836138669190615028565b613870919061503f565b90506000612710600654846138859190615028565b61388f919061503f565b905060008161389e8486615061565b6138a89190615061565b90506000856008015486600601546138c09190614ff8565b9050806000036138d457505050505061340e565b80851115613954576000856138f183670de0b6b3a7640000615028565b6138fb919061503f565b9050670de0b6b3a76400006139108287615028565b61391a919061503f565b9450670de0b6b3a764000061392f8286615028565b613939919061503f565b9350836139468684615061565b6139509190615061565b9250505b6000826139618587614ff8565b61396b9190614ff8565b905086600601548111613997578087600601600082825461398c9190615061565b909155506139e59050565b600687018054600091829055906139ae8284615061565b9050886008015481116139da57808960080160008282546139cf9190615061565b909155506139e29050565b600060088a01555b50505b8415613a925784601860008282546139fd9190614ff8565b9091555050600c54604051631f0242dd60e01b81526001600160a01b0390911690631f0242dd90613a34908c908990600401614f8a565b6020604051808303816000875af1925050508015613a6f575060408051601f3d908101601f19168201909252613a6c918101906150fe565b60015b613a90578460186000828254613a859190615061565b90915550613a929050565b505b600084118015613aac57506007546001600160a01b031615155b15613b5c578360196000828254613ac39190614ff8565b9091555050600c54600754604051631f0242dd60e01b81526001600160a01b0392831692631f0242dd92613afe929116908890600401614f8a565b6020604051808303816000875af1925050508015613b39575060408051601f3d908101601f19168201909252613b36918101906150fe565b60015b613b5a578360196000828254613b4f9190615061565b90915550613b5c9050565b505b8215613b7b578654613b7b908b908b906001600160a01b031686613fc0565b50505050505050505050565b6001600160a01b0381166000908152601460205260409020600781015460ff1680613bbb57506007810154610100900460ff165b15613bc4575050565b60078101805460ff19166001179055601a8054906000613be383615154565b909155505060058101546008820154811115613c00575060088101545b600061271060085483613c139190615028565b613c1d919061503f565b9050600061271060095484613c329190615028565b613c3c919061503f565b90506000612710600a5485613c519190615028565b613c5b919061503f565b905060008183613c6b8688615061565b613c759190615061565b613c7f9190615061565b905084866008016000828254613c959190615061565b9091555050600686018190558215613d1b57600c54604051631f0242dd60e01b81526001600160a01b0390911690631f0242dd90613cd9908a908790600401614f8a565b6020604051808303816000875af1925050508015613d14575060408051601f3d908101601f19168201909252613d11918101906150fe565b60015b15613d1b57505b600082118015613d3557506011546001600160a01b031615155b15613db257600c54601154604051631f0242dd60e01b81526001600160a01b0392831692631f0242dd92613d70929116908690600401614f8a565b6020604051808303816000875af1925050508015613dab575060408051601f3d908101601f19168201909252613da8918101906150fe565b60015b15613db257505b8315613e26576000613dc5888689614309565b905080613e245784876006016000828254613de09190614ff8565b90915550506040518581526001600160a01b038916907fce6e678d07d32cd6b34995d2ea2930250db287adc3d29da5f218421086a411c19060200160405180910390a25b505b85546006870154604080518781526020810187905290810185905260608101919091526001600160a01b03918216918916907fdd5c4e159f64c58e7d4e388bf226716566369d92620db4a83622d76783c3d8679060800160405180910390a350505050505050565b600080516020615dc68339815191525460020361134057604051633ee5aeb560e01b815260040160405180910390fd5b6040516323b872dd60e01b60008181526001600160a01b038781166004528616602452604485905291602083606481808c5af192506001600051148316613f1e578383151615613f11573d6000823e3d81fd5b6000883b113d1516831692505b60405250600060605295945050505050565b60405163a9059cbb60e01b60008181526001600160a01b038616600452602485905291602083604481808b5af192506001600051148316613f8a578383151615613f7d573d6000823e3d81fd5b6000873b113d1516831692505b60405250949350505050565b600054600160a01b900460ff1661134057604051638dfc202b60e01b815260040160405180910390fd5b600c546040516370a0823160e01b81523060048201526001600160a01b039091169060009082906370a0823190602401602060405180830381865afa15801561400d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061403191906150fe565b600c54604051631f0242dd60e01b81529192506001600160a01b031690631f0242dd906140649030908790600401614f8a565b6020604051808303816000875af192505050801561409f575060408051601f3d908101601f1916820190925261409c918101906150fe565b60015b1561430157506040516370a0823160e01b815230600482015260009082906001600160a01b038516906370a0823190602401602060405180830381865afa1580156140ee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061411291906150fe565b61411c9190615061565b90508060000361412e5750505061340e565b6040805160028082526060820183526000926020830190803683370190505090508381600081518110614163576141636150e8565b60200260200101906001600160a01b031690816001600160a01b0316815250508581600181518110614197576141976150e8565b6001600160a01b039283166020918202929092010152600e546141bf91868116911684614979565b600e546001600160a01b0316635c11d795836000848c6141e14261012c614ff8565b6040518663ffffffff1660e01b81526004016142019594939291906151a0565b600060405180830381600087803b15801561421b57600080fd5b505af192505050801561422c575060015b61424f57600e5461424a906001600160a01b03868116911684614a03565b6142fe565b6040516370a0823160e01b81526001600160a01b0389811660048301819052818a169290917f90483e46590a08e6c7c631b26e8a0216f9fb3e8f57b88f260add123e2f942e9a9189918b16906370a0823190602401602060405180830381865afa1580156142c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142e591906150fe565b6040805192835260208301919091520160405180910390a35b50505b505050505050565b600c546040516370a0823160e01b81523060048201526000916001600160a01b031690829082906370a0823190602401602060405180830381865afa158015614356573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061437a91906150fe565b600c54604051631f0242dd60e01b81529192506001600160a01b031690631f0242dd906143ad9030908990600401614f8a565b6020604051808303816000875af19250505080156143e8575060408051601f3d908101601f191682019092526143e5918101906150fe565b60015b6143f757600092505050614972565b506040516370a0823160e01b815230600482015260009082906001600160a01b038516906370a0823190602401602060405180830381865afa158015614441573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061446591906150fe565b61446f9190615061565b9050806000036144855760009350505050614972565b6000614490866134f0565b9050806000036144a7576000945050505050614972565b6000816144bc84670de0b6b3a7640000615028565b6144c6919061503f565b9050806000036144de57600095505050505050614972565b86546040516340c10f1960e01b81526001600160a01b03909116906340c10f199061450f9030908590600401614f8a565b600060405180830381600087803b15801561452957600080fd5b505af115801561453d573d6000803e3d6000fd5b50505050808760010160008282546145559190614ff8565b9091555050600e54614574906001600160a01b03878116911685614979565b8654600e5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b3926145a9929116908590600401614f8a565b6020604051808303816000875af11580156145c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145ec9190614fa3565b50600e5487546001600160a01b039182169163e8e33700911687848760008061dead61461a4261012c614ff8565b60405160e08a901b6001600160e01b03191681526001600160a01b039889166004820152968816602488015260448701959095526064860193909352608485019190915260a484015290921660c482015260e4810191909152610104016060604051808303816000875af19250505080156146b2575060408051601f3d908101601f191682019092526146af918101906151dc565b60015b6147d557600e546146d0906001600160a01b03878116911685614a03565b8654600e5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b39261470692911690600090600401614f8a565b6020604051808303816000875af1158015614725573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147499190614fa3565b508654604051632770a7eb60e21b81526001600160a01b0390911690639dc29fac9061477b9030908590600401614f8a565b600060405180830381600087803b15801561479557600080fd5b505af11580156147a9573d6000803e3d6000fd5b50505050808760010160008282546147c19190615061565b909155506000965061497295505050505050565b60408051838152602081018590529081018290526001600160a01b038d16907f73c8c83c3b707cdb3f1941a481faff699a60d89a58c0152d4516b6be903ff0c09060600160405180910390a283831015614932578954600e5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b39261485f92911690600090600401614f8a565b6020604051808303816000875af115801561487e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906148a29190614fa3565b5089546001600160a01b0316639dc29fac306148be8688615061565b6040518363ffffffff1660e01b81526004016148db929190614f8a565b600060405180830381600087803b1580156148f557600080fd5b505af1158015614909573d6000803e3d6000fd5b5050505082846149199190615061565b8a600101600082825461492c9190615061565b90915550505b8582101561496557600e54614965906001600160a01b03166149548489615061565b6001600160a01b038b169190614a03565b6001985050505050505050505b9392505050565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa1580156149c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906149ed91906150fe565b905061340e84846149fe8585614ff8565b614abc565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015614a53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614a7791906150fe565b905081811015614ab35760405163e570110f60e01b81526001600160a01b03841660048201526024810182905260448101839052606401610b6b565b61340e84848484035b614ac98383836000614b0c565b6122de57614adb838360006001614b0c565b614b0357604051635274afe760e01b81526001600160a01b0384166004820152602401610b6b565b61347383838360015b60405163095ea7b360e01b60008181526001600160a01b038616600452602485905291602083604481808b5af192506001600051148316613f8a578383151615613f7d573d6000823e3d81fd5b610bbb8061520b83390190565b80356001600160a01b0381168114614b7d57600080fd5b919050565b60008083601f840112614b9457600080fd5b50813567ffffffffffffffff811115614bac57600080fd5b602083019150836020828501011115614bc457600080fd5b9250929050565b600080600080600060608688031215614be357600080fd5b614bec86614b66565b9450602086013567ffffffffffffffff811115614c0857600080fd5b614c1488828901614b82565b909550935050604086013567ffffffffffffffff811115614c3457600080fd5b614c4088828901614b82565b969995985093965092949392505050565b600060208284031215614c6357600080fd5b61497282614b66565b600060208284031215614c7e57600080fd5b5035919050565b60008060008060808587031215614c9b57600080fd5b5050823594602084013594506040840135936060013592509050565b60008060408385031215614cca57600080fd5b614cd383614b66565b9150614ce160208401614b66565b90509250929050565b60008060408385031215614cfd57600080fd5b614d0683614b66565b946020939093013593505050565b600081518084526020840193506020830160005b82811015614d4f5781516001600160a01b0316865260209586019590910190600101614d28565b5093949350505050565b6020815260006149726020830184614d14565b600080600060608486031215614d8157600080fd5b614d8a84614b66565b9250614d9860208501614b66565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b60038110614ddd57634e487b7160e01b600052602160045260246000fd5b9052565b60208101611bb28284614dbf565b60ff81168114610f2f57600080fd5b60008060408385031215614e1157600080fd5b614e1a83614b66565b91506020830135614e2a81614def565b809150509250929050565b8581526020810185905260ff841660408201526060810183905260a08101614e606080830184614dbf565b9695505050505050565b600080600080600060608688031215614e8257600080fd5b853567ffffffffffffffff811115614e9957600080fd5b614ea588828901614b82565b909650945050602086013567ffffffffffffffff811115614ec557600080fd5b614ed188828901614b82565b9094509250506040860135614ee581614def565b809150509295509295909350565b602080825260049082015263082aaa8960e31b604082015260600190565b6020808252600490820152635a45524f60e01b604082015260600190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b604081526000614f6c604083018688614f2f565b8281036020840152614f7f818587614f2f565b979650505050505050565b6001600160a01b03929092168252602082015260400190565b600060208284031215614fb557600080fd5b8151801515811461497257600080fd5b60208082526003908201526210905160ea1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115611bb257611bb2614fe2565b602080825260039082015262554e4b60e81b604082015260600190565b8082028115828204841417611bb257611bb2614fe2565b60008261505c57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115611bb257611bb2614fe2565b6000815180845260005b8181101561509a5760208185018101518683018201520161507e565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006150cd6040830185615074565b82810360208401526150df8185615074565b95945050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561511057600080fd5b5051919050565b60608152600061512b606083018789614f2f565b828103602084015261513e818688614f2f565b91505060ff831660408301529695505050505050565b60006001820161516657615166614fe2565b5060010190565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561519557600080fd5b815161497281614def565b85815284602082015260a0604082015260006151bf60a0830186614d14565b6001600160a01b0394909416606083015250608001529392505050565b6000806000606084860312156151f157600080fd5b505081516020830151604090930151909492935091905056fe608060405234801561001057600080fd5b50604051610bbb380380610bbb83398101604081905261002f91610116565b6001600160a01b0382166100795760405162461bcd60e51b815260206004820152600c60248201526b5a65726f20666163746f727960a01b60448201526064015b60405180910390fd5b6001600160a01b0381166100bd5760405162461bcd60e51b815260206004820152600b60248201526a16995c9bc8185c9d1a5cdd60aa1b6044820152606401610070565b600093909355600191909155600580546001600160a01b039283166001600160a01b0319918216179091556006805492909316911617905561015d565b80516001600160a01b038116811461011157600080fd5b919050565b6000806000806080858703121561012c57600080fd5b845160208601519094509250610144604086016100fa565b9150610152606086016100fa565b905092959194509250565b610a4f8061016c6000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80635bb478081161008c5780639dc29fac116100665780639dc29fac146101e4578063a9059cbb146101f7578063c45a01551461020a578063dd62ed3e1461021d57600080fd5b80635bb47808146101a957806370a08231146101bc57806395d89b41146101dc57600080fd5b806323b872dd116100c857806323b872dd14610147578063313ce5671461015a57806340c10f191461016957806343bc16121461017e57600080fd5b806306fdde03146100ef578063095ea7b31461010d57806318160ddd14610130575b600080fd5b6100f7610248565b604051610104919061084c565b60405180910390f35b61012061011b3660046108b6565b61025a565b6040519015158152602001610104565b61013960025481565b604051908152602001610104565b6101206101553660046108e0565b6102c7565b60405160128152602001610104565b61017c6101773660046108b6565b610339565b005b600654610191906001600160a01b031681565b6040516001600160a01b039091168152602001610104565b61017c6101b736600461091d565b6103f6565b6101396101ca36600461091d565b60036020526000908152604090205481565b6100f76104bb565b61017c6101f23660046108b6565b6104c8565b6101206102053660046108b6565b6105de565b600554610191906001600160a01b031681565b61013961022b36600461093f565b600460209081526000928352604080842090915290825290205481565b60606102556000546105f4565b905090565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102b59086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526004602090815260408083203384529091528120546000198114610323576102fe8382610988565b6001600160a01b03861660009081526004602090815260408083203384529091529020555b61032e8585856106e0565b506001949350505050565b6005546001600160a01b0316331461036c5760405162461bcd60e51b81526004016103639061099b565b60405180910390fd5b806002600082825461037e91906109c1565b90915550506001600160a01b038216600090815260036020526040812080548392906103ab9084906109c1565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6005546001600160a01b031633146104205760405162461bcd60e51b81526004016103639061099b565b6001600160a01b03811661045f5760405162461bcd60e51b8152600401610363906020808252600490820152635a65726f60e01b604082015260600190565b6005546040516001600160a01b038084169216907f333c7678baf16017cf31e1d2f90143a62aab01a67a0807f6836a4304ceabb55590600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b60606102556001546105f4565b6005546001600160a01b031633146104f25760405162461bcd60e51b81526004016103639061099b565b6001600160a01b03821660009081526003602052604090205481111561055a5760405162461bcd60e51b815260206004820152601b60248201527f45524332303a206275726e20657863656564732062616c616e636500000000006044820152606401610363565b6001600160a01b03821660009081526003602052604081208054839290610582908490610988565b92505081905550806002600082825461059b9190610988565b90915550506040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016103ea565b60006105eb3384846106e0565b50600192915050565b606060005b6020811080156106275750828160208110610616576106166109d4565b1a60f81b6001600160f81b03191615155b1561063e5780610636816109ea565b9150506105f9565b60008167ffffffffffffffff81111561065957610659610a03565b6040519080825280601f01601f191660200182016040528015610683576020820181803683370190505b50905060005b828110156106d8578481602081106106a3576106a36109d4565b1a60f81b8282815181106106b9576106b96109d4565b60200101906001600160f81b031916908160001a905350600101610689565b509392505050565b6001600160a01b0382166107365760405162461bcd60e51b815260206004820152601f60248201527f45524332303a207472616e7366657220746f207a65726f2061646472657373006044820152606401610363565b6001600160a01b03831660009081526003602052604090205481111561079e5760405162461bcd60e51b815260206004820152601b60248201527f45524332303a20696e73756666696369656e742062616c616e636500000000006044820152606401610363565b6001600160a01b038316600090815260036020526040812080548392906107c6908490610988565b90915550506001600160a01b038216600090815260036020526040812080548392906107f39084906109c1565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161083f91815260200190565b60405180910390a3505050565b602081526000825180602084015260005b8181101561087a576020818601810151604086840101520161085d565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146108b157600080fd5b919050565b600080604083850312156108c957600080fd5b6108d28361089a565b946020939093013593505050565b6000806000606084860312156108f557600080fd5b6108fe8461089a565b925061090c6020850161089a565b929592945050506040919091013590565b60006020828403121561092f57600080fd5b6109388261089a565b9392505050565b6000806040838503121561095257600080fd5b61095b8361089a565b91506109696020840161089a565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102c1576102c1610972565b6020808252600c908201526b4f6e6c7920666163746f727960a01b604082015260600190565b808201808211156102c1576102c1610972565b634e487b7160e01b600052603260045260246000fd5b6000600182016109fc576109fc610972565b5060010190565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220003506a5af7c13b73e7fc2afe64fbb921b4c0433fa3970526e259e1323f2111064736f6c634300082200339b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a2646970667358221220b46359c6662e136edc1629011e5be0c6f3e1b6979d5fa33211ed2d8f325a2eb864736f6c6343000822003300000000000000000000000017e7b189982d8df2539d059b46467a09a7bcb91d000000000000000000000000086c1a316d8868c9324a3de699ea130c67f466d60000000000000000000000004e988b163aab47fae182ec32bfe3c4d5908f4f30000000000000000000000000d7a138d66251ec49333e6a2c4b50781e7f49702d000000000000000000000000086c1a316d8868c9324a3de699ea130c67f466d6000000000000000000000000756639c761e228143780e022a175325d79797eec

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106104285760003560e01c80637f79496c1161022b578063c3c5a54711610130578063de5b54cb116100b8578063e7f090a311610087578063e7f090a314610a62578063ea92c1f014610aea578063f2829bc514610afd578063f2fde38b14610b06578063f887ea4014610b1957600080fd5b8063de5b54cb146109cf578063e1a45218146109e2578063e3c3daca146109eb578063e7a52ea714610a4f57600080fd5b8063c9f62af2116100ff578063c9f62af214610944578063cc9c01ef1461094d578063d87dbaca1461097d578063dac47bba14610990578063db6604c6146109a357600080fd5b8063c3c5a547146108ea578063c68778221461090d578063c87134bd14610928578063c90901da1461093b57600080fd5b8063a7900220116101b3578063bb4f949d11610182578063bb4f949d1461089f578063bdbe193e146108a8578063c1bb8901146108bb578063c247620d146108c4578063c2812faf146108d757600080fd5b8063a79002201461085d578063a97f999d14610870578063ab6054e814610879578063ade65d5a1461088c57600080fd5b806384cc315b116101fa57806384cc315b146108145780638da5cb5b1461082757806396d74b76146108385780639ae9b64c1461084b578063a2db68701461085457600080fd5b80637f79496c146107a857806382b8f130146107e657806383642d82146107f95780638456cb591461080c57600080fd5b80633c14a7b9116103315780635ea1719d116102b957806371424249116102885780637142424914610756578063715018a61461075f5780637262f55714610767578063773174d61461077a5780637aabea951461078d57600080fd5b80635ea1719d146107125780636bc0b3ba1461071b5780636e3645131461072e57806371303c421461074357600080fd5b80635095a755116103005780635095a7551461068a57806351b82364146106c557806355f5e9ec146106d85780635902a869146106eb5780635c975abb146106f457600080fd5b80633c14a7b9146106535780633d5c5068146106665780633f4ba83a1461066f57806349d42e771461067757600080fd5b80631aa81184116103b45780632cc3dc6e116103835780632cc3dc6e1461053357806333f3d6281461061157806336ee5fb81461062457806337b7e15214610637578063389254491461064a57600080fd5b80631aa81184146104e7578063205eba2f146104fa57806328bff9db1461050d5780632b773a191461052057600080fd5b80630e135853116103fb5780630e1358531461049257806310e7e29b146104a557806314e88536146104b8578063151e564d146104c15780631709a61b146104d457600080fd5b806301e024751461042d57806303fd2a451461044257806309d2f841146104685780630a3dadc01461047b575b600080fd5b61044061043b366004614bcb565b610b2c565b005b61044b61dead81565b6040516001600160a01b0390911681526020015b60405180910390f35b610440610476366004614c51565b610ce6565b610484601a5481565b60405190815260200161045f565b6104406104a0366004614c6c565b610e7f565b6104406104b3366004614c85565b610eac565b61048460185481565b6104406104cf366004614c6c565b610f1e565b600f5461044b906001600160a01b031681565b6104406104f5366004614cb7565b610f32565b600c5461044b906001600160a01b031681565b61044061051b366004614c51565b611042565b61044061052e366004614cea565b6110cc565b6105ad610541366004614c51565b6014602052600090815260409020805460018201546002830154600384015460048501546005860154600687015460078801546008909801546001600160a01b039097169795969495939492939192909160ff808216926101008304821692620100009004909116908b565b604080516001600160a01b03909c168c5260208c019a909a52988a01979097526060890195909552608088019390935260a087019190915260c0860152151560e0850152151561010084015260ff166101208301526101408201526101600161045f565b61044061061f366004614cea565b6111e6565b610440610632366004614cea565b6112b1565b600d5461044b906001600160a01b031681565b610484600b5481565b60075461044b906001600160a01b031681565b61048460065481565b610440611330565b610440610685366004614c51565b611342565b61069d610698366004614cea565b6113a6565b604080519586526020860194909452928401919091526060830152608082015260a00161045f565b6104406106d3366004614cb7565b611524565b6104406106e6366004614c51565b61182c565b6104846107d081565b600054600160a01b900460ff165b604051901515815260200161045f565b61048460195481565b60115461044b906001600160a01b031681565b610736611a4d565b60405161045f9190614d59565b610440610751366004614c51565b611aaf565b61048460095481565b610440611ad9565b610484610775366004614cea565b611aeb565b60105461044b906001600160a01b031681565b61044b73efd766ccb38eaf1dfd701853bfce31359239f30581565b6107b0611bb8565b60408051968752602087019590955293850192909252606084015260808301526001600160a01b031660a082015260c00161045f565b6104406107f4366004614c6c565b611c4c565b610440610807366004614c51565b611c91565b610440611cbb565b610484610822366004614c51565b611ccb565b6000546001600160a01b031661044b565b61044b610846366004614c6c565b611d24565b610484600a5481565b61048460045481565b61044061086b366004614c51565b611d4e565b61048460015481565b610440610887366004614d6c565b611d78565b61044061089a366004614c6c565b6122e3565b61048460025481565b6104406108b6366004614c6c565b6123c4565b61048460055481565b6105ad6108d2366004614c51565b612409565b6104406108e5366004614c51565b61253c565b6107026108f8366004614c51565b60166020526000908152604090205460ff1681565b61044b73165c3410fc91ef562c50559f7d2289febed552d981565b610440610936366004614c6c565b6125f1565b61048460175481565b61048460085481565b61097061095b366004614c51565b60126020526000908152604090205460ff1681565b60405161045f9190614de1565b61044061098b366004614dfe565b61261e565b61044061099e366004614c6c565b6127f8565b6109706109b1366004614c51565b6001600160a01b031660009081526012602052604090205460ff1690565b6104406109dd366004614cea565b612805565b61048461271081565b610a266109f9366004614c51565b60136020526000908152604090208054600182015460028301546003909301549192909160ff9091169084565b60405161045f9493929190938452602084019290925260ff166040830152606082015260800190565b610440610a5d366004614c6c565b612cc5565b610ad9610a70366004614c51565b6001600160a01b03166000818152601360209081526040808320815160808101835281548082526001830154828601819052600284015460ff90811684870181905260039095015460609094018490529787526012909552929094205491959294909392911690565b60405161045f959493929190614e35565b610440610af8366004614e6a565b612cf2565b61048460035481565b610440610b14366004614c51565b612f3b565b600e5461044b906001600160a01b031681565b600f546001600160a01b0316331480610b4f57506000546001600160a01b031633145b610b745760405162461bcd60e51b8152600401610b6b90614ef3565b60405180910390fd5b6001600160a01b038516610b9a5760405162461bcd60e51b8152600401610b6b90614f11565b6001600160a01b03851660009081526016602052604090205460ff1615610bec5760405162461bcd60e51b815260206004820152600660248201526545584953545360d01b6044820152606401610b6b565b82610c215760405162461bcd60e51b8152602060048201526005602482015264454d50545960d81b6044820152606401610b6b565b80610c565760405162461bcd60e51b8152602060048201526005602482015264454d50545960d81b6044820152606401610b6b565b6000610c7586610c668787612f76565b610c708686612f76565b612fbb565b6001600160a01b0387811660008181526012602052604090819020805460ff1916600217905551929350908316917fa16264a8821ab9e25302bd31fb70ed62e2eb79de34d3a95a24fd0c5f51e9a7fe90610cd6908990899089908990614f58565b60405180910390a3505050505050565b610cee61320b565b6001600160a01b038116610d145760405162461bcd60e51b8152600401610b6b90614f11565b600c5460405163095ea7b360e01b81526001600160a01b039091169073efd766ccb38eaf1dfd701853bfce31359239f3059063095ea7b390610d5d908490600090600401614f8a565b6020604051808303816000875af1158015610d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da09190614fa3565b50600c80546001600160a01b0319166001600160a01b03841617905560405163095ea7b360e01b815273efd766ccb38eaf1dfd701853bfce31359239f3059063095ea7b390610df790859060001990600401614f8a565b6020604051808303816000875af1158015610e16573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3a9190614fa3565b50816001600160a01b0316816001600160a01b03167fc34f53cf3ec48c1da8c663567c8fe0c93a1e5cd9d378d55bde71d2945dc4963f60405160405180910390a35050565b610e8761320b565b60008111610ea75760405162461bcd60e51b8152600401610b6b90614fc5565b600155565b610eb461320b565b6127108183610ec38688614ff8565b610ecd9190614ff8565b610ed79190614ff8565b14610f0a5760405162461bcd60e51b815260206004820152600360248201526253554d60e81b6044820152606401610b6b565b600893909355600991909155600a55600b55565b610f2661320b565b610f2f81613238565b50565b610f3a61320b565b6001600160a01b03821660009081526016602052604090205460ff16610f725760405162461bcd60e51b8152600401610b6b9061500b565b6001600160a01b038116610f985760405162461bcd60e51b8152600401610b6b90614f11565b6001600160a01b0382811660009081526014602052604090819020549051630b768f0160e31b81528383166004820152911690635bb4780890602401600060405180830381600087803b158015610fee57600080fd5b505af1158015611002573d6000803e3d6000fd5b50506040516001600160a01b038085169350851691507f9c5fae0dd28998cddac9315770f7bb4fa9460feae28ee147005b87874d4fd88690600090a35050565b61104a61320b565b6001600160a01b0381166110705760405162461bcd60e51b8152600401610b6b90614f11565b600f546040516001600160a01b038084169216907f9275b597b6188dcd901ecae14175fd5b02a5c9dee8bcce5af021f420af6cd1a390600090a3600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6110d4613414565b600081116110f45760405162461bcd60e51b8152600401610b6b90614f11565b61111473efd766ccb38eaf1dfd701853bfce31359239f305333084613430565b6001600160a01b0382161580159061114457506001600160a01b03821660009081526016602052604090205460ff165b1561117f576001600160a01b03821660009081526014602052604081206008018054839290611174908490614ff8565b909155506111889050565b61118881613238565b816001600160a01b03167f72558651798c6a1b42d887d034a62c447a357a5d4234216a059cd66f034d4fab826040516111c391815260200190565b60405180910390a26111e26001600080516020615dc683398151915255565b5050565b6111ee61320b565b73efd766ccb38eaf1dfd701853bfce31359239f304196001600160a01b038316016112445760405162461bcd60e51b8152600401610b6b906020808252600490820152634544414960e01b604082015260600190565b600c546001600160a01b039081169083160361128b5760405162461bcd60e51b8152600401610b6b906020808252600490820152634d45464960e01b604082015260600190565b6111e26112a06000546001600160a01b031690565b6001600160a01b0384169083613466565b6112b961320b565b6001600160a01b03821660009081526016602052604090205460ff166112f15760405162461bcd60e51b8152600401610b6b9061500b565b600081116113115760405162461bcd60e51b8152600401610b6b90614fc5565b6001600160a01b03909116600090815260146020526040902060050155565b61133861320b565b61134061349b565b565b61134a61320b565b6010546040516001600160a01b038084169216907f38290b2bc265aac8c7719f09494749cfc6104c24dc86df60a483d0cb36eb0c8d90600090a3601080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216600090815260166020526040812054819081908190819060ff166113e25750600093508392508291508190508061151a565b6001600160a01b0387166000908152601460205260409020600781015460ff168061141657506007810154610100900460ff165b1561143a5760008060008061142a856134f0565b955095509550955095505061151a565b6000670de0b6b3a7640000600154896114539190615028565b61145d919061503f565b90506000612710600554836114729190615028565b61147c919061503f565b90506000612710600654846114919190615028565b61149b919061503f565b90506000816114aa8486615061565b6114b49190615061565b905060006114c1866134f0565b90508015806114ce575081155b156114ed5760009a508a9950899850889750955061151a945050505050565b8061150083670de0b6b3a7640000615028565b61150a919061503f565b9a50939850919650945090925050505b9295509295909350565b61152c61320b565b6001600160a01b0382161580159061154c57506001600160a01b03811615155b6115685760405162461bcd60e51b8152600401610b6b90614f11565b6001600160a01b03821660009081526016602052604090205460ff16156115ba5760405162461bcd60e51b815260206004820152600660248201526545584953545360d01b6044820152606401610b6b565b604051806101600160405280826001600160a01b03168152602001600081526020016000815260200160025481526020016003548152602001600454815260200160008152602001600115158152602001600115158152602001600060ff168152602001600081525060146000846001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a81548160ff0219169083151502179055506101008201518160070160016101000a81548160ff0219169083151502179055506101208201518160070160026101000a81548160ff021916908360ff1602179055506101408201518160080155905050600160166000846001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600260126000846001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360028111156117a8576117a8614da9565b02179055506015805460018101825560009182527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4750180546001600160a01b0319166001600160a01b038581169182179092556040519184169290917fdd5cb7e44489730b80bd628e183cb468c757c508bfe2d6f60351914fc48263ba9190a35050565b336001600160a01b038216148061184d57506000546001600160a01b031633145b6118695760405162461bcd60e51b8152600401610b6b90614ef3565b60016001600160a01b03821660009081526012602052604090205460ff16600281111561189857611898614da9565b146118d35760405162461bcd60e51b815260206004820152600b60248201526a4e4f545f50454e44494e4760a81b6044820152606401610b6b565b6001600160a01b03811660009081526013602090815260409182902082516080810184528154808252600183015493820193909352600282015460ff16938101939093526003015460608301526119555760405162461bcd60e51b81526020600482015260066024820152654e4f5f52454760d01b6044820152606401610b6b565b600061196a8383600001518460200151612fbb565b6040808401516001600160a01b038616600090815260146020908152838220600701805460ff909416620100000262ff00001990941693909317909255601290915220805491925060029160ff191660018302179055506001600160a01b0380841660008181526013602052604081208181556001810182905560028101805460ff19169055600301558351918316917fa16264a8821ab9e25302bd31fb70ed62e2eb79de34d3a95a24fd0c5f51e9a7fe90611a2590613528565b611a328660200151613528565b604051611a409291906150ba565b60405180910390a3505050565b60606015805480602002602001604051908101604052809291908181526020018280548015611aa557602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611a87575b5050505050905090565b611ab761320b565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b611ae161320b565b6113406000613614565b6001600160a01b03821660009081526016602052604081205460ff161580611b11575081155b15611b1e57506000611bb2565b6001600160a01b03831660009081526014602052604090206007810154610100900460ff1615611b52576000915050611bb2565b600781015460009060ff16611b6b578160080154611b71565b81600601545b90506000670de0b6b3a7640000611b87846134f0565b611b919087615028565b611b9b919061503f565b9050818111611baa5780611bac565b815b93505050505b92915050565b6000808080808080805b601554811015611c1f576014600060158381548110611be357611be36150e8565b60009182526020808320909101546001600160a01b03168352820192909252604001902060080154611c159083614ff8565b9150600101611bc2565b50601854601954601554601a54600c54949b939a50919850965094506001600160a01b0390911692509050565b611c5461320b565b6103e8811115611c8c5760405162461bcd60e51b815260206004820152600360248201526209a82b60eb1b6044820152606401610b6b565b600655565b611c9961320b565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b611cc361320b565b611340613664565b6001600160a01b03811660009081526016602052604081205460ff16611d035760405162461bcd60e51b8152600401610b6b9061500b565b6001600160a01b0382166000908152601460205260409020611bb2906134f0565b60158181548110611d3457600080fd5b6000918252602090912001546001600160a01b0316905081565b611d5661320b565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b611d80613414565b6010546001600160a01b0316331480611da357506000546001600160a01b031633145b611dd95760405162461bcd60e51b815260206004820152600760248201526620aaaa242fa9a960c91b6044820152606401610b6b565b611de16136a7565b6001600160a01b038316611e075760405162461bcd60e51b8152600401610b6b90614f11565b6001600160a01b038216611e2d5760405162461bcd60e51b8152600401610b6b90614f11565b80156122c75760026001600160a01b03831660009081526012602052604090205460ff166002811115611e6257611e62614da9565b036122c7576001600160a01b03821660009081526014602052604090206007810154611e9890859062010000900460ff166136d2565b611ea257506122c7565b6007810154610100900460ff1680611ebe5750600781015460ff165b15611ed557611ecf84848484613820565b506122c7565b6000670de0b6b3a764000060015484611eee9190615028565b611ef8919061503f565b905080600003611f095750506122c7565b8082600801541015611f2f578160080154600003611f285750506122c7565b5060088101545b600061271060055483611f429190615028565b611f4c919061503f565b9050600061271060065484611f619190615028565b611f6b919061503f565b9050600081611f7a8486615061565b611f849190615061565b905080600003611f985750505050506122c7565b83856008016000828254611fac9190615061565b90915550508215612079578260186000828254611fc99190614ff8565b9091555050600c54604051631f0242dd60e01b81526001600160a01b0390911690631f0242dd90612000908a908790600401614f8a565b6020604051808303816000875af192505050801561203b575060408051601f3d908101601f19168201909252612038918101906150fe565b60015b6120775782601860008282546120519190615061565b925050819055508285600801600082825461206c9190614ff8565b909155506120799050565b505b60008211801561209357506007546001600160a01b031615155b1561215e5781601960008282546120aa9190614ff8565b9091555050600c54600754604051631f0242dd60e01b81526001600160a01b0392831692631f0242dd926120e5929116908690600401614f8a565b6020604051808303816000875af1925050508015612120575060408051601f3d908101601f1916820190925261211d918101906150fe565b60015b61215c5781601960008282546121369190615061565b92505081905550818560080160008282546121519190614ff8565b9091555061215e9050565b505b6000612169866134f0565b61217b83670de0b6b3a7640000615028565b612185919061503f565b90508060000361219a575050505050506122c7565b808660010160008282546121ae9190614ff8565b92505081905550848660020160008282546121c99190614ff8565b9250508190555080601760008282546121e29190614ff8565b909155505085546040516340c10f1960e01b81526001600160a01b03909116906340c10f1990612218908c908590600401614f8a565b600060405180830381600087803b15801561223257600080fd5b505af1158015612246573d6000803e3d6000fd5b50505050876001600160a01b0316896001600160a01b03167f0665098902a4275cd138ac0b72d830c576b5e85a9d1cc59594eb1af6122e8683838861228a8b6134f0565b6040805193845260208401929092529082015260600160405180910390a385600501548660020154106122c0576122c088613b87565b5050505050505b6122de6001600080516020615dc683398151915255565b505050565b6122eb61320b565b6040516370a0823160e01b815230600482015273efd766ccb38eaf1dfd701853bfce31359239f305906370a0823190602401602060405180830381865afa15801561233a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061235e91906150fe565b8111156123935760405162461bcd60e51b815260206004820152600360248201526210905360ea1b6044820152606401610b6b565b610f2f6123a86000546001600160a01b031690565b73efd766ccb38eaf1dfd701853bfce31359239f3059083613466565b6123cc61320b565b6107d08111156124045760405162461bcd60e51b815260206004820152600360248201526209a82b60eb1b6044820152606401610b6b565b600555565b6001600160a01b038116600090815260166020526040812054819081908190819081908190819081908190819060ff166124555760405162461bcd60e51b8152600401610b6b9061500b565b6001600160a01b038c166000908152601460205260408120600581015490919061248057600061249f565b60058201546002830154612495906064615028565b61249f919061503f565b905060648111156124ae575060645b8154600183015460028401546001600160a01b03909216916124cf856134f0565b85600501548587600601548860070160009054906101000a900460ff168960070160019054906101000a900460ff168a60070160029054906101000a900460ff168b600801549c509c509c509c509c509c509c509c509c509c509c50505091939597999b90929496989a50565b61254461320b565b6001600160a01b03811660009081526016602052604090205460ff1661257c5760405162461bcd60e51b8152600401610b6b9061500b565b6001600160a01b0381166000908152601460205260409020600781015460ff161580156125b357506007810154610100900460ff16155b6125e85760405162461bcd60e51b8152600401610b6b9060208082526004908201526311d4905160e21b604082015260600190565b6111e282613b87565b6125f961320b565b600081116126195760405162461bcd60e51b8152600401610b6b90614fc5565b600455565b336001600160a01b038316148061263f57506000546001600160a01b031633145b61265b5760405162461bcd60e51b8152600401610b6b90614ef3565b60038160ff16111561269a5760405162461bcd60e51b81526020600482015260086024820152672120a22faa24a2a960c11b6044820152606401610b6b565b60016001600160a01b03831660009081526012602052604090205460ff1660028111156126c9576126c9614da9565b036126fb576001600160a01b0382166000908152601360205260409020600201805460ff191660ff83161790556127b3565b60026001600160a01b03831660009081526012602052604090205460ff16600281111561272a5761272a614da9565b0361279b576001600160a01b03821660009081526016602052604090205460ff166127675760405162461bcd60e51b8152600401610b6b9061500b565b6001600160a01b0382166000908152601460205260409020600701805462ff000019166201000060ff8416021790556127b3565b60405162461bcd60e51b8152600401610b6b9061500b565b60405160ff821681526001600160a01b038316907f1d214423bbad73b04fa137aa046aac07447064bc32b84b043c45e5ca3839200b9060200160405180910390a25050565b61280061320b565b600355565b61280d613414565b6001600160a01b03821660009081526016602052604090205460ff166128455760405162461bcd60e51b8152600401610b6b9061500b565b600081116128655760405162461bcd60e51b8152600401610b6b90614f11565b6001600160a01b03821660009081526014602052604090206007810154610100900460ff16156128c15760405162461bcd60e51b815260206004820152600760248201526614d41150d2505360ca1b6044820152606401610b6b565b600781015460009060ff166128da5781600801546128e0565b81600601545b90506000811161291c5760405162461bcd60e51b81526020600482015260076024820152664e4f5f4544414960c81b6044820152606401610b6b565b81546040516370a0823160e01b815233600482015284916001600160a01b0316906370a0823190602401602060405180830381865afa158015612963573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298791906150fe565b10156129bb5760405162461bcd60e51b815260206004820152600360248201526210905360ea1b6044820152606401610b6b565b60006129c6836134f0565b90506000670de0b6b3a76400006129dd8387615028565b6129e7919061503f565b9050828111156129f45750815b60008111612a2c5760405162461bcd60e51b815260206004820152600560248201526414d350531360da1b6044820152606401610b6b565b600784015460ff1615612a585780846006016000828254612a4d9190615061565b90915550612a969050565b80846008016000828254612a6c9190615061565b909155505060018401548511612a965784846001016000828254612a909190615061565b90915550505b8354604051632770a7eb60e21b81526001600160a01b0390911690639dc29fac90612ac79033908990600401614f8a565b600060405180830381600087803b158015612ae157600080fd5b505af1158015612af5573d6000803e3d6000fd5b5050600c54604051631f0242dd60e01b81526001600160a01b039091169250631f0242dd9150612b2b9033908590600401614f8a565b6020604051808303816000875af1925050508015612b66575060408051601f3d908101601f19168201909252612b63918101906150fe565b60015b612c6357600784015460ff1615612b965780846006016000828254612b8b9190614ff8565b90915550612bcb9050565b80846008016000828254612baa9190614ff8565b9250508190555084846001016000828254612bc59190614ff8565b90915550505b83546040516340c10f1960e01b81526001600160a01b03909116906340c10f1990612bfc9033908990600401614f8a565b600060405180830381600087803b158015612c1657600080fd5b505af1158015612c2a573d6000803e3d6000fd5b505060405162461bcd60e51b815260206004820152600860248201526711151617d190525360c21b60448201526064019150610b6b9050565b5060408051868152602081018390526001600160a01b0388169133917f1314c4a32e30cc5829197726f9ad61b2dd0940df4d469f03425361089b7ee187910160405180910390a3505050506111e26001600080516020615dc683398151915255565b612ccd61320b565b60008111612ced5760405162461bcd60e51b8152600401610b6b90614fc5565b600255565b8315801590612d02575060208411155b612d395760405162461bcd60e51b81526020600482015260086024820152674241445f4e414d4560c01b6044820152606401610b6b565b8115801590612d49575060088211155b612d7f5760405162461bcd60e51b81526020600482015260076024820152664241445f53594d60c81b6044820152606401610b6b565b60038160ff161115612dbe5760405162461bcd60e51b81526020600482015260086024820152672120a22faa24a2a960c11b6044820152606401610b6b565b60023360009081526012602052604090205460ff166002811115612de457612de4614da9565b03612e1a5760405162461bcd60e51b815260206004820152600660248201526541435449564560d01b6044820152606401610b6b565b3360009081526016602052604090205460ff1615612e665760405162461bcd60e51b815260206004820152600960248201526810d3d391925493515160ba1b6044820152606401610b6b565b6040518060800160405280612e7b8787612f76565b8152602001612e8a8585612f76565b815260ff83811660208084019190915242604093840152336000818152601383528481208651815586840151600180830191909155878701516002830180549190971660ff199182161790965560609097015160039091015560129092529083902080549092169093179055517f1d0fbaabbeb400df633d977c1cbae36a6dae2560b13865232d42a232a5fd950690612f2c9088908890889088908890615117565b60405180910390a25050505050565b612f4361320b565b6001600160a01b038116612f6d57604051631e4fbdf760e01b815260006004820152602401610b6b565b610f2f81613614565b60008083838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050505060200151949350505050565b60008083833087604051612fce90614b59565b93845260208401929092526001600160a01b039081166040840152166060820152608001604051809103906000f08015801561300e573d6000803e3d6000fd5b509050809150604051806101600160405280836001600160a01b03168152602001600081526020016000815260200160025481526020016003548152602001600454815260200160008152602001600015158152602001600015158152602001600060ff168152602001600081525060146000876001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a81548160ff0219169083151502179055506101008201518160070160016101000a81548160ff0219169083151502179055506101208201518160070160026101000a81548160ff021916908360ff1602179055506101408201518160080155905050600160166000876001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055506015859080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b03160217905550509392505050565b6000546001600160a01b031633146113405760405163118cdaa760e01b8152336004820152602401610b6b565b6000805b60155481101561331c576000601460006015848154811061325f5761325f6150e8565b60009182526020808320909101546001600160a01b031683528201929092526040019020600781015490915060ff161580156132a557506007810154610100900460ff16155b80156133005750600260126000601585815481106132c5576132c56150e8565b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff1660028111156132fe576132fe614da9565b145b15613313578261330f81615154565b9350505b5060010161323c565b5080600003613329575050565b6000613335828461503f565b90508060000361334457505050565b60005b60155481101561340e57600060158281548110613366576133666150e8565b60009182526020808320909101546001600160a01b03168083526014909152604090912060078101549192509060ff161580156133ad57506007810154610100900460ff16155b80156133e5575060026001600160a01b03831660009081526012602052604090205460ff1660028111156133e3576133e3614da9565b145b1561340457838160080160008282546133fe9190614ff8565b90915550505b5050600101613347565b50505050565b61341c613e8e565b6002600080516020615dc683398151915255565b61343e848484846001613ebe565b61340e57604051635274afe760e01b81526001600160a01b0385166004820152602401610b6b565b6134738383836001613f30565b6122de57604051635274afe760e01b81526001600160a01b0384166004820152602401610b6b565b6134a3613f96565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60008160040154670de0b6b3a7640000836001015461350f919061503f565b6135199190615028565b8260030154611bb29190614ff8565b606060005b60208110801561355b575082816020811061354a5761354a6150e8565b1a60f81b6001600160f81b03191615155b15613572578061356a81615154565b91505061352d565b60008167ffffffffffffffff81111561358d5761358d61516d565b6040519080825280601f01601f1916602001820160405280156135b7576020820181803683370190505b50905060005b8281101561360c578481602081106135d7576135d76150e8565b1a60f81b8282815181106135ed576135ed6150e8565b60200101906001600160f81b031916908160001a9053506001016135bd565b509392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61366c6136a7565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586134d33390565b600054600160a01b900460ff16156113405760405163d93c066560e01b815260040160405180910390fd5b600d546000906001600160a01b03166136ed57506000611bb2565b600d54604051633ed403d360e11b81526001600160a01b03858116600483015290911690637da807a690602401602060405180830381865afa925050508015613753575060408051601f3d908101601f1916820190925261375091810190614fa3565b60015b61375f57506000611bb2565b8061376e576000915050611bb2565b8260ff16600003613783576001915050611bb2565b600d54604051630edf617560e41b81526001600160a01b0386811660048301529091169063edf6175090602401602060405180830381865afa9250505080156137e9575060408051601f3d908101601f191682019092526137e691810190615183565b60015b6137f7576000915050611bb2565b8060ff1660ff0361380d57600092505050611bb2565b8360ff168160ff16101592505050611bb2565b6000670de0b6b3a7640000600154846138399190615028565b613843919061503f565b905080600003613853575061340e565b6000612710600554836138669190615028565b613870919061503f565b90506000612710600654846138859190615028565b61388f919061503f565b905060008161389e8486615061565b6138a89190615061565b90506000856008015486600601546138c09190614ff8565b9050806000036138d457505050505061340e565b80851115613954576000856138f183670de0b6b3a7640000615028565b6138fb919061503f565b9050670de0b6b3a76400006139108287615028565b61391a919061503f565b9450670de0b6b3a764000061392f8286615028565b613939919061503f565b9350836139468684615061565b6139509190615061565b9250505b6000826139618587614ff8565b61396b9190614ff8565b905086600601548111613997578087600601600082825461398c9190615061565b909155506139e59050565b600687018054600091829055906139ae8284615061565b9050886008015481116139da57808960080160008282546139cf9190615061565b909155506139e29050565b600060088a01555b50505b8415613a925784601860008282546139fd9190614ff8565b9091555050600c54604051631f0242dd60e01b81526001600160a01b0390911690631f0242dd90613a34908c908990600401614f8a565b6020604051808303816000875af1925050508015613a6f575060408051601f3d908101601f19168201909252613a6c918101906150fe565b60015b613a90578460186000828254613a859190615061565b90915550613a929050565b505b600084118015613aac57506007546001600160a01b031615155b15613b5c578360196000828254613ac39190614ff8565b9091555050600c54600754604051631f0242dd60e01b81526001600160a01b0392831692631f0242dd92613afe929116908890600401614f8a565b6020604051808303816000875af1925050508015613b39575060408051601f3d908101601f19168201909252613b36918101906150fe565b60015b613b5a578360196000828254613b4f9190615061565b90915550613b5c9050565b505b8215613b7b578654613b7b908b908b906001600160a01b031686613fc0565b50505050505050505050565b6001600160a01b0381166000908152601460205260409020600781015460ff1680613bbb57506007810154610100900460ff165b15613bc4575050565b60078101805460ff19166001179055601a8054906000613be383615154565b909155505060058101546008820154811115613c00575060088101545b600061271060085483613c139190615028565b613c1d919061503f565b9050600061271060095484613c329190615028565b613c3c919061503f565b90506000612710600a5485613c519190615028565b613c5b919061503f565b905060008183613c6b8688615061565b613c759190615061565b613c7f9190615061565b905084866008016000828254613c959190615061565b9091555050600686018190558215613d1b57600c54604051631f0242dd60e01b81526001600160a01b0390911690631f0242dd90613cd9908a908790600401614f8a565b6020604051808303816000875af1925050508015613d14575060408051601f3d908101601f19168201909252613d11918101906150fe565b60015b15613d1b57505b600082118015613d3557506011546001600160a01b031615155b15613db257600c54601154604051631f0242dd60e01b81526001600160a01b0392831692631f0242dd92613d70929116908690600401614f8a565b6020604051808303816000875af1925050508015613dab575060408051601f3d908101601f19168201909252613da8918101906150fe565b60015b15613db257505b8315613e26576000613dc5888689614309565b905080613e245784876006016000828254613de09190614ff8565b90915550506040518581526001600160a01b038916907fce6e678d07d32cd6b34995d2ea2930250db287adc3d29da5f218421086a411c19060200160405180910390a25b505b85546006870154604080518781526020810187905290810185905260608101919091526001600160a01b03918216918916907fdd5c4e159f64c58e7d4e388bf226716566369d92620db4a83622d76783c3d8679060800160405180910390a350505050505050565b600080516020615dc68339815191525460020361134057604051633ee5aeb560e01b815260040160405180910390fd5b6040516323b872dd60e01b60008181526001600160a01b038781166004528616602452604485905291602083606481808c5af192506001600051148316613f1e578383151615613f11573d6000823e3d81fd5b6000883b113d1516831692505b60405250600060605295945050505050565b60405163a9059cbb60e01b60008181526001600160a01b038616600452602485905291602083604481808b5af192506001600051148316613f8a578383151615613f7d573d6000823e3d81fd5b6000873b113d1516831692505b60405250949350505050565b600054600160a01b900460ff1661134057604051638dfc202b60e01b815260040160405180910390fd5b600c546040516370a0823160e01b81523060048201526001600160a01b039091169060009082906370a0823190602401602060405180830381865afa15801561400d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061403191906150fe565b600c54604051631f0242dd60e01b81529192506001600160a01b031690631f0242dd906140649030908790600401614f8a565b6020604051808303816000875af192505050801561409f575060408051601f3d908101601f1916820190925261409c918101906150fe565b60015b1561430157506040516370a0823160e01b815230600482015260009082906001600160a01b038516906370a0823190602401602060405180830381865afa1580156140ee573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061411291906150fe565b61411c9190615061565b90508060000361412e5750505061340e565b6040805160028082526060820183526000926020830190803683370190505090508381600081518110614163576141636150e8565b60200260200101906001600160a01b031690816001600160a01b0316815250508581600181518110614197576141976150e8565b6001600160a01b039283166020918202929092010152600e546141bf91868116911684614979565b600e546001600160a01b0316635c11d795836000848c6141e14261012c614ff8565b6040518663ffffffff1660e01b81526004016142019594939291906151a0565b600060405180830381600087803b15801561421b57600080fd5b505af192505050801561422c575060015b61424f57600e5461424a906001600160a01b03868116911684614a03565b6142fe565b6040516370a0823160e01b81526001600160a01b0389811660048301819052818a169290917f90483e46590a08e6c7c631b26e8a0216f9fb3e8f57b88f260add123e2f942e9a9189918b16906370a0823190602401602060405180830381865afa1580156142c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142e591906150fe565b6040805192835260208301919091520160405180910390a35b50505b505050505050565b600c546040516370a0823160e01b81523060048201526000916001600160a01b031690829082906370a0823190602401602060405180830381865afa158015614356573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061437a91906150fe565b600c54604051631f0242dd60e01b81529192506001600160a01b031690631f0242dd906143ad9030908990600401614f8a565b6020604051808303816000875af19250505080156143e8575060408051601f3d908101601f191682019092526143e5918101906150fe565b60015b6143f757600092505050614972565b506040516370a0823160e01b815230600482015260009082906001600160a01b038516906370a0823190602401602060405180830381865afa158015614441573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061446591906150fe565b61446f9190615061565b9050806000036144855760009350505050614972565b6000614490866134f0565b9050806000036144a7576000945050505050614972565b6000816144bc84670de0b6b3a7640000615028565b6144c6919061503f565b9050806000036144de57600095505050505050614972565b86546040516340c10f1960e01b81526001600160a01b03909116906340c10f199061450f9030908590600401614f8a565b600060405180830381600087803b15801561452957600080fd5b505af115801561453d573d6000803e3d6000fd5b50505050808760010160008282546145559190614ff8565b9091555050600e54614574906001600160a01b03878116911685614979565b8654600e5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b3926145a9929116908590600401614f8a565b6020604051808303816000875af11580156145c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145ec9190614fa3565b50600e5487546001600160a01b039182169163e8e33700911687848760008061dead61461a4261012c614ff8565b60405160e08a901b6001600160e01b03191681526001600160a01b039889166004820152968816602488015260448701959095526064860193909352608485019190915260a484015290921660c482015260e4810191909152610104016060604051808303816000875af19250505080156146b2575060408051601f3d908101601f191682019092526146af918101906151dc565b60015b6147d557600e546146d0906001600160a01b03878116911685614a03565b8654600e5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b39261470692911690600090600401614f8a565b6020604051808303816000875af1158015614725573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147499190614fa3565b508654604051632770a7eb60e21b81526001600160a01b0390911690639dc29fac9061477b9030908590600401614f8a565b600060405180830381600087803b15801561479557600080fd5b505af11580156147a9573d6000803e3d6000fd5b50505050808760010160008282546147c19190615061565b909155506000965061497295505050505050565b60408051838152602081018590529081018290526001600160a01b038d16907f73c8c83c3b707cdb3f1941a481faff699a60d89a58c0152d4516b6be903ff0c09060600160405180910390a283831015614932578954600e5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b39261485f92911690600090600401614f8a565b6020604051808303816000875af115801561487e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906148a29190614fa3565b5089546001600160a01b0316639dc29fac306148be8688615061565b6040518363ffffffff1660e01b81526004016148db929190614f8a565b600060405180830381600087803b1580156148f557600080fd5b505af1158015614909573d6000803e3d6000fd5b5050505082846149199190615061565b8a600101600082825461492c9190615061565b90915550505b8582101561496557600e54614965906001600160a01b03166149548489615061565b6001600160a01b038b169190614a03565b6001985050505050505050505b9392505050565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa1580156149c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906149ed91906150fe565b905061340e84846149fe8585614ff8565b614abc565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e90604401602060405180830381865afa158015614a53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614a7791906150fe565b905081811015614ab35760405163e570110f60e01b81526001600160a01b03841660048201526024810182905260448101839052606401610b6b565b61340e84848484035b614ac98383836000614b0c565b6122de57614adb838360006001614b0c565b614b0357604051635274afe760e01b81526001600160a01b0384166004820152602401610b6b565b61347383838360015b60405163095ea7b360e01b60008181526001600160a01b038616600452602485905291602083604481808b5af192506001600051148316613f8a578383151615613f7d573d6000823e3d81fd5b610bbb8061520b83390190565b80356001600160a01b0381168114614b7d57600080fd5b919050565b60008083601f840112614b9457600080fd5b50813567ffffffffffffffff811115614bac57600080fd5b602083019150836020828501011115614bc457600080fd5b9250929050565b600080600080600060608688031215614be357600080fd5b614bec86614b66565b9450602086013567ffffffffffffffff811115614c0857600080fd5b614c1488828901614b82565b909550935050604086013567ffffffffffffffff811115614c3457600080fd5b614c4088828901614b82565b969995985093965092949392505050565b600060208284031215614c6357600080fd5b61497282614b66565b600060208284031215614c7e57600080fd5b5035919050565b60008060008060808587031215614c9b57600080fd5b5050823594602084013594506040840135936060013592509050565b60008060408385031215614cca57600080fd5b614cd383614b66565b9150614ce160208401614b66565b90509250929050565b60008060408385031215614cfd57600080fd5b614d0683614b66565b946020939093013593505050565b600081518084526020840193506020830160005b82811015614d4f5781516001600160a01b0316865260209586019590910190600101614d28565b5093949350505050565b6020815260006149726020830184614d14565b600080600060608486031215614d8157600080fd5b614d8a84614b66565b9250614d9860208501614b66565b929592945050506040919091013590565b634e487b7160e01b600052602160045260246000fd5b60038110614ddd57634e487b7160e01b600052602160045260246000fd5b9052565b60208101611bb28284614dbf565b60ff81168114610f2f57600080fd5b60008060408385031215614e1157600080fd5b614e1a83614b66565b91506020830135614e2a81614def565b809150509250929050565b8581526020810185905260ff841660408201526060810183905260a08101614e606080830184614dbf565b9695505050505050565b600080600080600060608688031215614e8257600080fd5b853567ffffffffffffffff811115614e9957600080fd5b614ea588828901614b82565b909650945050602086013567ffffffffffffffff811115614ec557600080fd5b614ed188828901614b82565b9094509250506040860135614ee581614def565b809150509295509295909350565b602080825260049082015263082aaa8960e31b604082015260600190565b6020808252600490820152635a45524f60e01b604082015260600190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b604081526000614f6c604083018688614f2f565b8281036020840152614f7f818587614f2f565b979650505050505050565b6001600160a01b03929092168252602082015260400190565b600060208284031215614fb557600080fd5b8151801515811461497257600080fd5b60208082526003908201526210905160ea1b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b80820180821115611bb257611bb2614fe2565b602080825260039082015262554e4b60e81b604082015260600190565b8082028115828204841417611bb257611bb2614fe2565b60008261505c57634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115611bb257611bb2614fe2565b6000815180845260005b8181101561509a5760208185018101518683018201520161507e565b506000602082860101526020601f19601f83011685010191505092915050565b6040815260006150cd6040830185615074565b82810360208401526150df8185615074565b95945050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561511057600080fd5b5051919050565b60608152600061512b606083018789614f2f565b828103602084015261513e818688614f2f565b91505060ff831660408301529695505050505050565b60006001820161516657615166614fe2565b5060010190565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561519557600080fd5b815161497281614def565b85815284602082015260a0604082015260006151bf60a0830186614d14565b6001600160a01b0394909416606083015250608001529392505050565b6000806000606084860312156151f157600080fd5b505081516020830151604090930151909492935091905056fe608060405234801561001057600080fd5b50604051610bbb380380610bbb83398101604081905261002f91610116565b6001600160a01b0382166100795760405162461bcd60e51b815260206004820152600c60248201526b5a65726f20666163746f727960a01b60448201526064015b60405180910390fd5b6001600160a01b0381166100bd5760405162461bcd60e51b815260206004820152600b60248201526a16995c9bc8185c9d1a5cdd60aa1b6044820152606401610070565b600093909355600191909155600580546001600160a01b039283166001600160a01b0319918216179091556006805492909316911617905561015d565b80516001600160a01b038116811461011157600080fd5b919050565b6000806000806080858703121561012c57600080fd5b845160208601519094509250610144604086016100fa565b9150610152606086016100fa565b905092959194509250565b610a4f8061016c6000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80635bb478081161008c5780639dc29fac116100665780639dc29fac146101e4578063a9059cbb146101f7578063c45a01551461020a578063dd62ed3e1461021d57600080fd5b80635bb47808146101a957806370a08231146101bc57806395d89b41146101dc57600080fd5b806323b872dd116100c857806323b872dd14610147578063313ce5671461015a57806340c10f191461016957806343bc16121461017e57600080fd5b806306fdde03146100ef578063095ea7b31461010d57806318160ddd14610130575b600080fd5b6100f7610248565b604051610104919061084c565b60405180910390f35b61012061011b3660046108b6565b61025a565b6040519015158152602001610104565b61013960025481565b604051908152602001610104565b6101206101553660046108e0565b6102c7565b60405160128152602001610104565b61017c6101773660046108b6565b610339565b005b600654610191906001600160a01b031681565b6040516001600160a01b039091168152602001610104565b61017c6101b736600461091d565b6103f6565b6101396101ca36600461091d565b60036020526000908152604090205481565b6100f76104bb565b61017c6101f23660046108b6565b6104c8565b6101206102053660046108b6565b6105de565b600554610191906001600160a01b031681565b61013961022b36600461093f565b600460209081526000928352604080842090915290825290205481565b60606102556000546105f4565b905090565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906102b59086815260200190565b60405180910390a35060015b92915050565b6001600160a01b03831660009081526004602090815260408083203384529091528120546000198114610323576102fe8382610988565b6001600160a01b03861660009081526004602090815260408083203384529091529020555b61032e8585856106e0565b506001949350505050565b6005546001600160a01b0316331461036c5760405162461bcd60e51b81526004016103639061099b565b60405180910390fd5b806002600082825461037e91906109c1565b90915550506001600160a01b038216600090815260036020526040812080548392906103ab9084906109c1565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020015b60405180910390a35050565b6005546001600160a01b031633146104205760405162461bcd60e51b81526004016103639061099b565b6001600160a01b03811661045f5760405162461bcd60e51b8152600401610363906020808252600490820152635a65726f60e01b604082015260600190565b6005546040516001600160a01b038084169216907f333c7678baf16017cf31e1d2f90143a62aab01a67a0807f6836a4304ceabb55590600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b60606102556001546105f4565b6005546001600160a01b031633146104f25760405162461bcd60e51b81526004016103639061099b565b6001600160a01b03821660009081526003602052604090205481111561055a5760405162461bcd60e51b815260206004820152601b60248201527f45524332303a206275726e20657863656564732062616c616e636500000000006044820152606401610363565b6001600160a01b03821660009081526003602052604081208054839290610582908490610988565b92505081905550806002600082825461059b9190610988565b90915550506040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016103ea565b60006105eb3384846106e0565b50600192915050565b606060005b6020811080156106275750828160208110610616576106166109d4565b1a60f81b6001600160f81b03191615155b1561063e5780610636816109ea565b9150506105f9565b60008167ffffffffffffffff81111561065957610659610a03565b6040519080825280601f01601f191660200182016040528015610683576020820181803683370190505b50905060005b828110156106d8578481602081106106a3576106a36109d4565b1a60f81b8282815181106106b9576106b96109d4565b60200101906001600160f81b031916908160001a905350600101610689565b509392505050565b6001600160a01b0382166107365760405162461bcd60e51b815260206004820152601f60248201527f45524332303a207472616e7366657220746f207a65726f2061646472657373006044820152606401610363565b6001600160a01b03831660009081526003602052604090205481111561079e5760405162461bcd60e51b815260206004820152601b60248201527f45524332303a20696e73756666696369656e742062616c616e636500000000006044820152606401610363565b6001600160a01b038316600090815260036020526040812080548392906107c6908490610988565b90915550506001600160a01b038216600090815260036020526040812080548392906107f39084906109c1565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161083f91815260200190565b60405180910390a3505050565b602081526000825180602084015260005b8181101561087a576020818601810151604086840101520161085d565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146108b157600080fd5b919050565b600080604083850312156108c957600080fd5b6108d28361089a565b946020939093013593505050565b6000806000606084860312156108f557600080fd5b6108fe8461089a565b925061090c6020850161089a565b929592945050506040919091013590565b60006020828403121561092f57600080fd5b6109388261089a565b9392505050565b6000806040838503121561095257600080fd5b61095b8361089a565b91506109696020840161089a565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b818103818111156102c1576102c1610972565b6020808252600c908201526b4f6e6c7920666163746f727960a01b604082015260600190565b808201808211156102c1576102c1610972565b634e487b7160e01b600052603260045260246000fd5b6000600182016109fc576109fc610972565b5060010190565b634e487b7160e01b600052604160045260246000fdfea2646970667358221220003506a5af7c13b73e7fc2afe64fbb921b4c0433fa3970526e259e1323f2111064736f6c634300082200339b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a2646970667358221220b46359c6662e136edc1629011e5be0c6f3e1b6979d5fa33211ed2d8f325a2eb864736f6c63430008220033