ETH Price: $2,390.95 (-4.07%)

Contract

0x42a856dbEBB97AbC1269EAB32f3bb40C15102819
 
Transaction Hash
Method
Block
From
To
Deposit For208819302024-10-03 2:14:1133 mins ago1727921651IN
0x42a856db...C15102819
0 ETH0.000565485.55733227
Deposit For208818392024-10-03 1:55:4752 mins ago1727920547IN
0x42a856db...C15102819
0 ETH0.000603855.93437841
Deposit For208818352024-10-03 1:54:5953 mins ago1727920499IN
0x42a856db...C15102819
0 ETH0.000612696.02125651
Deposit For208817922024-10-03 1:46:231 hr ago1727919983IN
0x42a856db...C15102819
0 ETH0.000631616.20722282
Deposit For208814272024-10-03 0:33:232 hrs ago1727915603IN
0x42a856db...C15102819
0 ETH0.000536245.27056538
Deposit For208807342024-10-02 22:14:234 hrs ago1727907263IN
0x42a856db...C15102819
0 ETH0.000702886.90766076
Deposit For208806482024-10-02 21:57:114 hrs ago1727906231IN
0x42a856db...C15102819
0 ETH0.00078017.66647327
Deposit For208795662024-10-02 18:20:118 hrs ago1727893211IN
0x42a856db...C15102819
0 ETH0.0028729537.77367767
Withdraw208795032024-10-02 18:07:238 hrs ago1727892443IN
0x42a856db...C15102819
0 ETH0.0023199227.24902025
Deposit For208793512024-10-02 17:36:479 hrs ago1727890607IN
0x42a856db...C15102819
0 ETH0.003717336.53187516
Deposit For208778672024-10-02 12:38:3514 hrs ago1727872715IN
0x42a856db...C15102819
0 ETH0.000788987.67262409
Deposit For208777162024-10-02 12:08:1114 hrs ago1727870891IN
0x42a856db...C15102819
0 ETH0.000824328.10103151
Deposit For208776422024-10-02 11:53:2314 hrs ago1727870003IN
0x42a856db...C15102819
0 ETH0.000604685.94259502
Deposit For208775632024-10-02 11:37:3515 hrs ago1727869055IN
0x42a856db...C15102819
0 ETH0.000538995.29762951
Deposit For208774982024-10-02 11:24:2315 hrs ago1727868263IN
0x42a856db...C15102819
0 ETH0.000593375.83141401
Deposit For208774912024-10-02 11:22:5915 hrs ago1727868179IN
0x42a856db...C15102819
0 ETH0.000587045.50934802
Deposit For208774572024-10-02 11:16:1115 hrs ago1727867771IN
0x42a856db...C15102819
0 ETH0.000629046.18193858
Deposit For208774382024-10-02 11:12:2315 hrs ago1727867543IN
0x42a856db...C15102819
0 ETH0.000675276.63626781
Deposit For208774152024-10-02 11:07:4715 hrs ago1727867267IN
0x42a856db...C15102819
0 ETH0.000590975.80785336
Withdraw208774092024-10-02 11:06:3515 hrs ago1727867195IN
0x42a856db...C15102819
0 ETH0.000452565.99635708
Deposit For208773512024-10-02 10:54:5915 hrs ago1727866499IN
0x42a856db...C15102819
0 ETH0.000595685.85410154
Deposit For208772792024-10-02 10:40:3516 hrs ago1727865635IN
0x42a856db...C15102819
0 ETH0.000700696.88688173
Deposit For208772722024-10-02 10:39:1116 hrs ago1727865551IN
0x42a856db...C15102819
0 ETH0.000556015.4642783
Deposit For208772572024-10-02 10:36:1116 hrs ago1727865371IN
0x42a856db...C15102819
0 ETH0.000668866.57333504
Deposit For208772182024-10-02 10:28:2316 hrs ago1727864903IN
0x42a856db...C15102819
0 ETH0.000547715.38269074
View all transactions

Latest 6 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
205851482024-08-22 15:49:4741 days ago1724341787
0x42a856db...C15102819
 Contract Creation0 ETH
205733602024-08-21 0:17:4743 days ago1724199467
0x42a856db...C15102819
 Contract Creation0 ETH
205648642024-08-19 19:49:2344 days ago1724096963
0x42a856db...C15102819
 Contract Creation0 ETH
205648642024-08-19 19:49:2344 days ago1724096963
0x42a856db...C15102819
 Contract Creation0 ETH
205648642024-08-19 19:49:2344 days ago1724096963
0x42a856db...C15102819
 Contract Creation0 ETH
205648642024-08-19 19:49:2344 days ago1724096963
0x42a856db...C15102819
 Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SatlayerPool

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
cancun EvmVersion
File 1 of 15 : SatlayerPool.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.24;

import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol";

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

import "./interface/IMigrator.sol";
import "./interface/ISatlayerPool.sol";


/// @title Satlayer Pool
/// @notice A staking pool for liquid restaking token holders which rewards stakers with points from multiple platforms
contract SatlayerPool is ISatlayerPool, Ownable, Pausable {
    using SafeERC20 for IERC20Metadata;
    
    // (tokenAddress => stakingAllowed)
    mapping(address => bool) public tokenAllowlist;

    mapping(address => address) public tokenMap;

    bool public capsEnabled = true;
    mapping(address => uint256) public caps;

    address public migrator;

    // Next eventId to emit
    uint256 private eventId;
      
    constructor(address[] memory _tokensAllowed, uint256[] memory _caps, string[] memory _names, string[] memory _symbols) Ownable(msg.sender) {
        if (_tokensAllowed.length != _caps.length || _tokensAllowed.length != _names.length || _tokensAllowed.length != _symbols.length) revert TokenAndCapLengthMismatch();

        uint256 length = _tokensAllowed.length;
        for(uint256 i; i < length;) {
            if (_tokensAllowed[i] == address(0)) revert TokenCannotBeZeroAddress();
            // will revert if there are duplicates in the _tokensAllowed array
            addToken(_tokensAllowed[i], _caps[i], _names[i], _symbols[i]);
            unchecked { ++i; }
        }
    }


    /*//////////////////////////////////////////////////////////////
                            Staker Functions
    //////////////////////////////////////////////////////////////*/

    /**
     * @inheritdoc ISatlayerPool
     */
    function depositFor(address _token, address _for, uint256 _amount) whenNotPaused external {
        if (_amount == 0) revert DepositAmountCannotBeZero();
        if (_for == address(0)) revert CannotDepositForZeroAddress();
        if (!tokenAllowlist[_token]) revert TokenNotAllowedForStaking();
        if (capsEnabled && caps[_token] < getTokenTotalStaked(_token) + _amount) revert CapReached();
        
        uint256 balanceBefore = IERC20Metadata(_token).balanceOf(address(this));
        IERC20Metadata(_token).safeTransferFrom(msg.sender, address(this), _amount);
        uint256 actualAmount = IERC20Metadata(_token).balanceOf(address(this)) - balanceBefore;

        emit Deposit(++eventId, _for, _token, actualAmount);

        ReceiptToken(tokenMap[_token]).mint(_for, actualAmount);
    }

    /**
     * @inheritdoc ISatlayerPool
     */
    function withdraw(address _token, uint256 _amount) external {
        if (_amount == 0) revert WithdrawAmountCannotBeZero();
        if (getUserTokenBalance(_token, msg.sender) < _amount) revert InsufficientUserBalance();

        emit Withdraw(++eventId, msg.sender, _token, _amount);

        // reverts with InsufficientUserBalance if the user does not have enough receipt tokens to
        // burn _amount
        ReceiptToken(tokenMap[_token]).burn(msg.sender, _amount);
        IERC20Metadata(_token).safeTransfer(msg.sender, _amount);
    }

    /**
     * @inheritdoc ISatlayerPool
     */
    function migrate(
        address[] calldata  _tokens, 
        string calldata destinationAddress 
    ) external whenNotPaused { 
        // checks
        if (migrator == address(0)) revert MigratorNotSet();

        uint256 length = _tokens.length;
        if (length == 0) revert TokenArrayCannotBeEmpty();

        uint256[] memory _amounts = new uint256[](length);
        for(uint256 i; i < length;) {
            _amounts[i] = getUserTokenBalance(_tokens[i], msg.sender);
            if (_amounts[i] == 0) revert UserDoesNotHaveStake(); // or duplicate token

            IERC20Metadata(_tokens[i]).approve(migrator, _amounts[i]);
            ReceiptToken(tokenMap[_tokens[i]]).burn(msg.sender, _amounts[i]);
            unchecked { ++i; }
        }
        
        emit Migrate(++eventId, msg.sender, destinationAddress, migrator, _tokens, _amounts);
        // migrator will transfer tokens out of staking contract and then migrate them over to SatLayer mainnet
        IMigrator(migrator).migrate(msg.sender, destinationAddress, _tokens, _amounts);
    }


    /*//////////////////////////////////////////////////////////////
                            Admin Functions
    //////////////////////////////////////////////////////////////*/

    /**
     * @inheritdoc ISatlayerPool
     */
    function setCapsEnabled(bool _enabled) external onlyOwner {
        if (capsEnabled == _enabled) revert ParamsUnchanged();
        emit CapsEnabled(_enabled);
        capsEnabled = _enabled;
    }

    /**
     * @inheritdoc ISatlayerPool
     */
    function setMigrator(address _migrator) external onlyOwner {
        if (_migrator == address(0)) revert MigratorCannotBeZeroAddress();

        emit MigratorChanged(_migrator);
        migrator = _migrator;
    }

    /**
     * @inheritdoc ISatlayerPool
     */
    function addToken(address _token, uint256 _cap, string memory _name, string memory _symbol) public onlyOwner {
        if (tokenMap[_token] != address(0)) revert TokenAlreadyAdded();

        ReceiptToken receiptToken = new ReceiptToken(_name, _symbol, IERC20Metadata(_token).decimals());

        tokenMap[_token] = address(receiptToken);

        setTokenStakingParams(_token, true, _cap);
    }

    /**
     * @inheritdoc ISatlayerPool
     */
    function setTokenStakingParams(address _token, bool _canStake, uint256 _cap) public onlyOwner {
        if (_token == address(0)) revert TokenCannotBeZeroAddress();
        
        if (tokenMap[_token] == address(0)) revert TokenNotAdded();

        bool stakingChanged = tokenAllowlist[_token] != _canStake;
        bool capChanged = caps[_token] != _cap;

        if (!stakingChanged && !capChanged) revert ParamsUnchanged();

        if (stakingChanged) {
            tokenAllowlist[_token] = _canStake;
            emit TokenStakabilityChanged(_token, _canStake);
        }

        if (capChanged) {
            caps[_token] = _cap;
            emit CapChanged(_token, _cap);
        }
    }

    /**
     * @inheritdoc ISatlayerPool
     */
    function pause() external onlyOwner whenNotPaused {
        _pause();
    }

    /**
     * @inheritdoc ISatlayerPool
     */
    function unpause() external onlyOwner whenPaused{
        _unpause();
    }

    /**
     * @inheritdoc ISatlayerPool
     */
    function recoverERC20(address tokenAddress, address tokenReceiver, uint256 tokenAmount) external onlyOwner {
        if (tokenMap[tokenAddress] != address(0)) revert TokenAlreadyAdded();

        IERC20Metadata(tokenAddress).safeTransfer(tokenReceiver, tokenAmount);
    
    }

    function renounceOwnership() public override{
        revert CannotRenounceOwnership();
    }


    /*//////////////////////////////////////////////////////////////
                         View Functions
    //////////////////////////////////////////////////////////////*/

    /**
     * @inheritdoc ISatlayerPool
     */
    function getUserTokenBalance(address _token, address _user) public view returns (uint256) {
        if (tokenMap[_token] == address(0)) revert TokenNotAdded();

        return ReceiptToken(tokenMap[_token]).balanceOf(_user);
    }

    /**
     * @inheritdoc ISatlayerPool
     */
    function getTokenTotalStaked(address _token) public view returns (uint256) {
        if (tokenMap[_token] == address(0)) revert TokenNotAdded();

        return ReceiptToken(tokenMap[_token]).totalSupply();
    }
}

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

pragma solidity ^0.8.20;

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

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

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

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

File 3 of 15 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../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;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

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

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

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

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @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);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 15 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

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

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

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

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

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

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

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

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

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

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

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

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

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

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

File 6 of 15 : ReceiptToken.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.24;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";

import "./interface/IReceiptToken.sol";

/// @title Receipt token
/// @notice A mintable/burnable ERC20 token given to user as a receipt after staking assets in the Satlayer pool
contract ReceiptToken is IReceiptToken, Ownable, ERC20 {

    uint8 private _decimals;

    constructor(string memory name, string memory symbol, uint8 __decimals) Ownable(msg.sender) ERC20(name, symbol) {
        _decimals = __decimals;
    }

    function decimals() public view override(ERC20, IERC20Metadata) returns (uint8) {
        return _decimals;
    }

    /**
     * @inheritdoc IReceiptToken
     */
    function mint(address to, uint256 amount) external onlyOwner {
        _mint(to, amount);
    }

    /**
     * @inheritdoc IReceiptToken
     */
    function burn(address from, uint256 amount) external onlyOwner {
        // reverts with ERC20InsufficientBalance in _update if user's balance is less than amount
        _burn(from, amount);
    }
}

File 7 of 15 : IMigrator.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.24;


/// @title Migrator Interface
/// @notice Interface for the Migrator contract called by the Satlayer Pool's migrate() function
interface IMigrator {
    
    ///@notice Function called by the Satlayer Pool to facilitate migration of staked tokens from the Satlayer Pool to Satlayer Migrator Contract
    ///@param _user The address of the user whose staked funds are being migrated to Satlayer mainnet
    ///@param _destinationAddress The bech32 encoded address which the tokens should be credited to on Satlayer mainnet encoded in bech32 format
    ///@param _tokens The tokens being migrated to Satlayer migrator contract from the Satlayer staking pool 
    ///@param _amounts The amounts of each token to be migrated to Satlayer for the _user
    function migrate(
        address _user,
        string calldata _destinationAddress, 
        address[] calldata _tokens,
        uint256[] calldata _amounts
    ) external;
}

File 8 of 15 : ISatlayerPool.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.24;


/// @title Satlayer Pool Interface
/// @notice An interface containing externally accessible functions of the SatlayerPool contract
interface ISatlayerPool {

    /*//////////////////////////////////////////////////////////////
                            Errors
    //////////////////////////////////////////////////////////////*/


    error TokenCannotBeZeroAddress(); // Thrown when the specified token is the zero address
    error TokenAndCapLengthMismatch(); // Thrown when the length of the token array and the length of the cap array do not match
    error TokenAlreadyAdded(); //Thrown if the token has already been added (and receipt token created)
    error TokenNotAdded(); //Thrown if queried token has not been added to the Satlayer Pool
    error TokenAlreadyConfiguredWithState(); //Thrown if the token as already been enabled or disabled 
    error ParamsUnchanged(); // Thrown if trying to change a setting to the same value
    error DepositAmountCannotBeZero(); // Thrown if staker attempts to call deposit() with zero amount
    error WithdrawAmountCannotBeZero(); //Thrown if staker attempts to call withdraw() with zero amount
    error TokenNotAllowedForStaking(); // Thrown if staker attempts to stake unsupported token (or token disabled for staking)
    error UserDoesNotHaveStake(); //Thrown if the staker is attempting to migrate with no stake
    error MigratorCannotBeZeroAddress(); //Thrown if the provided migrator is the zero address
    error MigratorNotSet(); //Thrown if the migrator contract is not set
    error CannotDepositForZeroAddress(); //Thrown if caller tries to deposit on behalf of the zero address
    error CannotRenounceOwnership(); //Thrown if the renounceOwnership() function is called
    error TokenArrayCannotBeEmpty(); //Thrown when the provided token address array is empty
    error CapReached(); //Thrown when the cap for a token has been reached
    error InsufficientUserBalance(); //Thrown when the user does not have enough token balance to withdraw desired amount

    /*//////////////////////////////////////////////////////////////
                            Staker Events
    //////////////////////////////////////////////////////////////*/

    ///@notice Emitted when a staker deposits/stakes a supported token into the Satlayer Pool
    ///@param eventId The unique event Id associated with the Deposit event
    ///@param depositor The address of the depositer/staker transfering funds to the Satlayer Pool
    ///@param token The address of the token deposited/staked into the pool
    ///@param amount The amount of token deposited/staked into the pool
    event Deposit(
        uint256 indexed eventId, 
        address indexed depositor, 
        address indexed token, 
        uint256 amount
    );

    ///@notice Emitted when a staker withdraws a previously staked tokens from the Satlayer Pool
    ///@param eventId The unique event Id associated with the Withdraw event
    ///@param withdrawer The address of the staker withdrawing funds from the Satlayer Pool
    ///@param token The address of the token being withdrawn from the pool
    ///@param amount The amount of tokens withdrawn the pool
    event Withdraw(uint256 indexed eventId, address indexed withdrawer, address indexed token, uint256 amount);

    ///@notice Emitted when a staker migrates their tokens from the SatlayerPool to Satlayer.
    ///@param eventId The unique event Id associated with the Migrate event
    ///@param user The address of the staker migrating funds to Satlayer
    ///@param destinationAddress The bech2 encoded address which the tokens will be credited to on Satlayer mainnet
    ///@param migrator The address of the migrator contract which initially receives the migrated tokens
    ///@param tokens The addresses of the tokens being being migrated from the SatlayerPool to Satlayer
    ///@param amounts The amounts of each token migrated to Satlayer
    event Migrate(
        uint256 indexed eventId, 
        address indexed user, 
        string destinationAddress, 
        address migrator, 
        address[] tokens, 
        uint256[] amounts
    );

    /*//////////////////////////////////////////////////////////////
                            Admin Events
    //////////////////////////////////////////////////////////////*/


    ///@notice Emitted when a token has been enabled or disabled for staking
    ///@param token The address of the token which has been enabled/disabled for staking
    ///@param enabled Is true if the token is being enabled and false if the token is being disabled
    event TokenStakabilityChanged(address token, bool enabled);

    ///@notice Emitted when a migrator has been added or removed from the blocklist
    ///@param migrator The address of the migrator which has been added or removed from the blocklist 
    ///@param blocked Is true if the migrator was added to the blocklist, and false if it was removed from the blocklist
    event BlocklistChanged(address migrator, bool blocked);

    ///@notice Emitted when the cap for a token is changed
    ///@param token address of token whose cap is modified
    ///@param cap new staking cap
    event CapChanged(address token, uint256 cap);

    ///@notice Emitted when staking caps are globally enabled or disabled
    ///@param enabled whether or not staking caps are enabled
    event CapsEnabled(bool enabled);

    ///@notice Emitted when the migrator contract address is changed
    ///@param migrator address of the migrator contract
    event MigratorChanged(address migrator);
    
    /*//////////////////////////////////////////////////////////////
                            Staker Functions
    //////////////////////////////////////////////////////////////*/

    ///@notice Stake a specified amount of a particular supported token into the Satlayer Pool
    ///@param _token The token to deposit/stake in the Satlayer Pool
    ///@param _for The user to deposit/stake on behalf of
    ///@param _amount The amount of token to deposit/stake into the Satlayer Pool
    function depositFor(address _token, address _for, uint256 _amount) external;

    ///@notice Withdraw a specified amount of a particular supported token previously staked into the Satlayer Pool
    ///@param _token The token to withdraw from the Satlayer Pool
    ///@param _amount The amount of token to withdraw from the Satlayer Pool
    function withdraw(address _token, uint256 _amount) external;

    ///@notice Migrate the staked tokens for the caller from the Satlayer Pool to Satlayer mainnet
    ///@dev called by the staker
    ///@param _tokens The tokens to migrate to Satlayer from the Satlayer Pool
    ///@param destinationAddress The bech32 encoded address on Satlayer mainnet which the user wishes to migrate their tokens to
    ///@dev can't be called if contract is paused
    function migrate(
        address[] calldata  _tokens, 
        string calldata destinationAddress 
    ) external;


    /*//////////////////////////////////////////////////////////////
                            Admin Functions
    //////////////////////////////////////////////////////////////*/

    ///@notice Add a token to the Satlayer pool for staking and configure the receipt token parameters
    ///@param _token token to be added as staking collateral
    ///@param _cap max amount of token which can be staked
    ///@dev only callable by the owner
    function addToken(address _token, uint256 _cap, string memory _name, string memory _symbol) external;

    ///@notice Set the address of the migrator contract
    ///@param _migrator migrator contract address
    ///@dev only callable by the owner
    function setMigrator(address _migrator) external;

    ///@notice Enable or disable the specified token for staking
    ///@param _token The token to enable or disable for staking
    ///@param _canStake If true, then staking is to be enabled. If false, then staking will be disabled.
    ///@dev Only callable by the owner
    function setTokenStakingParams(address _token, bool _canStake, uint256 _cap) external;

    ///@notice Pause further staking through the deposit function.
    ///@dev Only callable by the owner. Withdrawals will still be possible when paused
    function pause() external;

    ///@notice Unpause staking allowing the deposit function to be used again
    ///@dev Only callable by the owner
    function unpause() external;

    ///@notice Set whether or not max staking caps are enabled in the app
    ///@param _enabled whether or not caps are enabled
    ///@dev Only callable by Owner
    function setCapsEnabled(bool _enabled) external;

    ///@notice allows the contract owner to send erc20 tokens deposited to this wallet to a specified external address as long as they haven't been configured as staking collateral
    ///@param tokenAddress address of token to recover
    ///@param tokenReceiver address to send tokens to
    ///@param tokenAmount amount to send
    ///@dev only callable by owner
    function recoverERC20(address tokenAddress, address tokenReceiver, uint256 tokenAmount) external;



    /*//////////////////////////////////////////////////////////////
                         View Functions
    //////////////////////////////////////////////////////////////*/

    ///@notice returns the user's staked balance of a particular token by reading the wallet balance of the corresponding receipt token
    ///@param _token deposit token address
    ///@param _user address of user to query
    ///@return _balance the user's balance of the receipt token corresponding to staked token
    function getUserTokenBalance(address _token, address _user) external view returns (uint256);

    ///@notice returns the total amount staked of a particular token in Satlayer pool
    ///@param _token deposit token address
    ///@return _total the total amount staked of the specified _token
    function getTokenTotalStaked(address _token) external view returns (uint256);
}

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

File 10 of 15 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @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.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
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].
     *
     * CAUTION: See Security Considerations above.
     */
    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 11 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

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

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

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) 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 FailedInnerCall();
        }
    }
}

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

pragma solidity ^0.8.20;

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

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

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

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

pragma solidity ^0.8.20;

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

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

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

        emit Transfer(from, to, value);
    }

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

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

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

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

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

File 14 of 15 : IReceiptToken.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.24;

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

/// @title Receipt Token Interface
/// @notice Interface for the externally accessible functions of the ReceiptToken contract
interface IReceiptToken is IERC20Metadata {

    ///@notice mint receipt token to specified address
    ///@param to address to mint receipt token to
    ///@param amount amount of receipt token to mint
    ///@dev only callable by the owner, which is the Satlayer pool
    function mint(address to, uint256 amount) external;

    ///@notice burn receipt token from specified address
    ///@param from address to burn receipt token from
    ///@param amount amount of receipt token to burn
    ///@dev only callable by the owner, which is the Satlayer pool. Does not require a token approval
    function burn(address from, uint256 amount) external;


}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Settings
{
  "remappings": [
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "cancun",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"_tokensAllowed","type":"address[]"},{"internalType":"uint256[]","name":"_caps","type":"uint256[]"},{"internalType":"string[]","name":"_names","type":"string[]"},{"internalType":"string[]","name":"_symbols","type":"string[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"CannotDepositForZeroAddress","type":"error"},{"inputs":[],"name":"CannotRenounceOwnership","type":"error"},{"inputs":[],"name":"CapReached","type":"error"},{"inputs":[],"name":"DepositAmountCannotBeZero","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InsufficientUserBalance","type":"error"},{"inputs":[],"name":"MigratorCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"MigratorNotSet","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ParamsUnchanged","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[],"name":"TokenAlreadyAdded","type":"error"},{"inputs":[],"name":"TokenAlreadyConfiguredWithState","type":"error"},{"inputs":[],"name":"TokenAndCapLengthMismatch","type":"error"},{"inputs":[],"name":"TokenArrayCannotBeEmpty","type":"error"},{"inputs":[],"name":"TokenCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"TokenNotAdded","type":"error"},{"inputs":[],"name":"TokenNotAllowedForStaking","type":"error"},{"inputs":[],"name":"UserDoesNotHaveStake","type":"error"},{"inputs":[],"name":"WithdrawAmountCannotBeZero","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"migrator","type":"address"},{"indexed":false,"internalType":"bool","name":"blocked","type":"bool"}],"name":"BlocklistChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"cap","type":"uint256"}],"name":"CapChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"CapsEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"eventId","type":"uint256"},{"indexed":true,"internalType":"address","name":"depositor","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"eventId","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"string","name":"destinationAddress","type":"string"},{"indexed":false,"internalType":"address","name":"migrator","type":"address"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"Migrate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"migrator","type":"address"}],"name":"MigratorChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"TokenStakabilityChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"eventId","type":"uint256"},{"indexed":true,"internalType":"address","name":"withdrawer","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_cap","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"addToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"caps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"capsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_for","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getTokenTotalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_user","type":"address"}],"name":"getUserTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"string","name":"destinationAddress","type":"string"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"tokenReceiver","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setCapsEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_migrator","type":"address"}],"name":"setMigrator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bool","name":"_canStake","type":"bool"},{"internalType":"uint256","name":"_cap","type":"uint256"}],"name":"setTokenStakingParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenAllowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokenMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526003805460ff191660011790553480156200001d575f80fd5b5060405162003d0c38038062003d0c8339810160408190526200004091620006e6565b33806200006757604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6200007281620001b5565b505f805460ff60a01b19169055825184511415806200009357508151845114155b80620000a157508051845114155b15620000c057604051632ded1ea960e21b815260040160405180910390fd5b83515f5b81811015620001a9575f6001600160a01b0316868281518110620000ec57620000ec62000808565b60200260200101516001600160a01b0316036200011c57604051635f5d339960e01b815260040160405180910390fd5b620001a086828151811062000135576200013562000808565b602002602001015186838151811062000152576200015262000808565b60200260200101518684815181106200016f576200016f62000808565b60200260200101518685815181106200018c576200018c62000808565b60200260200101516200020460201b60201c565b600101620000c4565b505050505050620008ae565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200020e62000328565b6001600160a01b038481165f908152600260205260409020541615620002475760405163630b374b60e01b815260040160405180910390fd5b5f8282866001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000287573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620002ad91906200081c565b604051620002bb90620004e8565b620002c99392919062000872565b604051809103905ff080158015620002e3573d5f803e3d5ffd5b506001600160a01b038681165f90815260026020526040902080546001600160a01b0319169183169190911790559050620003218560018662000358565b5050505050565b5f546001600160a01b03163314620003565760405163118cdaa760e01b81523360048201526024016200005e565b565b6200036262000328565b6001600160a01b0383166200038a57604051635f5d339960e01b815260040160405180910390fd5b6001600160a01b038381165f9081526002602052604090205416620003c257604051630c76021160e01b815260040160405180910390fd5b6001600160a01b0383165f9081526001602090815260408083205460049092529091205460ff909116151583151514801591831415908262000402575080155b15620004215760405163a3a7fa2f60e01b815260040160405180910390fd5b811562000487576001600160a01b0385165f81815260016020908152604091829020805460ff19168815159081179091558251938452908301527f303d37f32762627f23f474bb09535b3c1c7cb4f0f75c8960c42512b046ee24a8910160405180910390a15b801562000321576001600160a01b0385165f81815260046020908152604091829020869055815192835282018590527fca2c5390c633aaa2ba1caa471b2493fdb11998687f2975639500b5228b856d56910160405180910390a15050505050565b610ca4806200306883390190565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f191681016001600160401b0381118282101715620005355762000535620004f6565b604052919050565b5f6001600160401b03821115620005585762000558620004f6565b5060051b60200190565b5f82601f83011262000572575f80fd5b815160206200058b62000585836200053d565b6200050a565b8083825260208201915060208460051b870101935086841115620005ad575f80fd5b602086015b84811015620005cb5780518352918301918301620005b2565b509695505050505050565b5f5b83811015620005f2578181015183820152602001620005d8565b50505f910152565b5f601f83601f8401126200060c575f80fd5b825160206200061f62000585836200053d565b82815260059290921b850181019181810190878411156200063e575f80fd5b8287015b84811015620006da5780516001600160401b038082111562000662575f80fd5b818a0191508a603f83011262000676575f80fd5b858201516040828211156200068f576200068f620004f6565b620006a2828b01601f191689016200050a565b92508183528c81838601011115620006b8575f80fd5b620006c982898501838701620005d6565b505084525091830191830162000642565b50979650505050505050565b5f805f8060808587031215620006fa575f80fd5b84516001600160401b038082111562000711575f80fd5b818701915087601f83011262000725575f80fd5b815160206200073862000585836200053d565b82815260059290921b8401810191818101908b84111562000757575f80fd5b948201945b838610156200078c5785516001600160a01b03811681146200077c575f80fd5b825294820194908201906200075c565b918a0151919850909350505080821115620007a5575f80fd5b620007b38883890162000562565b94506040870151915080821115620007c9575f80fd5b620007d788838901620005fa565b93506060870151915080821115620007ed575f80fd5b50620007fc87828801620005fa565b91505092959194509250565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156200082d575f80fd5b815160ff811681146200083e575f80fd5b9392505050565b5f81518084526200085e816020860160208601620005d6565b601f01601f19169290920160200192915050565b606081525f62000886606083018662000845565b82810360208401526200089a818662000845565b91505060ff83166040830152949350505050565b6127ac80620008bc5f395ff3fe608060405234801562000010575f80fd5b50600436106200014b575f3560e01c8063715018a611620000c35780638456cb5911620000835780638456cb5914620002e95780638da5cb5b14620002f3578063b3db428b1462000304578063d8eb32da146200031b578063f2fde38b1462000332578063f3fef3a31462000349575f80fd5b8063715018a6146200027857806373f8fd4b14620002825780637cd07e4714620002995780638135369a14620002ad57806383374cab14620002d2575f80fd5b8063284693bc116200010f578063284693bc14620001fd5780633f4ba83a14620002145780635c975abb146200021e57806366d97b2114620002305780636f844c901462000261575f80fd5b80624aca6e146200014f5780631171bda914620001975780631268423a14620001b057806323cf311814620001c7578063251c0dfa14620001de575b5f80fd5b6200017a6200016036600462001516565b60026020525f90815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b620001ae620001a836600462001532565b62000360565b005b620001ae620001c136600462001570565b620003be565b620001ae620001d836600462001516565b6200079c565b600354620001ec9060ff1681565b60405190151581526020016200018e565b620001ae6200020e36600462001641565b6200082c565b620001ae620008aa565b5f54600160a01b900460ff16620001ec565b620002526200024136600462001516565b60046020525f908152604090205481565b6040519081526020016200018e565b620001ae6200027236600462001704565b620008ca565b620001ae620009ee565b620002526200029336600462001786565b62000a07565b6005546200017a906001600160a01b031681565b620001ec620002be36600462001516565b60016020525f908152604090205460ff1681565b62000252620002e336600462001516565b62000ac7565b620001ae62000b7b565b5f546001600160a01b03166200017a565b620001ae6200031536600462001532565b62000b99565b620001ae6200032c366004620017bc565b62000e56565b620001ae6200034336600462001516565b62000fe6565b620001ae6200035a366004620017fd565b6200102d565b6200036a62001161565b6001600160a01b038381165f908152600260205260409020541615620003a35760405163630b374b60e01b815260040160405180910390fd5b620003b96001600160a01b03841683836200118f565b505050565b620003c8620011f0565b6005546001600160a01b0316620003f257604051632ed9bf5360e21b815260040160405180910390fd5b825f819003620004155760405163e78703a360e01b815260040160405180910390fd5b5f8167ffffffffffffffff8111156200043257620004326200165f565b6040519080825280602002602001820160405280156200045c578160200160208202803683370190505b5090505f5b82811015620006b857620004a187878381811062000483576200048362001828565b90506020020160208101906200049a919062001516565b3362000a07565b828281518110620004b657620004b662001828565b602002602001018181525050818181518110620004d757620004d762001828565b60200260200101515f03620004ff5760405163a809389f60e01b815260040160405180910390fd5b86868281811062000514576200051462001828565b90506020020160208101906200052b919062001516565b60055483516001600160a01b039283169263095ea7b392169085908590811062000559576200055962001828565b60200260200101516040518363ffffffff1660e01b8152600401620005939291906001600160a01b03929092168252602082015260400190565b6020604051808303815f875af1158015620005b0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620005d691906200183c565b5060025f888884818110620005ef57620005ef62001828565b905060200201602081019062000606919062001516565b6001600160a01b03908116825260208201929092526040015f20548351911690639dc29fac90339085908590811062000643576200064362001828565b60200260200101516040518363ffffffff1660e01b81526004016200067d9291906001600160a01b03929092168252602082015260400190565b5f604051808303815f87803b15801562000695575f80fd5b505af1158015620006a8573d5f803e3d5ffd5b5050505080600101905062000461565b50336001600160a01b031660065f8154620006d3906200186e565b91829055506005546040517f2a9408aaa3ab6cc246dd766db41505ab38f5075df595383d86ada401bd9dad95916200072191899189916001600160a01b03909116908d908d908a906200192b565b60405180910390a3600554604051631ec3088560e21b81526001600160a01b0390911690637b0c22149062000765903390889088908c908c90899060040162001987565b5f604051808303815f87803b1580156200077d575f80fd5b505af115801562000790573d5f803e3d5ffd5b50505050505050505050565b620007a662001161565b6001600160a01b038116620007ce57604051631a86f04560e01b815260040160405180910390fd5b6040516001600160a01b03821681527f79ad283e951bc6564d3dba7fb46d34325b197249bb6daaa98bdac4fdd446ec1b9060200160405180910390a1600580546001600160a01b0319166001600160a01b0392909216919091179055565b6200083662001161565b60035481151560ff909116151503620008625760405163a3a7fa2f60e01b815260040160405180910390fd5b60405181151581527f2fc3ef49d8eecb2f0c3084f1c0fa38d03d57b314ae339cb161efc8d52264fa249060200160405180910390a16003805460ff1916911515919091179055565b620008b462001161565b620008be6200121b565b620008c862001245565b565b620008d462001161565b6001600160a01b038481165f9081526002602052604090205416156200090d5760405163630b374b60e01b815260040160405180910390fd5b5f8282866001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200094d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620009739190620019c2565b6040516200098190620014ec565b6200098f9392919062001a35565b604051809103905ff080158015620009a9573d5f803e3d5ffd5b506001600160a01b038681165f90815260026020526040902080546001600160a01b0319169183169190911790559050620009e78560018662000e56565b5050505050565b6040516377aeb0ad60e01b815260040160405180910390fd5b6001600160a01b038281165f9081526002602052604081205490911662000a4157604051630c76021160e01b815260040160405180910390fd5b6001600160a01b038381165f90815260026020526040908190205490516370a0823160e01b815284831660048201529116906370a0823190602401602060405180830381865afa15801562000a98573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000abe919062001a71565b90505b92915050565b6001600160a01b038181165f9081526002602052604081205490911662000b0157604051630c76021160e01b815260040160405180910390fd5b6001600160a01b038083165f908152600260209081526040918290205482516318160ddd60e01b815292519316926318160ddd9260048082019392918290030181865afa15801562000b55573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000ac1919062001a71565b62000b8562001161565b62000b8f620011f0565b620008c86200129b565b62000ba3620011f0565b805f0362000bc4576040516318bb758960e11b815260040160405180910390fd5b6001600160a01b03821662000beb5760405162bbe08560e31b815260040160405180910390fd5b6001600160a01b0383165f9081526001602052604090205460ff1662000c245760405163072b889f60e11b815260040160405180910390fd5b60035460ff16801562000c6457508062000c3e8462000ac7565b62000c4a919062001a89565b6001600160a01b0384165f90815260046020526040902054105b1562000c8357604051636bf4c8e960e11b815260040160405180910390fd5b6040516370a0823160e01b81523060048201525f906001600160a01b038516906370a0823190602401602060405180830381865afa15801562000cc8573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000cee919062001a71565b905062000d076001600160a01b038516333085620012e0565b6040516370a0823160e01b81523060048201525f9082906001600160a01b038716906370a0823190602401602060405180830381865afa15801562000d4e573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000d74919062001a71565b62000d80919062001a9f565b9050846001600160a01b0316846001600160a01b031660065f815462000da6906200186e565b91829055506040518481527f2c0f148b435140de488c1b34647f1511c646f7077e87007bacf22ef9977a16d89060200160405180910390a46001600160a01b038581165f90815260026020526040908190205490516340c10f1960e01b81528683166004820152602481018490529116906340c10f19906044015f604051808303815f87803b15801562000e38575f80fd5b505af115801562000e4b573d5f803e3d5ffd5b505050505050505050565b62000e6062001161565b6001600160a01b03831662000e8857604051635f5d339960e01b815260040160405180910390fd5b6001600160a01b038381165f908152600260205260409020541662000ec057604051630c76021160e01b815260040160405180910390fd5b6001600160a01b0383165f9081526001602090815260408083205460049092529091205460ff909116151583151514801591831415908262000f00575080155b1562000f1f5760405163a3a7fa2f60e01b815260040160405180910390fd5b811562000f85576001600160a01b0385165f81815260016020908152604091829020805460ff19168815159081179091558251938452908301527f303d37f32762627f23f474bb09535b3c1c7cb4f0f75c8960c42512b046ee24a8910160405180910390a15b8015620009e7576001600160a01b0385165f81815260046020908152604091829020869055815192835282018590527fca2c5390c633aaa2ba1caa471b2493fdb11998687f2975639500b5228b856d56910160405180910390a15050505050565b62000ff062001161565b6001600160a01b0381166200101f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6200102a8162001321565b50565b805f036200104e5760405163b8fc0f3b60e01b815260040160405180910390fd5b806200105b833362000a07565b10156200107b576040516324aa779360e21b815260040160405180910390fd5b816001600160a01b0316336001600160a01b031660065f81546200109f906200186e565b91829055506040518481527ffeb2000dca3e617cd6f3a8bbb63014bb54a124aac6ccbf73ee7229b4cd01f1209060200160405180910390a46001600160a01b038281165f9081526002602052604090819020549051632770a7eb60e21b815233600482015260248101849052911690639dc29fac906044015f604051808303815f87803b1580156200112f575f80fd5b505af115801562001142573d5f803e3d5ffd5b506200115d925050506001600160a01b03831633836200118f565b5050565b5f546001600160a01b03163314620008c85760405163118cdaa760e01b815233600482015260240162001016565b6040516001600160a01b03838116602483015260448201839052620003b991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505062001370565b5f54600160a01b900460ff1615620008c85760405163d93c066560e01b815260040160405180910390fd5b5f54600160a01b900460ff16620008c857604051638dfc202b60e01b815260040160405180910390fd5b6200124f6200121b565b5f805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b620012a5620011f0565b5f805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200127e3390565b6040516001600160a01b0384811660248301528381166044830152606482018390526200131b9186918216906323b872dd90608401620011bd565b50505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f620013866001600160a01b03841683620013d8565b905080515f14158015620013ad575080806020019051810190620013ab91906200183c565b155b15620003b957604051635274afe760e01b81526001600160a01b038416600482015260240162001016565b606062000abe83835f845f80856001600160a01b03168486604051620013ff919062001ab5565b5f6040518083038185875af1925050503d805f81146200143b576040519150601f19603f3d011682016040523d82523d5f602084013e62001440565b606091505b5091509150620014528683836200145e565b925050505b9392505050565b60608262001477576200147182620014c2565b62001457565b81511580156200148f57506001600160a01b0384163b155b15620014ba57604051639996b31560e01b81526001600160a01b038516600482015260240162001016565b508062001457565b805115620014d35780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b610ca48062001ad383390190565b80356001600160a01b038116811462001511575f80fd5b919050565b5f6020828403121562001527575f80fd5b62000abe82620014fa565b5f805f6060848603121562001545575f80fd5b6200155084620014fa565b92506200156060208501620014fa565b9150604084013590509250925092565b5f805f806040858703121562001584575f80fd5b843567ffffffffffffffff808211156200159c575f80fd5b818701915087601f830112620015b0575f80fd5b813581811115620015bf575f80fd5b8860208260051b8501011115620015d4575f80fd5b602092830196509450908601359080821115620015ef575f80fd5b818701915087601f83011262001603575f80fd5b81358181111562001612575f80fd5b88602082850101111562001624575f80fd5b95989497505060200194505050565b80151581146200102a575f80fd5b5f6020828403121562001652575f80fd5b8135620014578162001633565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262001683575f80fd5b813567ffffffffffffffff80821115620016a157620016a16200165f565b604051601f8301601f19908116603f01168101908282118183101715620016cc57620016cc6200165f565b81604052838152866020858801011115620016e5575f80fd5b836020870160208301375f602085830101528094505050505092915050565b5f805f806080858703121562001718575f80fd5b6200172385620014fa565b935060208501359250604085013567ffffffffffffffff8082111562001747575f80fd5b620017558883890162001673565b935060608701359150808211156200176b575f80fd5b506200177a8782880162001673565b91505092959194509250565b5f806040838503121562001798575f80fd5b620017a383620014fa565b9150620017b360208401620014fa565b90509250929050565b5f805f60608486031215620017cf575f80fd5b620017da84620014fa565b92506020840135620017ec8162001633565b929592945050506040919091013590565b5f80604083850312156200180f575f80fd5b6200181a83620014fa565b946020939093013593505050565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156200184d575f80fd5b8151620014578162001633565b634e487b7160e01b5f52601160045260245ffd5b5f600182016200188257620018826200185a565b5060010190565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b8183525f60208085019450825f5b85811015620018ef576001600160a01b03620018db83620014fa565b1687529582019590820190600101620018bf565b509495945050505050565b5f815180845260208085019450602084015f5b83811015620018ef578151875295820195908201906001016200190d565b608081525f6200194060808301888a62001889565b6001600160a01b0387166020840152828103604084015262001964818688620018b1565b905082810360608401526200197a8185620018fa565b9998505050505050505050565b6001600160a01b03871681526080602082018190525f90620019ad908301878962001889565b828103604084015262001964818688620018b1565b5f60208284031215620019d3575f80fd5b815160ff8116811462001457575f80fd5b5f5b8381101562001a00578181015183820152602001620019e6565b50505f910152565b5f815180845262001a21816020860160208601620019e4565b601f01601f19169290920160200192915050565b606081525f62001a49606083018662001a08565b828103602084015262001a5d818662001a08565b91505060ff83166040830152949350505050565b5f6020828403121562001a82575f80fd5b5051919050565b8082018082111562000ac15762000ac16200185a565b8181038181111562000ac15762000ac16200185a565b5f825162001ac8818460208701620019e4565b919091019291505056fe608060405234801562000010575f80fd5b5060405162000ca438038062000ca48339810160408190526200003391620001b5565b828233806200005b57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6200006681620000a5565b506004620000758382620002be565b506005620000848282620002be565b50506006805460ff191660ff9390931692909217909155506200038a915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262000118575f80fd5b81516001600160401b0380821115620001355762000135620000f4565b604051601f8301601f19908116603f01168101908282118183101715620001605762000160620000f4565b81604052838152602092508660208588010111156200017d575f80fd5b5f91505b83821015620001a0578582018301518183018401529082019062000181565b5f602085830101528094505050505092915050565b5f805f60608486031215620001c8575f80fd5b83516001600160401b0380821115620001df575f80fd5b620001ed8783880162000108565b9450602086015191508082111562000203575f80fd5b50620002128682870162000108565b925050604084015160ff8116811462000229575f80fd5b809150509250925092565b600181811c908216806200024957607f821691505b6020821081036200026857634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620002b957805f5260205f20601f840160051c81016020851015620002955750805b601f840160051c820191505b81811015620002b6575f8155600101620002a1565b50505b505050565b81516001600160401b03811115620002da57620002da620000f4565b620002f281620002eb845462000234565b846200026e565b602080601f83116001811462000328575f8415620003105750858301515b5f19600386901b1c1916600185901b17855562000382565b5f85815260208120601f198616915b82811015620003585788860151825594840194600190910190840162000337565b50858210156200037657878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b61090c80620003985f395ff3fe608060405234801561000f575f80fd5b50600436106100e5575f3560e01c8063715018a6116100885780639dc29fac116100635780639dc29fac146101cb578063a9059cbb146101de578063dd62ed3e146101f1578063f2fde38b14610229575f80fd5b8063715018a6146101a15780638da5cb5b146101a957806395d89b41146101c3575f80fd5b806323b872dd116100c357806323b872dd1461013c578063313ce5671461014f57806340c10f191461016457806370a0823114610179575f80fd5b806306fdde03146100e9578063095ea7b31461010757806318160ddd1461012a575b5f80fd5b6100f161023c565b6040516100fe9190610766565b60405180910390f35b61011a6101153660046107cd565b6102cc565b60405190151581526020016100fe565b6003545b6040519081526020016100fe565b61011a61014a3660046107f5565b6102e5565b60065460405160ff90911681526020016100fe565b6101776101723660046107cd565b610308565b005b61012e61018736600461082e565b6001600160a01b03165f9081526001602052604090205490565b61017761031e565b5f546040516001600160a01b0390911681526020016100fe565b6100f1610331565b6101776101d93660046107cd565b610340565b61011a6101ec3660046107cd565b610352565b61012e6101ff36600461084e565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b61017761023736600461082e565b61035f565b60606004805461024b9061087f565b80601f01602080910402602001604051908101604052809291908181526020018280546102779061087f565b80156102c25780601f10610299576101008083540402835291602001916102c2565b820191905f5260205f20905b8154815290600101906020018083116102a557829003601f168201915b5050505050905090565b5f336102d98185856103a1565b60019150505b92915050565b5f336102f28582856103b3565b6102fd85858561042e565b506001949350505050565b61031061048b565b61031a82826104b7565b5050565b61032661048b565b61032f5f6104eb565b565b60606005805461024b9061087f565b61034861048b565b61031a828261053a565b5f336102d981858561042e565b61036761048b565b6001600160a01b03811661039557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61039e816104eb565b50565b6103ae838383600161056e565b505050565b6001600160a01b038381165f908152600260209081526040808320938616835292905220545f198114610428578181101561041a57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161038c565b61042884848484035f61056e565b50505050565b6001600160a01b03831661045757604051634b637e8f60e11b81525f600482015260240161038c565b6001600160a01b0382166104805760405163ec442f0560e01b81525f600482015260240161038c565b6103ae838383610640565b5f546001600160a01b0316331461032f5760405163118cdaa760e01b815233600482015260240161038c565b6001600160a01b0382166104e05760405163ec442f0560e01b81525f600482015260240161038c565b61031a5f8383610640565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821661056357604051634b637e8f60e11b81525f600482015260240161038c565b61031a825f83610640565b6001600160a01b0384166105975760405163e602df0560e01b81525f600482015260240161038c565b6001600160a01b0383166105c057604051634a1406b160e11b81525f600482015260240161038c565b6001600160a01b038085165f908152600260209081526040808320938716835292905220829055801561042857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161063291815260200190565b60405180910390a350505050565b6001600160a01b03831661066a578060035f82825461065f91906108b7565b909155506106da9050565b6001600160a01b0383165f90815260016020526040902054818110156106bc5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161038c565b6001600160a01b0384165f9081526001602052604090209082900390555b6001600160a01b0382166106f657600380548290039055610714565b6001600160a01b0382165f9081526001602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161075991815260200190565b60405180910390a3505050565b5f602080835283518060208501525f5b8181101561079257858101830151858201604001528201610776565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146107c8575f80fd5b919050565b5f80604083850312156107de575f80fd5b6107e7836107b2565b946020939093013593505050565b5f805f60608486031215610807575f80fd5b610810846107b2565b925061081e602085016107b2565b9150604084013590509250925092565b5f6020828403121561083e575f80fd5b610847826107b2565b9392505050565b5f806040838503121561085f575f80fd5b610868836107b2565b9150610876602084016107b2565b90509250929050565b600181811c9082168061089357607f821691505b6020821081036108b157634e487b7160e01b5f52602260045260245ffd5b50919050565b808201808211156102df57634e487b7160e01b5f52601160045260245ffdfea2646970667358221220111911c023e675fda19c3a8b0c3dc91cb5df220d3a3123533d95bf6da60a1ca564736f6c63430008180033a2646970667358221220611cfafc6ea7d8395b23741f35ba50fa3fc16473fe05c0323725ca0c9821548564736f6c63430008180033608060405234801562000010575f80fd5b5060405162000ca438038062000ca48339810160408190526200003391620001b5565b828233806200005b57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6200006681620000a5565b506004620000758382620002be565b506005620000848282620002be565b50506006805460ff191660ff9390931692909217909155506200038a915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262000118575f80fd5b81516001600160401b0380821115620001355762000135620000f4565b604051601f8301601f19908116603f01168101908282118183101715620001605762000160620000f4565b81604052838152602092508660208588010111156200017d575f80fd5b5f91505b83821015620001a0578582018301518183018401529082019062000181565b5f602085830101528094505050505092915050565b5f805f60608486031215620001c8575f80fd5b83516001600160401b0380821115620001df575f80fd5b620001ed8783880162000108565b9450602086015191508082111562000203575f80fd5b50620002128682870162000108565b925050604084015160ff8116811462000229575f80fd5b809150509250925092565b600181811c908216806200024957607f821691505b6020821081036200026857634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620002b957805f5260205f20601f840160051c81016020851015620002955750805b601f840160051c820191505b81811015620002b6575f8155600101620002a1565b50505b505050565b81516001600160401b03811115620002da57620002da620000f4565b620002f281620002eb845462000234565b846200026e565b602080601f83116001811462000328575f8415620003105750858301515b5f19600386901b1c1916600185901b17855562000382565b5f85815260208120601f198616915b82811015620003585788860151825594840194600190910190840162000337565b50858210156200037657878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b61090c80620003985f395ff3fe608060405234801561000f575f80fd5b50600436106100e5575f3560e01c8063715018a6116100885780639dc29fac116100635780639dc29fac146101cb578063a9059cbb146101de578063dd62ed3e146101f1578063f2fde38b14610229575f80fd5b8063715018a6146101a15780638da5cb5b146101a957806395d89b41146101c3575f80fd5b806323b872dd116100c357806323b872dd1461013c578063313ce5671461014f57806340c10f191461016457806370a0823114610179575f80fd5b806306fdde03146100e9578063095ea7b31461010757806318160ddd1461012a575b5f80fd5b6100f161023c565b6040516100fe9190610766565b60405180910390f35b61011a6101153660046107cd565b6102cc565b60405190151581526020016100fe565b6003545b6040519081526020016100fe565b61011a61014a3660046107f5565b6102e5565b60065460405160ff90911681526020016100fe565b6101776101723660046107cd565b610308565b005b61012e61018736600461082e565b6001600160a01b03165f9081526001602052604090205490565b61017761031e565b5f546040516001600160a01b0390911681526020016100fe565b6100f1610331565b6101776101d93660046107cd565b610340565b61011a6101ec3660046107cd565b610352565b61012e6101ff36600461084e565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b61017761023736600461082e565b61035f565b60606004805461024b9061087f565b80601f01602080910402602001604051908101604052809291908181526020018280546102779061087f565b80156102c25780601f10610299576101008083540402835291602001916102c2565b820191905f5260205f20905b8154815290600101906020018083116102a557829003601f168201915b5050505050905090565b5f336102d98185856103a1565b60019150505b92915050565b5f336102f28582856103b3565b6102fd85858561042e565b506001949350505050565b61031061048b565b61031a82826104b7565b5050565b61032661048b565b61032f5f6104eb565b565b60606005805461024b9061087f565b61034861048b565b61031a828261053a565b5f336102d981858561042e565b61036761048b565b6001600160a01b03811661039557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61039e816104eb565b50565b6103ae838383600161056e565b505050565b6001600160a01b038381165f908152600260209081526040808320938616835292905220545f198114610428578181101561041a57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161038c565b61042884848484035f61056e565b50505050565b6001600160a01b03831661045757604051634b637e8f60e11b81525f600482015260240161038c565b6001600160a01b0382166104805760405163ec442f0560e01b81525f600482015260240161038c565b6103ae838383610640565b5f546001600160a01b0316331461032f5760405163118cdaa760e01b815233600482015260240161038c565b6001600160a01b0382166104e05760405163ec442f0560e01b81525f600482015260240161038c565b61031a5f8383610640565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821661056357604051634b637e8f60e11b81525f600482015260240161038c565b61031a825f83610640565b6001600160a01b0384166105975760405163e602df0560e01b81525f600482015260240161038c565b6001600160a01b0383166105c057604051634a1406b160e11b81525f600482015260240161038c565b6001600160a01b038085165f908152600260209081526040808320938716835292905220829055801561042857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161063291815260200190565b60405180910390a350505050565b6001600160a01b03831661066a578060035f82825461065f91906108b7565b909155506106da9050565b6001600160a01b0383165f90815260016020526040902054818110156106bc5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161038c565b6001600160a01b0384165f9081526001602052604090209082900390555b6001600160a01b0382166106f657600380548290039055610714565b6001600160a01b0382165f9081526001602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161075991815260200190565b60405180910390a3505050565b5f602080835283518060208501525f5b8181101561079257858101830151858201604001528201610776565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146107c8575f80fd5b919050565b5f80604083850312156107de575f80fd5b6107e7836107b2565b946020939093013593505050565b5f805f60608486031215610807575f80fd5b610810846107b2565b925061081e602085016107b2565b9150604084013590509250925092565b5f6020828403121561083e575f80fd5b610847826107b2565b9392505050565b5f806040838503121561085f575f80fd5b610868836107b2565b9150610876602084016107b2565b90509250929050565b600181811c9082168061089357607f821691505b6020821081036108b157634e487b7160e01b5f52602260045260245ffd5b50919050565b808201808211156102df57634e487b7160e01b5f52601160045260245ffdfea2646970667358221220111911c023e675fda19c3a8b0c3dc91cb5df220d3a3123533d95bf6da60a1ca564736f6c634300081800330000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000003600000000000000000000000000000000000000000000000000000000000000004000000000000000000000000c96de26018a54d51c097160568752c4e3bd6c3640000000000000000000000008236a87084f8b84306f72007f36f2618a5634494000000000000000000000000d9d920aa40f578ab794426f5c90f6c731d159def000000000000000000000000f469fbd2abcd6b9de8e169d128226c0fc90a012e00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000d5361744c61796572204642544300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d5361746c61796572204c4254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000145361746c6179657220536f6c764254432e42424e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000105361746c617965722070756d70425443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000007736174464254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000077361744c42544300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a736174536f6c7642544300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a73617450756d7042544300000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801562000010575f80fd5b50600436106200014b575f3560e01c8063715018a611620000c35780638456cb5911620000835780638456cb5914620002e95780638da5cb5b14620002f3578063b3db428b1462000304578063d8eb32da146200031b578063f2fde38b1462000332578063f3fef3a31462000349575f80fd5b8063715018a6146200027857806373f8fd4b14620002825780637cd07e4714620002995780638135369a14620002ad57806383374cab14620002d2575f80fd5b8063284693bc116200010f578063284693bc14620001fd5780633f4ba83a14620002145780635c975abb146200021e57806366d97b2114620002305780636f844c901462000261575f80fd5b80624aca6e146200014f5780631171bda914620001975780631268423a14620001b057806323cf311814620001c7578063251c0dfa14620001de575b5f80fd5b6200017a6200016036600462001516565b60026020525f90815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b620001ae620001a836600462001532565b62000360565b005b620001ae620001c136600462001570565b620003be565b620001ae620001d836600462001516565b6200079c565b600354620001ec9060ff1681565b60405190151581526020016200018e565b620001ae6200020e36600462001641565b6200082c565b620001ae620008aa565b5f54600160a01b900460ff16620001ec565b620002526200024136600462001516565b60046020525f908152604090205481565b6040519081526020016200018e565b620001ae6200027236600462001704565b620008ca565b620001ae620009ee565b620002526200029336600462001786565b62000a07565b6005546200017a906001600160a01b031681565b620001ec620002be36600462001516565b60016020525f908152604090205460ff1681565b62000252620002e336600462001516565b62000ac7565b620001ae62000b7b565b5f546001600160a01b03166200017a565b620001ae6200031536600462001532565b62000b99565b620001ae6200032c366004620017bc565b62000e56565b620001ae6200034336600462001516565b62000fe6565b620001ae6200035a366004620017fd565b6200102d565b6200036a62001161565b6001600160a01b038381165f908152600260205260409020541615620003a35760405163630b374b60e01b815260040160405180910390fd5b620003b96001600160a01b03841683836200118f565b505050565b620003c8620011f0565b6005546001600160a01b0316620003f257604051632ed9bf5360e21b815260040160405180910390fd5b825f819003620004155760405163e78703a360e01b815260040160405180910390fd5b5f8167ffffffffffffffff8111156200043257620004326200165f565b6040519080825280602002602001820160405280156200045c578160200160208202803683370190505b5090505f5b82811015620006b857620004a187878381811062000483576200048362001828565b90506020020160208101906200049a919062001516565b3362000a07565b828281518110620004b657620004b662001828565b602002602001018181525050818181518110620004d757620004d762001828565b60200260200101515f03620004ff5760405163a809389f60e01b815260040160405180910390fd5b86868281811062000514576200051462001828565b90506020020160208101906200052b919062001516565b60055483516001600160a01b039283169263095ea7b392169085908590811062000559576200055962001828565b60200260200101516040518363ffffffff1660e01b8152600401620005939291906001600160a01b03929092168252602082015260400190565b6020604051808303815f875af1158015620005b0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620005d691906200183c565b5060025f888884818110620005ef57620005ef62001828565b905060200201602081019062000606919062001516565b6001600160a01b03908116825260208201929092526040015f20548351911690639dc29fac90339085908590811062000643576200064362001828565b60200260200101516040518363ffffffff1660e01b81526004016200067d9291906001600160a01b03929092168252602082015260400190565b5f604051808303815f87803b15801562000695575f80fd5b505af1158015620006a8573d5f803e3d5ffd5b5050505080600101905062000461565b50336001600160a01b031660065f8154620006d3906200186e565b91829055506005546040517f2a9408aaa3ab6cc246dd766db41505ab38f5075df595383d86ada401bd9dad95916200072191899189916001600160a01b03909116908d908d908a906200192b565b60405180910390a3600554604051631ec3088560e21b81526001600160a01b0390911690637b0c22149062000765903390889088908c908c90899060040162001987565b5f604051808303815f87803b1580156200077d575f80fd5b505af115801562000790573d5f803e3d5ffd5b50505050505050505050565b620007a662001161565b6001600160a01b038116620007ce57604051631a86f04560e01b815260040160405180910390fd5b6040516001600160a01b03821681527f79ad283e951bc6564d3dba7fb46d34325b197249bb6daaa98bdac4fdd446ec1b9060200160405180910390a1600580546001600160a01b0319166001600160a01b0392909216919091179055565b6200083662001161565b60035481151560ff909116151503620008625760405163a3a7fa2f60e01b815260040160405180910390fd5b60405181151581527f2fc3ef49d8eecb2f0c3084f1c0fa38d03d57b314ae339cb161efc8d52264fa249060200160405180910390a16003805460ff1916911515919091179055565b620008b462001161565b620008be6200121b565b620008c862001245565b565b620008d462001161565b6001600160a01b038481165f9081526002602052604090205416156200090d5760405163630b374b60e01b815260040160405180910390fd5b5f8282866001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200094d573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620009739190620019c2565b6040516200098190620014ec565b6200098f9392919062001a35565b604051809103905ff080158015620009a9573d5f803e3d5ffd5b506001600160a01b038681165f90815260026020526040902080546001600160a01b0319169183169190911790559050620009e78560018662000e56565b5050505050565b6040516377aeb0ad60e01b815260040160405180910390fd5b6001600160a01b038281165f9081526002602052604081205490911662000a4157604051630c76021160e01b815260040160405180910390fd5b6001600160a01b038381165f90815260026020526040908190205490516370a0823160e01b815284831660048201529116906370a0823190602401602060405180830381865afa15801562000a98573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000abe919062001a71565b90505b92915050565b6001600160a01b038181165f9081526002602052604081205490911662000b0157604051630c76021160e01b815260040160405180910390fd5b6001600160a01b038083165f908152600260209081526040918290205482516318160ddd60e01b815292519316926318160ddd9260048082019392918290030181865afa15801562000b55573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000ac1919062001a71565b62000b8562001161565b62000b8f620011f0565b620008c86200129b565b62000ba3620011f0565b805f0362000bc4576040516318bb758960e11b815260040160405180910390fd5b6001600160a01b03821662000beb5760405162bbe08560e31b815260040160405180910390fd5b6001600160a01b0383165f9081526001602052604090205460ff1662000c245760405163072b889f60e11b815260040160405180910390fd5b60035460ff16801562000c6457508062000c3e8462000ac7565b62000c4a919062001a89565b6001600160a01b0384165f90815260046020526040902054105b1562000c8357604051636bf4c8e960e11b815260040160405180910390fd5b6040516370a0823160e01b81523060048201525f906001600160a01b038516906370a0823190602401602060405180830381865afa15801562000cc8573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000cee919062001a71565b905062000d076001600160a01b038516333085620012e0565b6040516370a0823160e01b81523060048201525f9082906001600160a01b038716906370a0823190602401602060405180830381865afa15801562000d4e573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000d74919062001a71565b62000d80919062001a9f565b9050846001600160a01b0316846001600160a01b031660065f815462000da6906200186e565b91829055506040518481527f2c0f148b435140de488c1b34647f1511c646f7077e87007bacf22ef9977a16d89060200160405180910390a46001600160a01b038581165f90815260026020526040908190205490516340c10f1960e01b81528683166004820152602481018490529116906340c10f19906044015f604051808303815f87803b15801562000e38575f80fd5b505af115801562000e4b573d5f803e3d5ffd5b505050505050505050565b62000e6062001161565b6001600160a01b03831662000e8857604051635f5d339960e01b815260040160405180910390fd5b6001600160a01b038381165f908152600260205260409020541662000ec057604051630c76021160e01b815260040160405180910390fd5b6001600160a01b0383165f9081526001602090815260408083205460049092529091205460ff909116151583151514801591831415908262000f00575080155b1562000f1f5760405163a3a7fa2f60e01b815260040160405180910390fd5b811562000f85576001600160a01b0385165f81815260016020908152604091829020805460ff19168815159081179091558251938452908301527f303d37f32762627f23f474bb09535b3c1c7cb4f0f75c8960c42512b046ee24a8910160405180910390a15b8015620009e7576001600160a01b0385165f81815260046020908152604091829020869055815192835282018590527fca2c5390c633aaa2ba1caa471b2493fdb11998687f2975639500b5228b856d56910160405180910390a15050505050565b62000ff062001161565b6001600160a01b0381166200101f57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6200102a8162001321565b50565b805f036200104e5760405163b8fc0f3b60e01b815260040160405180910390fd5b806200105b833362000a07565b10156200107b576040516324aa779360e21b815260040160405180910390fd5b816001600160a01b0316336001600160a01b031660065f81546200109f906200186e565b91829055506040518481527ffeb2000dca3e617cd6f3a8bbb63014bb54a124aac6ccbf73ee7229b4cd01f1209060200160405180910390a46001600160a01b038281165f9081526002602052604090819020549051632770a7eb60e21b815233600482015260248101849052911690639dc29fac906044015f604051808303815f87803b1580156200112f575f80fd5b505af115801562001142573d5f803e3d5ffd5b506200115d925050506001600160a01b03831633836200118f565b5050565b5f546001600160a01b03163314620008c85760405163118cdaa760e01b815233600482015260240162001016565b6040516001600160a01b03838116602483015260448201839052620003b991859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b03838183161783525050505062001370565b5f54600160a01b900460ff1615620008c85760405163d93c066560e01b815260040160405180910390fd5b5f54600160a01b900460ff16620008c857604051638dfc202b60e01b815260040160405180910390fd5b6200124f6200121b565b5f805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b620012a5620011f0565b5f805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200127e3390565b6040516001600160a01b0384811660248301528381166044830152606482018390526200131b9186918216906323b872dd90608401620011bd565b50505050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f620013866001600160a01b03841683620013d8565b905080515f14158015620013ad575080806020019051810190620013ab91906200183c565b155b15620003b957604051635274afe760e01b81526001600160a01b038416600482015260240162001016565b606062000abe83835f845f80856001600160a01b03168486604051620013ff919062001ab5565b5f6040518083038185875af1925050503d805f81146200143b576040519150601f19603f3d011682016040523d82523d5f602084013e62001440565b606091505b5091509150620014528683836200145e565b925050505b9392505050565b60608262001477576200147182620014c2565b62001457565b81511580156200148f57506001600160a01b0384163b155b15620014ba57604051639996b31560e01b81526001600160a01b038516600482015260240162001016565b508062001457565b805115620014d35780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b610ca48062001ad383390190565b80356001600160a01b038116811462001511575f80fd5b919050565b5f6020828403121562001527575f80fd5b62000abe82620014fa565b5f805f6060848603121562001545575f80fd5b6200155084620014fa565b92506200156060208501620014fa565b9150604084013590509250925092565b5f805f806040858703121562001584575f80fd5b843567ffffffffffffffff808211156200159c575f80fd5b818701915087601f830112620015b0575f80fd5b813581811115620015bf575f80fd5b8860208260051b8501011115620015d4575f80fd5b602092830196509450908601359080821115620015ef575f80fd5b818701915087601f83011262001603575f80fd5b81358181111562001612575f80fd5b88602082850101111562001624575f80fd5b95989497505060200194505050565b80151581146200102a575f80fd5b5f6020828403121562001652575f80fd5b8135620014578162001633565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262001683575f80fd5b813567ffffffffffffffff80821115620016a157620016a16200165f565b604051601f8301601f19908116603f01168101908282118183101715620016cc57620016cc6200165f565b81604052838152866020858801011115620016e5575f80fd5b836020870160208301375f602085830101528094505050505092915050565b5f805f806080858703121562001718575f80fd5b6200172385620014fa565b935060208501359250604085013567ffffffffffffffff8082111562001747575f80fd5b620017558883890162001673565b935060608701359150808211156200176b575f80fd5b506200177a8782880162001673565b91505092959194509250565b5f806040838503121562001798575f80fd5b620017a383620014fa565b9150620017b360208401620014fa565b90509250929050565b5f805f60608486031215620017cf575f80fd5b620017da84620014fa565b92506020840135620017ec8162001633565b929592945050506040919091013590565b5f80604083850312156200180f575f80fd5b6200181a83620014fa565b946020939093013593505050565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156200184d575f80fd5b8151620014578162001633565b634e487b7160e01b5f52601160045260245ffd5b5f600182016200188257620018826200185a565b5060010190565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b8183525f60208085019450825f5b85811015620018ef576001600160a01b03620018db83620014fa565b1687529582019590820190600101620018bf565b509495945050505050565b5f815180845260208085019450602084015f5b83811015620018ef578151875295820195908201906001016200190d565b608081525f6200194060808301888a62001889565b6001600160a01b0387166020840152828103604084015262001964818688620018b1565b905082810360608401526200197a8185620018fa565b9998505050505050505050565b6001600160a01b03871681526080602082018190525f90620019ad908301878962001889565b828103604084015262001964818688620018b1565b5f60208284031215620019d3575f80fd5b815160ff8116811462001457575f80fd5b5f5b8381101562001a00578181015183820152602001620019e6565b50505f910152565b5f815180845262001a21816020860160208601620019e4565b601f01601f19169290920160200192915050565b606081525f62001a49606083018662001a08565b828103602084015262001a5d818662001a08565b91505060ff83166040830152949350505050565b5f6020828403121562001a82575f80fd5b5051919050565b8082018082111562000ac15762000ac16200185a565b8181038181111562000ac15762000ac16200185a565b5f825162001ac8818460208701620019e4565b919091019291505056fe608060405234801562000010575f80fd5b5060405162000ca438038062000ca48339810160408190526200003391620001b5565b828233806200005b57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b6200006681620000a5565b506004620000758382620002be565b506005620000848282620002be565b50506006805460ff191660ff9390931692909217909155506200038a915050565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262000118575f80fd5b81516001600160401b0380821115620001355762000135620000f4565b604051601f8301601f19908116603f01168101908282118183101715620001605762000160620000f4565b81604052838152602092508660208588010111156200017d575f80fd5b5f91505b83821015620001a0578582018301518183018401529082019062000181565b5f602085830101528094505050505092915050565b5f805f60608486031215620001c8575f80fd5b83516001600160401b0380821115620001df575f80fd5b620001ed8783880162000108565b9450602086015191508082111562000203575f80fd5b50620002128682870162000108565b925050604084015160ff8116811462000229575f80fd5b809150509250925092565b600181811c908216806200024957607f821691505b6020821081036200026857634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620002b957805f5260205f20601f840160051c81016020851015620002955750805b601f840160051c820191505b81811015620002b6575f8155600101620002a1565b50505b505050565b81516001600160401b03811115620002da57620002da620000f4565b620002f281620002eb845462000234565b846200026e565b602080601f83116001811462000328575f8415620003105750858301515b5f19600386901b1c1916600185901b17855562000382565b5f85815260208120601f198616915b82811015620003585788860151825594840194600190910190840162000337565b50858210156200037657878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b61090c80620003985f395ff3fe608060405234801561000f575f80fd5b50600436106100e5575f3560e01c8063715018a6116100885780639dc29fac116100635780639dc29fac146101cb578063a9059cbb146101de578063dd62ed3e146101f1578063f2fde38b14610229575f80fd5b8063715018a6146101a15780638da5cb5b146101a957806395d89b41146101c3575f80fd5b806323b872dd116100c357806323b872dd1461013c578063313ce5671461014f57806340c10f191461016457806370a0823114610179575f80fd5b806306fdde03146100e9578063095ea7b31461010757806318160ddd1461012a575b5f80fd5b6100f161023c565b6040516100fe9190610766565b60405180910390f35b61011a6101153660046107cd565b6102cc565b60405190151581526020016100fe565b6003545b6040519081526020016100fe565b61011a61014a3660046107f5565b6102e5565b60065460405160ff90911681526020016100fe565b6101776101723660046107cd565b610308565b005b61012e61018736600461082e565b6001600160a01b03165f9081526001602052604090205490565b61017761031e565b5f546040516001600160a01b0390911681526020016100fe565b6100f1610331565b6101776101d93660046107cd565b610340565b61011a6101ec3660046107cd565b610352565b61012e6101ff36600461084e565b6001600160a01b039182165f90815260026020908152604080832093909416825291909152205490565b61017761023736600461082e565b61035f565b60606004805461024b9061087f565b80601f01602080910402602001604051908101604052809291908181526020018280546102779061087f565b80156102c25780601f10610299576101008083540402835291602001916102c2565b820191905f5260205f20905b8154815290600101906020018083116102a557829003601f168201915b5050505050905090565b5f336102d98185856103a1565b60019150505b92915050565b5f336102f28582856103b3565b6102fd85858561042e565b506001949350505050565b61031061048b565b61031a82826104b7565b5050565b61032661048b565b61032f5f6104eb565b565b60606005805461024b9061087f565b61034861048b565b61031a828261053a565b5f336102d981858561042e565b61036761048b565b6001600160a01b03811661039557604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61039e816104eb565b50565b6103ae838383600161056e565b505050565b6001600160a01b038381165f908152600260209081526040808320938616835292905220545f198114610428578181101561041a57604051637dc7a0d960e11b81526001600160a01b0384166004820152602481018290526044810183905260640161038c565b61042884848484035f61056e565b50505050565b6001600160a01b03831661045757604051634b637e8f60e11b81525f600482015260240161038c565b6001600160a01b0382166104805760405163ec442f0560e01b81525f600482015260240161038c565b6103ae838383610640565b5f546001600160a01b0316331461032f5760405163118cdaa760e01b815233600482015260240161038c565b6001600160a01b0382166104e05760405163ec442f0560e01b81525f600482015260240161038c565b61031a5f8383610640565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03821661056357604051634b637e8f60e11b81525f600482015260240161038c565b61031a825f83610640565b6001600160a01b0384166105975760405163e602df0560e01b81525f600482015260240161038c565b6001600160a01b0383166105c057604051634a1406b160e11b81525f600482015260240161038c565b6001600160a01b038085165f908152600260209081526040808320938716835292905220829055801561042857826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161063291815260200190565b60405180910390a350505050565b6001600160a01b03831661066a578060035f82825461065f91906108b7565b909155506106da9050565b6001600160a01b0383165f90815260016020526040902054818110156106bc5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161038c565b6001600160a01b0384165f9081526001602052604090209082900390555b6001600160a01b0382166106f657600380548290039055610714565b6001600160a01b0382165f9081526001602052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161075991815260200190565b60405180910390a3505050565b5f602080835283518060208501525f5b8181101561079257858101830151858201604001528201610776565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146107c8575f80fd5b919050565b5f80604083850312156107de575f80fd5b6107e7836107b2565b946020939093013593505050565b5f805f60608486031215610807575f80fd5b610810846107b2565b925061081e602085016107b2565b9150604084013590509250925092565b5f6020828403121561083e575f80fd5b610847826107b2565b9392505050565b5f806040838503121561085f575f80fd5b610868836107b2565b9150610876602084016107b2565b90509250929050565b600181811c9082168061089357607f821691505b6020821081036108b157634e487b7160e01b5f52602260045260245ffd5b50919050565b808201808211156102df57634e487b7160e01b5f52601160045260245ffdfea2646970667358221220111911c023e675fda19c3a8b0c3dc91cb5df220d3a3123533d95bf6da60a1ca564736f6c63430008180033a2646970667358221220611cfafc6ea7d8395b23741f35ba50fa3fc16473fe05c0323725ca0c9821548564736f6c63430008180033

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

0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000003600000000000000000000000000000000000000000000000000000000000000004000000000000000000000000c96de26018a54d51c097160568752c4e3bd6c3640000000000000000000000008236a87084f8b84306f72007f36f2618a5634494000000000000000000000000d9d920aa40f578ab794426f5c90f6c731d159def000000000000000000000000f469fbd2abcd6b9de8e169d128226c0fc90a012e00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000d5361744c61796572204642544300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d5361746c61796572204c4254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000145361746c6179657220536f6c764254432e42424e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000105361746c617965722070756d70425443000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000007736174464254430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000077361744c42544300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a736174536f6c7642544300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a73617450756d7042544300000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokensAllowed (address[]): 0xC96dE26018A54D51c097160568752c4E3BD6C364,0x8236a87084f8B84306f72007F36F2618A5634494,0xd9D920AA40f578ab794426F5C90F6C731D159DEf,0xF469fBD2abcd6B9de8E169d128226C0Fc90a012e
Arg [1] : _caps (uint256[]): 100000000,100000000,1000000000000000000,100000000
Arg [2] : _names (string[]): SatLayer FBTC,Satlayer LBTC,Satlayer SolvBTC.BBN,Satlayer pumpBTC
Arg [3] : _symbols (string[]): satFBTC,satLBTC,satSolvBTC,satPumpBTC

-----Encoded View---------------
40 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000360
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [5] : 000000000000000000000000c96de26018a54d51c097160568752c4e3bd6c364
Arg [6] : 0000000000000000000000008236a87084f8b84306f72007f36f2618a5634494
Arg [7] : 000000000000000000000000d9d920aa40f578ab794426f5c90f6c731d159def
Arg [8] : 000000000000000000000000f469fbd2abcd6b9de8e169d128226c0fc90a012e
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [10] : 0000000000000000000000000000000000000000000000000000000005f5e100
Arg [11] : 0000000000000000000000000000000000000000000000000000000005f5e100
Arg [12] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [13] : 0000000000000000000000000000000000000000000000000000000005f5e100
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [16] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [19] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [20] : 5361744c61796572204642544300000000000000000000000000000000000000
Arg [21] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [22] : 5361746c61796572204c42544300000000000000000000000000000000000000
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [24] : 5361746c6179657220536f6c764254432e42424e000000000000000000000000
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [26] : 5361746c617965722070756d7042544300000000000000000000000000000000
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [29] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [30] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [31] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [33] : 7361744642544300000000000000000000000000000000000000000000000000
Arg [34] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [35] : 7361744c42544300000000000000000000000000000000000000000000000000
Arg [36] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [37] : 736174536f6c7642544300000000000000000000000000000000000000000000
Arg [38] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [39] : 73617450756d7042544300000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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