ETH Price: $2,966.09 (-1.80%)
Gas: 2 Gwei

Contract

0x76Fe3456E212749Fa39bb81205473C53ff35F201
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Claim Reward201063462024-06-16 19:08:5920 days ago1718564939IN
0x76Fe3456...3ff35F201
0 ETH0.000791813.41238763
Start Reload Per...201063362024-06-16 19:06:5920 days ago1718564819IN
0x76Fe3456...3ff35F201
0 ETH0.000856733.82683801
Start Mining Ses...198374432024-05-10 5:07:1158 days ago1715317631IN
0x76Fe3456...3ff35F201
0 ETH0.00092574.93629555
Deposit198177512024-05-07 11:00:1161 days ago1715079611IN
0x76Fe3456...3ff35F201
0 ETH0.000822285.57064248
Deposit198157372024-05-07 4:13:2361 days ago1715055203IN
0x76Fe3456...3ff35F201
0 ETH0.000190393.80780554
Claim Reward198157282024-05-07 4:11:3561 days ago1715055095IN
0x76Fe3456...3ff35F201
0 ETH0.000273796.78475115
Deposit198109382024-05-06 12:07:1162 days ago1714997231IN
0x76Fe3456...3ff35F201
0 ETH0.000827675.1220484
Claim Reward198109352024-05-06 12:06:3562 days ago1714997195IN
0x76Fe3456...3ff35F201
0 ETH0.000237515.88589675
Deposit198109252024-05-06 12:04:3562 days ago1714997075IN
0x76Fe3456...3ff35F201
0 ETH0.000401216.09675981
Deposit198109192024-05-06 12:03:2362 days ago1714997003IN
0x76Fe3456...3ff35F201
0 ETH0.000351545.34200032
Claim Reward198022282024-05-05 6:53:3563 days ago1714892015IN
0x76Fe3456...3ff35F201
0 ETH0.000484798.00831469
Start Reload Per...198022262024-05-05 6:52:5963 days ago1714891979IN
0x76Fe3456...3ff35F201
0 ETH0.001547668.32855039
Deposit195873472024-04-05 5:05:3593 days ago1712293535IN
0x76Fe3456...3ff35F201
0 ETH0.0047360815.36850903
Start Reload Per...195108962024-03-25 10:27:11104 days ago1711362431IN
0x76Fe3456...3ff35F201
0 ETH0.0035295919.22574238
Claim Reward192465262024-02-17 8:54:35141 days ago1708160075IN
0x76Fe3456...3ff35F201
0 ETH0.0042324619.69129413
Start Reload Per...192442542024-02-17 1:14:59141 days ago1708132499IN
0x76Fe3456...3ff35F201
0 ETH0.0036638516.36561463
Start Mining Ses...189953912024-01-13 3:48:35176 days ago1705117715IN
0x76Fe3456...3ff35F201
0 ETH0.0032235517.18955412
Deposit189530562024-01-07 5:09:59182 days ago1704604199IN
0x76Fe3456...3ff35F201
0 ETH0.0038991329.87862142
Claim Reward189485552024-01-06 13:47:35183 days ago1704548855IN
0x76Fe3456...3ff35F201
0 ETH0.0006102215.12181089
Deposit189485512024-01-06 13:46:47183 days ago1704548807IN
0x76Fe3456...3ff35F201
0 ETH0.0020230515.50106245
Deposit189485072024-01-06 13:37:47183 days ago1704548267IN
0x76Fe3456...3ff35F201
0 ETH0.0009679519.87256082
Deposit189419192024-01-05 15:20:23184 days ago1704468023IN
0x76Fe3456...3ff35F201
0 ETH0.0015732632.30001105
Deposit189418782024-01-05 15:12:11184 days ago1704467531IN
0x76Fe3456...3ff35F201
0 ETH0.0016321733.50933966
Deposit189418722024-01-05 15:10:59184 days ago1704467459IN
0x76Fe3456...3ff35F201
0 ETH0.0018460137.89962542
Deposit189390772024-01-05 5:43:59184 days ago1704433439IN
0x76Fe3456...3ff35F201
0 ETH0.0017042416.20115152
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CarnivalCommunityASICMiner

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : CommunityCarnivalASICMiner.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.16;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

interface PulseBitcoin {
    struct MinerStore {
        uint128 bitoshisMiner;
        uint128 bitoshisReturned;
        uint96 pSatoshisMined;
        uint96 bitoshisBurned;
        uint40 minerId;
        uint24 day;
    }

    function minerStart(uint256 bitoshisMiner) external;

    function minerEnd(
        uint256 minerIndex,
        uint256 minerId,
        address minerAddr
    ) external;

    function calcPayoutAndFee(uint256 bitoshis)
    external
    view
    returns (
        uint256 pSatoshisMine,
        uint256 bitoshisBurn,
        uint256 bitoshisReturn,
        bool isHalving
    );

    function minerList(address, uint256)
    external
    view
    returns (
        uint128,
        uint128,
        uint96,
        uint96,
        uint40,
        uint24
    );
}

interface PLSDStaker {
    function depositPLSB(uint256 _amount) external;

    function depositASIC(uint256 _amount) external;
}

contract CarnivalCommunityASICMiner is ReentrancyGuard {
    using SafeERC20 for IERC20;
    // Constants
    uint256 public constant MIN_ASIC_DEPOSIT = 25 * 1e12;
    uint256 public constant CARN_COST = 10 * 1e12;
    uint256 public constant MINING_PERIOD = 30 days;
    uint256 public constant RELOAD_PERIOD = 5 days;
    uint256 public constant TRAPPED_POOL_TARGET = 100000 * 1e12; // 100K CARNs

    // Token Addresses
    address public immutable CARN;
    address public immutable ASIC;
    address public immutable PLSB;

    address public immutable waatcaPool;
    address public immutable buyAndBurnContract;
    address public immutable plsdStakingContract;

    // Variables
    mapping(address => AsicDeposit) public asicDeposits; // keeps track of user's ASIC deposits for the session

    uint256 public totalAsicDepositForThePreviousSession; // total ASICs deposited for the previous sessionId
    uint256 public totalAsicDepositForTheCurrentSession; // total ASICs deposited for the current sessionId
    uint256 public trappedAsicReleasePool; // keeps track of carn deposited by the community

    uint256 public nextMiningStartTime; // start of next mining session as timestamp
    uint256 public nextReloadTime; // start of next reload period as timestamp

    uint256 public totalPLSBRewards; // total PLSB rewards for the mining session
    uint256 public currentSessionId; // keeps track of current mining session Id
    uint256 public unclaimedRewards; // keeps track of unclaimed amount from reward pool

    uint256 public numParticipantsForThisSession; // total depositors for each session
    uint256 public numTotalDepositsForAllSessions; // total sum of all depositors from all sessions
    uint256 public asicUsedToMine; // keeps track of how much asic was used to mine in a session...we cant just use the balance of the account since the asic gets MINED!

    enum State {RELOAD, MINING}

    State public state; // keeps track of the current state of the contract

    struct AsicDeposit {uint256 amount; uint256 sessionId;}

    // Events
    event Deposit(address indexed depositor, uint256 indexed sessionId, uint256 asicAmount, uint256 carnAmount);
    event RewardClaim(address indexed withdrawer, uint256 indexed sessionId, uint256 plsbAmount);
    event MiningSessionStart(address indexed caller, uint256 id, uint256 startTime);
    event ReloadPeriodStart(address indexed caller, uint256 id, uint256 reloadTime);
    event RewardReset(address indexed miner, uint256 indexed sessionId);
    event CARNDepositToTrappedPool(address indexed depositor, uint256 amount, uint256 time);
    event ASICReleased(uint256 amount, uint256 time);
    event CARNReleased(uint256 amount, uint256 time);

    constructor(
        address _waatcaPoolAddress,
        address _buyAndBurnContractAddress,
        address _plsdStakingContractAddress,
        address _CARN,
        address _PLSB,
        address _ASIC
    ) {
        waatcaPool = _waatcaPoolAddress;
        buyAndBurnContract = _buyAndBurnContractAddress;
        plsdStakingContract = _plsdStakingContractAddress;
        CARN = _CARN;
        PLSB = _PLSB;
        ASIC = _ASIC;

        nextMiningStartTime = block.timestamp + 30 days;
        currentSessionId = 1;
    }


    function deposit(uint256 _asicAmount) public nonReentrant {
        numParticipantsForThisSession += 1;
        numTotalDepositsForAllSessions += 1;
        if (block.timestamp > nextReloadTime && state != State.RELOAD) {
            startReloadPeriod();
        }

        if (
            asicDeposits[msg.sender].amount == 0 &&
            asicDeposits[msg.sender].sessionId != currentSessionId
        ) {
            // new miner/miner don't have any pending claims, update sessionId
            asicDeposits[msg.sender].sessionId = currentSessionId;
        }

        require(
            _asicAmount >= MIN_ASIC_DEPOSIT,
            "At least minimum ASIC deposit required"
        );


        require(state == State.RELOAD, "Not in reload period");

        require(
            asicDeposits[msg.sender].sessionId == currentSessionId,
            "Please claim rewards for the previous session"
        );

        asicDeposits[msg.sender].amount += _asicAmount;
        totalAsicDepositForTheCurrentSession += _asicAmount;

        // Transfer the ASIC to contract
        IERC20(ASIC).safeTransferFrom(msg.sender, address(this), _asicAmount);
        IERC20(CARN).safeTransferFrom(msg.sender, buyAndBurnContract, CARN_COST);

        emit Deposit(msg.sender, currentSessionId, _asicAmount, CARN_COST);

        // Start mining session if it has not already started
        if (block.timestamp > nextMiningStartTime && state == State.RELOAD) {
            startMiningSession();
        }
    }

    function startMiningSession() public {
        require(state != State.MINING, "Mining session already started");
        require(
            block.timestamp > nextMiningStartTime,
            "Reload period not ended yet"
        );

        uint256 _asicBalance = IERC20(ASIC).balanceOf(address(this));
        (totalPLSBRewards, , , ) = PulseBitcoin(PLSB).calcPayoutAndFee(
            _asicBalance
        );

        totalPLSBRewards += unclaimedRewards;
        nextMiningStartTime = block.timestamp + MINING_PERIOD + RELOAD_PERIOD;
        nextReloadTime = block.timestamp + MINING_PERIOD;

        state = State.MINING;
        currentSessionId++;

        totalAsicDepositForThePreviousSession = totalAsicDepositForTheCurrentSession;
        totalAsicDepositForTheCurrentSession = 0;

        asicUsedToMine = _asicBalance;
        PulseBitcoin(PLSB).minerStart(_asicBalance);
        emit MiningSessionStart(
            msg.sender,
            currentSessionId - 1,
            block.timestamp
        );
    }

    function getMinerStore() internal view returns (uint128, uint128, uint96, uint96, uint40, uint24) {
        return PulseBitcoin(PLSB).minerList(address(this), 0);
    }

    function startReloadPeriod() public {
        numParticipantsForThisSession = 0;
        require(state != State.RELOAD, "Already in reload period");
        require(
            block.timestamp > nextReloadTime,
            "Mining session not ended yet"
        );

        state = State.RELOAD;

        uint256 _asicBalance = IERC20(ASIC).balanceOf(address(this));
        uint256 _asicToTransfer = (_asicBalance * 5) / 100;
        uint256 _plsbToTransfer = (totalPLSBRewards * 5) / 100;

        uint40 _minerId;
        (, , , , _minerId, ) = getMinerStore();
        PulseBitcoin(PLSB).minerEnd(0, _minerId, address(this));

        IERC20(PLSB).approve(plsdStakingContract, _plsbToTransfer);
        PLSDStaker(plsdStakingContract).depositPLSB(_plsbToTransfer);
        IERC20(PLSB).safeTransfer(waatcaPool, _plsbToTransfer);

        IERC20(ASIC).approve(plsdStakingContract, _asicToTransfer);
        PLSDStaker(plsdStakingContract).depositASIC(_asicToTransfer);
        IERC20(ASIC).safeTransfer(waatcaPool, _asicToTransfer);

        totalPLSBRewards -= _plsbToTransfer * 2;
        unclaimedRewards = totalPLSBRewards;
        emit ReloadPeriodStart(msg.sender, currentSessionId, block.timestamp);
    }

    function claimReward() external nonReentrant {
        if (block.timestamp > nextReloadTime && state != State.RELOAD) {
            // mining ended, start reload period
            startReloadPeriod();
        }

        require(state == State.RELOAD, "Can't claim during mining session");
        require(asicDeposits[msg.sender].amount > 0, "No deposits");

        if (asicDeposits[msg.sender].sessionId == currentSessionId - 1) {
            // normal case - user can claim their rewards
            uint256 _plsbReward = (totalPLSBRewards * asicDeposits[msg.sender].amount) / totalAsicDepositForThePreviousSession;

            unclaimedRewards -= _plsbReward;

            asicDeposits[msg.sender].amount = 0;
            asicDeposits[msg.sender].sessionId = currentSessionId;
            IERC20(PLSB).safeTransfer(msg.sender, _plsbReward);
            emit RewardClaim(msg.sender, currentSessionId - 1, _plsbReward);
        } else if (asicDeposits[msg.sender].sessionId == currentSessionId) {
            revert("Mining for this session is not finished yet");
        } else {
            // Invalid sessionId - reset user's amount and sessionId
            asicDeposits[msg.sender].amount = 0;
            asicDeposits[msg.sender].sessionId = currentSessionId;

            emit RewardReset(msg.sender, currentSessionId);
        }

        if (block.timestamp > nextMiningStartTime && state == State.RELOAD) {
            // reload period ended, start mining
            startMiningSession();
        }
    }




    function depositCARNToTrappedPool(uint256 _carnAmount) external nonReentrant {
        trappedAsicReleasePool += _carnAmount;
        IERC20(CARN).safeTransferFrom(msg.sender, address(this), _carnAmount);
        emit CARNDepositToTrappedPool(msg.sender, _carnAmount, block.timestamp);
        if (
            trappedAsicReleasePool >= TRAPPED_POOL_TARGET &&
            state == State.RELOAD
        ) {
            require(trappedAsicReleasePool >= TRAPPED_POOL_TARGET, "Target not reached yet");
            releaseASIC();
            releaseCARN();
            trappedAsicReleasePool = 0;
        }
    }

    function releaseASIC() internal {
        uint256 _asicBalance = IERC20(ASIC).balanceOf(address(this)) - totalAsicDepositForTheCurrentSession;
        uint256 _asicToPlsdStaker = (_asicBalance * 60) / 100;
        uint256 _asicToWaatca = _asicBalance - _asicToPlsdStaker;

        IERC20(ASIC).approve(plsdStakingContract, _asicToPlsdStaker);
        PLSDStaker(plsdStakingContract).depositASIC(_asicToPlsdStaker);
        IERC20(ASIC).safeTransfer(waatcaPool, _asicToWaatca);
        emit ASICReleased(_asicBalance, block.timestamp);
    }

    function releaseCARN() internal {
        uint256 _carnBalance = IERC20(CARN).balanceOf(address(this));
        IERC20(CARN).safeTransfer(buyAndBurnContract, _carnBalance);
        emit CARNReleased(_carnBalance, block.timestamp);
    }
}

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

File 3 of 6 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 5 of 6 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_waatcaPoolAddress","type":"address"},{"internalType":"address","name":"_buyAndBurnContractAddress","type":"address"},{"internalType":"address","name":"_plsdStakingContractAddress","type":"address"},{"internalType":"address","name":"_CARN","type":"address"},{"internalType":"address","name":"_PLSB","type":"address"},{"internalType":"address","name":"_ASIC","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"ASICReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"depositor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"CARNDepositToTrappedPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"CARNReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"depositor","type":"address"},{"indexed":true,"internalType":"uint256","name":"sessionId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"asicAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"carnAmount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"MiningSessionStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reloadTime","type":"uint256"}],"name":"ReloadPeriodStart","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"withdrawer","type":"address"},{"indexed":true,"internalType":"uint256","name":"sessionId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"plsbAmount","type":"uint256"}],"name":"RewardClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"miner","type":"address"},{"indexed":true,"internalType":"uint256","name":"sessionId","type":"uint256"}],"name":"RewardReset","type":"event"},{"inputs":[],"name":"ASIC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CARN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CARN_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINING_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_ASIC_DEPOSIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PLSB","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RELOAD_PERIOD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRAPPED_POOL_TARGET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"asicDeposits","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"sessionId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"asicUsedToMine","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyAndBurnContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentSessionId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_asicAmount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_carnAmount","type":"uint256"}],"name":"depositCARNToTrappedPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nextMiningStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextReloadTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numParticipantsForThisSession","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numTotalDepositsForAllSessions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"plsdStakingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startMiningSession","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startReloadPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"state","outputs":[{"internalType":"enum CarnivalCommunityASICMiner.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAsicDepositForTheCurrentSession","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAsicDepositForThePreviousSession","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPLSBRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trappedAsicReleasePool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unclaimedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"waatcaPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6101406040523480156200001257600080fd5b50604051620038ad380380620038ad83398181016040528101906200003891906200020f565b60016000819055508573ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff16815250508473ffffffffffffffffffffffffffffffffffffffff166101008173ffffffffffffffffffffffffffffffffffffffff16815250508373ffffffffffffffffffffffffffffffffffffffff166101208173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508173ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff168152505062278d00426200018b9190620002e4565b60058190555060016008819055505050505050506200031f565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001d782620001aa565b9050919050565b620001e981620001ca565b8114620001f557600080fd5b50565b6000815190506200020981620001de565b92915050565b60008060008060008060c087890312156200022f576200022e620001a5565b5b60006200023f89828a01620001f8565b96505060206200025289828a01620001f8565b95505060406200026589828a01620001f8565b94505060606200027889828a01620001f8565b93505060806200028b89828a01620001f8565b92505060a06200029e89828a01620001f8565b9150509295509295509295565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000620002f182620002ab565b9150620002fe83620002ab565b9250828201905080821115620003195762000318620002b5565b5b92915050565b60805160a05160c05160e051610100516101205161346c620004416000396000818161071101528181610dc001528181610e4301528181610f7501528181610ff801528181611dbe0152611e41015260008181610ae8015281816114fc0152612016015260008181610ed10152818161108601528181611b650152611ecf01526000818161088c015281816109e401528181610cf401528181610d8401528181610ef3015281816118de01528181611ba201526120cd01526000818161050e015281816107f001528181610bfb01528181610f39015281816110a8015281816114b101528181611caf01528181611d820152611ef10152600081816105590152818161152401528181611b4101528181611f770152612038015261346c6000f3fe608060405234801561001057600080fd5b50600436106101ce5760003560e01c8063789ba9f611610104578063b88a802f116100a2578063c67eda9911610071578063c67eda9914610494578063d090a5a7146104b2578063f47fd457146104d0578063f85f91b4146104ee576101ce565b8063b88a802f14610430578063b9419a1b1461043a578063be07ae7714610458578063c19d93fb14610476576101ce565b80638fe26266116100de5780638fe26266146103ce578063a1df6eae146103d8578063ad3be0f7146103f6578063b6b55f2514610414576101ce565b8063789ba9f614610374578063815d1c04146103925780638474e283146103b0576101ce565b806339b0e5ea11610171578063482853c91161014b578063482853c91461031057806349e22fa51461032e57806362386805146103385780636597a13014610356576101ce565b806339b0e5ea146102b65780633a213b66146102d45780633e357e43146102f2576101ce565b80631c543f93116101ad5780631c543f931461022b5780632a3616bd1461024957806332e03d7b1461027a5780633757bdf814610298576101ce565b8062d795b1146101d35780630780bdb9146101f15780630fe941ed1461020d575b600080fd5b6101db61050c565b6040516101e891906124d7565b60405180910390f35b61020b6004803603810190610206919061252d565b610530565b005b6102156106b1565b6040516102229190612569565b60405180910390f35b6102336106bb565b6040516102409190612569565b60405180910390f35b610263600480360381019061025e91906125b0565b6106c5565b6040516102719291906125dd565b60405180910390f35b6102826106e9565b60405161028f9190612569565b60405180910390f35b6102a06106f0565b6040516102ad9190612569565b60405180910390f35b6102be6106f6565b6040516102cb9190612569565b60405180910390f35b6102dc6106fc565b6040516102e99190612569565b60405180910390f35b6102fa610703565b6040516103079190612569565b60405180910390f35b61031861070f565b60405161032591906124d7565b60405180910390f35b610336610733565b005b610340610ace565b60405161034d9190612569565b60405180910390f35b61035e610ad4565b60405161036b9190612569565b60405180910390f35b61037c610ada565b6040516103899190612569565b60405180910390f35b61039a610ae0565b6040516103a79190612569565b60405180910390f35b6103b8610ae6565b6040516103c591906124d7565b60405180910390f35b6103d6610b0a565b005b6103e0611172565b6040516103ed9190612569565b60405180910390f35b6103fe611178565b60405161040b9190612569565b60405180910390f35b61042e6004803603810190610429919061252d565b61117e565b005b61043861161f565b005b610442611b3f565b60405161044f91906124d7565b60405180910390f35b610460611b63565b60405161046d91906124d7565b60405180910390f35b61047e611b87565b60405161048b919061267d565b60405180910390f35b61049c611b9a565b6040516104a99190612569565b60405180910390f35b6104ba611ba0565b6040516104c791906124d7565b60405180910390f35b6104d8611bc4565b6040516104e59190612569565b60405180910390f35b6104f6611bca565b6040516105039190612569565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b610538611bd0565b806004600082825461054a91906126c7565b9250508190555061059e3330837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611c1f909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f06948d3cd1c38e7c818750f08f659abdf83d339abe934f7c30920783f7323b6282426040516105e69291906125dd565b60405180910390a267016345785d8a00006004541015801561063b57506000600181111561061757610616612606565b5b600d60009054906101000a900460ff16600181111561063957610638612606565b5b145b156106a65767016345785d8a0000600454101561068d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068490612758565b60405180910390fd5b610695611ca8565b61069d611f73565b60006004819055505b6106ae6120b8565b50565b6516bcc41e900081565b6509184e72a00081565b60016020528060005260406000206000915090508060000154908060010154905082565b62278d0081565b60045481565b600a5481565b6206978081565b67016345785d8a000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60018081111561074657610745612606565b5b600d60009054906101000a900460ff16600181111561076857610767612606565b5b036107a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079f906127c4565b60405180910390fd5b60055442116107ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e390612830565b60405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161084791906124d7565b602060405180830381865afa158015610864573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108889190612865565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16630b5302c4826040518263ffffffff1660e01b81526004016108e39190612569565b608060405180830381865afa158015610900573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092491906128ca565b909150905050600760008291905055506009546007600082825461094891906126c7565b925050819055506206978062278d004261096291906126c7565b61096c91906126c7565b60058190555062278d004261098191906126c7565b6006819055506001600d60006101000a81548160ff021916908360018111156109ad576109ac612606565b5b0217905550600860008154809291906109c590612931565b9190505550600354600281905550600060038190555080600c819055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636b7d3b49826040518263ffffffff1660e01b8152600401610a3b9190612569565b600060405180830381600087803b158015610a5557600080fd5b505af1158015610a69573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff167fd044862873b87b44efe5db64a4522355cfa53c8251f4bdeeb76a82aa4ab7d8fb6001600854610ab49190612979565b42604051610ac39291906125dd565b60405180910390a250565b60075481565b60085481565b60065481565b60055481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600a8190555060006001811115610b2657610b25612606565b5b600d60009054906101000a900460ff166001811115610b4857610b47612606565b5b03610b88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7f906129f9565b60405180910390fd5b6006544211610bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc390612a65565b60405180910390fd5b6000600d60006101000a81548160ff02191690836001811115610bf257610bf1612606565b5b021790555060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c5291906124d7565b602060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190612865565b905060006064600583610ca69190612a85565b610cb09190612af6565b9050600060646005600754610cc59190612a85565b610ccf9190612af6565b90506000610cdb6120c2565b90919293945090919293509091925090915050809150507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663781137fa600083306040518463ffffffff1660e01b8152600401610d5093929190612bae565b600060405180830381600087803b158015610d6a57600080fd5b505af1158015610d7e573d6000803e3d6000fd5b505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b8152600401610dfd929190612be5565b6020604051808303816000875af1158015610e1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e409190612c0e565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663e8ee9bf1836040518263ffffffff1660e01b8152600401610e9a9190612569565b600060405180830381600087803b158015610eb457600080fd5b505af1158015610ec8573d6000803e3d6000fd5b50505050610f377f0000000000000000000000000000000000000000000000000000000000000000837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661217c9092919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000856040518363ffffffff1660e01b8152600401610fb2929190612be5565b6020604051808303816000875af1158015610fd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff59190612c0e565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16633ddf3ac7846040518263ffffffff1660e01b815260040161104f9190612569565b600060405180830381600087803b15801561106957600080fd5b505af115801561107d573d6000803e3d6000fd5b505050506110ec7f0000000000000000000000000000000000000000000000000000000000000000847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661217c9092919063ffffffff16565b6002826110f99190612a85565b6007600082825461110a9190612979565b925050819055506007546009819055503373ffffffffffffffffffffffffffffffffffffffff167ffb30e27e0c0cfd01dcd576c7409088227abc2239ee0ab801f41b1a5506c7cf97600854426040516111649291906125dd565b60405180910390a250505050565b60035481565b600c5481565b611186611bd0565b6001600a600082825461119991906126c7565b925050819055506001600b60008282546111b391906126c7565b92505081905550600654421180156111ff5750600060018111156111da576111d9612606565b5b600d60009054906101000a900460ff1660018111156111fc576111fb612606565b5b14155b1561120d5761120c610b0a565b5b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001541480156112a35750600854600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015414155b156112f257600854600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055505b6516bcc41e900081101561133b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133290612cad565b60405180910390fd5b6000600181111561134f5761134e612606565b5b600d60009054906101000a900460ff16600181111561137157611370612606565b5b146113b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a890612d19565b60405180910390fd5b600854600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015414611437576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142e90612dab565b60405180910390fd5b80600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600082825461148991906126c7565b9250508190555080600360008282546114a291906126c7565b925050819055506114f63330837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611c1f909392919063ffffffff16565b611569337f00000000000000000000000000000000000000000000000000000000000000006509184e72a0007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16611c1f909392919063ffffffff16565b6008543373ffffffffffffffffffffffffffffffffffffffff167f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e836509184e72a0006040516115ba9291906125dd565b60405180910390a3600554421180156116065750600060018111156115e2576115e1612606565b5b600d60009054906101000a900460ff16600181111561160457611603612606565b5b145b1561161457611613610733565b5b61161c6120b8565b50565b611627611bd0565b6006544211801561166c57506000600181111561164757611646612606565b5b600d60009054906101000a900460ff16600181111561166957611668612606565b5b14155b1561167a57611679610b0a565b5b6000600181111561168e5761168d612606565b5b600d60009054906101000a900460ff1660018111156116b0576116af612606565b5b146116f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e790612e3d565b60405180910390fd5b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411611775576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176c90612ea9565b60405180910390fd5b60016008546117849190612979565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015403611985576000600254600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546007546118219190612a85565b61182b9190612af6565b9050806009600082825461183f9190612979565b925050819055506000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600854600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018190555061192233827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661217c9092919063ffffffff16565b60016008546119319190612979565b3373ffffffffffffffffffffffffffffffffffffffff167f5a2ecdb14b94278f5a76efb2b0742090477e505b7d67ad574053b77dc045d48f836040516119779190612569565b60405180910390a350611ae3565b600854600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015403611a0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0290612f3b565b60405180910390fd5b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600854600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055506008543373ffffffffffffffffffffffffffffffffffffffff167f4cdebe0d16716e79c78fd92a7feb868dad400f77e1e397cb11ab5fc433fe802460405160405180910390a35b60055442118015611b27575060006001811115611b0357611b02612606565b5b600d60009054906101000a900460ff166001811115611b2557611b24612606565b5b145b15611b3557611b34610733565b5b611b3d6120b8565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600d60009054906101000a900460ff1681565b600b5481565b7f000000000000000000000000000000000000000000000000000000000000000081565b60025481565b60095481565b600260005403611c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0c90612fa7565b60405180910390fd5b6002600081905550565b611ca2846323b872dd60e01b858585604051602401611c4093929190612fc7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612202565b50505050565b60006003547f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611d0691906124d7565b602060405180830381865afa158015611d23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d479190612865565b611d519190612979565b905060006064603c83611d649190612a85565b611d6e9190612af6565b905060008183611d7e9190612979565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b8152600401611dfb929190612be5565b6020604051808303816000875af1158015611e1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3e9190612c0e565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16633ddf3ac7836040518263ffffffff1660e01b8152600401611e989190612569565b600060405180830381600087803b158015611eb257600080fd5b505af1158015611ec6573d6000803e3d6000fd5b50505050611f357f0000000000000000000000000000000000000000000000000000000000000000827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661217c9092919063ffffffff16565b7fa7f83b10748d0d08c3e5cd3a2843c819c78fdb28cb2fe08d7fe7c591e28e7eff8342604051611f669291906125dd565b60405180910390a1505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611fce91906124d7565b602060405180830381865afa158015611feb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200f9190612865565b905061207c7f0000000000000000000000000000000000000000000000000000000000000000827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1661217c9092919063ffffffff16565b7f479f77ede19fc41d3b27cb7bc1c4dba83bcfa4f53030487d340534e4fa44ea4281426040516120ad9291906125dd565b60405180910390a150565b6001600081905550565b6000806000806000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b7af876b3060006040518363ffffffff1660e01b8152600401612127929190612ffe565b60c060405180830381865afa158015612144573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612168919061311a565b955095509550955095509550909192939495565b6121fd8363a9059cbb60e01b848460405160240161219b929190612be5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612202565b505050565b6000612264826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166122c99092919063ffffffff16565b90506000815111156122c457808060200190518101906122849190612c0e565b6122c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ba90613219565b60405180910390fd5b5b505050565b60606122d884846000856122e1565b90509392505050565b606082471015612326576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231d906132ab565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161234f919061333c565b60006040518083038185875af1925050503d806000811461238c576040519150601f19603f3d011682016040523d82523d6000602084013e612391565b606091505b50915091506123a2878383876123ae565b92505050949350505050565b60608315612410576000835103612408576123c885612423565b612407576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123fe9061339f565b60405180910390fd5b5b82905061241b565b61241a8383612446565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156124595781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248d9190613414565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006124c182612496565b9050919050565b6124d1816124b6565b82525050565b60006020820190506124ec60008301846124c8565b92915050565b600080fd5b6000819050919050565b61250a816124f7565b811461251557600080fd5b50565b60008135905061252781612501565b92915050565b600060208284031215612543576125426124f2565b5b600061255184828501612518565b91505092915050565b612563816124f7565b82525050565b600060208201905061257e600083018461255a565b92915050565b61258d816124b6565b811461259857600080fd5b50565b6000813590506125aa81612584565b92915050565b6000602082840312156125c6576125c56124f2565b5b60006125d48482850161259b565b91505092915050565b60006040820190506125f2600083018561255a565b6125ff602083018461255a565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811061264657612645612606565b5b50565b600081905061265782612635565b919050565b600061266782612649565b9050919050565b6126778161265c565b82525050565b6000602082019050612692600083018461266e565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006126d2826124f7565b91506126dd836124f7565b92508282019050808211156126f5576126f4612698565b5b92915050565b600082825260208201905092915050565b7f546172676574206e6f7420726561636865642079657400000000000000000000600082015250565b60006127426016836126fb565b915061274d8261270c565b602082019050919050565b6000602082019050818103600083015261277181612735565b9050919050565b7f4d696e696e672073657373696f6e20616c726561647920737461727465640000600082015250565b60006127ae601e836126fb565b91506127b982612778565b602082019050919050565b600060208201905081810360008301526127dd816127a1565b9050919050565b7f52656c6f616420706572696f64206e6f7420656e646564207965740000000000600082015250565b600061281a601b836126fb565b9150612825826127e4565b602082019050919050565b600060208201905081810360008301526128498161280d565b9050919050565b60008151905061285f81612501565b92915050565b60006020828403121561287b5761287a6124f2565b5b600061288984828501612850565b91505092915050565b60008115159050919050565b6128a781612892565b81146128b257600080fd5b50565b6000815190506128c48161289e565b92915050565b600080600080608085870312156128e4576128e36124f2565b5b60006128f287828801612850565b945050602061290387828801612850565b935050604061291487828801612850565b9250506060612925878288016128b5565b91505092959194509250565b600061293c826124f7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361296e5761296d612698565b5b600182019050919050565b6000612984826124f7565b915061298f836124f7565b92508282039050818111156129a7576129a6612698565b5b92915050565b7f416c726561647920696e2072656c6f616420706572696f640000000000000000600082015250565b60006129e36018836126fb565b91506129ee826129ad565b602082019050919050565b60006020820190508181036000830152612a12816129d6565b9050919050565b7f4d696e696e672073657373696f6e206e6f7420656e6465642079657400000000600082015250565b6000612a4f601c836126fb565b9150612a5a82612a19565b602082019050919050565b60006020820190508181036000830152612a7e81612a42565b9050919050565b6000612a90826124f7565b9150612a9b836124f7565b9250828202612aa9816124f7565b91508282048414831517612ac057612abf612698565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612b01826124f7565b9150612b0c836124f7565b925082612b1c57612b1b612ac7565b5b828204905092915050565b6000819050919050565b6000819050919050565b6000612b56612b51612b4c84612b27565b612b31565b6124f7565b9050919050565b612b6681612b3b565b82525050565b600064ffffffffff82169050919050565b6000612b98612b93612b8e84612b6c565b612b31565b6124f7565b9050919050565b612ba881612b7d565b82525050565b6000606082019050612bc36000830186612b5d565b612bd06020830185612b9f565b612bdd60408301846124c8565b949350505050565b6000604082019050612bfa60008301856124c8565b612c07602083018461255a565b9392505050565b600060208284031215612c2457612c236124f2565b5b6000612c32848285016128b5565b91505092915050565b7f4174206c65617374206d696e696d756d2041534943206465706f73697420726560008201527f7175697265640000000000000000000000000000000000000000000000000000602082015250565b6000612c976026836126fb565b9150612ca282612c3b565b604082019050919050565b60006020820190508181036000830152612cc681612c8a565b9050919050565b7f4e6f7420696e2072656c6f616420706572696f64000000000000000000000000600082015250565b6000612d036014836126fb565b9150612d0e82612ccd565b602082019050919050565b60006020820190508181036000830152612d3281612cf6565b9050919050565b7f506c6561736520636c61696d207265776172647320666f72207468652070726560008201527f76696f75732073657373696f6e00000000000000000000000000000000000000602082015250565b6000612d95602d836126fb565b9150612da082612d39565b604082019050919050565b60006020820190508181036000830152612dc481612d88565b9050919050565b7f43616e277420636c61696d20647572696e67206d696e696e672073657373696f60008201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000612e276021836126fb565b9150612e3282612dcb565b604082019050919050565b60006020820190508181036000830152612e5681612e1a565b9050919050565b7f4e6f206465706f73697473000000000000000000000000000000000000000000600082015250565b6000612e93600b836126fb565b9150612e9e82612e5d565b602082019050919050565b60006020820190508181036000830152612ec281612e86565b9050919050565b7f4d696e696e6720666f7220746869732073657373696f6e206973206e6f74206660008201527f696e697368656420796574000000000000000000000000000000000000000000602082015250565b6000612f25602b836126fb565b9150612f3082612ec9565b604082019050919050565b60006020820190508181036000830152612f5481612f18565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612f91601f836126fb565b9150612f9c82612f5b565b602082019050919050565b60006020820190508181036000830152612fc081612f84565b9050919050565b6000606082019050612fdc60008301866124c8565b612fe960208301856124c8565b612ff6604083018461255a565b949350505050565b600060408201905061301360008301856124c8565b6130206020830184612b5d565b9392505050565b60006fffffffffffffffffffffffffffffffff82169050919050565b61304c81613027565b811461305757600080fd5b50565b60008151905061306981613043565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6130908161306f565b811461309b57600080fd5b50565b6000815190506130ad81613087565b92915050565b6130bc81612b6c565b81146130c757600080fd5b50565b6000815190506130d9816130b3565b92915050565b600062ffffff82169050919050565b6130f7816130df565b811461310257600080fd5b50565b600081519050613114816130ee565b92915050565b60008060008060008060c08789031215613137576131366124f2565b5b600061314589828a0161305a565b965050602061315689828a0161305a565b955050604061316789828a0161309e565b945050606061317889828a0161309e565b935050608061318989828a016130ca565b92505060a061319a89828a01613105565b9150509295509295509295565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613203602a836126fb565b915061320e826131a7565b604082019050919050565b60006020820190508181036000830152613232816131f6565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006132956026836126fb565b91506132a082613239565b604082019050919050565b600060208201905081810360008301526132c481613288565b9050919050565b600081519050919050565b600081905092915050565b60005b838110156132ff5780820151818401526020810190506132e4565b60008484015250505050565b6000613316826132cb565b61332081856132d6565b93506133308185602086016132e1565b80840191505092915050565b6000613348828461330b565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613389601d836126fb565b915061339482613353565b602082019050919050565b600060208201905081810360008301526133b88161337c565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006133e6826133bf565b6133f081856126fb565b93506134008185602086016132e1565b613409816133ca565b840191505092915050565b6000602082019050818103600083015261342e81846133db565b90509291505056fea264697066735822122067395aba12a98045ed3d8372a733d83024f3a4ceb0b9a71368b6bbe23d75dd5564736f6c63430008110033000000000000000000000000d55fe0a9b00bb8c2691fc5b30a99496b7a7c366500000000000000000000000004e3faa5758a2768ddafd34d91e7d04eef8feae200000000000000000000000002eb294af5e1fe16eb701f164bf8cf396e0cd8aa000000000000000000000000488db574c77dd27a07f9c97bac673bc8e9fc6bf30000000000000000000000005ee84583f67d5ecea5420dbb42b462896e7f8d06000000000000000000000000347a96a5bd06d2e15199b032f46fb724d6c73047

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ce5760003560e01c8063789ba9f611610104578063b88a802f116100a2578063c67eda9911610071578063c67eda9914610494578063d090a5a7146104b2578063f47fd457146104d0578063f85f91b4146104ee576101ce565b8063b88a802f14610430578063b9419a1b1461043a578063be07ae7714610458578063c19d93fb14610476576101ce565b80638fe26266116100de5780638fe26266146103ce578063a1df6eae146103d8578063ad3be0f7146103f6578063b6b55f2514610414576101ce565b8063789ba9f614610374578063815d1c04146103925780638474e283146103b0576101ce565b806339b0e5ea11610171578063482853c91161014b578063482853c91461031057806349e22fa51461032e57806362386805146103385780636597a13014610356576101ce565b806339b0e5ea146102b65780633a213b66146102d45780633e357e43146102f2576101ce565b80631c543f93116101ad5780631c543f931461022b5780632a3616bd1461024957806332e03d7b1461027a5780633757bdf814610298576101ce565b8062d795b1146101d35780630780bdb9146101f15780630fe941ed1461020d575b600080fd5b6101db61050c565b6040516101e891906124d7565b60405180910390f35b61020b6004803603810190610206919061252d565b610530565b005b6102156106b1565b6040516102229190612569565b60405180910390f35b6102336106bb565b6040516102409190612569565b60405180910390f35b610263600480360381019061025e91906125b0565b6106c5565b6040516102719291906125dd565b60405180910390f35b6102826106e9565b60405161028f9190612569565b60405180910390f35b6102a06106f0565b6040516102ad9190612569565b60405180910390f35b6102be6106f6565b6040516102cb9190612569565b60405180910390f35b6102dc6106fc565b6040516102e99190612569565b60405180910390f35b6102fa610703565b6040516103079190612569565b60405180910390f35b61031861070f565b60405161032591906124d7565b60405180910390f35b610336610733565b005b610340610ace565b60405161034d9190612569565b60405180910390f35b61035e610ad4565b60405161036b9190612569565b60405180910390f35b61037c610ada565b6040516103899190612569565b60405180910390f35b61039a610ae0565b6040516103a79190612569565b60405180910390f35b6103b8610ae6565b6040516103c591906124d7565b60405180910390f35b6103d6610b0a565b005b6103e0611172565b6040516103ed9190612569565b60405180910390f35b6103fe611178565b60405161040b9190612569565b60405180910390f35b61042e6004803603810190610429919061252d565b61117e565b005b61043861161f565b005b610442611b3f565b60405161044f91906124d7565b60405180910390f35b610460611b63565b60405161046d91906124d7565b60405180910390f35b61047e611b87565b60405161048b919061267d565b60405180910390f35b61049c611b9a565b6040516104a99190612569565b60405180910390f35b6104ba611ba0565b6040516104c791906124d7565b60405180910390f35b6104d8611bc4565b6040516104e59190612569565b60405180910390f35b6104f6611bca565b6040516105039190612569565b60405180910390f35b7f000000000000000000000000347a96a5bd06d2e15199b032f46fb724d6c7304781565b610538611bd0565b806004600082825461054a91906126c7565b9250508190555061059e3330837f000000000000000000000000488db574c77dd27a07f9c97bac673bc8e9fc6bf373ffffffffffffffffffffffffffffffffffffffff16611c1f909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f06948d3cd1c38e7c818750f08f659abdf83d339abe934f7c30920783f7323b6282426040516105e69291906125dd565b60405180910390a267016345785d8a00006004541015801561063b57506000600181111561061757610616612606565b5b600d60009054906101000a900460ff16600181111561063957610638612606565b5b145b156106a65767016345785d8a0000600454101561068d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068490612758565b60405180910390fd5b610695611ca8565b61069d611f73565b60006004819055505b6106ae6120b8565b50565b6516bcc41e900081565b6509184e72a00081565b60016020528060005260406000206000915090508060000154908060010154905082565b62278d0081565b60045481565b600a5481565b6206978081565b67016345785d8a000081565b7f00000000000000000000000002eb294af5e1fe16eb701f164bf8cf396e0cd8aa81565b60018081111561074657610745612606565b5b600d60009054906101000a900460ff16600181111561076857610767612606565b5b036107a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079f906127c4565b60405180910390fd5b60055442116107ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e390612830565b60405180910390fd5b60007f000000000000000000000000347a96a5bd06d2e15199b032f46fb724d6c7304773ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161084791906124d7565b602060405180830381865afa158015610864573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108889190612865565b90507f0000000000000000000000005ee84583f67d5ecea5420dbb42b462896e7f8d0673ffffffffffffffffffffffffffffffffffffffff16630b5302c4826040518263ffffffff1660e01b81526004016108e39190612569565b608060405180830381865afa158015610900573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092491906128ca565b909150905050600760008291905055506009546007600082825461094891906126c7565b925050819055506206978062278d004261096291906126c7565b61096c91906126c7565b60058190555062278d004261098191906126c7565b6006819055506001600d60006101000a81548160ff021916908360018111156109ad576109ac612606565b5b0217905550600860008154809291906109c590612931565b9190505550600354600281905550600060038190555080600c819055507f0000000000000000000000005ee84583f67d5ecea5420dbb42b462896e7f8d0673ffffffffffffffffffffffffffffffffffffffff16636b7d3b49826040518263ffffffff1660e01b8152600401610a3b9190612569565b600060405180830381600087803b158015610a5557600080fd5b505af1158015610a69573d6000803e3d6000fd5b505050503373ffffffffffffffffffffffffffffffffffffffff167fd044862873b87b44efe5db64a4522355cfa53c8251f4bdeeb76a82aa4ab7d8fb6001600854610ab49190612979565b42604051610ac39291906125dd565b60405180910390a250565b60075481565b60085481565b60065481565b60055481565b7f00000000000000000000000004e3faa5758a2768ddafd34d91e7d04eef8feae281565b6000600a8190555060006001811115610b2657610b25612606565b5b600d60009054906101000a900460ff166001811115610b4857610b47612606565b5b03610b88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7f906129f9565b60405180910390fd5b6006544211610bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc390612a65565b60405180910390fd5b6000600d60006101000a81548160ff02191690836001811115610bf257610bf1612606565b5b021790555060007f000000000000000000000000347a96a5bd06d2e15199b032f46fb724d6c7304773ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c5291906124d7565b602060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190612865565b905060006064600583610ca69190612a85565b610cb09190612af6565b9050600060646005600754610cc59190612a85565b610ccf9190612af6565b90506000610cdb6120c2565b90919293945090919293509091925090915050809150507f0000000000000000000000005ee84583f67d5ecea5420dbb42b462896e7f8d0673ffffffffffffffffffffffffffffffffffffffff1663781137fa600083306040518463ffffffff1660e01b8152600401610d5093929190612bae565b600060405180830381600087803b158015610d6a57600080fd5b505af1158015610d7e573d6000803e3d6000fd5b505050507f0000000000000000000000005ee84583f67d5ecea5420dbb42b462896e7f8d0673ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f00000000000000000000000002eb294af5e1fe16eb701f164bf8cf396e0cd8aa846040518363ffffffff1660e01b8152600401610dfd929190612be5565b6020604051808303816000875af1158015610e1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e409190612c0e565b507f00000000000000000000000002eb294af5e1fe16eb701f164bf8cf396e0cd8aa73ffffffffffffffffffffffffffffffffffffffff1663e8ee9bf1836040518263ffffffff1660e01b8152600401610e9a9190612569565b600060405180830381600087803b158015610eb457600080fd5b505af1158015610ec8573d6000803e3d6000fd5b50505050610f377f000000000000000000000000d55fe0a9b00bb8c2691fc5b30a99496b7a7c3665837f0000000000000000000000005ee84583f67d5ecea5420dbb42b462896e7f8d0673ffffffffffffffffffffffffffffffffffffffff1661217c9092919063ffffffff16565b7f000000000000000000000000347a96a5bd06d2e15199b032f46fb724d6c7304773ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f00000000000000000000000002eb294af5e1fe16eb701f164bf8cf396e0cd8aa856040518363ffffffff1660e01b8152600401610fb2929190612be5565b6020604051808303816000875af1158015610fd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff59190612c0e565b507f00000000000000000000000002eb294af5e1fe16eb701f164bf8cf396e0cd8aa73ffffffffffffffffffffffffffffffffffffffff16633ddf3ac7846040518263ffffffff1660e01b815260040161104f9190612569565b600060405180830381600087803b15801561106957600080fd5b505af115801561107d573d6000803e3d6000fd5b505050506110ec7f000000000000000000000000d55fe0a9b00bb8c2691fc5b30a99496b7a7c3665847f000000000000000000000000347a96a5bd06d2e15199b032f46fb724d6c7304773ffffffffffffffffffffffffffffffffffffffff1661217c9092919063ffffffff16565b6002826110f99190612a85565b6007600082825461110a9190612979565b925050819055506007546009819055503373ffffffffffffffffffffffffffffffffffffffff167ffb30e27e0c0cfd01dcd576c7409088227abc2239ee0ab801f41b1a5506c7cf97600854426040516111649291906125dd565b60405180910390a250505050565b60035481565b600c5481565b611186611bd0565b6001600a600082825461119991906126c7565b925050819055506001600b60008282546111b391906126c7565b92505081905550600654421180156111ff5750600060018111156111da576111d9612606565b5b600d60009054906101000a900460ff1660018111156111fc576111fb612606565b5b14155b1561120d5761120c610b0a565b5b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001541480156112a35750600854600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015414155b156112f257600854600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055505b6516bcc41e900081101561133b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133290612cad565b60405180910390fd5b6000600181111561134f5761134e612606565b5b600d60009054906101000a900460ff16600181111561137157611370612606565b5b146113b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a890612d19565b60405180910390fd5b600854600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015414611437576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142e90612dab565b60405180910390fd5b80600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001600082825461148991906126c7565b9250508190555080600360008282546114a291906126c7565b925050819055506114f63330837f000000000000000000000000347a96a5bd06d2e15199b032f46fb724d6c7304773ffffffffffffffffffffffffffffffffffffffff16611c1f909392919063ffffffff16565b611569337f00000000000000000000000004e3faa5758a2768ddafd34d91e7d04eef8feae26509184e72a0007f000000000000000000000000488db574c77dd27a07f9c97bac673bc8e9fc6bf373ffffffffffffffffffffffffffffffffffffffff16611c1f909392919063ffffffff16565b6008543373ffffffffffffffffffffffffffffffffffffffff167f36af321ec8d3c75236829c5317affd40ddb308863a1236d2d277a4025cccee1e836509184e72a0006040516115ba9291906125dd565b60405180910390a3600554421180156116065750600060018111156115e2576115e1612606565b5b600d60009054906101000a900460ff16600181111561160457611603612606565b5b145b1561161457611613610733565b5b61161c6120b8565b50565b611627611bd0565b6006544211801561166c57506000600181111561164757611646612606565b5b600d60009054906101000a900460ff16600181111561166957611668612606565b5b14155b1561167a57611679610b0a565b5b6000600181111561168e5761168d612606565b5b600d60009054906101000a900460ff1660018111156116b0576116af612606565b5b146116f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e790612e3d565b60405180910390fd5b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015411611775576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176c90612ea9565b60405180910390fd5b60016008546117849190612979565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015403611985576000600254600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001546007546118219190612a85565b61182b9190612af6565b9050806009600082825461183f9190612979565b925050819055506000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600854600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001018190555061192233827f0000000000000000000000005ee84583f67d5ecea5420dbb42b462896e7f8d0673ffffffffffffffffffffffffffffffffffffffff1661217c9092919063ffffffff16565b60016008546119319190612979565b3373ffffffffffffffffffffffffffffffffffffffff167f5a2ecdb14b94278f5a76efb2b0742090477e505b7d67ad574053b77dc045d48f836040516119779190612569565b60405180910390a350611ae3565b600854600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001015403611a0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0290612f3b565b60405180910390fd5b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600854600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055506008543373ffffffffffffffffffffffffffffffffffffffff167f4cdebe0d16716e79c78fd92a7feb868dad400f77e1e397cb11ab5fc433fe802460405160405180910390a35b60055442118015611b27575060006001811115611b0357611b02612606565b5b600d60009054906101000a900460ff166001811115611b2557611b24612606565b5b145b15611b3557611b34610733565b5b611b3d6120b8565b565b7f000000000000000000000000488db574c77dd27a07f9c97bac673bc8e9fc6bf381565b7f000000000000000000000000d55fe0a9b00bb8c2691fc5b30a99496b7a7c366581565b600d60009054906101000a900460ff1681565b600b5481565b7f0000000000000000000000005ee84583f67d5ecea5420dbb42b462896e7f8d0681565b60025481565b60095481565b600260005403611c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0c90612fa7565b60405180910390fd5b6002600081905550565b611ca2846323b872dd60e01b858585604051602401611c4093929190612fc7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612202565b50505050565b60006003547f000000000000000000000000347a96a5bd06d2e15199b032f46fb724d6c7304773ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611d0691906124d7565b602060405180830381865afa158015611d23573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d479190612865565b611d519190612979565b905060006064603c83611d649190612a85565b611d6e9190612af6565b905060008183611d7e9190612979565b90507f000000000000000000000000347a96a5bd06d2e15199b032f46fb724d6c7304773ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f00000000000000000000000002eb294af5e1fe16eb701f164bf8cf396e0cd8aa846040518363ffffffff1660e01b8152600401611dfb929190612be5565b6020604051808303816000875af1158015611e1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3e9190612c0e565b507f00000000000000000000000002eb294af5e1fe16eb701f164bf8cf396e0cd8aa73ffffffffffffffffffffffffffffffffffffffff16633ddf3ac7836040518263ffffffff1660e01b8152600401611e989190612569565b600060405180830381600087803b158015611eb257600080fd5b505af1158015611ec6573d6000803e3d6000fd5b50505050611f357f000000000000000000000000d55fe0a9b00bb8c2691fc5b30a99496b7a7c3665827f000000000000000000000000347a96a5bd06d2e15199b032f46fb724d6c7304773ffffffffffffffffffffffffffffffffffffffff1661217c9092919063ffffffff16565b7fa7f83b10748d0d08c3e5cd3a2843c819c78fdb28cb2fe08d7fe7c591e28e7eff8342604051611f669291906125dd565b60405180910390a1505050565b60007f000000000000000000000000488db574c77dd27a07f9c97bac673bc8e9fc6bf373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611fce91906124d7565b602060405180830381865afa158015611feb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200f9190612865565b905061207c7f00000000000000000000000004e3faa5758a2768ddafd34d91e7d04eef8feae2827f000000000000000000000000488db574c77dd27a07f9c97bac673bc8e9fc6bf373ffffffffffffffffffffffffffffffffffffffff1661217c9092919063ffffffff16565b7f479f77ede19fc41d3b27cb7bc1c4dba83bcfa4f53030487d340534e4fa44ea4281426040516120ad9291906125dd565b60405180910390a150565b6001600081905550565b6000806000806000807f0000000000000000000000005ee84583f67d5ecea5420dbb42b462896e7f8d0673ffffffffffffffffffffffffffffffffffffffff1663b7af876b3060006040518363ffffffff1660e01b8152600401612127929190612ffe565b60c060405180830381865afa158015612144573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612168919061311a565b955095509550955095509550909192939495565b6121fd8363a9059cbb60e01b848460405160240161219b929190612be5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050612202565b505050565b6000612264826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166122c99092919063ffffffff16565b90506000815111156122c457808060200190518101906122849190612c0e565b6122c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ba90613219565b60405180910390fd5b5b505050565b60606122d884846000856122e1565b90509392505050565b606082471015612326576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231d906132ab565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161234f919061333c565b60006040518083038185875af1925050503d806000811461238c576040519150601f19603f3d011682016040523d82523d6000602084013e612391565b606091505b50915091506123a2878383876123ae565b92505050949350505050565b60608315612410576000835103612408576123c885612423565b612407576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123fe9061339f565b60405180910390fd5b5b82905061241b565b61241a8383612446565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156124595781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248d9190613414565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006124c182612496565b9050919050565b6124d1816124b6565b82525050565b60006020820190506124ec60008301846124c8565b92915050565b600080fd5b6000819050919050565b61250a816124f7565b811461251557600080fd5b50565b60008135905061252781612501565b92915050565b600060208284031215612543576125426124f2565b5b600061255184828501612518565b91505092915050565b612563816124f7565b82525050565b600060208201905061257e600083018461255a565b92915050565b61258d816124b6565b811461259857600080fd5b50565b6000813590506125aa81612584565b92915050565b6000602082840312156125c6576125c56124f2565b5b60006125d48482850161259b565b91505092915050565b60006040820190506125f2600083018561255a565b6125ff602083018461255a565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6002811061264657612645612606565b5b50565b600081905061265782612635565b919050565b600061266782612649565b9050919050565b6126778161265c565b82525050565b6000602082019050612692600083018461266e565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006126d2826124f7565b91506126dd836124f7565b92508282019050808211156126f5576126f4612698565b5b92915050565b600082825260208201905092915050565b7f546172676574206e6f7420726561636865642079657400000000000000000000600082015250565b60006127426016836126fb565b915061274d8261270c565b602082019050919050565b6000602082019050818103600083015261277181612735565b9050919050565b7f4d696e696e672073657373696f6e20616c726561647920737461727465640000600082015250565b60006127ae601e836126fb565b91506127b982612778565b602082019050919050565b600060208201905081810360008301526127dd816127a1565b9050919050565b7f52656c6f616420706572696f64206e6f7420656e646564207965740000000000600082015250565b600061281a601b836126fb565b9150612825826127e4565b602082019050919050565b600060208201905081810360008301526128498161280d565b9050919050565b60008151905061285f81612501565b92915050565b60006020828403121561287b5761287a6124f2565b5b600061288984828501612850565b91505092915050565b60008115159050919050565b6128a781612892565b81146128b257600080fd5b50565b6000815190506128c48161289e565b92915050565b600080600080608085870312156128e4576128e36124f2565b5b60006128f287828801612850565b945050602061290387828801612850565b935050604061291487828801612850565b9250506060612925878288016128b5565b91505092959194509250565b600061293c826124f7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361296e5761296d612698565b5b600182019050919050565b6000612984826124f7565b915061298f836124f7565b92508282039050818111156129a7576129a6612698565b5b92915050565b7f416c726561647920696e2072656c6f616420706572696f640000000000000000600082015250565b60006129e36018836126fb565b91506129ee826129ad565b602082019050919050565b60006020820190508181036000830152612a12816129d6565b9050919050565b7f4d696e696e672073657373696f6e206e6f7420656e6465642079657400000000600082015250565b6000612a4f601c836126fb565b9150612a5a82612a19565b602082019050919050565b60006020820190508181036000830152612a7e81612a42565b9050919050565b6000612a90826124f7565b9150612a9b836124f7565b9250828202612aa9816124f7565b91508282048414831517612ac057612abf612698565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612b01826124f7565b9150612b0c836124f7565b925082612b1c57612b1b612ac7565b5b828204905092915050565b6000819050919050565b6000819050919050565b6000612b56612b51612b4c84612b27565b612b31565b6124f7565b9050919050565b612b6681612b3b565b82525050565b600064ffffffffff82169050919050565b6000612b98612b93612b8e84612b6c565b612b31565b6124f7565b9050919050565b612ba881612b7d565b82525050565b6000606082019050612bc36000830186612b5d565b612bd06020830185612b9f565b612bdd60408301846124c8565b949350505050565b6000604082019050612bfa60008301856124c8565b612c07602083018461255a565b9392505050565b600060208284031215612c2457612c236124f2565b5b6000612c32848285016128b5565b91505092915050565b7f4174206c65617374206d696e696d756d2041534943206465706f73697420726560008201527f7175697265640000000000000000000000000000000000000000000000000000602082015250565b6000612c976026836126fb565b9150612ca282612c3b565b604082019050919050565b60006020820190508181036000830152612cc681612c8a565b9050919050565b7f4e6f7420696e2072656c6f616420706572696f64000000000000000000000000600082015250565b6000612d036014836126fb565b9150612d0e82612ccd565b602082019050919050565b60006020820190508181036000830152612d3281612cf6565b9050919050565b7f506c6561736520636c61696d207265776172647320666f72207468652070726560008201527f76696f75732073657373696f6e00000000000000000000000000000000000000602082015250565b6000612d95602d836126fb565b9150612da082612d39565b604082019050919050565b60006020820190508181036000830152612dc481612d88565b9050919050565b7f43616e277420636c61696d20647572696e67206d696e696e672073657373696f60008201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b6000612e276021836126fb565b9150612e3282612dcb565b604082019050919050565b60006020820190508181036000830152612e5681612e1a565b9050919050565b7f4e6f206465706f73697473000000000000000000000000000000000000000000600082015250565b6000612e93600b836126fb565b9150612e9e82612e5d565b602082019050919050565b60006020820190508181036000830152612ec281612e86565b9050919050565b7f4d696e696e6720666f7220746869732073657373696f6e206973206e6f74206660008201527f696e697368656420796574000000000000000000000000000000000000000000602082015250565b6000612f25602b836126fb565b9150612f3082612ec9565b604082019050919050565b60006020820190508181036000830152612f5481612f18565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612f91601f836126fb565b9150612f9c82612f5b565b602082019050919050565b60006020820190508181036000830152612fc081612f84565b9050919050565b6000606082019050612fdc60008301866124c8565b612fe960208301856124c8565b612ff6604083018461255a565b949350505050565b600060408201905061301360008301856124c8565b6130206020830184612b5d565b9392505050565b60006fffffffffffffffffffffffffffffffff82169050919050565b61304c81613027565b811461305757600080fd5b50565b60008151905061306981613043565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6130908161306f565b811461309b57600080fd5b50565b6000815190506130ad81613087565b92915050565b6130bc81612b6c565b81146130c757600080fd5b50565b6000815190506130d9816130b3565b92915050565b600062ffffff82169050919050565b6130f7816130df565b811461310257600080fd5b50565b600081519050613114816130ee565b92915050565b60008060008060008060c08789031215613137576131366124f2565b5b600061314589828a0161305a565b965050602061315689828a0161305a565b955050604061316789828a0161309e565b945050606061317889828a0161309e565b935050608061318989828a016130ca565b92505060a061319a89828a01613105565b9150509295509295509295565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613203602a836126fb565b915061320e826131a7565b604082019050919050565b60006020820190508181036000830152613232816131f6565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006132956026836126fb565b91506132a082613239565b604082019050919050565b600060208201905081810360008301526132c481613288565b9050919050565b600081519050919050565b600081905092915050565b60005b838110156132ff5780820151818401526020810190506132e4565b60008484015250505050565b6000613316826132cb565b61332081856132d6565b93506133308185602086016132e1565b80840191505092915050565b6000613348828461330b565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613389601d836126fb565b915061339482613353565b602082019050919050565b600060208201905081810360008301526133b88161337c565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006133e6826133bf565b6133f081856126fb565b93506134008185602086016132e1565b613409816133ca565b840191505092915050565b6000602082019050818103600083015261342e81846133db565b90509291505056fea264697066735822122067395aba12a98045ed3d8372a733d83024f3a4ceb0b9a71368b6bbe23d75dd5564736f6c63430008110033

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

000000000000000000000000d55fe0a9b00bb8c2691fc5b30a99496b7a7c366500000000000000000000000004e3faa5758a2768ddafd34d91e7d04eef8feae200000000000000000000000002eb294af5e1fe16eb701f164bf8cf396e0cd8aa000000000000000000000000488db574c77dd27a07f9c97bac673bc8e9fc6bf30000000000000000000000005ee84583f67d5ecea5420dbb42b462896e7f8d06000000000000000000000000347a96a5bd06d2e15199b032f46fb724d6c73047

-----Decoded View---------------
Arg [0] : _waatcaPoolAddress (address): 0xd55fe0a9b00Bb8C2691FC5B30a99496B7A7c3665
Arg [1] : _buyAndBurnContractAddress (address): 0x04E3FAa5758A2768DDAfd34D91E7D04eEf8FEae2
Arg [2] : _plsdStakingContractAddress (address): 0x02Eb294AF5e1fe16eB701f164Bf8CF396E0cD8Aa
Arg [3] : _CARN (address): 0x488Db574C77dd27A07f9C97BAc673BC8E9fC6Bf3
Arg [4] : _PLSB (address): 0x5EE84583f67D5EcEa5420dBb42b462896E7f8D06
Arg [5] : _ASIC (address): 0x347a96a5BD06D2E15199b032F46fB724d6c73047

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000d55fe0a9b00bb8c2691fc5b30a99496b7a7c3665
Arg [1] : 00000000000000000000000004e3faa5758a2768ddafd34d91e7d04eef8feae2
Arg [2] : 00000000000000000000000002eb294af5e1fe16eb701f164bf8cf396e0cd8aa
Arg [3] : 000000000000000000000000488db574c77dd27a07f9c97bac673bc8e9fc6bf3
Arg [4] : 0000000000000000000000005ee84583f67d5ecea5420dbb42b462896e7f8d06
Arg [5] : 000000000000000000000000347a96a5bd06d2e15199b032f46fb724d6c73047


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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