ETH Price: $3,455.70 (+1.68%)

Contract

0xBb79fF3357da90a160Ea93217F4600F6DEC387fB
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Take Fee From211839032024-11-14 5:39:4740 days ago1731562787IN
0xBb79fF33...6DEC387fB
0 ETH0.0029943933.67929043
Take Fee From210514612024-10-26 18:02:5959 days ago1729965779IN
0xBb79fF33...6DEC387fB
0 ETH0.000675847.60150874
Take Fee From209188352024-10-08 5:41:5977 days ago1728366119IN
0xBb79fF33...6DEC387fB
0 ETH0.0012630611.91471584
Trigger Refund209078262024-10-06 16:52:4779 days ago1728233567IN
0xBb79fF33...6DEC387fB
0 ETH0.0017686722.57626931
Trigger Refund209078122024-10-06 16:49:5979 days ago1728233399IN
0xBb79fF33...6DEC387fB
0 ETH0.0016846821.50420246
Trigger Refund208980902024-10-05 8:18:3580 days ago1728116315IN
0xBb79fF33...6DEC387fB
0 ETH0.000382924.88781986
Take Fee From208891452024-10-04 2:24:1181 days ago1728008651IN
0xBb79fF33...6DEC387fB
0 ETH0.000661886.24366312
Take Fee From208891432024-10-04 2:23:4781 days ago1728008627IN
0xBb79fF33...6DEC387fB
0 ETH0.000686566.47650426
Take Fee From208891372024-10-04 2:22:3581 days ago1728008555IN
0xBb79fF33...6DEC387fB
0 ETH0.000643586.07168434
Trigger Refund208851972024-10-03 13:10:1182 days ago1727961011IN
0xBb79fF33...6DEC387fB
0 ETH0.000634568.09999134
Trigger Refund208755932024-10-02 5:02:4783 days ago1727845367IN
0xBb79fF33...6DEC387fB
0 ETH0.000552397.05106626
Trigger Refund208733052024-10-01 21:23:2383 days ago1727817803IN
0xBb79fF33...6DEC387fB
0 ETH0.0008617611
Trigger Refund208714422024-10-01 15:08:5984 days ago1727795339IN
0xBb79fF33...6DEC387fB
0 ETH0.004574958.39653375
Contribute208672462024-10-01 1:05:4784 days ago1727744747IN
0xBb79fF33...6DEC387fB
0.0099 ETH0.001145687.48022057
Claim208650622024-09-30 17:47:4785 days ago1727718467IN
0xBb79fF33...6DEC387fB
0 ETH0.0011345811
Claim208641852024-09-30 14:51:5985 days ago1727707919IN
0xBb79fF33...6DEC387fB
0 ETH0.0018251517.69523118
Claim208641732024-09-30 14:49:3585 days ago1727707775IN
0xBb79fF33...6DEC387fB
0 ETH0.0019842919.23811306
Claim208638972024-09-30 13:54:2385 days ago1727704463IN
0xBb79fF33...6DEC387fB
0 ETH0.0020785720.15218606
Claim208638882024-09-30 13:52:3585 days ago1727704355IN
0xBb79fF33...6DEC387fB
0 ETH0.0017638817.10118414
Claim208638762024-09-30 13:49:5985 days ago1727704199IN
0xBb79fF33...6DEC387fB
0 ETH0.0015304714.83826997
Claim208638722024-09-30 13:49:1185 days ago1727704151IN
0xBb79fF33...6DEC387fB
0 ETH0.000476115.29066491
Claim208638692024-09-30 13:48:3585 days ago1727704115IN
0xBb79fF33...6DEC387fB
0 ETH0.0004938915.86189386
Claim208638522024-09-30 13:45:1185 days ago1727703911IN
0xBb79fF33...6DEC387fB
0 ETH0.0011345811
Claim208638522024-09-30 13:45:1185 days ago1727703911IN
0xBb79fF33...6DEC387fB
0 ETH0.0012404912.02686327
Claim208624032024-09-30 8:54:3585 days ago1727686475IN
0xBb79fF33...6DEC387fB
0 ETH0.000965959.3650652
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
208672462024-10-01 1:05:4784 days ago1727744747
0xBb79fF33...6DEC387fB
0.0099 ETH
208611482024-09-30 4:42:5985 days ago1727671379
0xBb79fF33...6DEC387fB
0.1 ETH
208583042024-09-29 19:11:2386 days ago1727637083
0xBb79fF33...6DEC387fB
0.003 ETH
208574662024-09-29 16:23:2386 days ago1727627003
0xBb79fF33...6DEC387fB
0.1 ETH
208574602024-09-29 16:22:1186 days ago1727626931
0xBb79fF33...6DEC387fB
 Contract Creation0 ETH
208574552024-09-29 16:21:1186 days ago1727626871
0xBb79fF33...6DEC387fB
0.006 ETH
208533892024-09-29 2:44:1186 days ago1727577851
0xBb79fF33...6DEC387fB
0.1 ETH
208533882024-09-29 2:43:5986 days ago1727577839
0xBb79fF33...6DEC387fB
0.1 ETH
208533792024-09-29 2:42:1186 days ago1727577731
0xBb79fF33...6DEC387fB
0.1 ETH
208533772024-09-29 2:41:4786 days ago1727577707
0xBb79fF33...6DEC387fB
0.1 ETH
208533762024-09-29 2:41:3586 days ago1727577695
0xBb79fF33...6DEC387fB
0.1 ETH
208533742024-09-29 2:41:1186 days ago1727577671
0xBb79fF33...6DEC387fB
0.1 ETH
208523542024-09-28 23:15:5986 days ago1727565359
0xBb79fF33...6DEC387fB
0.01 ETH
208511862024-09-28 19:20:4787 days ago1727551247
0xBb79fF33...6DEC387fB
0.08 ETH
208511282024-09-28 19:09:1187 days ago1727550551
0xBb79fF33...6DEC387fB
0.01 ETH
208511132024-09-28 19:06:1187 days ago1727550371
0xBb79fF33...6DEC387fB
0.1 ETH
208510942024-09-28 19:02:2387 days ago1727550143
0xBb79fF33...6DEC387fB
0.1 ETH
208510872024-09-28 19:00:5987 days ago1727550059
0xBb79fF33...6DEC387fB
0.1 ETH
208510842024-09-28 19:00:2387 days ago1727550023
0xBb79fF33...6DEC387fB
0.1 ETH
208510812024-09-28 18:59:4787 days ago1727549987
0xBb79fF33...6DEC387fB
0.1 ETH
208510042024-09-28 18:43:5987 days ago1727549039
0xBb79fF33...6DEC387fB
0.1 ETH
208509982024-09-28 18:42:4787 days ago1727548967
0xBb79fF33...6DEC387fB
 Contract Creation0 ETH
208503002024-09-28 16:22:2387 days ago1727540543
0xBb79fF33...6DEC387fB
0.1 ETH
208502972024-09-28 16:21:4787 days ago1727540507
0xBb79fF33...6DEC387fB
0.1 ETH
208498232024-09-28 14:46:4787 days ago1727534807
0xBb79fF33...6DEC387fB
0.05 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VistaStoreFactory

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : VistaStoreFactory.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./SaleContract.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

interface ISaleContract {
    function contribute(address user) external payable;
    function claimTokens(address user) external;
    function launchSale(
        address _launchContract,
        uint8 buyLpFee,
        uint8 sellLpFee,
        uint8 buyProtocolFee,
        uint8 sellProtocolFee
    ) external;
    function processRefund(address user) external;
    function takeFee(address lockFactoryOwner) external;
}

contract VistaStoreFactory is ReentrancyGuard {
    address public owner;
   
    address public launchContractAddress = 0xCEDd366065A146a039B92Db35756ecD7688FCC77;
    uint256 public saleCounter;

    uint256 public deadlinePeriod = 3 days;
    uint256 public totalTokens = 100000000;
    uint256 public totalTokensForSale = 60000000;
    uint256 public defaultSaleGoal = 1 ether;
    uint256 public maxContribution = 0.1 ether;
    uint8 public creatorshare = 5;


    // Predefined fees
    uint8 public buyLpFee = 5;
    uint8 public sellLpFee = 5;
    uint8 public buyProtocolFee = 5;
    uint8 public sellProtocolFee = 5;

    struct Sale {
        address creator;
        address tokenAddress;
        address saleContract;
        string name;
        string symbol;
        uint256 totalRaised;
        uint256 saleGoal;
        bool launched;
        bool finalized;
        uint256 deadline;
    }

    struct SaleMetadata {
        string logoUrl;
        string websiteUrl;
        string twitterUrl;
        string telegramUrl;
    }

    mapping(uint256 => Sale) public sales;
    mapping(uint256 => mapping(address => uint256)) public contributions;
    mapping(address => uint256[]) public contributedSales;
    mapping(uint256 => mapping(address => bool)) public hasClaimed;
    mapping(uint256 => mapping(address => bool)) public hasRefunded;
    mapping(uint256 => SaleMetadata) public saleMetadata;


    event SaleCreated(
    uint256 indexed saleId,
    address indexed creator,
    address tokenAddress,
    address saleContract,
    string name,
    string symbol,
    uint256 saleGoal,
    uint256 deadline
    );

    event ContributionMade(uint256 indexed saleId, address indexed contributor, uint256 saleRaised, uint256 totalContribution);
    event SaleLaunched(uint256 indexed saleId, address indexed launcher);
    event Claimed(uint256 indexed saleId, address indexed claimant);
    event SaleRefunded(uint256 indexed saleId, address indexed contributor, uint256 amount);
    event MetaUpdated(uint256 indexed saleId, string logoUrl, string websiteUrl, string twitterUrl, string telegramUrl);


    modifier onlyOwner() {
        require(msg.sender == owner, "Not the owner");
        _;
    }

    modifier onlySaleCreator(uint256 saleId) {
        require(msg.sender == sales[saleId].creator, "Notcreator");
        _;
    }

    constructor() {
        owner = msg.sender;
        saleCounter = 0;
    }

    function createSale(string memory name, string memory symbol) external nonReentrant {
        SaleContract newSaleContract = new SaleContract(
            name,
            symbol,
            msg.sender,
            address(this),
            totalTokens,
            totalTokensForSale,
            maxContribution,
            creatorshare
        );

        uint256 deadline = block.timestamp + deadlinePeriod;

        sales[saleCounter] = Sale({
            creator: msg.sender,
            tokenAddress: newSaleContract.token(),
            saleContract: address(newSaleContract),
            name: name,
            symbol: symbol,
            totalRaised: 0,
            saleGoal: defaultSaleGoal,
            launched: false,
            finalized: false,
            deadline: deadline
        });

        // Emit event with individual values
    emit SaleCreated(
        saleCounter,
        msg.sender,
        newSaleContract.token(),
        address(newSaleContract),
        name,
        symbol,
        defaultSaleGoal,
        deadline
    );

        saleCounter++;
    }

    function contribute(uint256 saleId) external payable nonReentrant {
        Sale storage sale = sales[saleId];
        require(!sale.launched, "launched");
        require(sale.totalRaised < sale.saleGoal + 0.1 ether, "goal reached");
        require(block.timestamp <= sale.deadline, "expired");

        contributions[saleId][msg.sender] += msg.value;
        sale.totalRaised += msg.value;
        contributedSales[msg.sender].push(saleId);

        emit ContributionMade(saleId, msg.sender, sale.totalRaised, contributions[saleId][msg.sender]);

        ISaleContract(sale.saleContract).contribute{value: msg.value}(msg.sender);
    }

    function claim(uint256 saleId) external nonReentrant {
        Sale storage sale = sales[saleId];
        require(sale.launched, "not launched");
        require(!hasClaimed[saleId][msg.sender], "claimed");

        hasClaimed[saleId][msg.sender] = true;

        emit Claimed(saleId, msg.sender);

        ISaleContract(sale.saleContract).claimTokens(msg.sender);
    }

    function launch(uint256 saleId) external nonReentrant {
        Sale storage sale = sales[saleId];
        require(!sale.launched, "launched");
        require(sale.totalRaised >= sale.saleGoal, "less than sale goal");
        require(msg.sender == sale.creator || msg.sender == owner, "Not authorized");

        sale.launched = true;

        emit SaleLaunched(saleId, msg.sender);

        // Use predefined fees during launch
        ISaleContract(sale.saleContract).launchSale(
            launchContractAddress,
            buyLpFee,
            sellLpFee,
            buyProtocolFee,
            sellProtocolFee
        );
    }

    function triggerRefund(uint256 saleId) external nonReentrant {
        Sale storage sale = sales[saleId];
        require(!sale.launched, "launched");
        require(block.timestamp > sale.deadline, "deadline not reached");
        require(sale.totalRaised < sale.saleGoal, "not allowed");
        require(!hasRefunded[saleId][msg.sender], "claimed");

        hasRefunded[saleId][msg.sender] = true;

        emit SaleRefunded(saleId, msg.sender, contributions[saleId][msg.sender]);

        ISaleContract(sale.saleContract).processRefund(msg.sender);
    }

    function takeFeeFrom(uint256 saleId) external onlyOwner nonReentrant {
        Sale storage sale = sales[saleId];
        ISaleContract(sale.saleContract).takeFee(owner);
    }

    // Function to update predefined fees, accessible only by owner
    function updateFee(uint8 _buyLpFee, uint8 _sellLpFee, uint8 _buyProtocolFee, uint8 _sellProtocolFee) external onlyOwner {
        buyLpFee = _buyLpFee;
        sellLpFee = _sellLpFee;
        buyProtocolFee = _buyProtocolFee;
        sellProtocolFee = _sellProtocolFee;
    }

    function updateSaleParameters(uint256 _totalTokens, uint256 _totalTokensForSale, uint256 _saleGoal, uint256 _maxContribution) external onlyOwner {
        totalTokens = _totalTokens;
        totalTokensForSale = _totalTokensForSale;
        defaultSaleGoal = _saleGoal;
        maxContribution = _maxContribution;
    }

    function updateDeadlinePeriod(uint256 _deadlinePeriod) external onlyOwner {
        deadlinePeriod = _deadlinePeriod;
    }

    function updateContractAddresses(address _launchContractAddress) external onlyOwner {
        
        launchContractAddress = _launchContractAddress;
    }

    function getSaleIdsForContributor(address contributor) external view returns (uint256[] memory) {
        return contributedSales[contributor];
    }


    function setSaleMetadata(
        uint256 saleId,
        string memory logoUrl,
        string memory websiteUrl,
        string memory twitterUrl,
        string memory telegramUrl
    ) external onlySaleCreator(saleId) {
        SaleMetadata storage metadata = saleMetadata[saleId];

        metadata.logoUrl = logoUrl;
        metadata.websiteUrl = websiteUrl;
        metadata.twitterUrl = twitterUrl;
        metadata.telegramUrl = telegramUrl;

        emit MetaUpdated(saleId, logoUrl, websiteUrl, twitterUrl, telegramUrl);
    }   

        // New function to update creatorshare
    function updateCreatorShare(uint8 newShare) external onlyOwner {
        require(newShare > 0 && newShare <= 100, "Invalid creator share");
        creatorshare = newShare;
        
    }
}

File 2 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _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 _status == _ENTERED;
    }
}

File 3 of 9 : SaleContract.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "./SaleToken.sol";


interface IVistaFactory {
    function getPair(address tokenA, address tokenB) external view returns (address);
}

interface IPair {
    function claimShare() external;
}

interface ILaunchContract {
    function launch(
        address token,
        uint256 amountTokenDesired,
        uint256 amountETHMin,
        uint256 amountTokenMin,
        uint8 buyLpFee,
        uint8 sellLpFee,
        uint8 buyProtocolFee,
        uint8 sellProtocolFee,
        address protocolAddress
    ) external payable;
}

contract SaleContract is ReentrancyGuard {
    address public token;
    address public creator;
    address public factory;
    uint256 public totalTokensForSale;
    uint256 public totalTokens;
    uint256 public totalRaised;
    uint256 public maxContribution;
    uint8 public creatorshare;
    bool public launched;
    mapping(address => uint256) public contributions;

    address public wethAddress = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    address public vistaFactoryAddress = 0x9a27cb5ae0B2cEe0bb71f9A85C0D60f3920757B4;

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

    constructor(
        string memory name,
        string memory symbol,
        address _creator,
        address _factory,
        uint256 _totalTokens,
        uint256 _totalTokensForSale,
        uint256 _maxContribution,
        uint8 _creatorshare
    ) {
        creator = _creator;
        factory = _factory;
        totalTokens = _totalTokens;
        totalTokensForSale = _totalTokensForSale;
        maxContribution = _maxContribution;
        creatorshare = _creatorshare;


        // Deploy the token directly from SaleContract and mint to SaleContract address
        SaleToken newToken = new SaleToken(name, symbol, _totalTokens, address(this));
        token = address(newToken);
    }

    function contribute(address user) external payable onlyFactory nonReentrant {
        require(!launched, "Sale already launched");
        require(contributions[user] + msg.value <= maxContribution, "Contribution exceeds max");

        contributions[user] += msg.value;
        totalRaised += msg.value;
    }

    function claimTokens(address user) external onlyFactory nonReentrant {
        require(launched, "Sale not launched");
        uint256 contribution = contributions[user];
        require(contribution > 0, "No contribution");

        uint8 decimals = ERC20(token).decimals();
        uint256 tokensToClaim = (contribution * totalTokensForSale * (10 ** decimals)) / totalRaised;

        contributions[user] = 0;

        require(ERC20(token).transfer(user, tokensToClaim), "Token transfer failed");
    }

    function launchSale(
    address _launchContract,
    uint8 buyLpFee,
    uint8 sellLpFee,
    uint8 buyProtocolFee,
    uint8 sellProtocolFee
) external onlyFactory nonReentrant {
    require(!launched, "Sale already launched");
    launched = true;

    uint256 tokenAmount = (totalTokens - totalTokensForSale) * (10 ** ERC20(token).decimals());
    uint256 ethAmount = totalRaised;

    // Calculate the amount to use for launching after creator's share deduction
    uint256 launchEthAmount = ((100 - creatorshare) * ethAmount) / 100;

    // Approve the launch contract to spend the SaleContract's tokens
    require(ERC20(token).approve(_launchContract, tokenAmount), "Approval failed");

    // Launch the sale using the deducted ETH amount (after creator's share deduction)
    ILaunchContract(_launchContract).launch{value: launchEthAmount}(
        token,
        tokenAmount,
        0,
        0,
        buyLpFee,
        sellLpFee,
        buyProtocolFee,
        sellProtocolFee,
        creator
    );

    // Transfer the remaining balance (creator's share) to the creator
    uint256 creatorShareAmount = address(this).balance;
    require(creatorShareAmount > 0, "No balance for creator share");

    payable(creator).transfer(creatorShareAmount);
}



    function processRefund(address user) external onlyFactory nonReentrant {
        require(!launched, "Sale already launched");
        uint256 contribution = contributions[user];
        require(contribution > 0, "No contribution to refund");

        contributions[user] = 0;
        payable(user).transfer(contribution);
    }

    function takeFee(address lockFactoryOwner) external onlyFactory nonReentrant {
        IVistaFactory vistaFactory = IVistaFactory(vistaFactoryAddress);
        address pairAddress = vistaFactory.getPair(token, wethAddress);

        require(pairAddress != address(0), "Pair not found");

        IPair pair = IPair(pairAddress);
        pair.claimShare();

        uint256 claimedEth = address(this).balance;
        require(claimedEth > 0, "No ETH claimed");

        payable(lockFactoryOwner).transfer(claimedEth);
    }

    receive() external payable {}
}

File 4 of 9 : SaleToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

// SaleToken: ERC-20 token for the sale
contract SaleToken is ERC20 {
    address public saleContract;

    constructor(
        string memory name,
        string memory symbol,
        uint256 totalSupply,
        address _saleContract
    ) ERC20(name, symbol) {
        saleContract = _saleContract;
        // Mint total supply to the sale contract, adjusted for decimals
        _mint(_saleContract, totalSupply * (10 ** decimals()));
    }
}

File 5 of 9 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

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

File 6 of 9 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 7 of 9 : Context.sol
// 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;
    }
}

File 8 of 9 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

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

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

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

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

File 9 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":true,"internalType":"address","name":"claimant","type":"address"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":true,"internalType":"address","name":"contributor","type":"address"},{"indexed":false,"internalType":"uint256","name":"saleRaised","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalContribution","type":"uint256"}],"name":"ContributionMade","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":false,"internalType":"string","name":"logoUrl","type":"string"},{"indexed":false,"internalType":"string","name":"websiteUrl","type":"string"},{"indexed":false,"internalType":"string","name":"twitterUrl","type":"string"},{"indexed":false,"internalType":"string","name":"telegramUrl","type":"string"}],"name":"MetaUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":true,"internalType":"address","name":"creator","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"saleContract","type":"address"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"uint256","name":"saleGoal","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"SaleCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":true,"internalType":"address","name":"launcher","type":"address"}],"name":"SaleLaunched","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"saleId","type":"uint256"},{"indexed":true,"internalType":"address","name":"contributor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SaleRefunded","type":"event"},{"inputs":[],"name":"buyLpFee","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyProtocolFee","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"contribute","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"contributedSales","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"contributions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"createSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"creatorshare","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deadlinePeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultSaleGoal","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"contributor","type":"address"}],"name":"getSaleIdsForContributor","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"hasRefunded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"launch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"launchContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxContribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"saleMetadata","outputs":[{"internalType":"string","name":"logoUrl","type":"string"},{"internalType":"string","name":"websiteUrl","type":"string"},{"internalType":"string","name":"twitterUrl","type":"string"},{"internalType":"string","name":"telegramUrl","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"sales","outputs":[{"internalType":"address","name":"creator","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"saleContract","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"totalRaised","type":"uint256"},{"internalType":"uint256","name":"saleGoal","type":"uint256"},{"internalType":"bool","name":"launched","type":"bool"},{"internalType":"bool","name":"finalized","type":"bool"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellLpFee","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellProtocolFee","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"},{"internalType":"string","name":"logoUrl","type":"string"},{"internalType":"string","name":"websiteUrl","type":"string"},{"internalType":"string","name":"twitterUrl","type":"string"},{"internalType":"string","name":"telegramUrl","type":"string"}],"name":"setSaleMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"takeFeeFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokensForSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"saleId","type":"uint256"}],"name":"triggerRefund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_launchContractAddress","type":"address"}],"name":"updateContractAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newShare","type":"uint8"}],"name":"updateCreatorShare","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_deadlinePeriod","type":"uint256"}],"name":"updateDeadlinePeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_buyLpFee","type":"uint8"},{"internalType":"uint8","name":"_sellLpFee","type":"uint8"},{"internalType":"uint8","name":"_buyProtocolFee","type":"uint8"},{"internalType":"uint8","name":"_sellProtocolFee","type":"uint8"}],"name":"updateFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_totalTokens","type":"uint256"},{"internalType":"uint256","name":"_totalTokensForSale","type":"uint256"},{"internalType":"uint256","name":"_saleGoal","type":"uint256"},{"internalType":"uint256","name":"_maxContribution","type":"uint256"}],"name":"updateSaleParameters","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600280546001600160a01b03191673cedd366065a146a039b92db35756ecd7688fcc771790556203f4806004556305f5e1006005556303938700600655670de0b6b3a764000060075567016345785d8a00006008556009805464050505050564ffffffffff19909116179055348015607a575f80fd5b5060015f81815581546001600160a01b0319163317909155600355613ebd806100a25f395ff3fe6080604052600436106101db575f3560e01c8063ad3485fd116100fd578063c7b8b46d11610092578063ea1712bc11610062578063ea1712bc146105b7578063ee8e2c00146105d6578063f40128e514610602578063f794c0c714610621575f80fd5b8063c7b8b46d1461051e578063c9de59ef1461053d578063cc2b765714610576578063e2a7797e14610596575f80fd5b8063b5f522f7116100cd578063b5f522f714610498578063bb72c402146104cd578063c1cbbca7146104ec578063c6367e6e146104ff575f80fd5b8063ad3485fd1461040c578063b1ff11111461043b578063b4f53ee11461045a578063b5d193c814610479575f80fd5b80636fd3acb4116101735780638d3d6576116101435780638d3d6576146103825780638da5cb5b14610397578063a3148f75146103ce578063a8e16045146103ed575f80fd5b80636fd3acb4146102e75780637e1c0c091461030557806385b12c7c1461031a578063873f6f9e14610339575f80fd5b80633d891f59116101ae5780633d891f591461025c57806360219c7b146102925780636334a8c4146102a75780636db24262146102d2575f80fd5b80630387b0a2146101df5780630bd4d65f14610207578063379607f51461021c57806339ab367a1461023d575b5f80fd5b3480156101ea575f80fd5b506101f460035481565b6040519081526020015b60405180910390f35b348015610212575f80fd5b506101f460075481565b348015610227575f80fd5b5061023b610236366004611792565b610640565b005b348015610248575f80fd5b5061023b610257366004611848565b6107a5565b348015610267575f80fd5b506101f461027636600461191e565b600b60209081525f928352604080842090915290825290205481565b34801561029d575f80fd5b506101f460065481565b3480156102b2575f80fd5b506009546102c09060ff1681565b60405160ff90911681526020016101fe565b3480156102dd575f80fd5b506101f460045481565b3480156102f2575f80fd5b506009546102c090610100900460ff1681565b348015610310575f80fd5b506101f460055481565b348015610325575f80fd5b5061023b610334366004611792565b610886565b348015610344575f80fd5b5061037261035336600461191e565b600d60209081525f928352604080842090915290825290205460ff1681565b60405190151581526020016101fe565b34801561038d575f80fd5b506101f460085481565b3480156103a2575f80fd5b506001546103b6906001600160a01b031681565b6040516001600160a01b0390911681526020016101fe565b3480156103d9575f80fd5b5061023b6103e8366004611961565b610a1b565b3480156103f8575f80fd5b5061023b610407366004611981565b610ab5565b348015610417575f80fd5b5061042b610426366004611792565b610af3565b6040516101fe94939291906119de565b348015610446575f80fd5b506002546103b6906001600160a01b031681565b348015610465575f80fd5b5061023b610474366004611792565b610d32565b348015610484575f80fd5b5061023b610493366004611a35565b610d61565b3480156104a3575f80fd5b506104b76104b2366004611792565b611035565b6040516101fe9a99989796959493929190611a9a565b3480156104d8575f80fd5b5061023b6104e7366004611b12565b6111a5565b61023b6104fa366004611792565b61122b565b34801561050a575f80fd5b5061023b610519366004611792565b61141e565b348015610529575f80fd5b506009546102c09062010000900460ff1681565b348015610548575f80fd5b5061037261055736600461191e565b600e60209081525f928352604080842090915290825290205460ff1681565b348015610581575f80fd5b506009546102c0906301000000900460ff1681565b3480156105a1575f80fd5b506009546102c090640100000000900460ff1681565b3480156105c2575f80fd5b5061023b6105d1366004611792565b6115d7565b3480156105e1575f80fd5b506105f56105f0366004611b63565b61164e565b6040516101fe9190611b7e565b34801561060d575f80fd5b5061023b61061c366004611b63565b6116b7565b34801561062c575f80fd5b506101f461063b366004611bc0565b611703565b61064861172e565b5f818152600a60205260409020600781015460ff1661069d5760405162461bcd60e51b815260206004820152600c60248201526b1b9bdd081b185d5b98da195960a21b60448201526064015b60405180910390fd5b5f828152600d6020908152604080832033845290915290205460ff16156106f05760405162461bcd60e51b815260206004820152600760248201526618db185a5b595960ca1b6044820152606401610694565b5f828152600d60209081526040808320338085529252808320805460ff1916600117905551909184917f6aa3eac93d079e5e100b1029be716caa33586c96aa4baac390669fb5c2a212129190a3600281015460405163df8de3e760e01b81523360048201526001600160a01b039091169063df8de3e7906024015b5f604051808303815f87803b158015610782575f80fd5b505af1158015610794573d5f803e3d5ffd5b50505050506107a260015f55565b50565b5f858152600a602052604090205485906001600160a01b031633146107f95760405162461bcd60e51b815260206004820152600a6024820152692737ba31b932b0ba37b960b11b6044820152606401610694565b5f868152600f60205260409020806108118782611c6e565b50600181016108208682611c6e565b506002810161082f8582611c6e565b506003810161083e8482611c6e565b50867fa84b68d53abf9d5a13dc3b2ae10fca1431648d7700d118d1845ca7a0fc004b178787878760405161087594939291906119de565b60405180910390a250505050505050565b61088e61172e565b5f818152600a60205260409020600781015460ff16156108c05760405162461bcd60e51b815260040161069490611d29565b80600601548160050154101561090e5760405162461bcd60e51b81526020600482015260136024820152721b195cdcc81d1a185b881cd85b194819dbd85b606a1b6044820152606401610694565b80546001600160a01b031633148061093057506001546001600160a01b031633145b61096d5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610694565b60078101805460ff19166001179055604051339083907fd0a2553f18d036c44347541a66ad9230e797b91ecd1746a2773d099f05633676905f90a3600281810154905460095460405163c4c69d8f60e01b81526001600160a01b03928316600482015260ff610100830481166024830152620100008304811660448301526301000000830481166064830152640100000000909204909116608482015291169063c4c69d8f9060a40161076b565b6001546001600160a01b03163314610a455760405162461bcd60e51b815260040161069490611d4b565b5f8160ff16118015610a5b575060648160ff1611155b610a9f5760405162461bcd60e51b8152602060048201526015602482015274496e76616c69642063726561746f7220736861726560581b6044820152606401610694565b6009805460ff191660ff92909216919091179055565b6001546001600160a01b03163314610adf5760405162461bcd60e51b815260040161069490611d4b565b600593909355600691909155600755600855565b600f6020525f9081526040902080548190610b0d90611bea565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3990611bea565b8015610b845780601f10610b5b57610100808354040283529160200191610b84565b820191905f5260205f20905b815481529060010190602001808311610b6757829003601f168201915b505050505090806001018054610b9990611bea565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc590611bea565b8015610c105780601f10610be757610100808354040283529160200191610c10565b820191905f5260205f20905b815481529060010190602001808311610bf357829003601f168201915b505050505090806002018054610c2590611bea565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5190611bea565b8015610c9c5780601f10610c7357610100808354040283529160200191610c9c565b820191905f5260205f20905b815481529060010190602001808311610c7f57829003601f168201915b505050505090806003018054610cb190611bea565b80601f0160208091040260200160405190810160405280929190818152602001828054610cdd90611bea565b8015610d285780601f10610cff57610100808354040283529160200191610d28565b820191905f5260205f20905b815481529060010190602001808311610d0b57829003601f168201915b5050505050905084565b6001546001600160a01b03163314610d5c5760405162461bcd60e51b815260040161069490611d4b565b600455565b610d6961172e565b5f8282333060055460065460085460095f9054906101000a900460ff16604051610d9290611785565b610da3989796959493929190611d72565b604051809103905ff080158015610dbc573d5f803e3d5ffd5b5090505f60045442610dce9190611deb565b9050604051806101400160405280336001600160a01b03168152602001836001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e27573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e4b9190611e04565b6001600160a01b039081168252848116602080840191909152604080840189905260608085018990525f6080860181905260075460a087015260c0860181905260e08601819052610100909501879052600380548652600a845294829020865181549086166001600160a01b03199182161782559387015160018201805491871691861691909117905591860151600283018054919095169316929092179092558301519091820190610efe9082611c6e565b5060808201516004820190610f139082611c6e565b5060a0820151600582015560c0820151600682015560e08201516007820180546101008086015115150261ff00199315159390931661ffff19909116179190911790556101209091015160089091015560035460408051637e062a3560e11b815290513392917fbb22ba380a1e5d7775ee59bc7b93f3e9ced4ebec32bb0e243390b2aefc537caa916001600160a01b0387169163fc0c546a9160048083019260209291908290030181865afa158015610fce573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ff29190611e04565b60075460405161100a929188918b918b918a90611e1f565b60405180910390a360038054905f61102183611e72565b9190505550505061103160015f55565b5050565b600a6020525f908152604090208054600182015460028301546003840180546001600160a01b039485169593851694909216929161107290611bea565b80601f016020809104026020016040519081016040528092919081815260200182805461109e90611bea565b80156110e95780601f106110c0576101008083540402835291602001916110e9565b820191905f5260205f20905b8154815290600101906020018083116110cc57829003601f168201915b5050505050908060040180546110fe90611bea565b80601f016020809104026020016040519081016040528092919081815260200182805461112a90611bea565b80156111755780601f1061114c57610100808354040283529160200191611175565b820191905f5260205f20905b81548152906001019060200180831161115857829003601f168201915b505050506005830154600684015460078501546008909501549394919390925060ff80831692610100900416908a565b6001546001600160a01b031633146111cf5760405162461bcd60e51b815260040161069490611d4b565b6009805462ffff00191661010060ff9687160262ff000019161762010000948616949094029390931764ffff000000191663010000009285169290920264ff000000001916919091176401000000009190931602919091179055565b61123361172e565b5f818152600a60205260409020600781015460ff16156112655760405162461bcd60e51b815260040161069490611d29565b600681015461127c9067016345785d8a0000611deb565b8160050154106112bd5760405162461bcd60e51b815260206004820152600c60248201526b19dbd85b081c995858da195960a21b6044820152606401610694565b80600801544211156112fb5760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b6044820152606401610694565b5f828152600b6020908152604080832033845290915281208054349290611323908490611deb565b9250508190555034816005015f82825461133d9190611deb565b9091555050335f818152600c602090815260408083208054600181018255908452828420018690556005850154868452600b83528184208585528352928190205481519384529183019190915284917ff9b7589b7a8d939b9da5dae90770378fe5fd7802be5d66432e85bedbdbfbcb7a910160405180910390a360028101546040516373e888fd60e01b81523360048201526001600160a01b03909116906373e888fd9034906024015f604051808303818588803b1580156113fd575f80fd5b505af115801561140f573d5f803e3d5ffd5b5050505050506107a260015f55565b61142661172e565b5f818152600a60205260409020600781015460ff16156114585760405162461bcd60e51b815260040161069490611d29565b806008015442116114a25760405162461bcd60e51b8152602060048201526014602482015273191958591b1a5b99481b9bdd081c995858da195960621b6044820152606401610694565b80600601548160050154106114e75760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b6044820152606401610694565b5f828152600e6020908152604080832033845290915290205460ff161561153a5760405162461bcd60e51b815260206004820152600760248201526618db185a5b595960ca1b6044820152606401610694565b5f828152600e6020908152604080832033808552908352818420805460ff19166001179055858452600b835281842081855283529281902054905190815284917f4dae6f4e22ce401aa8fd59c99a85fca9b381e32b9d81ad764d9f0ccc99b3ba5b910160405180910390a3600281015460405163b9795b6d60e01b81523360048201526001600160a01b039091169063b9795b6d9060240161076b565b6001546001600160a01b031633146116015760405162461bcd60e51b815260040161069490611d4b565b61160961172e565b5f818152600a602052604090819020600281015460015492516352dfc76360e11b81526001600160a01b0393841660048201529192169063a5bf8ec69060240161076b565b6001600160a01b0381165f908152600c60209081526040918290208054835181840281018401909452808452606093928301828280156116ab57602002820191905f5260205f20905b815481526020019060010190808311611697575b50505050509050919050565b6001546001600160a01b031633146116e15760405162461bcd60e51b815260040161069490611d4b565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600c602052815f5260405f20818154811061171c575f80fd5b905f5260205f20015f91509150505481565b60025f540361177f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610694565b60025f55565b611ffd80611e8b83390190565b5f602082840312156117a2575f80fd5b5035919050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f8301126117cc575f80fd5b813567ffffffffffffffff8111156117e6576117e66117a9565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715611815576118156117a9565b60405281815283820160200185101561182c575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f805f60a0868803121561185c575f80fd5b85359450602086013567ffffffffffffffff811115611879575f80fd5b611885888289016117bd565b945050604086013567ffffffffffffffff8111156118a1575f80fd5b6118ad888289016117bd565b935050606086013567ffffffffffffffff8111156118c9575f80fd5b6118d5888289016117bd565b925050608086013567ffffffffffffffff8111156118f1575f80fd5b6118fd888289016117bd565b9150509295509295909350565b6001600160a01b03811681146107a2575f80fd5b5f806040838503121561192f575f80fd5b8235915060208301356119418161190a565b809150509250929050565b803560ff8116811461195c575f80fd5b919050565b5f60208284031215611971575f80fd5b61197a8261194c565b9392505050565b5f805f8060808587031215611994575f80fd5b5050823594602084013594506040840135936060013592509050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b608081525f6119f060808301876119b0565b8281036020840152611a0281876119b0565b90508281036040840152611a1681866119b0565b90508281036060840152611a2a81856119b0565b979650505050505050565b5f8060408385031215611a46575f80fd5b823567ffffffffffffffff811115611a5c575f80fd5b611a68858286016117bd565b925050602083013567ffffffffffffffff811115611a84575f80fd5b611a90858286016117bd565b9150509250929050565b6001600160a01b038b811682528a8116602083015289166040820152610140606082018190525f90611ace9083018a6119b0565b8281036080840152611ae0818a6119b0565b60a0840198909852505060c081019490945291151560e084015215156101008301526101209091015295945050505050565b5f805f8060808587031215611b25575f80fd5b611b2e8561194c565b9350611b3c6020860161194c565b9250611b4a6040860161194c565b9150611b586060860161194c565b905092959194509250565b5f60208284031215611b73575f80fd5b813561197a8161190a565b602080825282518282018190525f918401906040840190835b81811015611bb5578351835260209384019390920191600101611b97565b509095945050505050565b5f8060408385031215611bd1575f80fd5b8235611bdc8161190a565b946020939093013593505050565b600181811c90821680611bfe57607f821691505b602082108103611c1c57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115611c6957805f5260205f20601f840160051c81016020851015611c475750805b601f840160051c820191505b81811015611c66575f8155600101611c53565b50505b505050565b815167ffffffffffffffff811115611c8857611c886117a9565b611c9c81611c968454611bea565b84611c22565b6020601f821160018114611cce575f8315611cb75750848201515b5f19600385901b1c1916600184901b178455611c66565b5f84815260208120601f198516915b82811015611cfd5787850151825560209485019460019092019101611cdd565b5084821015611d1a57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b6020808252600890820152671b185d5b98da195960c21b604082015260600190565b6020808252600d908201526c2737ba103a34329037bbb732b960991b604082015260600190565b61010081525f611d8661010083018b6119b0565b8281036020840152611d98818b6119b0565b6001600160a01b03998a16604085015297909816606083015250608081019490945260a084019290925260c083015260ff1660e0909101529392505050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115611dfe57611dfe611dd7565b92915050565b5f60208284031215611e14575f80fd5b815161197a8161190a565b6001600160a01b0387811682528616602082015260c0604082018190525f90611e4a908301876119b0565b8281036060840152611e5c81876119b0565b6080840195909552505060a00152949350505050565b5f60018201611e8357611e83611dd7565b506001019056fe6080604052600a80546001600160a01b031990811673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc217909155600b8054909116739a27cb5ae0b2cee0bb71f9a85c0d60f3920757b4179055348015610057575f80fd5b50604051611ffd380380611ffd833981016040819052610076916101fb565b60015f908155600280546001600160a01b03808a166001600160a01b03199283161790925560038054928916929091169190911790556005859055600484905560078390556008805460ff841660ff1990911617905560405189908990879030906100e090610136565b6100ed94939291906102e5565b604051809103905ff080158015610106573d5f803e3d5ffd5b50600180546001600160a01b0319166001600160a01b03929092169190911790555061032b975050505050505050565b610cbf8061133e83390190565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610166575f80fd5b81516001600160401b0381111561017f5761017f610143565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101ad576101ad610143565b6040528181528382016020018510156101c4575f80fd5b8160208501602083015e5f918101602001919091529392505050565b80516001600160a01b03811681146101f6575f80fd5b919050565b5f805f805f805f80610100898b031215610213575f80fd5b88516001600160401b03811115610228575f80fd5b6102348b828c01610157565b60208b015190995090506001600160401b03811115610251575f80fd5b61025d8b828c01610157565b97505061026c60408a016101e0565b955061027a60608a016101e0565b60808a015160a08b015160c08c015160e08d01519398509196509450925060ff811681146102a6575f80fd5b809150509295985092959890939650565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b608081525f6102f760808301876102b7565b828103602084015261030981876102b7565b604084019590955250506001600160a01b039190911660609091015292915050565b611006806103385f395ff3fe6080604052600436106100fd575f3560e01c80638091f3bf11610092578063c45a015511610062578063c45a0155146102a6578063c4c69d8f146102c5578063c5c4744c146102e4578063df8de3e7146102f9578063fc0c546a14610318575f80fd5b80638091f3bf146102255780638d3d657614610253578063a5bf8ec614610268578063b9795b6d14610287575f80fd5b806360219c7b116100cd57806360219c7b146101bb5780636334a8c4146101d057806373e888fd146101fb5780637e1c0c0914610210575f80fd5b806302d05d3f146101085780632c5b5ae21461014457806342e94c90146101635780634f0e0ef31461019c575f80fd5b3661010457005b5f80fd5b348015610113575f80fd5b50600254610127906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014f575f80fd5b50600b54610127906001600160a01b031681565b34801561016e575f80fd5b5061018e61017d366004610d09565b60096020525f908152604090205481565b60405190815260200161013b565b3480156101a7575f80fd5b50600a54610127906001600160a01b031681565b3480156101c6575f80fd5b5061018e60045481565b3480156101db575f80fd5b506008546101e99060ff1681565b60405160ff909116815260200161013b565b61020e610209366004610d09565b610337565b005b34801561021b575f80fd5b5061018e60055481565b348015610230575f80fd5b5060085461024390610100900460ff1681565b604051901515815260200161013b565b34801561025e575f80fd5b5061018e60075481565b348015610273575f80fd5b5061020e610282366004610d09565b61045c565b348015610292575f80fd5b5061020e6102a1366004610d09565b610627565b3480156102b1575f80fd5b50600354610127906001600160a01b031681565b3480156102d0575f80fd5b5061020e6102df366004610d39565b610732565b3480156102ef575f80fd5b5061018e60065481565b348015610304575f80fd5b5061020e610313366004610d09565b610a51565b348015610323575f80fd5b50600154610127906001600160a01b031681565b6003546001600160a01b0316331461036a5760405162461bcd60e51b815260040161036190610da6565b60405180910390fd5b610372610c9e565b600854610100900460ff161561039a5760405162461bcd60e51b815260040161036190610dcc565b6007546001600160a01b0382165f908152600960205260409020546103c0903490610e0f565b111561040e5760405162461bcd60e51b815260206004820152601860248201527f436f6e747269627574696f6e2065786365656473206d617800000000000000006044820152606401610361565b6001600160a01b0381165f9081526009602052604081208054349290610435908490610e0f565b925050819055503460065f82825461044d9190610e0f565b909155505060015f5550565b50565b6003546001600160a01b031633146104865760405162461bcd60e51b815260040161036190610da6565b61048e610c9e565b600b54600154600a5460405163e6a4390560e01b81526001600160a01b03928316600482015290821660248201529116905f90829063e6a4390590604401602060405180830381865afa1580156104e7573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061050b9190610e28565b90506001600160a01b0381166105545760405162461bcd60e51b815260206004820152600e60248201526d14185a5c881b9bdd08199bdd5b9960921b6044820152606401610361565b5f819050806001600160a01b031663666da64f6040518163ffffffff1660e01b81526004015f604051808303815f87803b158015610590575f80fd5b505af11580156105a2573d5f803e3d5ffd5b504792505050806105e65760405162461bcd60e51b815260206004820152600e60248201526d139bc81155120818db185a5b595960921b6044820152606401610361565b6040516001600160a01b0386169082156108fc029083905f818181858888f19350505050158015610619573d5f803e3d5ffd5b505050505061045960015f55565b6003546001600160a01b031633146106515760405162461bcd60e51b815260040161036190610da6565b610659610c9e565b600854610100900460ff16156106815760405162461bcd60e51b815260040161036190610dcc565b6001600160a01b0381165f90815260096020526040902054806106e65760405162461bcd60e51b815260206004820152601960248201527f4e6f20636f6e747269627574696f6e20746f20726566756e64000000000000006044820152606401610361565b6001600160a01b0382165f818152600960205260408082208290555183156108fc0291849190818181858888f19350505050158015610727573d5f803e3d5ffd5b505061045960015f55565b6003546001600160a01b0316331461075c5760405162461bcd60e51b815260040161036190610da6565b610764610c9e565b600854610100900460ff161561078c5760405162461bcd60e51b815260040161036190610dcc565b6008805461ff0019166101001790556001546040805163313ce56760e01b815290515f926001600160a01b03169163313ce5679160048083019260209291908290030181865afa1580156107e2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108069190610e43565b61081190600a610f41565b6004546005546108219190610f4f565b61082b9190610f62565b600654600854919250905f9060649083906108499060ff1683610f79565b60ff166108569190610f62565b6108609190610f92565b60015460405163095ea7b360e01b81526001600160a01b038b811660048301526024820187905292935091169063095ea7b3906044016020604051808303815f875af11580156108b2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108d69190610fb1565b6109145760405162461bcd60e51b815260206004820152600f60248201526e105c1c1c9bdd985b0819985a5b1959608a1b6044820152606401610361565b600154600254604051637f0dfdd360e11b81526001600160a01b039283166004820152602481018690525f60448201819052606482015260ff808b166084830152808a1660a483015280891660c4830152871660e48201529082166101048201529089169063fe1bfba6908390610124015f604051808303818588803b15801561099c575f80fd5b505af11580156109ae573d5f803e3d5ffd5b5047935050508115159050610a055760405162461bcd60e51b815260206004820152601c60248201527f4e6f2062616c616e636520666f722063726561746f72207368617265000000006044820152606401610361565b6002546040516001600160a01b039091169082156108fc029083905f818181858888f19350505050158015610a3c573d5f803e3d5ffd5b5050505050610a4a60015f55565b5050505050565b6003546001600160a01b03163314610a7b5760405162461bcd60e51b815260040161036190610da6565b610a83610c9e565b600854610100900460ff16610ace5760405162461bcd60e51b815260206004820152601160248201527014d85b19481b9bdd081b185d5b98da1959607a1b6044820152606401610361565b6001600160a01b0381165f9081526009602052604090205480610b255760405162461bcd60e51b815260206004820152600f60248201526e27379031b7b73a3934b13aba34b7b760891b6044820152606401610361565b6001546040805163313ce56760e01b815290515f926001600160a01b03169163313ce5679160048083019260209291908290030181865afa158015610b6c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b909190610e43565b90505f60065482600a610ba39190610f41565b600454610bb09086610f62565b610bba9190610f62565b610bc49190610f92565b6001600160a01b038581165f8181526009602052604080822091909155600154905163a9059cbb60e01b815260048101929092526024820184905292935091169063a9059cbb906044016020604051808303815f875af1158015610c2a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c4e9190610fb1565b610c925760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610361565b50505061045960015f55565b60025f5403610cef5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610361565b60025f55565b6001600160a01b0381168114610459575f80fd5b5f60208284031215610d19575f80fd5b8135610d2481610cf5565b9392505050565b60ff81168114610459575f80fd5b5f805f805f60a08688031215610d4d575f80fd5b8535610d5881610cf5565b94506020860135610d6881610d2b565b93506040860135610d7881610d2b565b92506060860135610d8881610d2b565b91506080860135610d9881610d2b565b809150509295509295909350565b6020808252600c908201526b4f6e6c7920666163746f727960a01b604082015260600190565b60208082526015908201527414d85b1948185b1c9958591e481b185d5b98da1959605a1b604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610e2257610e22610dfb565b92915050565b5f60208284031215610e38575f80fd5b8151610d2481610cf5565b5f60208284031215610e53575f80fd5b8151610d2481610d2b565b6001815b6001841115610e9957808504811115610e7d57610e7d610dfb565b6001841615610e8b57908102905b60019390931c928002610e62565b935093915050565b5f82610eaf57506001610e22565b81610ebb57505f610e22565b8160018114610ed15760028114610edb57610ef7565b6001915050610e22565b60ff841115610eec57610eec610dfb565b50506001821b610e22565b5060208310610133831016604e8410600b8410161715610f1a575081810a610e22565b610f265f198484610e5e565b805f1904821115610f3957610f39610dfb565b029392505050565b5f610d2460ff841683610ea1565b81810381811115610e2257610e22610dfb565b8082028115828204841417610e2257610e22610dfb565b60ff8281168282160390811115610e2257610e22610dfb565b5f82610fac57634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215610fc1575f80fd5b81518015158114610d24575f80fdfea264697066735822122027ef21838595f0696bf385c053475ae955ce47b3f0baaf503bdf8d4220b5177e64736f6c634300081a0033608060405234801561000f575f80fd5b50604051610cbf380380610cbf83398101604081905261002e91610296565b8383600361003c83826103a7565b50600461004982826103a7565b5050600580546001600160a01b0319166001600160a01b0384161790555061008d81610073601290565b61007e90600a61055a565b610088908561056f565b610096565b50505050610599565b6001600160a01b0382166100c45760405163ec442f0560e01b81525f60048201526024015b60405180910390fd5b6100cf5f83836100d3565b5050565b6001600160a01b0383166100fd578060025f8282546100f29190610586565b9091555061016d9050565b6001600160a01b0383165f908152602081905260409020548181101561014f5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100bb565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610189576002805482900390556101a7565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516101ec91815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011261021c575f80fd5b81516001600160401b03811115610235576102356101f9565b604051601f8201601f19908116603f011681016001600160401b0381118282101715610263576102636101f9565b60405281815283820160200185101561027a575f80fd5b8160208501602083015e5f918101602001919091529392505050565b5f805f80608085870312156102a9575f80fd5b84516001600160401b038111156102be575f80fd5b6102ca8782880161020d565b602087015190955090506001600160401b038111156102e7575f80fd5b6102f38782880161020d565b60408701516060880151919550935090506001600160a01b0381168114610318575f80fd5b939692955090935050565b600181811c9082168061033757607f821691505b60208210810361035557634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156103a257805f5260205f20601f840160051c810160208510156103805750805b601f840160051c820191505b8181101561039f575f815560010161038c565b50505b505050565b81516001600160401b038111156103c0576103c06101f9565b6103d4816103ce8454610323565b8461035b565b6020601f821160018114610406575f83156103ef5750848201515b5f19600385901b1c1916600184901b17845561039f565b5f84815260208120601f198516915b828110156104355787850151825560209485019460019092019101610415565b508482101561045257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b6001815b60018411156104b05780850481111561049457610494610461565b60018416156104a257908102905b60019390931c928002610479565b935093915050565b5f826104c657506001610554565b816104d257505f610554565b81600181146104e857600281146104f25761050e565b6001915050610554565b60ff84111561050357610503610461565b50506001821b610554565b5060208310610133831016604e8410600b8410161715610531575081810a610554565b61053d5f198484610475565b805f190482111561055057610550610461565b0290505b92915050565b5f61056860ff8416836104b8565b9392505050565b808202811582820484141761055457610554610461565b8082018082111561055457610554610461565b610719806105a65f395ff3fe608060405234801561000f575f80fd5b506004361061009b575f3560e01c806370a082311161006357806370a082311461011457806395d89b411461013c578063a9059cbb14610144578063daf6ca3014610157578063dd62ed3e14610182575f80fd5b806306fdde031461009f578063095ea7b3146100bd57806318160ddd146100e057806323b872dd146100f2578063313ce56714610105575b5f80fd5b6100a76101ba565b6040516100b49190610589565b60405180910390f35b6100d06100cb3660046105d9565b61024a565b60405190151581526020016100b4565b6002545b6040519081526020016100b4565b6100d0610100366004610601565b610263565b604051601281526020016100b4565b6100e461012236600461063b565b6001600160a01b03165f9081526020819052604090205490565b6100a7610286565b6100d06101523660046105d9565b610295565b60055461016a906001600160a01b031681565b6040516001600160a01b0390911681526020016100b4565b6100e461019036600461065b565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6060600380546101c99061068c565b80601f01602080910402602001604051908101604052809291908181526020018280546101f59061068c565b80156102405780601f1061021757610100808354040283529160200191610240565b820191905f5260205f20905b81548152906001019060200180831161022357829003601f168201915b5050505050905090565b5f336102578185856102a2565b60019150505b92915050565b5f336102708582856102b4565b61027b858585610334565b506001949350505050565b6060600480546101c99061068c565b5f33610257818585610334565b6102af8383836001610391565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811461032e578181101561032057604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b61032e84848484035f610391565b50505050565b6001600160a01b03831661035d57604051634b637e8f60e11b81525f6004820152602401610317565b6001600160a01b0382166103865760405163ec442f0560e01b81525f6004820152602401610317565b6102af838383610463565b6001600160a01b0384166103ba5760405163e602df0560e01b81525f6004820152602401610317565b6001600160a01b0383166103e357604051634a1406b160e11b81525f6004820152602401610317565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561032e57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161045591815260200190565b60405180910390a350505050565b6001600160a01b03831661048d578060025f82825461048291906106c4565b909155506104fd9050565b6001600160a01b0383165f90815260208190526040902054818110156104df5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610317565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661051957600280548290039055610537565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161057c91815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146105d4575f80fd5b919050565b5f80604083850312156105ea575f80fd5b6105f3836105be565b946020939093013593505050565b5f805f60608486031215610613575f80fd5b61061c846105be565b925061062a602085016105be565b929592945050506040919091013590565b5f6020828403121561064b575f80fd5b610654826105be565b9392505050565b5f806040838503121561066c575f80fd5b610675836105be565b9150610683602084016105be565b90509250929050565b600181811c908216806106a057607f821691505b6020821081036106be57634e487b7160e01b5f52602260045260245ffd5b50919050565b8082018082111561025d57634e487b7160e01b5f52601160045260245ffdfea26469706673582212209be8ed2369d484737852b85ff8c30872d00568fa330698806cef123c3a3588cd64736f6c634300081a0033a2646970667358221220dccb9a3751d03e3cb99e1b7ef9fb800ec470236ea619e134772b68a588c6670064736f6c634300081a0033

Deployed Bytecode

0x6080604052600436106101db575f3560e01c8063ad3485fd116100fd578063c7b8b46d11610092578063ea1712bc11610062578063ea1712bc146105b7578063ee8e2c00146105d6578063f40128e514610602578063f794c0c714610621575f80fd5b8063c7b8b46d1461051e578063c9de59ef1461053d578063cc2b765714610576578063e2a7797e14610596575f80fd5b8063b5f522f7116100cd578063b5f522f714610498578063bb72c402146104cd578063c1cbbca7146104ec578063c6367e6e146104ff575f80fd5b8063ad3485fd1461040c578063b1ff11111461043b578063b4f53ee11461045a578063b5d193c814610479575f80fd5b80636fd3acb4116101735780638d3d6576116101435780638d3d6576146103825780638da5cb5b14610397578063a3148f75146103ce578063a8e16045146103ed575f80fd5b80636fd3acb4146102e75780637e1c0c091461030557806385b12c7c1461031a578063873f6f9e14610339575f80fd5b80633d891f59116101ae5780633d891f591461025c57806360219c7b146102925780636334a8c4146102a75780636db24262146102d2575f80fd5b80630387b0a2146101df5780630bd4d65f14610207578063379607f51461021c57806339ab367a1461023d575b5f80fd5b3480156101ea575f80fd5b506101f460035481565b6040519081526020015b60405180910390f35b348015610212575f80fd5b506101f460075481565b348015610227575f80fd5b5061023b610236366004611792565b610640565b005b348015610248575f80fd5b5061023b610257366004611848565b6107a5565b348015610267575f80fd5b506101f461027636600461191e565b600b60209081525f928352604080842090915290825290205481565b34801561029d575f80fd5b506101f460065481565b3480156102b2575f80fd5b506009546102c09060ff1681565b60405160ff90911681526020016101fe565b3480156102dd575f80fd5b506101f460045481565b3480156102f2575f80fd5b506009546102c090610100900460ff1681565b348015610310575f80fd5b506101f460055481565b348015610325575f80fd5b5061023b610334366004611792565b610886565b348015610344575f80fd5b5061037261035336600461191e565b600d60209081525f928352604080842090915290825290205460ff1681565b60405190151581526020016101fe565b34801561038d575f80fd5b506101f460085481565b3480156103a2575f80fd5b506001546103b6906001600160a01b031681565b6040516001600160a01b0390911681526020016101fe565b3480156103d9575f80fd5b5061023b6103e8366004611961565b610a1b565b3480156103f8575f80fd5b5061023b610407366004611981565b610ab5565b348015610417575f80fd5b5061042b610426366004611792565b610af3565b6040516101fe94939291906119de565b348015610446575f80fd5b506002546103b6906001600160a01b031681565b348015610465575f80fd5b5061023b610474366004611792565b610d32565b348015610484575f80fd5b5061023b610493366004611a35565b610d61565b3480156104a3575f80fd5b506104b76104b2366004611792565b611035565b6040516101fe9a99989796959493929190611a9a565b3480156104d8575f80fd5b5061023b6104e7366004611b12565b6111a5565b61023b6104fa366004611792565b61122b565b34801561050a575f80fd5b5061023b610519366004611792565b61141e565b348015610529575f80fd5b506009546102c09062010000900460ff1681565b348015610548575f80fd5b5061037261055736600461191e565b600e60209081525f928352604080842090915290825290205460ff1681565b348015610581575f80fd5b506009546102c0906301000000900460ff1681565b3480156105a1575f80fd5b506009546102c090640100000000900460ff1681565b3480156105c2575f80fd5b5061023b6105d1366004611792565b6115d7565b3480156105e1575f80fd5b506105f56105f0366004611b63565b61164e565b6040516101fe9190611b7e565b34801561060d575f80fd5b5061023b61061c366004611b63565b6116b7565b34801561062c575f80fd5b506101f461063b366004611bc0565b611703565b61064861172e565b5f818152600a60205260409020600781015460ff1661069d5760405162461bcd60e51b815260206004820152600c60248201526b1b9bdd081b185d5b98da195960a21b60448201526064015b60405180910390fd5b5f828152600d6020908152604080832033845290915290205460ff16156106f05760405162461bcd60e51b815260206004820152600760248201526618db185a5b595960ca1b6044820152606401610694565b5f828152600d60209081526040808320338085529252808320805460ff1916600117905551909184917f6aa3eac93d079e5e100b1029be716caa33586c96aa4baac390669fb5c2a212129190a3600281015460405163df8de3e760e01b81523360048201526001600160a01b039091169063df8de3e7906024015b5f604051808303815f87803b158015610782575f80fd5b505af1158015610794573d5f803e3d5ffd5b50505050506107a260015f55565b50565b5f858152600a602052604090205485906001600160a01b031633146107f95760405162461bcd60e51b815260206004820152600a6024820152692737ba31b932b0ba37b960b11b6044820152606401610694565b5f868152600f60205260409020806108118782611c6e565b50600181016108208682611c6e565b506002810161082f8582611c6e565b506003810161083e8482611c6e565b50867fa84b68d53abf9d5a13dc3b2ae10fca1431648d7700d118d1845ca7a0fc004b178787878760405161087594939291906119de565b60405180910390a250505050505050565b61088e61172e565b5f818152600a60205260409020600781015460ff16156108c05760405162461bcd60e51b815260040161069490611d29565b80600601548160050154101561090e5760405162461bcd60e51b81526020600482015260136024820152721b195cdcc81d1a185b881cd85b194819dbd85b606a1b6044820152606401610694565b80546001600160a01b031633148061093057506001546001600160a01b031633145b61096d5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b6044820152606401610694565b60078101805460ff19166001179055604051339083907fd0a2553f18d036c44347541a66ad9230e797b91ecd1746a2773d099f05633676905f90a3600281810154905460095460405163c4c69d8f60e01b81526001600160a01b03928316600482015260ff610100830481166024830152620100008304811660448301526301000000830481166064830152640100000000909204909116608482015291169063c4c69d8f9060a40161076b565b6001546001600160a01b03163314610a455760405162461bcd60e51b815260040161069490611d4b565b5f8160ff16118015610a5b575060648160ff1611155b610a9f5760405162461bcd60e51b8152602060048201526015602482015274496e76616c69642063726561746f7220736861726560581b6044820152606401610694565b6009805460ff191660ff92909216919091179055565b6001546001600160a01b03163314610adf5760405162461bcd60e51b815260040161069490611d4b565b600593909355600691909155600755600855565b600f6020525f9081526040902080548190610b0d90611bea565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3990611bea565b8015610b845780601f10610b5b57610100808354040283529160200191610b84565b820191905f5260205f20905b815481529060010190602001808311610b6757829003601f168201915b505050505090806001018054610b9990611bea565b80601f0160208091040260200160405190810160405280929190818152602001828054610bc590611bea565b8015610c105780601f10610be757610100808354040283529160200191610c10565b820191905f5260205f20905b815481529060010190602001808311610bf357829003601f168201915b505050505090806002018054610c2590611bea565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5190611bea565b8015610c9c5780601f10610c7357610100808354040283529160200191610c9c565b820191905f5260205f20905b815481529060010190602001808311610c7f57829003601f168201915b505050505090806003018054610cb190611bea565b80601f0160208091040260200160405190810160405280929190818152602001828054610cdd90611bea565b8015610d285780601f10610cff57610100808354040283529160200191610d28565b820191905f5260205f20905b815481529060010190602001808311610d0b57829003601f168201915b5050505050905084565b6001546001600160a01b03163314610d5c5760405162461bcd60e51b815260040161069490611d4b565b600455565b610d6961172e565b5f8282333060055460065460085460095f9054906101000a900460ff16604051610d9290611785565b610da3989796959493929190611d72565b604051809103905ff080158015610dbc573d5f803e3d5ffd5b5090505f60045442610dce9190611deb565b9050604051806101400160405280336001600160a01b03168152602001836001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610e27573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e4b9190611e04565b6001600160a01b039081168252848116602080840191909152604080840189905260608085018990525f6080860181905260075460a087015260c0860181905260e08601819052610100909501879052600380548652600a845294829020865181549086166001600160a01b03199182161782559387015160018201805491871691861691909117905591860151600283018054919095169316929092179092558301519091820190610efe9082611c6e565b5060808201516004820190610f139082611c6e565b5060a0820151600582015560c0820151600682015560e08201516007820180546101008086015115150261ff00199315159390931661ffff19909116179190911790556101209091015160089091015560035460408051637e062a3560e11b815290513392917fbb22ba380a1e5d7775ee59bc7b93f3e9ced4ebec32bb0e243390b2aefc537caa916001600160a01b0387169163fc0c546a9160048083019260209291908290030181865afa158015610fce573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ff29190611e04565b60075460405161100a929188918b918b918a90611e1f565b60405180910390a360038054905f61102183611e72565b9190505550505061103160015f55565b5050565b600a6020525f908152604090208054600182015460028301546003840180546001600160a01b039485169593851694909216929161107290611bea565b80601f016020809104026020016040519081016040528092919081815260200182805461109e90611bea565b80156110e95780601f106110c0576101008083540402835291602001916110e9565b820191905f5260205f20905b8154815290600101906020018083116110cc57829003601f168201915b5050505050908060040180546110fe90611bea565b80601f016020809104026020016040519081016040528092919081815260200182805461112a90611bea565b80156111755780601f1061114c57610100808354040283529160200191611175565b820191905f5260205f20905b81548152906001019060200180831161115857829003601f168201915b505050506005830154600684015460078501546008909501549394919390925060ff80831692610100900416908a565b6001546001600160a01b031633146111cf5760405162461bcd60e51b815260040161069490611d4b565b6009805462ffff00191661010060ff9687160262ff000019161762010000948616949094029390931764ffff000000191663010000009285169290920264ff000000001916919091176401000000009190931602919091179055565b61123361172e565b5f818152600a60205260409020600781015460ff16156112655760405162461bcd60e51b815260040161069490611d29565b600681015461127c9067016345785d8a0000611deb565b8160050154106112bd5760405162461bcd60e51b815260206004820152600c60248201526b19dbd85b081c995858da195960a21b6044820152606401610694565b80600801544211156112fb5760405162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b6044820152606401610694565b5f828152600b6020908152604080832033845290915281208054349290611323908490611deb565b9250508190555034816005015f82825461133d9190611deb565b9091555050335f818152600c602090815260408083208054600181018255908452828420018690556005850154868452600b83528184208585528352928190205481519384529183019190915284917ff9b7589b7a8d939b9da5dae90770378fe5fd7802be5d66432e85bedbdbfbcb7a910160405180910390a360028101546040516373e888fd60e01b81523360048201526001600160a01b03909116906373e888fd9034906024015f604051808303818588803b1580156113fd575f80fd5b505af115801561140f573d5f803e3d5ffd5b5050505050506107a260015f55565b61142661172e565b5f818152600a60205260409020600781015460ff16156114585760405162461bcd60e51b815260040161069490611d29565b806008015442116114a25760405162461bcd60e51b8152602060048201526014602482015273191958591b1a5b99481b9bdd081c995858da195960621b6044820152606401610694565b80600601548160050154106114e75760405162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b6044820152606401610694565b5f828152600e6020908152604080832033845290915290205460ff161561153a5760405162461bcd60e51b815260206004820152600760248201526618db185a5b595960ca1b6044820152606401610694565b5f828152600e6020908152604080832033808552908352818420805460ff19166001179055858452600b835281842081855283529281902054905190815284917f4dae6f4e22ce401aa8fd59c99a85fca9b381e32b9d81ad764d9f0ccc99b3ba5b910160405180910390a3600281015460405163b9795b6d60e01b81523360048201526001600160a01b039091169063b9795b6d9060240161076b565b6001546001600160a01b031633146116015760405162461bcd60e51b815260040161069490611d4b565b61160961172e565b5f818152600a602052604090819020600281015460015492516352dfc76360e11b81526001600160a01b0393841660048201529192169063a5bf8ec69060240161076b565b6001600160a01b0381165f908152600c60209081526040918290208054835181840281018401909452808452606093928301828280156116ab57602002820191905f5260205f20905b815481526020019060010190808311611697575b50505050509050919050565b6001546001600160a01b031633146116e15760405162461bcd60e51b815260040161069490611d4b565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b600c602052815f5260405f20818154811061171c575f80fd5b905f5260205f20015f91509150505481565b60025f540361177f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610694565b60025f55565b611ffd80611e8b83390190565b5f602082840312156117a2575f80fd5b5035919050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f8301126117cc575f80fd5b813567ffffffffffffffff8111156117e6576117e66117a9565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715611815576118156117a9565b60405281815283820160200185101561182c575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f805f60a0868803121561185c575f80fd5b85359450602086013567ffffffffffffffff811115611879575f80fd5b611885888289016117bd565b945050604086013567ffffffffffffffff8111156118a1575f80fd5b6118ad888289016117bd565b935050606086013567ffffffffffffffff8111156118c9575f80fd5b6118d5888289016117bd565b925050608086013567ffffffffffffffff8111156118f1575f80fd5b6118fd888289016117bd565b9150509295509295909350565b6001600160a01b03811681146107a2575f80fd5b5f806040838503121561192f575f80fd5b8235915060208301356119418161190a565b809150509250929050565b803560ff8116811461195c575f80fd5b919050565b5f60208284031215611971575f80fd5b61197a8261194c565b9392505050565b5f805f8060808587031215611994575f80fd5b5050823594602084013594506040840135936060013592509050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b608081525f6119f060808301876119b0565b8281036020840152611a0281876119b0565b90508281036040840152611a1681866119b0565b90508281036060840152611a2a81856119b0565b979650505050505050565b5f8060408385031215611a46575f80fd5b823567ffffffffffffffff811115611a5c575f80fd5b611a68858286016117bd565b925050602083013567ffffffffffffffff811115611a84575f80fd5b611a90858286016117bd565b9150509250929050565b6001600160a01b038b811682528a8116602083015289166040820152610140606082018190525f90611ace9083018a6119b0565b8281036080840152611ae0818a6119b0565b60a0840198909852505060c081019490945291151560e084015215156101008301526101209091015295945050505050565b5f805f8060808587031215611b25575f80fd5b611b2e8561194c565b9350611b3c6020860161194c565b9250611b4a6040860161194c565b9150611b586060860161194c565b905092959194509250565b5f60208284031215611b73575f80fd5b813561197a8161190a565b602080825282518282018190525f918401906040840190835b81811015611bb5578351835260209384019390920191600101611b97565b509095945050505050565b5f8060408385031215611bd1575f80fd5b8235611bdc8161190a565b946020939093013593505050565b600181811c90821680611bfe57607f821691505b602082108103611c1c57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115611c6957805f5260205f20601f840160051c81016020851015611c475750805b601f840160051c820191505b81811015611c66575f8155600101611c53565b50505b505050565b815167ffffffffffffffff811115611c8857611c886117a9565b611c9c81611c968454611bea565b84611c22565b6020601f821160018114611cce575f8315611cb75750848201515b5f19600385901b1c1916600184901b178455611c66565b5f84815260208120601f198516915b82811015611cfd5787850151825560209485019460019092019101611cdd565b5084821015611d1a57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b6020808252600890820152671b185d5b98da195960c21b604082015260600190565b6020808252600d908201526c2737ba103a34329037bbb732b960991b604082015260600190565b61010081525f611d8661010083018b6119b0565b8281036020840152611d98818b6119b0565b6001600160a01b03998a16604085015297909816606083015250608081019490945260a084019290925260c083015260ff1660e0909101529392505050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115611dfe57611dfe611dd7565b92915050565b5f60208284031215611e14575f80fd5b815161197a8161190a565b6001600160a01b0387811682528616602082015260c0604082018190525f90611e4a908301876119b0565b8281036060840152611e5c81876119b0565b6080840195909552505060a00152949350505050565b5f60018201611e8357611e83611dd7565b506001019056fe6080604052600a80546001600160a01b031990811673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc217909155600b8054909116739a27cb5ae0b2cee0bb71f9a85c0d60f3920757b4179055348015610057575f80fd5b50604051611ffd380380611ffd833981016040819052610076916101fb565b60015f908155600280546001600160a01b03808a166001600160a01b03199283161790925560038054928916929091169190911790556005859055600484905560078390556008805460ff841660ff1990911617905560405189908990879030906100e090610136565b6100ed94939291906102e5565b604051809103905ff080158015610106573d5f803e3d5ffd5b50600180546001600160a01b0319166001600160a01b03929092169190911790555061032b975050505050505050565b610cbf8061133e83390190565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610166575f80fd5b81516001600160401b0381111561017f5761017f610143565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101ad576101ad610143565b6040528181528382016020018510156101c4575f80fd5b8160208501602083015e5f918101602001919091529392505050565b80516001600160a01b03811681146101f6575f80fd5b919050565b5f805f805f805f80610100898b031215610213575f80fd5b88516001600160401b03811115610228575f80fd5b6102348b828c01610157565b60208b015190995090506001600160401b03811115610251575f80fd5b61025d8b828c01610157565b97505061026c60408a016101e0565b955061027a60608a016101e0565b60808a015160a08b015160c08c015160e08d01519398509196509450925060ff811681146102a6575f80fd5b809150509295985092959890939650565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b608081525f6102f760808301876102b7565b828103602084015261030981876102b7565b604084019590955250506001600160a01b039190911660609091015292915050565b611006806103385f395ff3fe6080604052600436106100fd575f3560e01c80638091f3bf11610092578063c45a015511610062578063c45a0155146102a6578063c4c69d8f146102c5578063c5c4744c146102e4578063df8de3e7146102f9578063fc0c546a14610318575f80fd5b80638091f3bf146102255780638d3d657614610253578063a5bf8ec614610268578063b9795b6d14610287575f80fd5b806360219c7b116100cd57806360219c7b146101bb5780636334a8c4146101d057806373e888fd146101fb5780637e1c0c0914610210575f80fd5b806302d05d3f146101085780632c5b5ae21461014457806342e94c90146101635780634f0e0ef31461019c575f80fd5b3661010457005b5f80fd5b348015610113575f80fd5b50600254610127906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014f575f80fd5b50600b54610127906001600160a01b031681565b34801561016e575f80fd5b5061018e61017d366004610d09565b60096020525f908152604090205481565b60405190815260200161013b565b3480156101a7575f80fd5b50600a54610127906001600160a01b031681565b3480156101c6575f80fd5b5061018e60045481565b3480156101db575f80fd5b506008546101e99060ff1681565b60405160ff909116815260200161013b565b61020e610209366004610d09565b610337565b005b34801561021b575f80fd5b5061018e60055481565b348015610230575f80fd5b5060085461024390610100900460ff1681565b604051901515815260200161013b565b34801561025e575f80fd5b5061018e60075481565b348015610273575f80fd5b5061020e610282366004610d09565b61045c565b348015610292575f80fd5b5061020e6102a1366004610d09565b610627565b3480156102b1575f80fd5b50600354610127906001600160a01b031681565b3480156102d0575f80fd5b5061020e6102df366004610d39565b610732565b3480156102ef575f80fd5b5061018e60065481565b348015610304575f80fd5b5061020e610313366004610d09565b610a51565b348015610323575f80fd5b50600154610127906001600160a01b031681565b6003546001600160a01b0316331461036a5760405162461bcd60e51b815260040161036190610da6565b60405180910390fd5b610372610c9e565b600854610100900460ff161561039a5760405162461bcd60e51b815260040161036190610dcc565b6007546001600160a01b0382165f908152600960205260409020546103c0903490610e0f565b111561040e5760405162461bcd60e51b815260206004820152601860248201527f436f6e747269627574696f6e2065786365656473206d617800000000000000006044820152606401610361565b6001600160a01b0381165f9081526009602052604081208054349290610435908490610e0f565b925050819055503460065f82825461044d9190610e0f565b909155505060015f5550565b50565b6003546001600160a01b031633146104865760405162461bcd60e51b815260040161036190610da6565b61048e610c9e565b600b54600154600a5460405163e6a4390560e01b81526001600160a01b03928316600482015290821660248201529116905f90829063e6a4390590604401602060405180830381865afa1580156104e7573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061050b9190610e28565b90506001600160a01b0381166105545760405162461bcd60e51b815260206004820152600e60248201526d14185a5c881b9bdd08199bdd5b9960921b6044820152606401610361565b5f819050806001600160a01b031663666da64f6040518163ffffffff1660e01b81526004015f604051808303815f87803b158015610590575f80fd5b505af11580156105a2573d5f803e3d5ffd5b504792505050806105e65760405162461bcd60e51b815260206004820152600e60248201526d139bc81155120818db185a5b595960921b6044820152606401610361565b6040516001600160a01b0386169082156108fc029083905f818181858888f19350505050158015610619573d5f803e3d5ffd5b505050505061045960015f55565b6003546001600160a01b031633146106515760405162461bcd60e51b815260040161036190610da6565b610659610c9e565b600854610100900460ff16156106815760405162461bcd60e51b815260040161036190610dcc565b6001600160a01b0381165f90815260096020526040902054806106e65760405162461bcd60e51b815260206004820152601960248201527f4e6f20636f6e747269627574696f6e20746f20726566756e64000000000000006044820152606401610361565b6001600160a01b0382165f818152600960205260408082208290555183156108fc0291849190818181858888f19350505050158015610727573d5f803e3d5ffd5b505061045960015f55565b6003546001600160a01b0316331461075c5760405162461bcd60e51b815260040161036190610da6565b610764610c9e565b600854610100900460ff161561078c5760405162461bcd60e51b815260040161036190610dcc565b6008805461ff0019166101001790556001546040805163313ce56760e01b815290515f926001600160a01b03169163313ce5679160048083019260209291908290030181865afa1580156107e2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108069190610e43565b61081190600a610f41565b6004546005546108219190610f4f565b61082b9190610f62565b600654600854919250905f9060649083906108499060ff1683610f79565b60ff166108569190610f62565b6108609190610f92565b60015460405163095ea7b360e01b81526001600160a01b038b811660048301526024820187905292935091169063095ea7b3906044016020604051808303815f875af11580156108b2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108d69190610fb1565b6109145760405162461bcd60e51b815260206004820152600f60248201526e105c1c1c9bdd985b0819985a5b1959608a1b6044820152606401610361565b600154600254604051637f0dfdd360e11b81526001600160a01b039283166004820152602481018690525f60448201819052606482015260ff808b166084830152808a1660a483015280891660c4830152871660e48201529082166101048201529089169063fe1bfba6908390610124015f604051808303818588803b15801561099c575f80fd5b505af11580156109ae573d5f803e3d5ffd5b5047935050508115159050610a055760405162461bcd60e51b815260206004820152601c60248201527f4e6f2062616c616e636520666f722063726561746f72207368617265000000006044820152606401610361565b6002546040516001600160a01b039091169082156108fc029083905f818181858888f19350505050158015610a3c573d5f803e3d5ffd5b5050505050610a4a60015f55565b5050505050565b6003546001600160a01b03163314610a7b5760405162461bcd60e51b815260040161036190610da6565b610a83610c9e565b600854610100900460ff16610ace5760405162461bcd60e51b815260206004820152601160248201527014d85b19481b9bdd081b185d5b98da1959607a1b6044820152606401610361565b6001600160a01b0381165f9081526009602052604090205480610b255760405162461bcd60e51b815260206004820152600f60248201526e27379031b7b73a3934b13aba34b7b760891b6044820152606401610361565b6001546040805163313ce56760e01b815290515f926001600160a01b03169163313ce5679160048083019260209291908290030181865afa158015610b6c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b909190610e43565b90505f60065482600a610ba39190610f41565b600454610bb09086610f62565b610bba9190610f62565b610bc49190610f92565b6001600160a01b038581165f8181526009602052604080822091909155600154905163a9059cbb60e01b815260048101929092526024820184905292935091169063a9059cbb906044016020604051808303815f875af1158015610c2a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c4e9190610fb1565b610c925760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610361565b50505061045960015f55565b60025f5403610cef5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610361565b60025f55565b6001600160a01b0381168114610459575f80fd5b5f60208284031215610d19575f80fd5b8135610d2481610cf5565b9392505050565b60ff81168114610459575f80fd5b5f805f805f60a08688031215610d4d575f80fd5b8535610d5881610cf5565b94506020860135610d6881610d2b565b93506040860135610d7881610d2b565b92506060860135610d8881610d2b565b91506080860135610d9881610d2b565b809150509295509295909350565b6020808252600c908201526b4f6e6c7920666163746f727960a01b604082015260600190565b60208082526015908201527414d85b1948185b1c9958591e481b185d5b98da1959605a1b604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610e2257610e22610dfb565b92915050565b5f60208284031215610e38575f80fd5b8151610d2481610cf5565b5f60208284031215610e53575f80fd5b8151610d2481610d2b565b6001815b6001841115610e9957808504811115610e7d57610e7d610dfb565b6001841615610e8b57908102905b60019390931c928002610e62565b935093915050565b5f82610eaf57506001610e22565b81610ebb57505f610e22565b8160018114610ed15760028114610edb57610ef7565b6001915050610e22565b60ff841115610eec57610eec610dfb565b50506001821b610e22565b5060208310610133831016604e8410600b8410161715610f1a575081810a610e22565b610f265f198484610e5e565b805f1904821115610f3957610f39610dfb565b029392505050565b5f610d2460ff841683610ea1565b81810381811115610e2257610e22610dfb565b8082028115828204841417610e2257610e22610dfb565b60ff8281168282160390811115610e2257610e22610dfb565b5f82610fac57634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215610fc1575f80fd5b81518015158114610d24575f80fdfea264697066735822122027ef21838595f0696bf385c053475ae955ce47b3f0baaf503bdf8d4220b5177e64736f6c634300081a0033608060405234801561000f575f80fd5b50604051610cbf380380610cbf83398101604081905261002e91610296565b8383600361003c83826103a7565b50600461004982826103a7565b5050600580546001600160a01b0319166001600160a01b0384161790555061008d81610073601290565b61007e90600a61055a565b610088908561056f565b610096565b50505050610599565b6001600160a01b0382166100c45760405163ec442f0560e01b81525f60048201526024015b60405180910390fd5b6100cf5f83836100d3565b5050565b6001600160a01b0383166100fd578060025f8282546100f29190610586565b9091555061016d9050565b6001600160a01b0383165f908152602081905260409020548181101561014f5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100bb565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610189576002805482900390556101a7565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516101ec91815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011261021c575f80fd5b81516001600160401b03811115610235576102356101f9565b604051601f8201601f19908116603f011681016001600160401b0381118282101715610263576102636101f9565b60405281815283820160200185101561027a575f80fd5b8160208501602083015e5f918101602001919091529392505050565b5f805f80608085870312156102a9575f80fd5b84516001600160401b038111156102be575f80fd5b6102ca8782880161020d565b602087015190955090506001600160401b038111156102e7575f80fd5b6102f38782880161020d565b60408701516060880151919550935090506001600160a01b0381168114610318575f80fd5b939692955090935050565b600181811c9082168061033757607f821691505b60208210810361035557634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156103a257805f5260205f20601f840160051c810160208510156103805750805b601f840160051c820191505b8181101561039f575f815560010161038c565b50505b505050565b81516001600160401b038111156103c0576103c06101f9565b6103d4816103ce8454610323565b8461035b565b6020601f821160018114610406575f83156103ef5750848201515b5f19600385901b1c1916600184901b17845561039f565b5f84815260208120601f198516915b828110156104355787850151825560209485019460019092019101610415565b508482101561045257868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b6001815b60018411156104b05780850481111561049457610494610461565b60018416156104a257908102905b60019390931c928002610479565b935093915050565b5f826104c657506001610554565b816104d257505f610554565b81600181146104e857600281146104f25761050e565b6001915050610554565b60ff84111561050357610503610461565b50506001821b610554565b5060208310610133831016604e8410600b8410161715610531575081810a610554565b61053d5f198484610475565b805f190482111561055057610550610461565b0290505b92915050565b5f61056860ff8416836104b8565b9392505050565b808202811582820484141761055457610554610461565b8082018082111561055457610554610461565b610719806105a65f395ff3fe608060405234801561000f575f80fd5b506004361061009b575f3560e01c806370a082311161006357806370a082311461011457806395d89b411461013c578063a9059cbb14610144578063daf6ca3014610157578063dd62ed3e14610182575f80fd5b806306fdde031461009f578063095ea7b3146100bd57806318160ddd146100e057806323b872dd146100f2578063313ce56714610105575b5f80fd5b6100a76101ba565b6040516100b49190610589565b60405180910390f35b6100d06100cb3660046105d9565b61024a565b60405190151581526020016100b4565b6002545b6040519081526020016100b4565b6100d0610100366004610601565b610263565b604051601281526020016100b4565b6100e461012236600461063b565b6001600160a01b03165f9081526020819052604090205490565b6100a7610286565b6100d06101523660046105d9565b610295565b60055461016a906001600160a01b031681565b6040516001600160a01b0390911681526020016100b4565b6100e461019036600461065b565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6060600380546101c99061068c565b80601f01602080910402602001604051908101604052809291908181526020018280546101f59061068c565b80156102405780601f1061021757610100808354040283529160200191610240565b820191905f5260205f20905b81548152906001019060200180831161022357829003601f168201915b5050505050905090565b5f336102578185856102a2565b60019150505b92915050565b5f336102708582856102b4565b61027b858585610334565b506001949350505050565b6060600480546101c99061068c565b5f33610257818585610334565b6102af8383836001610391565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f19811461032e578181101561032057604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b61032e84848484035f610391565b50505050565b6001600160a01b03831661035d57604051634b637e8f60e11b81525f6004820152602401610317565b6001600160a01b0382166103865760405163ec442f0560e01b81525f6004820152602401610317565b6102af838383610463565b6001600160a01b0384166103ba5760405163e602df0560e01b81525f6004820152602401610317565b6001600160a01b0383166103e357604051634a1406b160e11b81525f6004820152602401610317565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561032e57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161045591815260200190565b60405180910390a350505050565b6001600160a01b03831661048d578060025f82825461048291906106c4565b909155506104fd9050565b6001600160a01b0383165f90815260208190526040902054818110156104df5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610317565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661051957600280548290039055610537565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161057c91815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146105d4575f80fd5b919050565b5f80604083850312156105ea575f80fd5b6105f3836105be565b946020939093013593505050565b5f805f60608486031215610613575f80fd5b61061c846105be565b925061062a602085016105be565b929592945050506040919091013590565b5f6020828403121561064b575f80fd5b610654826105be565b9392505050565b5f806040838503121561066c575f80fd5b610675836105be565b9150610683602084016105be565b90509250929050565b600181811c908216806106a057607f821691505b6020821081036106be57634e487b7160e01b5f52602260045260245ffd5b50919050565b8082018082111561025d57634e487b7160e01b5f52601160045260245ffdfea26469706673582212209be8ed2369d484737852b85ff8c30872d00568fa330698806cef123c3a3588cd64736f6c634300081a0033a2646970667358221220dccb9a3751d03e3cb99e1b7ef9fb800ec470236ea619e134772b68a588c6670064736f6c634300081a0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.