false
true
0

Contract Address Details

0x1538A64359405AD711dBB8f2470293CA4e6549a5

Contract Name
Blowsom
Creator
0xa9a6e6–b8e906 at 0x35a50c–c002f5
Balance
4.005 tPLS
Tokens
Fetching tokens...
Transactions
Fetching transactions...
Transfers
Fetching transfers...
Gas Used
Fetching gas used...
Last Balance Update
26048724
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
Blowsom




Optimization enabled
false
Compiler version
v0.8.28+commit.7893614a




EVM Version




Verified at
2026-11-09T22:07:38.793141Z

Constructor Arguments

0000000000000000000000004af06946f79151ab69007ba19111db5fb82cb398

Arg [0] (address) : 0x4af06946f79151ab69007ba19111db5fb82cb398

              

project/contracts/Blowsom.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.28;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

/// @title Blowsom
/// @notice Crowdfunding without a middleman. Anyone can create a campaign with a goal and a deadline,
///         in one chosen coin: native PLS or an ERC-20 token. The goal, contributions, refunds and the
///         fee are all in that coin.
///         - Once contributions reach the goal, the creator can claim the funds: right away, or at the
///           latest `CLAIM_PERIOD` (30 days) after the deadline.
///         - If the deadline passes without reaching the goal, every backer takes their contribution
///           back.
///         - If the creator doesn't claim within 30 days after the deadline, backers take their
///           contributions back and the creator loses the right to claim.
///         - The creator can cancel the campaign until they claim the funds. Backers can then take
///           their contributions back right away.
///         A backer can take a refund themselves (`refund`), or anyone can refund many backers at once
///         (`refundFor`); the money always goes to whoever contributed it.
///         On a successful claim, 1% of the amount raised is the protocol fee. Refunds are in full.
///         The creator can add stretch goals (what they'll do on top once the campaign passes them) and
///         updates for backers. Neither can be changed or removed.
///         The contract has no owner, no pause and can't be upgraded. The fee recipient can only hand
///         the role over: it can't change the rate and has no access to campaigns.
contract Blowsom is ReentrancyGuard {
    using SafeERC20 for IERC20;

    /// @notice Value of the `token` field that means native PLS.
    address public constant NATIVE = address(0);
    enum Status {
        Active, //     collecting, goal not reached yet
        Successful, // goal reached, the creator can claim (contributions until the deadline, claim until 30 days after it)
        Failed, //     deadline passed, goal not reached: refunds
        Claimed, //    the creator claimed the funds
        Cancelled, //  the creator cancelled: refunds
        Expired //     goal reached, but the creator didn't claim within 30 days after the deadline: refunds
    }

    struct Campaign {
        address creator;
        uint64 deadline;
        bool claimed;
        bool cancelled;
        /// Category for filtering in the frontend. The contract doesn't check it:
        /// the category list lives in the frontend, and an unknown id means "Other".
        uint8 category;
        /// Number of distinct addresses that contributed.
        uint32 backers;
        /// The campaign's coin: `NATIVE` (PLS) or an ERC-20 token address. The contract keeps no list of
        /// allowed tokens (it has no owner); the frontend keeps the list of coins to choose from.
        address token;
        /// Goal in the smallest units of the campaign's coin (wei for PLS, 1e-6 for USDC, etc.).
        uint256 goal;
        /// Sum of all contributions. It doesn't go down on refunds, so after the deadline it settles
        /// unambiguously whether the campaign succeeded.
        uint256 raised;
        string title;
        string description;
        /// Image link (https:// or ipfs://). The contract only checks its length.
        string image;
    }

    struct CampaignView {
        uint256 id;
        address creator;
        uint64 deadline;
        bool claimed;
        bool cancelled;
        uint8 category;
        uint32 backers;
        address token;
        Status status;
        uint256 goal;
        uint256 raised;
        string title;
        string description;
        string image;
    }

    /// A stretch goal above the goal: what the creator will do on top once contributions pass it.
    struct StretchGoal {
        /// Amount in the smallest units of the campaign's coin, like the goal.
        uint256 amount;
        string text;
    }

    /// @notice Protocol fee in basis points (100 = 1%), taken only on claim.
    uint256 public constant FEE_BPS = 100;
    uint256 private constant BPS = 10_000;
    uint256 public constant MIN_DURATION = 1 hours;
    uint256 public constant MAX_DURATION = 90 days;
    /// @notice How long after the deadline the creator of a successful campaign has to claim. After that, backers
    ///         take their contributions back, so the money doesn't get stuck forever if the creator loses their key
    ///         or disappears.
    uint256 public constant CLAIM_PERIOD = 30 days;
    uint256 public constant MAX_TITLE_LENGTH = 100;
    uint256 public constant MAX_DESCRIPTION_LENGTH = 2000;
    uint256 public constant MAX_IMAGE_LENGTH = 300;
    uint256 public constant MAX_STRETCH_GOALS = 10;
    uint256 public constant MAX_STRETCH_GOAL_LENGTH = 200;
    uint256 public constant MAX_UPDATE_LENGTH = 2000;
    uint256 public constant MAX_PAGE_SIZE = 100;
    /// @notice Gas for each PLS recipient when refunding on others' behalf (`refundFor`). Enough for regular accounts
    ///         and contract wallets; whoever needs more or rejects the transfer takes the refund themselves (`refund`).
    uint256 public constant REFUND_GAS = 50_000;

    /// @notice Address the fees go to. The current recipient hands the role over, in two steps.
    address public feeRecipient;
    /// @notice Successor named by the current recipient (`transferFeeRecipient`) who hasn't accepted the role yet
    ///         (`acceptFeeRecipient`). `address(0)` when nobody is waiting.
    address public pendingFeeRecipient;
    /// @notice Fees waiting to be withdrawn, separately for each coin. They're withdrawn separately (`withdrawFees`)
    ///         so that a recipient that rejects transfers can't block creators from claiming.
    mapping(address token => uint256 amount) public accruedFees;

    uint256 public campaignCount;
    mapping(uint256 id => Campaign) private _campaigns;
    mapping(uint256 id => mapping(address contributor => uint256 amount)) public contributions;
    mapping(uint256 id => StretchGoal[]) private _stretchGoals;

    event CampaignCreated(
        uint256 indexed id,
        address indexed creator,
        address indexed token,
        uint256 goal,
        uint64 deadline,
        uint8 category,
        string title
    );
    event Contributed(uint256 indexed id, address indexed contributor, uint256 amount);
    /// @param amount Amount the creator received (after the fee).
    event Claimed(uint256 indexed id, address indexed creator, uint256 amount, uint256 fee);
    event Refunded(uint256 indexed id, address indexed contributor, uint256 amount);
    event Cancelled(uint256 indexed id);
    event StretchGoalAdded(uint256 indexed id, uint256 amount, string text);
    /// @notice A creator's update for backers. The text lives only in the event.
    event UpdatePosted(uint256 indexed id, string text);
    event FeeRecipientTransferStarted(address indexed current, address indexed pending);
    event FeeRecipientChanged(address indexed previous, address indexed current);
    event FeesWithdrawn(address indexed token, address indexed recipient, uint256 amount);

    error InvalidGoal();
    error InvalidDuration();
    error InvalidTitle();
    error DescriptionTooLong();
    error ImageTooLong();
    error StretchGoalTooLow();
    error InvalidStretchGoalText();
    error TooManyStretchGoals();
    error InvalidUpdate();
    error InvalidToken();
    error WrongValue();
    error CampaignNotFound();
    error NotCreator();
    error NotAcceptingContributions();
    error ZeroAmount();
    error GoalNotReached();
    error ClaimPeriodOver();
    error AlreadyClaimed();
    error AlreadyCancelled();
    error NotRefundable();
    error NothingToRefund();
    error TransferFailed();
    error InvalidFeeRecipient();
    error NotFeeRecipient();
    error NotPendingFeeRecipient();
    error NothingToWithdraw();

    constructor(address initialFeeRecipient) {
        if (initialFeeRecipient == address(0)) revert InvalidFeeRecipient();
        feeRecipient = initialFeeRecipient;
        emit FeeRecipientChanged(address(0), initialFeeRecipient);
    }

    /// @notice Creates a new campaign.
    /// @param goal Goal in the coin's smallest units (1 PLS = 1e18 wei).
    /// @param duration Duration in seconds.
    /// @param token `NATIVE` for PLS or the address of an ERC-20 token contract.
    function createCampaign(
        uint256 goal,
        uint256 duration,
        uint8 category,
        address token,
        string calldata title,
        string calldata description,
        string calldata image
    ) external returns (uint256 id) {
        if (goal == 0) revert InvalidGoal();
        if (duration < MIN_DURATION || duration > MAX_DURATION) revert InvalidDuration();
        if (bytes(title).length == 0 || bytes(title).length > MAX_TITLE_LENGTH) revert InvalidTitle();
        if (bytes(description).length > MAX_DESCRIPTION_LENGTH) revert DescriptionTooLong();
        if (bytes(image).length > MAX_IMAGE_LENGTH) revert ImageTooLong();
        // A typo in the address (an account instead of a contract) would make a campaign nobody can contribute to.
        if (token != NATIVE && token.code.length == 0) revert InvalidToken();

        id = campaignCount++;

        Campaign storage c = _campaigns[id];
        c.creator = msg.sender;
        c.deadline = uint64(block.timestamp + duration);
        c.category = category;
        c.token = token;
        c.goal = goal;
        c.title = title;
        c.description = description;
        c.image = image;

        emit CampaignCreated(id, msg.sender, token, goal, c.deadline, category, title);
    }

    /// @notice Contribution to a campaign in its coin. Accepted until the deadline, also after the goal is reached,
    ///         as long as the creator hasn't claimed.
    ///         PLS: `amount` must equal `msg.value`. Token: `msg.value` = 0, after an `approve` for this contract
    ///         of at least `amount`.
    function contribute(uint256 id, uint256 amount) external payable nonReentrant {
        Campaign storage c = _get(id);
        if (amount == 0) revert ZeroAmount();
        if (!_isOpen(c)) revert NotAcceptingContributions();

        uint256 received;
        if (c.token == NATIVE) {
            if (msg.value != amount) revert WrongValue();
            received = amount;
        } else {
            if (msg.value != 0) revert WrongValue();
            // Count what actually arrived: a token with a transfer tax won't make the sum of contributions
            // drift away from the contract's balance.
            IERC20 token = IERC20(c.token);
            uint256 balanceBefore = token.balanceOf(address(this));
            token.safeTransferFrom(msg.sender, address(this), amount);
            received = token.balanceOf(address(this)) - balanceBefore;
            if (received == 0) revert ZeroAmount();
        }

        // A refund zeroes the contribution, but by then the campaign no longer accepts contributions,
        // so nobody gets counted twice.
        if (contributions[id][msg.sender] == 0) c.backers++;
        c.raised += received;
        contributions[id][msg.sender] += received;

        emit Contributed(id, msg.sender, received);
    }

    /// @notice The creator claims the amount raised minus the fee, once the goal is reached.
    ///         At the latest `CLAIM_PERIOD` after the deadline; after that, the funds go back to the backers.
    function claim(uint256 id) external nonReentrant {
        Campaign storage c = _get(id);
        if (msg.sender != c.creator) revert NotCreator();
        if (c.claimed) revert AlreadyClaimed();
        if (c.cancelled) revert AlreadyCancelled();
        if (c.raised < c.goal) revert GoalNotReached();
        if (block.timestamp >= _claimDeadline(c)) revert ClaimPeriodOver();

        c.claimed = true;
        uint256 fee = (c.raised * FEE_BPS) / BPS;
        uint256 amount = c.raised - fee;
        accruedFees[c.token] += fee;

        emit Claimed(id, msg.sender, amount, fee);
        _send(c.token, msg.sender, amount);
    }

    /// @notice Refund of a contribution when the campaign failed, was cancelled, or the creator didn't claim
    ///         within `CLAIM_PERIOD` after the deadline.
    function refund(uint256 id) external nonReentrant {
        Campaign storage c = _get(id);
        if (!_isRefundable(c)) revert NotRefundable();

        uint256 amount = contributions[id][msg.sender];
        if (amount == 0) revert NothingToRefund();
        contributions[id][msg.sender] = 0;

        emit Refunded(id, msg.sender, amount);
        _send(c.token, msg.sender, amount);
    }

    /// @notice Refunds many backers at once, e.g. the creator after cancelling or anyone after a failed campaign.
    ///         Each contribution goes to whoever made it, and the caller only pays for gas. Addresses with nothing to
    ///         refund (already refunded or repeated) and those the transfer to failed are skipped, so one address
    ///         can't block the refund for everyone else. If nothing was refunded, the transaction reverts.
    /// @return count Number of contributions refunded.
    function refundFor(uint256 id, address[] calldata contributors) external nonReentrant returns (uint256 count) {
        Campaign storage c = _get(id);
        if (!_isRefundable(c)) revert NotRefundable();

        for (uint256 i = 0; i < contributors.length; i++) {
            address contributor = contributors[i];
            uint256 amount = contributions[id][contributor];
            if (amount == 0) continue;
            contributions[id][contributor] = 0;
            if (!_trySend(c.token, contributor, amount)) {
                contributions[id][contributor] = amount;
                continue;
            }
            count++;
            emit Refunded(id, contributor, amount);
        }
        if (count == 0) revert NothingToRefund();
    }

    /// @notice The creator cancels the campaign. Possible until the funds have been claimed.
    function cancel(uint256 id) external {
        Campaign storage c = _get(id);
        if (msg.sender != c.creator) revert NotCreator();
        if (c.claimed) revert AlreadyClaimed();
        if (c.cancelled) revert AlreadyCancelled();

        c.cancelled = true;

        emit Cancelled(id);
    }

    /// @notice The creator adds a stretch goal: what they'll do on top once contributions pass it.
    ///         Only while the campaign accepts contributions. Each stretch goal is above the goal and the previous
    ///         one, and none can be changed or removed. They don't protect the money: once the goal is reached, the
    ///         creator claims everything, even if no stretch goal was passed.
    function addStretchGoal(uint256 id, uint256 amount, string calldata text) external {
        Campaign storage c = _get(id);
        if (msg.sender != c.creator) revert NotCreator();
        if (!_isOpen(c)) revert NotAcceptingContributions();
        if (bytes(text).length == 0 || bytes(text).length > MAX_STRETCH_GOAL_LENGTH) revert InvalidStretchGoalText();

        StretchGoal[] storage goals = _stretchGoals[id];
        if (goals.length == MAX_STRETCH_GOALS) revert TooManyStretchGoals();
        uint256 previous = goals.length == 0 ? c.goal : goals[goals.length - 1].amount;
        if (amount <= previous) revert StretchGoalTooLow();

        goals.push(StretchGoal({amount: amount, text: text}));
        emit StretchGoalAdded(id, amount, text);
    }

    /// @notice The creator writes to backers. At any time, also after claiming or cancelling.
    ///         The text lives only in the event, so it can't be changed or removed.
    function postUpdate(uint256 id, string calldata text) external {
        if (msg.sender != _get(id).creator) revert NotCreator();
        if (bytes(text).length == 0 || bytes(text).length > MAX_UPDATE_LENGTH) revert InvalidUpdate();
        emit UpdatePosted(id, text);
    }

    /// @notice The current recipient names a successor. The role moves only once the successor accepts it
    ///         (`acceptFeeRecipient`), so a typo in the address breaks nothing. `address(0)` withdraws the nomination.
    function transferFeeRecipient(address newRecipient) external {
        if (msg.sender != feeRecipient) revert NotFeeRecipient();
        pendingFeeRecipient = newRecipient;
        emit FeeRecipientTransferStarted(msg.sender, newRecipient);
    }

    /// @notice The named successor accepts the fee recipient role.
    function acceptFeeRecipient() external {
        if (msg.sender != pendingFeeRecipient) revert NotPendingFeeRecipient();
        emit FeeRecipientChanged(feeRecipient, msg.sender);
        feeRecipient = msg.sender;
        pendingFeeRecipient = address(0);
    }

    /// @notice Sends the accrued fees in the given coin to the recipient. Anyone can call it:
    ///         the money goes to `feeRecipient` either way.
    function withdrawFees(address token) external nonReentrant {
        uint256 amount = accruedFees[token];
        if (amount == 0) revert NothingToWithdraw();
        accruedFees[token] = 0;

        emit FeesWithdrawn(token, feeRecipient, amount);
        _send(token, feeRecipient, amount);
    }

    function statusOf(uint256 id) external view returns (Status) {
        return _status(_get(id));
    }

    function getCampaign(uint256 id) external view returns (CampaignView memory) {
        return _view(id, _get(id));
    }

    /// @notice Returns up to `limit` campaigns, starting at `offset` (ascending by id).
    function getCampaigns(uint256 offset, uint256 limit) external view returns (CampaignView[] memory page) {
        if (limit > MAX_PAGE_SIZE) limit = MAX_PAGE_SIZE;
        uint256 count = campaignCount;
        if (offset >= count) return new CampaignView[](0);
        uint256 end = offset + limit > count ? count : offset + limit;

        page = new CampaignView[](end - offset);
        for (uint256 i = offset; i < end; i++) {
            page[i - offset] = _view(i, _campaigns[i]);
        }
    }

    /// @notice Stretch goals in the order they were added, i.e. ascending by amount.
    function getStretchGoals(uint256 id) external view returns (StretchGoal[] memory) {
        _get(id);
        return _stretchGoals[id];
    }

    function _get(uint256 id) private view returns (Campaign storage) {
        if (id >= campaignCount) revert CampaignNotFound();
        return _campaigns[id];
    }

    /// @dev The first moment when the creator can no longer claim.
    function _claimDeadline(Campaign storage c) private view returns (uint256) {
        return uint256(c.deadline) + CLAIM_PERIOD;
    }

    /// @dev The campaign accepts contributions and new stretch goals: before the deadline, not claimed, not cancelled.
    function _isOpen(Campaign storage c) private view returns (bool) {
        return !c.claimed && !c.cancelled && block.timestamp < c.deadline;
    }

    function _status(Campaign storage c) private view returns (Status) {
        if (c.cancelled) return Status.Cancelled;
        if (c.claimed) return Status.Claimed;
        if (c.raised >= c.goal) return block.timestamp < _claimDeadline(c) ? Status.Successful : Status.Expired;
        if (block.timestamp < c.deadline) return Status.Active;
        return Status.Failed;
    }

    function _isRefundable(Campaign storage c) private view returns (bool) {
        if (c.cancelled) return true;
        if (c.claimed || block.timestamp < c.deadline) return false;
        return c.raised < c.goal || block.timestamp >= _claimDeadline(c);
    }

    function _view(uint256 id, Campaign storage c) private view returns (CampaignView memory) {
        return CampaignView({
            id: id,
            creator: c.creator,
            deadline: c.deadline,
            claimed: c.claimed,
            cancelled: c.cancelled,
            category: c.category,
            backers: c.backers,
            token: c.token,
            status: _status(c),
            goal: c.goal,
            raised: c.raised,
            title: c.title,
            description: c.description,
            image: c.image
        });
    }

    function _send(address token, address to, uint256 amount) private {
        if (token == NATIVE) {
            (bool ok,) = to.call{value: amount}("");
            if (!ok) revert TransferFailed();
        } else {
            IERC20(token).safeTransfer(to, amount);
        }
    }

    /// @dev Like `_send`, but returns false instead of reverting. PLS goes with a gas limit and without copying
    ///      return data, so a recipient can't burn the gas of the whole batch of refunds.
    function _trySend(address token, address to, uint256 amount) private returns (bool ok) {
        if (token != NATIVE) return IERC20(token).trySafeTransfer(to, amount);
        uint256 gasLimit = REFUND_GAS;
        assembly ("memory-safe") {
            ok := call(gasLimit, to, amount, 0, 0, 0, 0)
        }
    }
}
        

npm/@openzeppelin/contracts@5.6.1/token/ERC20/utils/SafeERC20.sol

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

npm/@openzeppelin/contracts@5.6.1/utils/introspection/IERC165.sol

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

pragma solidity >=0.4.16;

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

npm/@openzeppelin/contracts@5.6.1/interfaces/IERC165.sol

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

pragma solidity >=0.4.16;

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

npm/@openzeppelin/contracts@5.6.1/interfaces/IERC20.sol

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

pragma solidity >=0.4.16;

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

npm/@openzeppelin/contracts@5.6.1/utils/StorageSlot.sol

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

pragma solidity ^0.8.20;

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

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct Int256Slot {
        int256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

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

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

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

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

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

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

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

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

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

npm/@openzeppelin/contracts@5.6.1/interfaces/IERC1363.sol

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

pragma solidity >=0.6.2;

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

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

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

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

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

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

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

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

npm/@openzeppelin/contracts@5.6.1/token/ERC20/IERC20.sol

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

pragma solidity >=0.4.16;

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

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

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

npm/@openzeppelin/contracts@5.6.1/utils/ReentrancyGuard.sol

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

pragma solidity ^0.8.20;

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

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * IMPORTANT: Deprecated. This storage-based reentrancy guard will be removed and replaced
 * by the {ReentrancyGuardTransient} variant in v6.0.
 *
 * @custom:stateless
 */
abstract contract ReentrancyGuard {
    using StorageSlot for bytes32;

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

    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

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

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

    constructor() {
        _reentrancyGuardStorageSlot().getUint256Slot().value = NOT_ENTERED;
    }

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

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

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

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

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

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

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

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

Compiler Settings

{"remappings":["project/:@openzeppelin/contracts/=npm/@openzeppelin/contracts@5.6.1/"],"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode"]}},"optimizer":{"runs":200,"enabled":true},"libraries":{},"evmVersion":"paris"}
              

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"initialFeeRecipient","internalType":"address"}]},{"type":"error","name":"AlreadyCancelled","inputs":[]},{"type":"error","name":"AlreadyClaimed","inputs":[]},{"type":"error","name":"CampaignNotFound","inputs":[]},{"type":"error","name":"ClaimPeriodOver","inputs":[]},{"type":"error","name":"DescriptionTooLong","inputs":[]},{"type":"error","name":"GoalNotReached","inputs":[]},{"type":"error","name":"ImageTooLong","inputs":[]},{"type":"error","name":"InvalidDuration","inputs":[]},{"type":"error","name":"InvalidFeeRecipient","inputs":[]},{"type":"error","name":"InvalidGoal","inputs":[]},{"type":"error","name":"InvalidStretchGoalText","inputs":[]},{"type":"error","name":"InvalidTitle","inputs":[]},{"type":"error","name":"InvalidToken","inputs":[]},{"type":"error","name":"InvalidUpdate","inputs":[]},{"type":"error","name":"NotAcceptingContributions","inputs":[]},{"type":"error","name":"NotCreator","inputs":[]},{"type":"error","name":"NotFeeRecipient","inputs":[]},{"type":"error","name":"NotPendingFeeRecipient","inputs":[]},{"type":"error","name":"NotRefundable","inputs":[]},{"type":"error","name":"NothingToRefund","inputs":[]},{"type":"error","name":"NothingToWithdraw","inputs":[]},{"type":"error","name":"ReentrancyGuardReentrantCall","inputs":[]},{"type":"error","name":"SafeERC20FailedOperation","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"error","name":"StretchGoalTooLow","inputs":[]},{"type":"error","name":"TooManyStretchGoals","inputs":[]},{"type":"error","name":"TransferFailed","inputs":[]},{"type":"error","name":"WrongValue","inputs":[]},{"type":"error","name":"ZeroAmount","inputs":[]},{"type":"event","name":"CampaignCreated","inputs":[{"type":"uint256","name":"id","internalType":"uint256","indexed":true},{"type":"address","name":"creator","internalType":"address","indexed":true},{"type":"address","name":"token","internalType":"address","indexed":true},{"type":"uint256","name":"goal","internalType":"uint256","indexed":false},{"type":"uint64","name":"deadline","internalType":"uint64","indexed":false},{"type":"uint8","name":"category","internalType":"uint8","indexed":false},{"type":"string","name":"title","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"Cancelled","inputs":[{"type":"uint256","name":"id","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"Claimed","inputs":[{"type":"uint256","name":"id","internalType":"uint256","indexed":true},{"type":"address","name":"creator","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"uint256","name":"fee","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Contributed","inputs":[{"type":"uint256","name":"id","internalType":"uint256","indexed":true},{"type":"address","name":"contributor","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"FeeRecipientChanged","inputs":[{"type":"address","name":"previous","internalType":"address","indexed":true},{"type":"address","name":"current","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"FeeRecipientTransferStarted","inputs":[{"type":"address","name":"current","internalType":"address","indexed":true},{"type":"address","name":"pending","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"FeesWithdrawn","inputs":[{"type":"address","name":"token","internalType":"address","indexed":true},{"type":"address","name":"recipient","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Refunded","inputs":[{"type":"uint256","name":"id","internalType":"uint256","indexed":true},{"type":"address","name":"contributor","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"StretchGoalAdded","inputs":[{"type":"uint256","name":"id","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false},{"type":"string","name":"text","internalType":"string","indexed":false}],"anonymous":false},{"type":"event","name":"UpdatePosted","inputs":[{"type":"uint256","name":"id","internalType":"uint256","indexed":true},{"type":"string","name":"text","internalType":"string","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"CLAIM_PERIOD","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"FEE_BPS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_DESCRIPTION_LENGTH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_DURATION","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_IMAGE_LENGTH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_PAGE_SIZE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_STRETCH_GOALS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_STRETCH_GOAL_LENGTH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_TITLE_LENGTH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_UPDATE_LENGTH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MIN_DURATION","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"NATIVE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"REFUND_GAS","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"acceptFeeRecipient","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"}],"name":"accruedFees","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addStretchGoal","inputs":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"string","name":"text","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"campaignCount","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"cancel","inputs":[{"type":"uint256","name":"id","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claim","inputs":[{"type":"uint256","name":"id","internalType":"uint256"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"contribute","inputs":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"}],"name":"contributions","inputs":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"address","name":"contributor","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"id","internalType":"uint256"}],"name":"createCampaign","inputs":[{"type":"uint256","name":"goal","internalType":"uint256"},{"type":"uint256","name":"duration","internalType":"uint256"},{"type":"uint8","name":"category","internalType":"uint8"},{"type":"address","name":"token","internalType":"address"},{"type":"string","name":"title","internalType":"string"},{"type":"string","name":"description","internalType":"string"},{"type":"string","name":"image","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeRecipient","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple","name":"","internalType":"struct Blowsom.CampaignView","components":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"address","name":"creator","internalType":"address"},{"type":"uint64","name":"deadline","internalType":"uint64"},{"type":"bool","name":"claimed","internalType":"bool"},{"type":"bool","name":"cancelled","internalType":"bool"},{"type":"uint8","name":"category","internalType":"uint8"},{"type":"uint32","name":"backers","internalType":"uint32"},{"type":"address","name":"token","internalType":"address"},{"type":"uint8","name":"status","internalType":"enum Blowsom.Status"},{"type":"uint256","name":"goal","internalType":"uint256"},{"type":"uint256","name":"raised","internalType":"uint256"},{"type":"string","name":"title","internalType":"string"},{"type":"string","name":"description","internalType":"string"},{"type":"string","name":"image","internalType":"string"}]}],"name":"getCampaign","inputs":[{"type":"uint256","name":"id","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"page","internalType":"struct Blowsom.CampaignView[]","components":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"address","name":"creator","internalType":"address"},{"type":"uint64","name":"deadline","internalType":"uint64"},{"type":"bool","name":"claimed","internalType":"bool"},{"type":"bool","name":"cancelled","internalType":"bool"},{"type":"uint8","name":"category","internalType":"uint8"},{"type":"uint32","name":"backers","internalType":"uint32"},{"type":"address","name":"token","internalType":"address"},{"type":"uint8","name":"status","internalType":"enum Blowsom.Status"},{"type":"uint256","name":"goal","internalType":"uint256"},{"type":"uint256","name":"raised","internalType":"uint256"},{"type":"string","name":"title","internalType":"string"},{"type":"string","name":"description","internalType":"string"},{"type":"string","name":"image","internalType":"string"}]}],"name":"getCampaigns","inputs":[{"type":"uint256","name":"offset","internalType":"uint256"},{"type":"uint256","name":"limit","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct Blowsom.StretchGoal[]","components":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"string","name":"text","internalType":"string"}]}],"name":"getStretchGoals","inputs":[{"type":"uint256","name":"id","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"pendingFeeRecipient","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"postUpdate","inputs":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"string","name":"text","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"refund","inputs":[{"type":"uint256","name":"id","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"count","internalType":"uint256"}],"name":"refundFor","inputs":[{"type":"uint256","name":"id","internalType":"uint256"},{"type":"address[]","name":"contributors","internalType":"address[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"enum Blowsom.Status"}],"name":"statusOf","inputs":[{"type":"uint256","name":"id","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFeeRecipient","inputs":[{"type":"address","name":"newRecipient","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawFees","inputs":[{"type":"address","name":"token","internalType":"address"}]}]
              

Contract Creation Code

0x608060405234801561001057600080fd5b5060405161289138038061289183398101604081905261002f916100c8565b60017f9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00556001600160a01b03811661007a57604051630ed1b8b360e31b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040519091907f0bc21fe5c3ab742ff1d15b5c4477ffbacf1167e618228078fa625edebe7f331d908290a3506100f8565b6000602082840312156100da57600080fd5b81516001600160a01b03811681146100f157600080fd5b9392505050565b61278a806101076000396000f3fe6080604052600436106101ee5760003560e01c80635ab3e1051161010d578063b1724b46116100a0578063c6746e2b1161006f578063c6746e2b14610526578063cd510a6514610546578063d448b24d14610566578063e4dcfa6e1461057c578063f05559e91461059c57600080fd5b8063b1724b46146104d9578063b58c251d146104f0578063b6a6d17714610510578063bf333f2c146102fc57600080fd5b80638c590917116100dc5780638c590917146104845780639201ea0a146101f3578063a0cf0aea14610497578063ad35efd4146104ac57600080fd5b80635ab3e105146104195780635c8152c71461043957806369644c75146104595780637274e30d1461046e57600080fd5b80632f6b2e0f116101855780634690484011610154578063469048401461039f57806348f4da20146102fc5780634c36cb60146103d75780635598f8cc146103ec57600080fd5b80632f6b2e0f14610311578063379607f5146103275780633d891f591461034757806340e58ee51461037f57600080fd5b8063210af2e4116101c1578063210af2e41461029857806321241dfe146102c5578063278ecde1146102dc5780632ef9a160146102fc57600080fd5b8063010a3f25146101f3578063073112831461021c5780630905156614610249578063164e68de14610276575b600080fd5b3480156101ff57600080fd5b506102096107d081565b6040519081526020015b60405180910390f35b34801561022857600080fd5b50610209610237366004611e31565b60026020526000908152604090205481565b34801561025557600080fd5b50610269610264366004611e4c565b6105b1565b6040516102139190612022565b34801561028257600080fd5b50610296610291366004611e31565b6106e2565b005b3480156102a457600080fd5b506102b86102b3366004612087565b6107b2565b60405161021391906120a0565b3480156102d157600080fd5b5061020962278d0081565b3480156102e857600080fd5b506102966102f7366004612087565b6108c0565b34801561030857600080fd5b50610209606481565b34801561031d57600080fd5b5061020961012c81565b34801561033357600080fd5b50610296610342366004612087565b6109bf565b34801561035357600080fd5b50610209610362366004612110565b600560209081526000928352604080842090915290825290205481565b34801561038b57600080fd5b5061029661039a366004612087565b610b9f565b3480156103ab57600080fd5b506000546103bf906001600160a01b031681565b6040516001600160a01b039091168152602001610213565b3480156103e357600080fd5b5061020960c881565b3480156103f857600080fd5b5061040c610407366004612087565b610c6b565b604051610213919061213c565b34801561042557600080fd5b50610296610434366004612197565b610c85565b34801561044557600080fd5b506102096104543660046121e2565b610d22565b34801561046557600080fd5b50610296610f78565b34801561047a57600080fd5b5061020960035481565b610296610492366004611e4c565b610ffb565b3480156104a357600080fd5b506103bf600081565b3480156104b857600080fd5b506104cc6104c7366004612087565b6112d6565b60405161021391906122c4565b3480156104e557600080fd5b506102096276a70081565b3480156104fc57600080fd5b5061029661050b3660046122d2565b6112e9565b34801561051c57600080fd5b50610209610e1081565b34801561053257600080fd5b50610296610541366004611e31565b6114d2565b34801561055257600080fd5b50610209610561366004612324565b611549565b34801561057257600080fd5b5061020961c35081565b34801561058857600080fd5b506001546103bf906001600160a01b031681565b3480156105a857600080fd5b50610209600a81565b606060648211156105c157606491505b6003548084106106055760408051600080825260208201909252906105fc565b6105e9611da5565b8152602001906001900390816105e15790505b509150506106dc565b60008161061285876123cf565b116106265761062184866123cf565b610628565b815b905061063485826123e2565b6001600160401b0381111561064b5761064b6123a3565b60405190808252806020026020018201604052801561068457816020015b610671611da5565b8152602001906001900390816106695790505b509250845b818110156106d85760008181526004602052604090206106aa9082906116f9565b846106b588846123e2565b815181106106c5576106c56123f5565b6020908102919091010152600101610689565b5050505b92915050565b6106ea61197c565b6001600160a01b0381166000908152600260205260408120549081900361072457604051630686827b60e51b815260040160405180910390fd5b6001600160a01b03808316600081815260026020526040808220829055905490519216917f5e110f8bc8a20b65dcc87f224bdf1cc039346e267118bae2739847f07321ffa8906107779085815260200190565b60405180910390a36000546107979083906001600160a01b031683611998565b506107af600160008051602061273583398151915255565b50565b60606107bd82611a39565b50600082815260066020908152604080832080548251818502810185019093528083529193909284015b828210156108b55783829060005260206000209060020201604051806040016040529081600082015481526020016001820180546108249061240b565b80601f01602080910402602001604051908101604052809291908181526020018280546108509061240b565b801561089d5780601f106108725761010080835404028352916020019161089d565b820191906000526020600020905b81548152906001019060200180831161088057829003601f168201915b505050505081525050815260200190600101906107e7565b505050509050919050565b6108c861197c565b60006108d382611a39565b90506108de81611a6f565b6108fb57604051631ba168fb60e11b815260040160405180910390fd5b6000828152600560209081526040808320338452909152812054908190036109365760405163f76aef6560e01b815260040160405180910390fd5b600083815260056020908152604080832033808552908352818420939093555183815285917f7ca5472b7ea78c2c0141c5a12ee6d170cf4ce8ed06be3d22c8252ddfc7a6a2c4910160405180910390a360018201546109a690600160201b90046001600160a01b03163383611998565b50506107af600160008051602061273583398151915255565b6109c761197c565b60006109d282611a39565b80549091506001600160a01b031633146109ff576040516393687c0b60e01b815260040160405180910390fd5b8054600160e01b900460ff1615610a2957604051630c8d9eab60e31b815260040160405180910390fd5b8054600160e81b900460ff1615610a53576040516354e3762560e01b815260040160405180910390fd5b806002015481600301541015610a7c576040516378c754c960e01b815260040160405180910390fd5b610a8581611ae2565b4210610aa4576040516319eadda960e21b815260040160405180910390fd5b805460ff60e01b1916600160e01b178155600381015460009061271090610acd90606490612445565b610ad7919061245c565b90506000818360030154610aeb91906123e2565b6001840154600160201b90046001600160a01b0316600090815260026020526040812080549293508492909190610b239084906123cf565b90915550506040805182815260208101849052339186917fd9cb1e2714d65a111c0f20f060176ad657496bd47a3de04ec7c3d4ca232112ac910160405180910390a36001830154610b8590600160201b90046001600160a01b03163383611998565b5050506107af600160008051602061273583398151915255565b6000610baa82611a39565b80549091506001600160a01b03163314610bd7576040516393687c0b60e01b815260040160405180910390fd5b8054600160e01b900460ff1615610c0157604051630c8d9eab60e31b815260040160405180910390fd5b8054600160e81b900460ff1615610c2b576040516354e3762560e01b815260040160405180910390fd5b805460ff60e81b1916600160e81b17815560405182907fc41d93b8bfbf9fd7cf5bfe271fd649ab6a6fec0ea101c23b82a2a28eca2533a990600090a25050565b610c73611da5565b6106dc82610c8084611a39565b6116f9565b610c8e83611a39565b546001600160a01b03163314610cb7576040516393687c0b60e01b815260040160405180910390fd5b801580610cc557506107d081115b15610ce357604051637d5ba07f60e01b815260040160405180910390fd5b827f65dffc72fd22f03f2205e809cbc4451465d725814397b8b23a14d3fdd427f29c8383604051610d159291906124a7565b60405180910390a2505050565b60008a600003610d4557604051639b60eb4d60e01b815260040160405180910390fd5b610e108a1080610d5757506276a7008a115b15610d7557604051637616640160e01b815260040160405180910390fd5b851580610d825750606486115b15610da0576040516306232dbd60e31b815260040160405180910390fd5b6107d0841115610dc357604051630d7cfc5960e41b815260040160405180910390fd5b61012c821115610de6576040516372583ef160e11b815260040160405180910390fd5b6001600160a01b03881615801590610e0657506001600160a01b0388163b155b15610e245760405163c1ab6dc160e01b815260040160405180910390fd5b60038054906000610e34836124bb565b90915550600081815260046020526040902080546001600160a01b03191633178155909150610e638b426123cf565b81546aff0000ffffffffffffffff60a01b1916600160a01b6001600160401b03929092169190910260ff60f01b191617600160f01b60ff8c1602178155600181018054640100000000600160c01b031916600160201b6001600160a01b038c1602179055600281018c905560048101610edd888a83612522565b5060058101610eed868883612522565b5060068101610efd848683612522565b50886001600160a01b0316336001600160a01b0316837f7b5a442cca340774ab52c3e07aa9f32be2ca6286e945a3dcd105a067cc0cc4fd8f8560000160149054906101000a90046001600160401b03168f8e8e604051610f619594939291906125e1565b60405180910390a4509a9950505050505050505050565b6001546001600160a01b03163314610fa3576040516368619d8960e01b815260040160405180910390fd5b6000805460405133926001600160a01b03909216917f0bc21fe5c3ab742ff1d15b5c4477ffbacf1167e618228078fa625edebe7f331d91a3600080546001600160a01b03199081163317909155600180549091169055565b61100361197c565b600061100e83611a39565b90508160000361103157604051631f2a200560e01b815260040160405180910390fd5b61103a81611b05565b61105757604051630bf1df0560e11b815260040160405180910390fd5b6001810154600090600160201b90046001600160a01b031661109a5782341461109357604051632635240760e21b815260040160405180910390fd5b50816111e3565b34156110b957604051632635240760e21b815260040160405180910390fd5b60018201546040516370a0823160e01b8152306004820152600160201b9091046001600160a01b03169060009082906370a0823190602401602060405180830381865afa15801561110e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611132919061261e565b90506111496001600160a01b038316333088611b48565b6040516370a0823160e01b815230600482015281906001600160a01b038416906370a0823190602401602060405180830381865afa15801561118f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b3919061261e565b6111bd91906123e2565b9250826000036111e057604051631f2a200560e01b815260040160405180910390fd5b50505b6000848152600560209081526040808320338452909152812054900361123b5760018201805463ffffffff1690600061121b83612637565b91906101000a81548163ffffffff021916908363ffffffff160217905550505b8082600301600082825461124f91906123cf565b909155505060008481526005602090815260408083203384529091528120805483929061127d9084906123cf565b9091555050604051818152339085907fb2ed2e021651f85a4754a44651fc09ac5141bc0329ce4dfe8dd712a5d04a8b399060200160405180910390a350506112d2600160008051602061273583398151915255565b5050565b60006106dc6112e483611a39565b611b83565b60006112f485611a39565b80549091506001600160a01b03163314611321576040516393687c0b60e01b815260040160405180910390fd5b61132a81611b05565b61134757604051630bf1df0560e11b815260040160405180910390fd5b811580611354575060c882115b15611372576040516338003dff60e01b815260040160405180910390fd5b60008581526006602052604090208054600919016113a357604051630b5737e560e01b815260040160405180910390fd5b8054600090156113e457815482906113bd906001906123e2565b815481106113cd576113cd6123f5565b9060005260206000209060020201600001546113ea565b82600201545b905080861161140c576040516303c3a9cd60e31b815260040160405180910390fd5b81604051806040016040528088815260200187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093909452505083546001818101865594825260209182902084516002909202019081559083015192939092908301915061148a908261265c565b505050867fae83b47d35846f733a5cfe62dd0c8e2777142d4208e51a337419364ed59635f18787876040516114c19392919061271a565b60405180910390a250505050505050565b6000546001600160a01b031633146114fd57604051631d713add60e21b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b03831690811790915560405133907f66b4d67dbd74cadd8186933aeacc17e7d97d907c41d0d8d480a8c022cc61dc6d90600090a350565b600061155361197c565b600061155e85611a39565b905061156981611a6f565b61158657604051631ba168fb60e11b815260040160405180910390fd5b60005b838110156116b85760008585838181106115a5576115a56123f5565b90506020020160208101906115ba9190611e31565b60008881526005602090815260408083206001600160a01b03851684529091528120549192508190036115ee5750506116b0565b60008881526005602090815260408083206001600160a01b0380871685529252822091909155600185015461162d91600160201b909104168383611c0e565b61165c5760008881526005602090815260408083206001600160a01b03909516835293905291909120556116b0565b84611666816124bb565b955050816001600160a01b0316887f7ca5472b7ea78c2c0141c5a12ee6d170cf4ce8ed06be3d22c8252ddfc7a6a2c4836040516116a591815260200190565b60405180910390a350505b600101611589565b50816000036116da5760405163f76aef6560e01b815260040160405180910390fd5b506116f2600160008051602061273583398151915255565b9392505050565b611701611da5565b604080516101c08101825284815283546001600160a01b0380821660208401526001600160401b03600160a01b8304169383019390935260ff600160e01b8204811615156060840152600160e81b8204811615156080840152600160f01b9091041660a0820152600184015463ffffffff811660c0830152600160201b900490911660e0820152610100810161179684611b83565b60058111156117a7576117a7611e6e565b815260200183600201548152602001836003015481526020018360040180546117cf9061240b565b80601f01602080910402602001604051908101604052809291908181526020018280546117fb9061240b565b80156118485780601f1061181d57610100808354040283529160200191611848565b820191906000526020600020905b81548152906001019060200180831161182b57829003601f168201915b505050505081526020018360050180546118619061240b565b80601f016020809104026020016040519081016040528092919081815260200182805461188d9061240b565b80156118da5780601f106118af576101008083540402835291602001916118da565b820191906000526020600020905b8154815290600101906020018083116118bd57829003601f168201915b505050505081526020018360060180546118f39061240b565b80601f016020809104026020016040519081016040528092919081815260200182805461191f9061240b565b801561196c5780601f106119415761010080835404028352916020019161196c565b820191906000526020600020905b81548152906001019060200180831161194f57829003601f168201915b5050505050815250905092915050565b611984611c4f565b600260008051602061273583398151915255565b6001600160a01b038316611a20576000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146119f3576040519150601f19603f3d011682016040523d82523d6000602084013e6119f8565b606091505b5050905080611a1a576040516312171d8360e31b815260040160405180910390fd5b50505050565b611a346001600160a01b0384168383611c81565b505050565b60006003548210611a5d576040516337f9b70b60e11b815260040160405180910390fd5b50600090815260046020526040902090565b8054600090600160e81b900460ff1615611a8b57506001919050565b8154600160e01b900460ff1680611ab257508154600160a01b90046001600160401b031642105b15611abf57506000919050565b8160020154826003015410806106dc5750611ad982611ae2565b42101592915050565b80546000906106dc9062278d0090600160a01b90046001600160401b03166123cf565b8054600090600160e01b900460ff16158015611b2a57508154600160e81b900460ff16155b80156106dc57505054600160a01b90046001600160401b0316421090565b611b56848484846001611cb6565b611a1a57604051635274afe760e01b81526001600160a01b03851660048201526024015b60405180910390fd5b8054600090600160e81b900460ff1615611b9f57506004919050565b8154600160e01b900460ff1615611bb857506003919050565b8160020154826003015410611be557611bd082611ae2565b4210611bdd5760056106dc565b600192915050565b8154600160a01b90046001600160401b0316421015611c0657506000919050565b506002919050565b60006001600160a01b03841615611c3a57611c336001600160a01b0385168484611d28565b90506116f2565b61c3506000808080868886f195945050505050565b60008051602061273583398151915254600203611c7f57604051633ee5aeb560e01b815260040160405180910390fd5b565b611c8e8383836001611d3f565b611a3457604051635274afe760e01b81526001600160a01b0384166004820152602401611b7a565b6040516323b872dd60e01b60008181526001600160a01b038781166004528616602452604485905291602083606481808c5af192506001600051148316611d16578383151615611d09573d6000823e3d81fd5b6000883b113d1516831692505b60405250600060605295945050505050565b6000611d378484846000611d3f565b949350505050565b60405163a9059cbb60e01b60008181526001600160a01b038616600452602485905291602083604481808b5af192506001600051148316611d99578383151615611d8c573d6000823e3d81fd5b6000873b113d1516831692505b60405250949350505050565b604080516101c081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905290610100820190815260200160008152602001600081526020016060815260200160608152602001606081525090565b80356001600160a01b0381168114611e2c57600080fd5b919050565b600060208284031215611e4357600080fd5b6116f282611e15565b60008060408385031215611e5f57600080fd5b50508035926020909101359150565b634e487b7160e01b600052602160045260246000fd5b60068110611ea257634e487b7160e01b600052602160045260246000fd5b9052565b6000815180845260005b81811015611ecc57602081850181015186830182015201611eb0565b506000602082860101526020601f19601f83011685010191505092915050565b8051825260006020820151611f0c60208501826001600160a01b03169052565b506040820151611f2760408501826001600160401b03169052565b506060820151611f3b606085018215159052565b506080820151611f4f608085018215159052565b5060a0820151611f6460a085018260ff169052565b5060c0820151611f7c60c085018263ffffffff169052565b5060e0820151611f9760e08501826001600160a01b03169052565b50610100820151611fac610100850182611e84565b506101208201516101208401526101408201516101408401526101608201516101c0610160850152611fe26101c0850182611ea6565b9050610180830151848203610180860152611ffd8282611ea6565b9150506101a08301518482036101a08601526120198282611ea6565b95945050505050565b6000602082016020835280845180835260408501915060408160051b86010192506020860160005b8281101561207b57603f19878603018452612066858351611eec565b9450602093840193919091019060010161204a565b50929695505050505050565b60006020828403121561209957600080fd5b5035919050565b6000602082016020835280845180835260408501915060408160051b86010192506020860160005b8281101561207b57603f1987860301845281518051865260208101519050604060208701526120fa6040870182611ea6565b95505060209384019391909101906001016120c8565b6000806040838503121561212357600080fd5b8235915061213360208401611e15565b90509250929050565b6020815260006116f26020830184611eec565b60008083601f84011261216157600080fd5b5081356001600160401b0381111561217857600080fd5b60208301915083602082850101111561219057600080fd5b9250929050565b6000806000604084860312156121ac57600080fd5b8335925060208401356001600160401b038111156121c957600080fd5b6121d58682870161214f565b9497909650939450505050565b60008060008060008060008060008060e08b8d03121561220157600080fd5b8a35995060208b0135985060408b013560ff8116811461222057600080fd5b975061222e60608c01611e15565b965060808b01356001600160401b0381111561224957600080fd5b6122558d828e0161214f565b90975095505060a08b01356001600160401b0381111561227457600080fd5b6122808d828e0161214f565b90955093505060c08b01356001600160401b0381111561229f57600080fd5b6122ab8d828e0161214f565b915080935050809150509295989b9194979a5092959850565b602081016106dc8284611e84565b600080600080606085870312156122e857600080fd5b843593506020850135925060408501356001600160401b0381111561230c57600080fd5b6123188782880161214f565b95989497509550505050565b60008060006040848603121561233957600080fd5b8335925060208401356001600160401b0381111561235657600080fd5b8401601f8101861361236757600080fd5b80356001600160401b0381111561237d57600080fd5b8660208260051b840101111561239257600080fd5b939660209190910195509293505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156106dc576106dc6123b9565b818103818111156106dc576106dc6123b9565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061241f57607f821691505b60208210810361243f57634e487b7160e01b600052602260045260246000fd5b50919050565b80820281158282048414176106dc576106dc6123b9565b60008261247957634e487b7160e01b600052601260045260246000fd5b500490565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000611d3760208301848661247e565b6000600182016124cd576124cd6123b9565b5060010190565b601f821115611a3457806000526020600020601f840160051c810160208510156124fb5750805b601f840160051c820191505b8181101561251b5760008155600101612507565b5050505050565b6001600160401b03831115612539576125396123a3565b61254d83612547835461240b565b836124d4565b6000601f84116001811461258157600085156125695750838201355b600019600387901b1c1916600186901b17835561251b565b600083815260209020601f19861690835b828110156125b25786850135825560209485019460019092019101612592565b50868210156125cf5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8581526001600160401b038516602082015260ff8416604082015260806060820152600061261360808301848661247e565b979650505050505050565b60006020828403121561263057600080fd5b5051919050565b600063ffffffff821663ffffffff8103612653576126536123b9565b60010192915050565b81516001600160401b03811115612675576126756123a3565b61268981612683845461240b565b846124d4565b6020601f8211600181146126bd57600083156126a55750848201515b600019600385901b1c1916600184901b17845561251b565b600084815260208120601f198516915b828110156126ed57878501518255602094850194600190920191016126cd565b508482101561270b5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b83815260406020820152600061201960408301848661247e56fe9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a26469706673582212202a7e524e4d8f3250f0930f9a43023d0bd35668c9557930439ce6bbbe1755c23464736f6c634300081c00330000000000000000000000004af06946f79151ab69007ba19111db5fb82cb398

Deployed ByteCode

0x6080604052600436106101ee5760003560e01c80635ab3e1051161010d578063b1724b46116100a0578063c6746e2b1161006f578063c6746e2b14610526578063cd510a6514610546578063d448b24d14610566578063e4dcfa6e1461057c578063f05559e91461059c57600080fd5b8063b1724b46146104d9578063b58c251d146104f0578063b6a6d17714610510578063bf333f2c146102fc57600080fd5b80638c590917116100dc5780638c590917146104845780639201ea0a146101f3578063a0cf0aea14610497578063ad35efd4146104ac57600080fd5b80635ab3e105146104195780635c8152c71461043957806369644c75146104595780637274e30d1461046e57600080fd5b80632f6b2e0f116101855780634690484011610154578063469048401461039f57806348f4da20146102fc5780634c36cb60146103d75780635598f8cc146103ec57600080fd5b80632f6b2e0f14610311578063379607f5146103275780633d891f591461034757806340e58ee51461037f57600080fd5b8063210af2e4116101c1578063210af2e41461029857806321241dfe146102c5578063278ecde1146102dc5780632ef9a160146102fc57600080fd5b8063010a3f25146101f3578063073112831461021c5780630905156614610249578063164e68de14610276575b600080fd5b3480156101ff57600080fd5b506102096107d081565b6040519081526020015b60405180910390f35b34801561022857600080fd5b50610209610237366004611e31565b60026020526000908152604090205481565b34801561025557600080fd5b50610269610264366004611e4c565b6105b1565b6040516102139190612022565b34801561028257600080fd5b50610296610291366004611e31565b6106e2565b005b3480156102a457600080fd5b506102b86102b3366004612087565b6107b2565b60405161021391906120a0565b3480156102d157600080fd5b5061020962278d0081565b3480156102e857600080fd5b506102966102f7366004612087565b6108c0565b34801561030857600080fd5b50610209606481565b34801561031d57600080fd5b5061020961012c81565b34801561033357600080fd5b50610296610342366004612087565b6109bf565b34801561035357600080fd5b50610209610362366004612110565b600560209081526000928352604080842090915290825290205481565b34801561038b57600080fd5b5061029661039a366004612087565b610b9f565b3480156103ab57600080fd5b506000546103bf906001600160a01b031681565b6040516001600160a01b039091168152602001610213565b3480156103e357600080fd5b5061020960c881565b3480156103f857600080fd5b5061040c610407366004612087565b610c6b565b604051610213919061213c565b34801561042557600080fd5b50610296610434366004612197565b610c85565b34801561044557600080fd5b506102096104543660046121e2565b610d22565b34801561046557600080fd5b50610296610f78565b34801561047a57600080fd5b5061020960035481565b610296610492366004611e4c565b610ffb565b3480156104a357600080fd5b506103bf600081565b3480156104b857600080fd5b506104cc6104c7366004612087565b6112d6565b60405161021391906122c4565b3480156104e557600080fd5b506102096276a70081565b3480156104fc57600080fd5b5061029661050b3660046122d2565b6112e9565b34801561051c57600080fd5b50610209610e1081565b34801561053257600080fd5b50610296610541366004611e31565b6114d2565b34801561055257600080fd5b50610209610561366004612324565b611549565b34801561057257600080fd5b5061020961c35081565b34801561058857600080fd5b506001546103bf906001600160a01b031681565b3480156105a857600080fd5b50610209600a81565b606060648211156105c157606491505b6003548084106106055760408051600080825260208201909252906105fc565b6105e9611da5565b8152602001906001900390816105e15790505b509150506106dc565b60008161061285876123cf565b116106265761062184866123cf565b610628565b815b905061063485826123e2565b6001600160401b0381111561064b5761064b6123a3565b60405190808252806020026020018201604052801561068457816020015b610671611da5565b8152602001906001900390816106695790505b509250845b818110156106d85760008181526004602052604090206106aa9082906116f9565b846106b588846123e2565b815181106106c5576106c56123f5565b6020908102919091010152600101610689565b5050505b92915050565b6106ea61197c565b6001600160a01b0381166000908152600260205260408120549081900361072457604051630686827b60e51b815260040160405180910390fd5b6001600160a01b03808316600081815260026020526040808220829055905490519216917f5e110f8bc8a20b65dcc87f224bdf1cc039346e267118bae2739847f07321ffa8906107779085815260200190565b60405180910390a36000546107979083906001600160a01b031683611998565b506107af600160008051602061273583398151915255565b50565b60606107bd82611a39565b50600082815260066020908152604080832080548251818502810185019093528083529193909284015b828210156108b55783829060005260206000209060020201604051806040016040529081600082015481526020016001820180546108249061240b565b80601f01602080910402602001604051908101604052809291908181526020018280546108509061240b565b801561089d5780601f106108725761010080835404028352916020019161089d565b820191906000526020600020905b81548152906001019060200180831161088057829003601f168201915b505050505081525050815260200190600101906107e7565b505050509050919050565b6108c861197c565b60006108d382611a39565b90506108de81611a6f565b6108fb57604051631ba168fb60e11b815260040160405180910390fd5b6000828152600560209081526040808320338452909152812054908190036109365760405163f76aef6560e01b815260040160405180910390fd5b600083815260056020908152604080832033808552908352818420939093555183815285917f7ca5472b7ea78c2c0141c5a12ee6d170cf4ce8ed06be3d22c8252ddfc7a6a2c4910160405180910390a360018201546109a690600160201b90046001600160a01b03163383611998565b50506107af600160008051602061273583398151915255565b6109c761197c565b60006109d282611a39565b80549091506001600160a01b031633146109ff576040516393687c0b60e01b815260040160405180910390fd5b8054600160e01b900460ff1615610a2957604051630c8d9eab60e31b815260040160405180910390fd5b8054600160e81b900460ff1615610a53576040516354e3762560e01b815260040160405180910390fd5b806002015481600301541015610a7c576040516378c754c960e01b815260040160405180910390fd5b610a8581611ae2565b4210610aa4576040516319eadda960e21b815260040160405180910390fd5b805460ff60e01b1916600160e01b178155600381015460009061271090610acd90606490612445565b610ad7919061245c565b90506000818360030154610aeb91906123e2565b6001840154600160201b90046001600160a01b0316600090815260026020526040812080549293508492909190610b239084906123cf565b90915550506040805182815260208101849052339186917fd9cb1e2714d65a111c0f20f060176ad657496bd47a3de04ec7c3d4ca232112ac910160405180910390a36001830154610b8590600160201b90046001600160a01b03163383611998565b5050506107af600160008051602061273583398151915255565b6000610baa82611a39565b80549091506001600160a01b03163314610bd7576040516393687c0b60e01b815260040160405180910390fd5b8054600160e01b900460ff1615610c0157604051630c8d9eab60e31b815260040160405180910390fd5b8054600160e81b900460ff1615610c2b576040516354e3762560e01b815260040160405180910390fd5b805460ff60e81b1916600160e81b17815560405182907fc41d93b8bfbf9fd7cf5bfe271fd649ab6a6fec0ea101c23b82a2a28eca2533a990600090a25050565b610c73611da5565b6106dc82610c8084611a39565b6116f9565b610c8e83611a39565b546001600160a01b03163314610cb7576040516393687c0b60e01b815260040160405180910390fd5b801580610cc557506107d081115b15610ce357604051637d5ba07f60e01b815260040160405180910390fd5b827f65dffc72fd22f03f2205e809cbc4451465d725814397b8b23a14d3fdd427f29c8383604051610d159291906124a7565b60405180910390a2505050565b60008a600003610d4557604051639b60eb4d60e01b815260040160405180910390fd5b610e108a1080610d5757506276a7008a115b15610d7557604051637616640160e01b815260040160405180910390fd5b851580610d825750606486115b15610da0576040516306232dbd60e31b815260040160405180910390fd5b6107d0841115610dc357604051630d7cfc5960e41b815260040160405180910390fd5b61012c821115610de6576040516372583ef160e11b815260040160405180910390fd5b6001600160a01b03881615801590610e0657506001600160a01b0388163b155b15610e245760405163c1ab6dc160e01b815260040160405180910390fd5b60038054906000610e34836124bb565b90915550600081815260046020526040902080546001600160a01b03191633178155909150610e638b426123cf565b81546aff0000ffffffffffffffff60a01b1916600160a01b6001600160401b03929092169190910260ff60f01b191617600160f01b60ff8c1602178155600181018054640100000000600160c01b031916600160201b6001600160a01b038c1602179055600281018c905560048101610edd888a83612522565b5060058101610eed868883612522565b5060068101610efd848683612522565b50886001600160a01b0316336001600160a01b0316837f7b5a442cca340774ab52c3e07aa9f32be2ca6286e945a3dcd105a067cc0cc4fd8f8560000160149054906101000a90046001600160401b03168f8e8e604051610f619594939291906125e1565b60405180910390a4509a9950505050505050505050565b6001546001600160a01b03163314610fa3576040516368619d8960e01b815260040160405180910390fd5b6000805460405133926001600160a01b03909216917f0bc21fe5c3ab742ff1d15b5c4477ffbacf1167e618228078fa625edebe7f331d91a3600080546001600160a01b03199081163317909155600180549091169055565b61100361197c565b600061100e83611a39565b90508160000361103157604051631f2a200560e01b815260040160405180910390fd5b61103a81611b05565b61105757604051630bf1df0560e11b815260040160405180910390fd5b6001810154600090600160201b90046001600160a01b031661109a5782341461109357604051632635240760e21b815260040160405180910390fd5b50816111e3565b34156110b957604051632635240760e21b815260040160405180910390fd5b60018201546040516370a0823160e01b8152306004820152600160201b9091046001600160a01b03169060009082906370a0823190602401602060405180830381865afa15801561110e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611132919061261e565b90506111496001600160a01b038316333088611b48565b6040516370a0823160e01b815230600482015281906001600160a01b038416906370a0823190602401602060405180830381865afa15801561118f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111b3919061261e565b6111bd91906123e2565b9250826000036111e057604051631f2a200560e01b815260040160405180910390fd5b50505b6000848152600560209081526040808320338452909152812054900361123b5760018201805463ffffffff1690600061121b83612637565b91906101000a81548163ffffffff021916908363ffffffff160217905550505b8082600301600082825461124f91906123cf565b909155505060008481526005602090815260408083203384529091528120805483929061127d9084906123cf565b9091555050604051818152339085907fb2ed2e021651f85a4754a44651fc09ac5141bc0329ce4dfe8dd712a5d04a8b399060200160405180910390a350506112d2600160008051602061273583398151915255565b5050565b60006106dc6112e483611a39565b611b83565b60006112f485611a39565b80549091506001600160a01b03163314611321576040516393687c0b60e01b815260040160405180910390fd5b61132a81611b05565b61134757604051630bf1df0560e11b815260040160405180910390fd5b811580611354575060c882115b15611372576040516338003dff60e01b815260040160405180910390fd5b60008581526006602052604090208054600919016113a357604051630b5737e560e01b815260040160405180910390fd5b8054600090156113e457815482906113bd906001906123e2565b815481106113cd576113cd6123f5565b9060005260206000209060020201600001546113ea565b82600201545b905080861161140c576040516303c3a9cd60e31b815260040160405180910390fd5b81604051806040016040528088815260200187878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093909452505083546001818101865594825260209182902084516002909202019081559083015192939092908301915061148a908261265c565b505050867fae83b47d35846f733a5cfe62dd0c8e2777142d4208e51a337419364ed59635f18787876040516114c19392919061271a565b60405180910390a250505050505050565b6000546001600160a01b031633146114fd57604051631d713add60e21b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b03831690811790915560405133907f66b4d67dbd74cadd8186933aeacc17e7d97d907c41d0d8d480a8c022cc61dc6d90600090a350565b600061155361197c565b600061155e85611a39565b905061156981611a6f565b61158657604051631ba168fb60e11b815260040160405180910390fd5b60005b838110156116b85760008585838181106115a5576115a56123f5565b90506020020160208101906115ba9190611e31565b60008881526005602090815260408083206001600160a01b03851684529091528120549192508190036115ee5750506116b0565b60008881526005602090815260408083206001600160a01b0380871685529252822091909155600185015461162d91600160201b909104168383611c0e565b61165c5760008881526005602090815260408083206001600160a01b03909516835293905291909120556116b0565b84611666816124bb565b955050816001600160a01b0316887f7ca5472b7ea78c2c0141c5a12ee6d170cf4ce8ed06be3d22c8252ddfc7a6a2c4836040516116a591815260200190565b60405180910390a350505b600101611589565b50816000036116da5760405163f76aef6560e01b815260040160405180910390fd5b506116f2600160008051602061273583398151915255565b9392505050565b611701611da5565b604080516101c08101825284815283546001600160a01b0380821660208401526001600160401b03600160a01b8304169383019390935260ff600160e01b8204811615156060840152600160e81b8204811615156080840152600160f01b9091041660a0820152600184015463ffffffff811660c0830152600160201b900490911660e0820152610100810161179684611b83565b60058111156117a7576117a7611e6e565b815260200183600201548152602001836003015481526020018360040180546117cf9061240b565b80601f01602080910402602001604051908101604052809291908181526020018280546117fb9061240b565b80156118485780601f1061181d57610100808354040283529160200191611848565b820191906000526020600020905b81548152906001019060200180831161182b57829003601f168201915b505050505081526020018360050180546118619061240b565b80601f016020809104026020016040519081016040528092919081815260200182805461188d9061240b565b80156118da5780601f106118af576101008083540402835291602001916118da565b820191906000526020600020905b8154815290600101906020018083116118bd57829003601f168201915b505050505081526020018360060180546118f39061240b565b80601f016020809104026020016040519081016040528092919081815260200182805461191f9061240b565b801561196c5780601f106119415761010080835404028352916020019161196c565b820191906000526020600020905b81548152906001019060200180831161194f57829003601f168201915b5050505050815250905092915050565b611984611c4f565b600260008051602061273583398151915255565b6001600160a01b038316611a20576000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146119f3576040519150601f19603f3d011682016040523d82523d6000602084013e6119f8565b606091505b5050905080611a1a576040516312171d8360e31b815260040160405180910390fd5b50505050565b611a346001600160a01b0384168383611c81565b505050565b60006003548210611a5d576040516337f9b70b60e11b815260040160405180910390fd5b50600090815260046020526040902090565b8054600090600160e81b900460ff1615611a8b57506001919050565b8154600160e01b900460ff1680611ab257508154600160a01b90046001600160401b031642105b15611abf57506000919050565b8160020154826003015410806106dc5750611ad982611ae2565b42101592915050565b80546000906106dc9062278d0090600160a01b90046001600160401b03166123cf565b8054600090600160e01b900460ff16158015611b2a57508154600160e81b900460ff16155b80156106dc57505054600160a01b90046001600160401b0316421090565b611b56848484846001611cb6565b611a1a57604051635274afe760e01b81526001600160a01b03851660048201526024015b60405180910390fd5b8054600090600160e81b900460ff1615611b9f57506004919050565b8154600160e01b900460ff1615611bb857506003919050565b8160020154826003015410611be557611bd082611ae2565b4210611bdd5760056106dc565b600192915050565b8154600160a01b90046001600160401b0316421015611c0657506000919050565b506002919050565b60006001600160a01b03841615611c3a57611c336001600160a01b0385168484611d28565b90506116f2565b61c3506000808080868886f195945050505050565b60008051602061273583398151915254600203611c7f57604051633ee5aeb560e01b815260040160405180910390fd5b565b611c8e8383836001611d3f565b611a3457604051635274afe760e01b81526001600160a01b0384166004820152602401611b7a565b6040516323b872dd60e01b60008181526001600160a01b038781166004528616602452604485905291602083606481808c5af192506001600051148316611d16578383151615611d09573d6000823e3d81fd5b6000883b113d1516831692505b60405250600060605295945050505050565b6000611d378484846000611d3f565b949350505050565b60405163a9059cbb60e01b60008181526001600160a01b038616600452602485905291602083604481808b5af192506001600051148316611d99578383151615611d8c573d6000823e3d81fd5b6000873b113d1516831692505b60405250949350505050565b604080516101c081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e0810182905290610100820190815260200160008152602001600081526020016060815260200160608152602001606081525090565b80356001600160a01b0381168114611e2c57600080fd5b919050565b600060208284031215611e4357600080fd5b6116f282611e15565b60008060408385031215611e5f57600080fd5b50508035926020909101359150565b634e487b7160e01b600052602160045260246000fd5b60068110611ea257634e487b7160e01b600052602160045260246000fd5b9052565b6000815180845260005b81811015611ecc57602081850181015186830182015201611eb0565b506000602082860101526020601f19601f83011685010191505092915050565b8051825260006020820151611f0c60208501826001600160a01b03169052565b506040820151611f2760408501826001600160401b03169052565b506060820151611f3b606085018215159052565b506080820151611f4f608085018215159052565b5060a0820151611f6460a085018260ff169052565b5060c0820151611f7c60c085018263ffffffff169052565b5060e0820151611f9760e08501826001600160a01b03169052565b50610100820151611fac610100850182611e84565b506101208201516101208401526101408201516101408401526101608201516101c0610160850152611fe26101c0850182611ea6565b9050610180830151848203610180860152611ffd8282611ea6565b9150506101a08301518482036101a08601526120198282611ea6565b95945050505050565b6000602082016020835280845180835260408501915060408160051b86010192506020860160005b8281101561207b57603f19878603018452612066858351611eec565b9450602093840193919091019060010161204a565b50929695505050505050565b60006020828403121561209957600080fd5b5035919050565b6000602082016020835280845180835260408501915060408160051b86010192506020860160005b8281101561207b57603f1987860301845281518051865260208101519050604060208701526120fa6040870182611ea6565b95505060209384019391909101906001016120c8565b6000806040838503121561212357600080fd5b8235915061213360208401611e15565b90509250929050565b6020815260006116f26020830184611eec565b60008083601f84011261216157600080fd5b5081356001600160401b0381111561217857600080fd5b60208301915083602082850101111561219057600080fd5b9250929050565b6000806000604084860312156121ac57600080fd5b8335925060208401356001600160401b038111156121c957600080fd5b6121d58682870161214f565b9497909650939450505050565b60008060008060008060008060008060e08b8d03121561220157600080fd5b8a35995060208b0135985060408b013560ff8116811461222057600080fd5b975061222e60608c01611e15565b965060808b01356001600160401b0381111561224957600080fd5b6122558d828e0161214f565b90975095505060a08b01356001600160401b0381111561227457600080fd5b6122808d828e0161214f565b90955093505060c08b01356001600160401b0381111561229f57600080fd5b6122ab8d828e0161214f565b915080935050809150509295989b9194979a5092959850565b602081016106dc8284611e84565b600080600080606085870312156122e857600080fd5b843593506020850135925060408501356001600160401b0381111561230c57600080fd5b6123188782880161214f565b95989497509550505050565b60008060006040848603121561233957600080fd5b8335925060208401356001600160401b0381111561235657600080fd5b8401601f8101861361236757600080fd5b80356001600160401b0381111561237d57600080fd5b8660208260051b840101111561239257600080fd5b939660209190910195509293505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156106dc576106dc6123b9565b818103818111156106dc576106dc6123b9565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061241f57607f821691505b60208210810361243f57634e487b7160e01b600052602260045260246000fd5b50919050565b80820281158282048414176106dc576106dc6123b9565b60008261247957634e487b7160e01b600052601260045260246000fd5b500490565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000611d3760208301848661247e565b6000600182016124cd576124cd6123b9565b5060010190565b601f821115611a3457806000526020600020601f840160051c810160208510156124fb5750805b601f840160051c820191505b8181101561251b5760008155600101612507565b5050505050565b6001600160401b03831115612539576125396123a3565b61254d83612547835461240b565b836124d4565b6000601f84116001811461258157600085156125695750838201355b600019600387901b1c1916600186901b17835561251b565b600083815260209020601f19861690835b828110156125b25786850135825560209485019460019092019101612592565b50868210156125cf5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b8581526001600160401b038516602082015260ff8416604082015260806060820152600061261360808301848661247e565b979650505050505050565b60006020828403121561263057600080fd5b5051919050565b600063ffffffff821663ffffffff8103612653576126536123b9565b60010192915050565b81516001600160401b03811115612675576126756123a3565b61268981612683845461240b565b846124d4565b6020601f8211600181146126bd57600083156126a55750848201515b600019600385901b1c1916600184901b17845561251b565b600084815260208120601f198516915b828110156126ed57878501518255602094850194600190920191016126cd565b508482101561270b5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b83815260406020820152600061201960408301848661247e56fe9b779b17422d0df92223018b32b4d1fa46e071723d6817e2486d003becc55f00a26469706673582212202a7e524e4d8f3250f0930f9a43023d0bd35668c9557930439ce6bbbe1755c23464736f6c634300081c0033