ETH Price: $2,511.00 (-0.02%)

Token

Union Pirex (uCVX)
 

Overview

Max Total Supply

1,832,327.30540762158101102 uCVX

Holders

1,300

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
mrwallstreet.eth
Balance
0.000000000000007139 uCVX

Value
$0.00
0x2Bf6ec5e66dE3D3194b5CB74a95b8aC13d2a33f2
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
UnionPirexVault

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 179 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-05-31
*/

// Sources flattened with hardhat v2.8.3 https://hardhat.org

// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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


// File @openzeppelin/contracts/access/[email protected]

// OpenZeppelin Contracts v4.4.1 (access/Ownable.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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _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 @rari-capital/solmate/src/tokens/[email protected]

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*///////////////////////////////////////////////////////////////
                                  EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*///////////////////////////////////////////////////////////////
                             METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*///////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

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

    /*///////////////////////////////////////////////////////////////
                             EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*///////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*///////////////////////////////////////////////////////////////
                              ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*///////////////////////////////////////////////////////////////
                              EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*///////////////////////////////////////////////////////////////
                       INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}


// File @rari-capital/solmate/src/utils/[email protected]

/// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/SafeTransferLib.sol)
/// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer.
/// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller.
library SafeTransferLib {
    event Debug(bool one, bool two, uint256 retsize);

    /*///////////////////////////////////////////////////////////////
                            ETH OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferETH(address to, uint256 amount) internal {
        bool success;

        assembly {
            // Transfer the ETH and store if it succeeded or not.
            success := call(gas(), to, amount, 0, 0, 0, 0)
        }

        require(success, "ETH_TRANSFER_FAILED");
    }

    /*///////////////////////////////////////////////////////////////
                           ERC20 OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function safeTransferFrom(
        ERC20 token,
        address from,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument.
            mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 100, 0, 32)
            )
        }

        require(success, "TRANSFER_FROM_FAILED");
    }

    function safeTransfer(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "TRANSFER_FAILED");
    }

    function safeApprove(
        ERC20 token,
        address to,
        uint256 amount
    ) internal {
        bool success;

        assembly {
            // Get a pointer to some free memory.
            let freeMemoryPointer := mload(0x40)

            // Write the abi-encoded calldata into memory, beginning with the function selector.
            mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000)
            mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument.
            mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument.

            success := and(
                // Set success to whether the call reverted, if not we check it either
                // returned exactly 1 (can't just be non-zero data), or had no return data.
                or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())),
                // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2.
                // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space.
                // Counterintuitively, this call must be positioned second to the or() call in the
                // surrounding and() call or else returndatasize() will be zero during the computation.
                call(gas(), token, 0, freeMemoryPointer, 68, 0, 32)
            )
        }

        require(success, "APPROVE_FAILED");
    }
}


// File @rari-capital/solmate/src/utils/[email protected]

/// @notice Arithmetic library with operations for fixed-point numbers.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/FixedPointMathLib.sol)
/// @author Inspired by USM (https://github.com/usmfum/USM/blob/master/contracts/WadMath.sol)
library FixedPointMathLib {
    /*///////////////////////////////////////////////////////////////
                    SIMPLIFIED FIXED POINT OPERATIONS
    //////////////////////////////////////////////////////////////*/

    uint256 internal constant WAD = 1e18; // The scalar of ETH and most ERC20s.

    function mulWadDown(uint256 x, uint256 y) internal pure returns (uint256) {
        return mulDivDown(x, y, WAD); // Equivalent to (x * y) / WAD rounded down.
    }

    function mulWadUp(uint256 x, uint256 y) internal pure returns (uint256) {
        return mulDivUp(x, y, WAD); // Equivalent to (x * y) / WAD rounded up.
    }

    function divWadDown(uint256 x, uint256 y) internal pure returns (uint256) {
        return mulDivDown(x, WAD, y); // Equivalent to (x * WAD) / y rounded down.
    }

    function divWadUp(uint256 x, uint256 y) internal pure returns (uint256) {
        return mulDivUp(x, WAD, y); // Equivalent to (x * WAD) / y rounded up.
    }

    /*///////////////////////////////////////////////////////////////
                    LOW LEVEL FIXED POINT OPERATIONS
    //////////////////////////////////////////////////////////////*/

    function mulDivDown(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 z) {
        assembly {
            // Store x * y in z for now.
            z := mul(x, y)

            // Equivalent to require(denominator != 0 && (x == 0 || (x * y) / x == y))
            if iszero(and(iszero(iszero(denominator)), or(iszero(x), eq(div(z, x), y)))) {
                revert(0, 0)
            }

            // Divide z by the denominator.
            z := div(z, denominator)
        }
    }

    function mulDivUp(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 z) {
        assembly {
            // Store x * y in z for now.
            z := mul(x, y)

            // Equivalent to require(denominator != 0 && (x == 0 || (x * y) / x == y))
            if iszero(and(iszero(iszero(denominator)), or(iszero(x), eq(div(z, x), y)))) {
                revert(0, 0)
            }

            // First, divide z - 1 by the denominator and add 1.
            // We allow z - 1 to underflow if z is 0, because we multiply the
            // end result by 0 if z is zero, ensuring we return 0 if z is zero.
            z := mul(iszero(iszero(z)), add(div(sub(z, 1), denominator), 1))
        }
    }

    function rpow(
        uint256 x,
        uint256 n,
        uint256 scalar
    ) internal pure returns (uint256 z) {
        assembly {
            switch x
            case 0 {
                switch n
                case 0 {
                    // 0 ** 0 = 1
                    z := scalar
                }
                default {
                    // 0 ** n = 0
                    z := 0
                }
            }
            default {
                switch mod(n, 2)
                case 0 {
                    // If n is even, store scalar in z for now.
                    z := scalar
                }
                default {
                    // If n is odd, store x in z for now.
                    z := x
                }

                // Shifting right by 1 is like dividing by 2.
                let half := shr(1, scalar)

                for {
                    // Shift n right by 1 before looping to halve it.
                    n := shr(1, n)
                } n {
                    // Shift n right by 1 each iteration to halve it.
                    n := shr(1, n)
                } {
                    // Revert immediately if x ** 2 would overflow.
                    // Equivalent to iszero(eq(div(xx, x), x)) here.
                    if shr(128, x) {
                        revert(0, 0)
                    }

                    // Store x squared.
                    let xx := mul(x, x)

                    // Round to the nearest number.
                    let xxRound := add(xx, half)

                    // Revert if xx + half overflowed.
                    if lt(xxRound, xx) {
                        revert(0, 0)
                    }

                    // Set x to scaled xxRound.
                    x := div(xxRound, scalar)

                    // If n is even:
                    if mod(n, 2) {
                        // Compute z * x.
                        let zx := mul(z, x)

                        // If z * x overflowed:
                        if iszero(eq(div(zx, x), z)) {
                            // Revert if x is non-zero.
                            if iszero(iszero(x)) {
                                revert(0, 0)
                            }
                        }

                        // Round to the nearest number.
                        let zxRound := add(zx, half)

                        // Revert if zx + half overflowed.
                        if lt(zxRound, zx) {
                            revert(0, 0)
                        }

                        // Return properly scaled zxRound.
                        z := div(zxRound, scalar)
                    }
                }
            }
        }
    }

    /*///////////////////////////////////////////////////////////////
                        GENERAL NUMBER UTILITIES
    //////////////////////////////////////////////////////////////*/

    function sqrt(uint256 x) internal pure returns (uint256 z) {
        assembly {
            // Start off with z at 1.
            z := 1

            // Used below to help find a nearby power of 2.
            let y := x

            // Find the lowest power of 2 that is at least sqrt(x).
            if iszero(lt(y, 0x100000000000000000000000000000000)) {
                y := shr(128, y) // Like dividing by 2 ** 128.
                z := shl(64, z) // Like multiplying by 2 ** 64.
            }
            if iszero(lt(y, 0x10000000000000000)) {
                y := shr(64, y) // Like dividing by 2 ** 64.
                z := shl(32, z) // Like multiplying by 2 ** 32.
            }
            if iszero(lt(y, 0x100000000)) {
                y := shr(32, y) // Like dividing by 2 ** 32.
                z := shl(16, z) // Like multiplying by 2 ** 16.
            }
            if iszero(lt(y, 0x10000)) {
                y := shr(16, y) // Like dividing by 2 ** 16.
                z := shl(8, z) // Like multiplying by 2 ** 8.
            }
            if iszero(lt(y, 0x100)) {
                y := shr(8, y) // Like dividing by 2 ** 8.
                z := shl(4, z) // Like multiplying by 2 ** 4.
            }
            if iszero(lt(y, 0x10)) {
                y := shr(4, y) // Like dividing by 2 ** 4.
                z := shl(2, z) // Like multiplying by 2 ** 2.
            }
            if iszero(lt(y, 0x8)) {
                // Equivalent to 2 ** z.
                z := shl(1, z)
            }

            // Shifting right by 1 is like dividing by 2.
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))
            z := shr(1, add(z, div(x, z)))

            // Compute a rounded down version of z.
            let zRoundDown := div(x, z)

            // If zRoundDown is smaller, use it.
            if lt(zRoundDown, z) {
                z := zRoundDown
            }
        }
    }
}


// File @rari-capital/solmate/src/mixins/[email protected]



/// @notice Minimal ERC4626 tokenized Vault implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/mixins/ERC4626.sol)
abstract contract ERC4626 is ERC20 {
    using SafeTransferLib for ERC20;
    using FixedPointMathLib for uint256;

    /*///////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Deposit(address indexed caller, address indexed owner, uint256 assets, uint256 shares);

    event Withdraw(
        address indexed caller,
        address indexed receiver,
        address indexed owner,
        uint256 assets,
        uint256 shares
    );

    /*///////////////////////////////////////////////////////////////
                               IMMUTABLES
    //////////////////////////////////////////////////////////////*/

    ERC20 public immutable asset;

    constructor(
        ERC20 _asset,
        string memory _name,
        string memory _symbol
    ) ERC20(_name, _symbol, _asset.decimals()) {
        asset = _asset;
    }

    /*///////////////////////////////////////////////////////////////
                        DEPOSIT/WITHDRAWAL LOGIC
    //////////////////////////////////////////////////////////////*/

    function deposit(uint256 assets, address receiver) public virtual returns (uint256 shares) {
        // Check for rounding error since we round down in previewDeposit.
        require((shares = previewDeposit(assets)) != 0, "ZERO_SHARES");

        // Need to transfer before minting or ERC777s could reenter.
        asset.safeTransferFrom(msg.sender, address(this), assets);

        _mint(receiver, shares);

        emit Deposit(msg.sender, receiver, assets, shares);

        afterDeposit(assets, shares);
    }

    function mint(uint256 shares, address receiver) public virtual returns (uint256 assets) {
        assets = previewMint(shares); // No need to check for rounding error, previewMint rounds up.

        // Need to transfer before minting or ERC777s could reenter.
        asset.safeTransferFrom(msg.sender, address(this), assets);

        _mint(receiver, shares);

        emit Deposit(msg.sender, receiver, assets, shares);

        afterDeposit(assets, shares);
    }

    function withdraw(
        uint256 assets,
        address receiver,
        address owner
    ) public virtual returns (uint256 shares) {
        shares = previewWithdraw(assets); // No need to check for rounding error, previewWithdraw rounds up.

        if (msg.sender != owner) {
            uint256 allowed = allowance[owner][msg.sender]; // Saves gas for limited approvals.

            if (allowed != type(uint256).max) allowance[owner][msg.sender] = allowed - shares;
        }

        beforeWithdraw(assets, shares);

        _burn(owner, shares);

        emit Withdraw(msg.sender, receiver, owner, assets, shares);

        asset.safeTransfer(receiver, assets);
    }

    function redeem(
        uint256 shares,
        address receiver,
        address owner
    ) public virtual returns (uint256 assets) {
        if (msg.sender != owner) {
            uint256 allowed = allowance[owner][msg.sender]; // Saves gas for limited approvals.

            if (allowed != type(uint256).max) allowance[owner][msg.sender] = allowed - shares;
        }

        // Check for rounding error since we round down in previewRedeem.
        require((assets = previewRedeem(shares)) != 0, "ZERO_ASSETS");

        beforeWithdraw(assets, shares);

        _burn(owner, shares);

        emit Withdraw(msg.sender, receiver, owner, assets, shares);

        asset.safeTransfer(receiver, assets);
    }

    /*///////////////////////////////////////////////////////////////
                           ACCOUNTING LOGIC
    //////////////////////////////////////////////////////////////*/

    function totalAssets() public view virtual returns (uint256);

    function convertToShares(uint256 assets) public view virtual returns (uint256) {
        uint256 supply = totalSupply; // Saves an extra SLOAD if totalSupply is non-zero.

        return supply == 0 ? assets : assets.mulDivDown(supply, totalAssets());
    }

    function convertToAssets(uint256 shares) public view virtual returns (uint256) {
        uint256 supply = totalSupply; // Saves an extra SLOAD if totalSupply is non-zero.

        return supply == 0 ? shares : shares.mulDivDown(totalAssets(), supply);
    }

    function previewDeposit(uint256 assets) public view virtual returns (uint256) {
        return convertToShares(assets);
    }

    function previewMint(uint256 shares) public view virtual returns (uint256) {
        uint256 supply = totalSupply; // Saves an extra SLOAD if totalSupply is non-zero.

        return supply == 0 ? shares : shares.mulDivUp(totalAssets(), supply);
    }

    function previewWithdraw(uint256 assets) public view virtual returns (uint256) {
        uint256 supply = totalSupply; // Saves an extra SLOAD if totalSupply is non-zero.

        return supply == 0 ? assets : assets.mulDivUp(supply, totalAssets());
    }

    function previewRedeem(uint256 shares) public view virtual returns (uint256) {
        return convertToAssets(shares);
    }

    /*///////////////////////////////////////////////////////////////
                     DEPOSIT/WITHDRAWAL LIMIT LOGIC
    //////////////////////////////////////////////////////////////*/

    function maxDeposit(address) public view virtual returns (uint256) {
        return type(uint256).max;
    }

    function maxMint(address) public view virtual returns (uint256) {
        return type(uint256).max;
    }

    function maxWithdraw(address owner) public view virtual returns (uint256) {
        return convertToAssets(balanceOf[owner]);
    }

    function maxRedeem(address owner) public view virtual returns (uint256) {
        return balanceOf[owner];
    }

    /*///////////////////////////////////////////////////////////////
                         INTERNAL HOOKS LOGIC
    //////////////////////////////////////////////////////////////*/

    function beforeWithdraw(uint256 assets, uint256 shares) internal virtual {}

    function afterDeposit(uint256 assets, uint256 shares) internal virtual {}
}


// File contracts/vault/UnionPirexStaking.sol



// https://docs.synthetix.io/contracts/source/contracts/StakingRewards/
// https://github.com/Synthetixio/synthetix/blob/v2.66.0/contracts/StakingRewards.sol
/**
  Modifications
    - Pin pragma to 0.8.12
    - Remove IStakingRewards, RewardsDistributionRecipient, and Pausable
    - Add and inherit from Ownable
    - Add `RewardsDistributionRecipient` logic to contract
    - Add `vault` state variable and `onlyVault` modifier
    - Add `onlyVault` modifier to `stake` method
    - Change `rewardsDuration` to 14 days
    - Update contract to support only the vault as a user
    - Remove SafeMath since pragma 0.8.0 has those checks built-in
    - Replace OpenZeppelin ERC20, ReentrancyGuard, and SafeERC20 with Solmate v6 (audited)
    - Consolidate `rewardsToken` and `stakingToken` since they're the same
    - Remove `onlyVault` modifier from getReward
    - Remove ReentrancyGuard as it is no longer needed
    - Add `totalSupplyWithRewards` method to save gas as _totalSupply + rewards are accessed by vault
    - Updated `notifyRewardsAmount`
        - Remove the method parameter and compute the reward amount inside the function
        - Remove the conditional logic since we will always distribute the rewards balance
        - Remove overflow check since the caller cannot pass in the reward amount
*/
contract UnionPirexStaking is Ownable {
    using SafeTransferLib for ERC20;

    /* ========== STATE VARIABLES ========== */

    address public immutable vault;
    ERC20 public immutable token;

    uint256 public constant rewardsDuration = 14 days;

    address public distributor;
    uint256 public periodFinish;
    uint256 public rewardRate;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    uint256 public userRewardPerTokenPaid;
    uint256 public rewards;

    uint256 internal _totalSupply;

    /* ========== CONSTRUCTOR ========== */

    constructor(
        address _token,
        address _distributor,
        address _vault
    ) {
        token = ERC20(_token);
        distributor = _distributor;
        vault = _vault;
    }

    /* ========== VIEWS ========== */

    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    function totalSupplyWithRewards() external view returns (uint256, uint256) {
        uint256 t = _totalSupply;

        return (
            t,
            ((t * (rewardPerToken() - userRewardPerTokenPaid)) / 1e18) + rewards
        );
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return block.timestamp < periodFinish ? block.timestamp : periodFinish;
    }

    function rewardPerToken() public view returns (uint256) {
        if (_totalSupply == 0) {
            return rewardPerTokenStored;
        }

        return
            rewardPerTokenStored +
            ((((lastTimeRewardApplicable() - lastUpdateTime) * rewardRate) *
                1e18) / _totalSupply);
    }

    function earned() public view returns (uint256) {
        return
            ((_totalSupply * (rewardPerToken() - userRewardPerTokenPaid)) /
                1e18) + rewards;
    }

    function getRewardForDuration() external view returns (uint256) {
        return rewardRate * rewardsDuration;
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    function stake(uint256 amount) external onlyVault updateReward(vault) {
        require(amount > 0, "Cannot stake 0");
        _totalSupply += amount;
        token.safeTransferFrom(vault, address(this), amount);
        emit Staked(amount);
    }

    function withdraw(uint256 amount) external onlyVault updateReward(vault) {
        require(amount > 0, "Cannot withdraw 0");
        _totalSupply -= amount;
        token.safeTransfer(vault, amount);
        emit Withdrawn(amount);
    }

    function getReward() external updateReward(vault) {
        uint256 reward = rewards;

        if (reward > 0) {
            rewards = 0;
            token.safeTransfer(vault, reward);
            emit RewardPaid(reward);
        }
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function notifyRewardAmount()
        external
        onlyDistributor
        updateReward(address(0))
    {
        // Rewards transferred directly to this contract are not added to _totalSupply
        // To get the rewards w/o relying on a potentially incorrect passed in arg,
        // we can use the difference between the token balance and _totalSupply.
        // Additionally, to avoid re-distributing rewards, deduct the output of `earned`
        uint256 rewardBalance = token.balanceOf(address(this)) -
            _totalSupply -
            earned();

        rewardRate = rewardBalance / rewardsDuration;
        require(rewardRate != 0, "No rewards");

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp + rewardsDuration;

        emit RewardAdded(rewardBalance);
    }

    // Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders
    function recoverERC20(address tokenAddress, uint256 tokenAmount)
        external
        onlyOwner
    {
        require(
            tokenAddress != address(token),
            "Cannot withdraw the staking token"
        );
        ERC20(tokenAddress).safeTransfer(owner(), tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    function setDistributor(address _distributor) external onlyOwner {
        require(_distributor != address(0));
        distributor = _distributor;
    }

    /* ========== MODIFIERS ========== */

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards = earned();
            userRewardPerTokenPaid = rewardPerTokenStored;
        }
        _;
    }

    /* ========== EVENTS ========== */

    event RewardAdded(uint256 reward);
    event Staked(uint256 amount);
    event Withdrawn(uint256 amount);
    event RewardPaid(uint256 reward);
    event Recovered(address token, uint256 amount);

    modifier onlyDistributor() {
        require((msg.sender == distributor), "Distributor only");
        _;
    }

    modifier onlyVault() {
        require((msg.sender == vault), "Vault only");
        _;
    }
}


// File contracts/vault/UnionPirexVault.sol


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



contract UnionPirexVault is Ownable, ERC4626 {
    using SafeTransferLib for ERC20;
    using FixedPointMathLib for uint256;

    UnionPirexStaking public strategy;

    uint256 public constant MAX_WITHDRAWAL_PENALTY = 500;
    uint256 public constant MAX_PLATFORM_FEE = 2000;
    uint256 public constant FEE_DENOMINATOR = 10000;

    uint256 public withdrawalPenalty = 300;
    uint256 public platformFee = 1000;
    address public platform;

    event Harvest(address indexed caller, uint256 value);
    event WithdrawalPenaltyUpdated(uint256 penalty);
    event PlatformFeeUpdated(uint256 fee);
    event PlatformUpdated(address indexed _platform);
    event StrategySet(address indexed _strategy);

    error ZeroAddress();
    error ExceedsMax();
    error AlreadySet();

    constructor(address pxCvx) ERC4626(ERC20(pxCvx), "Union Pirex", "uCVX") {}

    /**
        @notice Set the withdrawal penalty
        @param  penalty  uint256  Withdrawal penalty
     */
    function setWithdrawalPenalty(uint256 penalty) external onlyOwner {
        if (penalty > MAX_WITHDRAWAL_PENALTY) revert ExceedsMax();

        withdrawalPenalty = penalty;

        emit WithdrawalPenaltyUpdated(penalty);
    }

    /**
        @notice Set the platform fee
        @param  fee  uint256  Platform fee
     */
    function setPlatformFee(uint256 fee) external onlyOwner {
        if (fee > MAX_PLATFORM_FEE) revert ExceedsMax();

        platformFee = fee;

        emit PlatformFeeUpdated(fee);
    }

    /**
        @notice Set the platform
        @param  _platform  address  Platform
     */
    function setPlatform(address _platform) external onlyOwner {
        if (_platform == address(0)) revert ZeroAddress();

        platform = _platform;

        emit PlatformUpdated(_platform);
    }

    /**
        @notice Set the strategy
        @param  _strategy  address  Strategy
     */
    function setStrategy(address _strategy) external onlyOwner {
        if (_strategy == address(0)) revert ZeroAddress();
        if (address(strategy) != address(0)) revert AlreadySet();

        // Set new strategy contract and approve max allowance
        strategy = UnionPirexStaking(_strategy);

        asset.safeApprove(_strategy, type(uint256).max);

        emit StrategySet(_strategy);
    }

    /**
        @notice Get the pxCVX custodied by the UnionPirex contracts
        @return uint256  Assets
     */
    function totalAssets() public view override returns (uint256) {
        // Vault assets + rewards should always be stored in strategy until withdrawal-time
        (uint256 _totalSupply, uint256 rewards) = strategy
            .totalSupplyWithRewards();

        // Deduct the exact reward amount staked (after fees are deducted when calling `harvest`)
        return
            _totalSupply +
            (
                rewards == 0
                    ? 0
                    : (rewards - ((rewards * platformFee) / FEE_DENOMINATOR))
            );
    }

    /**
        @notice Withdraw assets from the staking contract to prepare for transfer to user
        @param  assets  uint256  Assets
     */
    function beforeWithdraw(uint256 assets, uint256) internal override {
        // Harvest rewards in the event where there is not enough staked assets to cover the withdrawal
        if (assets > strategy.totalSupply()) harvest();

        strategy.withdraw(assets);
    }

    /**
        @notice Stake assets so that rewards can be properly distributed
        @param  assets  uint256  Assets
     */
    function afterDeposit(uint256 assets, uint256) internal override {
        strategy.stake(assets);
    }

    /**
        @notice Preview the amount of assets a user would receive from redeeming shares
        @param  shares  uint256  Shares
        @return uint256  Assets
     */
    function previewRedeem(uint256 shares)
        public
        view
        override
        returns (uint256)
    {
        // Calculate assets based on a user's % ownership of vault shares
        uint256 assets = convertToAssets(shares);

        uint256 _totalSupply = totalSupply;

        // Calculate a penalty - zero if user is the last to withdraw
        uint256 penalty = (_totalSupply == 0 || _totalSupply - shares == 0)
            ? 0
            : assets.mulDivDown(withdrawalPenalty, FEE_DENOMINATOR);

        // Redeemable amount is the post-penalty amount
        return assets - penalty;
    }

    /**
        @notice Preview the amount of shares a user would need to redeem the specified asset amount
        @notice This modified version takes into consideration the withdrawal fee
        @param  assets  uint256  Assets
        @return uint256  Shares
     */
    function previewWithdraw(uint256 assets)
        public
        view
        override
        returns (uint256)
    {
        // Calculate shares based on the specified assets' proportion of the pool
        uint256 shares = convertToShares(assets);

        // Save 1 SLOAD
        uint256 _totalSupply = totalSupply;

        // Factor in additional shares to fulfill withdrawal if user is not the last to withdraw
        return
            (_totalSupply == 0 || _totalSupply - shares == 0)
                ? shares
                : (shares * FEE_DENOMINATOR) /
                    (FEE_DENOMINATOR - withdrawalPenalty);
    }

    /**
        @notice Harvest rewards
     */
    function harvest() public {
        // Claim rewards
        strategy.getReward();

        // Since we don't normally store pxCVX within the vault, a non-zero balance equals rewards
        uint256 rewards = asset.balanceOf(address(this));

        emit Harvest(msg.sender, rewards);

        if (rewards != 0) {
            // Fee for platform
            uint256 feeAmount = (rewards * platformFee) / FEE_DENOMINATOR;

            // Deduct fee from reward balance
            rewards -= feeAmount;

            // Claimed rewards should be in pxCVX
            asset.safeTransfer(platform, feeAmount);

            // Stake rewards sans fee
            strategy.stake(rewards);
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"pxCvx","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadySet","type":"error"},{"inputs":[],"name":"ExceedsMax","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Harvest","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":"uint256","name":"fee","type":"uint256"}],"name":"PlatformFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_platform","type":"address"}],"name":"PlatformUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_strategy","type":"address"}],"name":"StrategySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"penalty","type":"uint256"}],"name":"WithdrawalPenaltyUpdated","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PLATFORM_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAWAL_PENALTY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"convertToAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"convertToShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"platform","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_platform","type":"address"}],"name":"setPlatform","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setPlatformFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"setStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"penalty","type":"uint256"}],"name":"setWithdrawalPenalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"contract UnionPirexStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalPenalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

61010060405261012c6008556103e86009553480156200001e57600080fd5b5060405162002301380380620023018339810160408190526200004191620002e6565b806040518060400160405280600b81526020016a0aadcd2dedc40a0d2e4caf60ab1b815250604051806040016040528060048152602001630ea86acb60e31b8152508181846001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015620000c4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000ea919062000318565b620000f53362000154565b82516200010a90600190602086019062000240565b5081516200012090600290602085019062000240565b5060ff81166080524660a05262000136620001a4565b60c0525050506001600160a01b0390921660e052506200041e915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6001604051620001d891906200037a565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8280546200024e906200033d565b90600052602060002090601f016020900481019282620002725760008555620002bd565b82601f106200028d57805160ff1916838001178555620002bd565b82800160010185558215620002bd579182015b82811115620002bd578251825591602001919060010190620002a0565b50620002cb929150620002cf565b5090565b5b80821115620002cb5760008155600101620002d0565b600060208284031215620002f957600080fd5b81516001600160a01b03811681146200031157600080fd5b9392505050565b6000602082840312156200032b57600080fd5b815160ff811681146200031157600080fd5b600181811c908216806200035257607f821691505b602082108114156200037457634e487b7160e01b600052602260045260246000fd5b50919050565b600080835481600182811c9150808316806200039757607f831692505b6020808410821415620003b857634e487b7160e01b86526022600452602486fd5b818015620003cf5760018114620003e15762000410565b60ff1986168952848901965062000410565b60008a81526020902060005b86811015620004085781548b820152908501908301620003ed565b505084890196505b509498975050505050505050565b60805160a05160c05160e051611e78620004896000396000818161038301528181610a3801528181610b7201528181610c6101528181610e3801528181610f8c0152818161118701526112d001526000610ad101526000610a9c0152600061032f0152611e786000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c806370a0823111610151578063b460af94116100c3578063d505accf11610087578063d505accf14610544578063d73792a914610557578063d905777e14610560578063dd62ed3e14610589578063ef8b30f7146105b4578063f2fde38b146105c757600080fd5b8063b460af94146104f8578063ba0876521461050b578063c63d75b6146103c6578063c6e6f5921461051e578063ce96cb771461053157600080fd5b806394bf804d1161011557806394bf804d1461049b57806395d89b41146104ae578063a2468c19146104b6578063a8c62e76146104bf578063a9059cbb146104d2578063b3d7f6b9146104e557600080fd5b806370a082311461042f578063715018a61461044f5780637ecebe00146104575780637faaa6c1146104775780638da5cb5b1461048a57600080fd5b8063313ce567116101ea578063402d267d116101ae578063402d267d146103c65780634641257d146103db5780634bde38c8146103e35780634cdad506146103f65780636945c5ea146104095780636e553f651461041c57600080fd5b8063313ce5671461032a57806333a100ca146103635780633644e5151461037657806338d52e0f1461037e5780633998a681146103bd57600080fd5b806312e8e2c31161023157806312e8e2c3146102e757806318160ddd146102fc5780632060176b1461030557806323b872dd1461030e57806326232a2e1461032157600080fd5b806301e1d1141461026e57806306fdde031461028957806307a2d13a1461029e578063095ea7b3146102b15780630a28a477146102d4575b600080fd5b6102766105da565b6040519081526020015b60405180910390f35b61029161069f565b6040516102809190611a43565b6102766102ac366004611a98565b61072d565b6102c46102bf366004611acd565b61075a565b6040519015158152602001610280565b6102766102e2366004611a98565b6107c7565b6102fa6102f5366004611a98565b610825565b005b61027660035481565b6102766101f481565b6102c461031c366004611af7565b6108b7565b61027660095481565b6103517f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff9091168152602001610280565b6102fa610371366004611b33565b610997565b610276610a98565b6103a57f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610280565b6102766107d081565b6102766103d4366004611b33565b5060001990565b6102fa610af3565b600a546103a5906001600160a01b031681565b610276610404366004611a98565b610cee565b6102fa610417366004611b33565b610d48565b61027661042a366004611b4e565b610de3565b61027661043d366004611b33565b60046020526000908152604090205481565b6102fa610eba565b610276610465366004611b33565b60066020526000908152604090205481565b6102fa610485366004611a98565b610ef0565b6000546001600160a01b03166103a5565b6102766104a9366004611b4e565b610f72565b61029161100e565b61027660085481565b6007546103a5906001600160a01b031681565b6102c46104e0366004611acd565b61101b565b6102766104f3366004611a98565b611081565b610276610506366004611b7a565b6110a0565b610276610519366004611b7a565b6111ae565b61027661052c366004611a98565b6112f7565b61027661053f366004611b33565b611317565b6102fa610552366004611bb6565b611339565b61027661271081565b61027661056e366004611b33565b6001600160a01b031660009081526004602052604090205490565b610276610597366004611c29565b600560209081526000928352604080842090915290825290205481565b6102766105c2366004611a98565b611577565b6102fa6105d5366004611b33565b611582565b6000806000600760009054906101000a90046001600160a01b03166001600160a01b031663b31dcbcf6040518163ffffffff1660e01b81526004016040805180830381865afa158015610631573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106559190611c53565b915091508060001461068b57612710600954826106729190611c8d565b61067c9190611cac565b6106869082611cce565b61068e565b60005b6106989083611ce5565b9250505090565b600180546106ac90611cfd565b80601f01602080910402602001604051908101604052809291908181526020018280546106d890611cfd565b80156107255780601f106106fa57610100808354040283529160200191610725565b820191906000526020600020905b81548152906001019060200180831161070857829003601f168201915b505050505081565b60035460009080156107515761074c6107446105da565b84908361161a565b610753565b825b9392505050565b3360008181526005602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906107b59086815260200190565b60405180910390a35060015b92915050565b6000806107d3836112f7565b6003549091508015806107ed57506107eb8282611cce565b155b61081b5760085461080090612710611cce565b61080c61271084611c8d565b6108169190611cac565b61081d565b815b949350505050565b6000546001600160a01b031633146108585760405162461bcd60e51b815260040161084f90611d38565b60405180910390fd5b6107d081111561087b576040516395e28b8560e01b815260040160405180910390fd5b60098190556040518181527f45610d581145924dd7090a5017e5f2b1d6f42213bb2e95707ff86846bbfcb1ca906020015b60405180910390a150565b6001600160a01b03831660009081526005602090815260408083203384529091528120546000198114610913576108ee8382611cce565b6001600160a01b03861660009081526005602090815260408083203384529091529020555b6001600160a01b0385166000908152600460205260408120805485929061093b908490611cce565b90915550506001600160a01b0380851660008181526004602052604090819020805487019055519091871690600080516020611e23833981519152906109849087815260200190565b60405180910390a3506001949350505050565b6000546001600160a01b031633146109c15760405162461bcd60e51b815260040161084f90611d38565b6001600160a01b0381166109e85760405163d92e233d60e01b815260040160405180910390fd5b6007546001600160a01b031615610a125760405163a741a04560e01b815260040160405180910390fd5b600780546001600160a01b0319166001600160a01b0383811691909117909155610a61907f00000000000000000000000000000000000000000000000000000000000000001682600019611639565b6040516001600160a01b038216907fe70d79dad95c835bdd87e9cf4665651c9e5abb3b756e4fd2bf45f29c95c3aa4090600090a250565b60007f00000000000000000000000000000000000000000000000000000000000000004614610ace57610ac96116b6565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b600760009054906101000a90046001600160a01b03166001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b4357600080fd5b505af1158015610b57573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691506370a0823190602401602060405180830381865afa158015610bc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be69190611d6d565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a28015610ceb57600061271060095483610c379190611c8d565b610c419190611cac565b9050610c4d8183611cce565b600a54909250610c8a906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116911683611750565b60075460405163534a7e1d60e11b8152600481018490526001600160a01b039091169063a694fc3a906024015b600060405180830381600087803b158015610cd157600080fd5b505af1158015610ce5573d6000803e3d6000fd5b50505050505b50565b600080610cfa8361072d565b6003549091506000811580610d165750610d148583611cce565b155b610d3057600854610d2b90849061271061161a565b610d33565b60005b9050610d3f8184611cce565b95945050505050565b6000546001600160a01b03163314610d725760405162461bcd60e51b815260040161084f90611d38565b6001600160a01b038116610d995760405163d92e233d60e01b815260040160405180910390fd5b600a80546001600160a01b0319166001600160a01b0383169081179091556040517f38703bc9e5fbfe6a4ab89353328531fd2a9b9b0a4953c587bd38e559da9c29cf90600090a250565b6000610dee83611577565b905080610e2b5760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f53484152455360a81b604482015260640161084f565b610e606001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330866117c8565b610e6a8282611852565b60408051848152602081018390526001600160a01b0384169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a36107c18382610c8a565b6000546001600160a01b03163314610ee45760405162461bcd60e51b815260040161084f90611d38565b610eee60006118ac565b565b6000546001600160a01b03163314610f1a5760405162461bcd60e51b815260040161084f90611d38565b6101f4811115610f3d576040516395e28b8560e01b815260040160405180910390fd5b60088190556040518181527f9d5ddc6fdb90a6647fe4981fdf08b45a5f9ef6d8ea960de27bef48fb48132592906020016108ac565b6000610f7d83611081565b9050610fb46001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330846117c8565b610fbe8284611852565b60408051828152602081018590526001600160a01b0384169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a36107c18184610c8a565b600280546106ac90611cfd565b3360009081526004602052604081208054839190839061103c908490611cce565b90915550506001600160a01b03831660008181526004602052604090819020805485019055513390600080516020611e23833981519152906107b59086815260200190565b60035460009080156107515761074c6110986105da565b8490836118fc565b60006110ab846107c7565b9050336001600160a01b0383161461111b576001600160a01b03821660009081526005602090815260408083203384529091529020546000198114611119576110f48282611cce565b6001600160a01b03841660009081526005602090815260408083203384529091529020555b505b611125848261192a565b61112f82826119e1565b60408051858152602081018390526001600160a01b03808516929086169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a46107536001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168486611750565b6000336001600160a01b0383161461121e576001600160a01b0382166000908152600560209081526040808320338452909152902054600019811461121c576111f78582611cce565b6001600160a01b03841660009081526005602090815260408083203384529091529020555b505b61122784610cee565b9050806112645760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f41535345545360a81b604482015260640161084f565b61126e818561192a565b61127882856119e1565b60408051828152602081018690526001600160a01b03808516929086169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a46107536001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168483611750565b60035460009080156107515761074c8161130f6105da565b85919061161a565b6001600160a01b0381166000908152600460205260408120546107c19061072d565b428410156113835760405162461bcd60e51b815260206004820152601760248201527614115493525517d11150511312539157d1561412549151604a1b604482015260640161084f565b6000600161138f610a98565b6001600160a01b038a811660008181526006602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa15801561149b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906114d15750876001600160a01b0316816001600160a01b0316145b61150e5760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b604482015260640161084f565b6001600160a01b0390811660009081526005602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b60006107c1826112f7565b6000546001600160a01b031633146115ac5760405162461bcd60e51b815260040161084f90611d38565b6001600160a01b0381166116115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161084f565b610ceb816118ac565b82820281151584158583048514171661163257600080fd5b0492915050565b600060405163095ea7b360e01b8152836004820152826024820152602060006044836000895af13d15601f3d11600160005114161716915050806116b05760405162461bcd60e51b815260206004820152600e60248201526d1054141493d59157d1905253115160921b604482015260640161084f565b50505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60016040516116e89190611d86565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b600060405163a9059cbb60e01b8152836004820152826024820152602060006044836000895af13d15601f3d11600160005114161716915050806116b05760405162461bcd60e51b815260206004820152600f60248201526e1514905394d1915497d19052531151608a1b604482015260640161084f565b60006040516323b872dd60e01b81528460048201528360248201528260448201526020600060648360008a5af13d15601f3d116001600051141617169150508061184b5760405162461bcd60e51b81526020600482015260146024820152731514905394d1915497d19493d357d1905253115160621b604482015260640161084f565b5050505050565b80600360008282546118649190611ce5565b90915550506001600160a01b038216600081815260046020908152604080832080548601905551848152600080516020611e2383398151915291015b60405180910390a35050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82820281151584158583048514171661191457600080fd5b6001826001830304018115150290509392505050565b600760009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561197d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a19190611d6d565b8211156119b0576119b0610af3565b600754604051632e1a7d4d60e01b8152600481018490526001600160a01b0390911690632e1a7d4d90602401610cb7565b6001600160a01b03821660009081526004602052604081208054839290611a09908490611cce565b90915550506003805482900390556040518181526000906001600160a01b03841690600080516020611e23833981519152906020016118a0565b600060208083528351808285015260005b81811015611a7057858101830151858201604001528201611a54565b81811115611a82576000604083870101525b50601f01601f1916929092016040019392505050565b600060208284031215611aaa57600080fd5b5035919050565b80356001600160a01b0381168114611ac857600080fd5b919050565b60008060408385031215611ae057600080fd5b611ae983611ab1565b946020939093013593505050565b600080600060608486031215611b0c57600080fd5b611b1584611ab1565b9250611b2360208501611ab1565b9150604084013590509250925092565b600060208284031215611b4557600080fd5b61075382611ab1565b60008060408385031215611b6157600080fd5b82359150611b7160208401611ab1565b90509250929050565b600080600060608486031215611b8f57600080fd5b83359250611b9f60208501611ab1565b9150611bad60408501611ab1565b90509250925092565b600080600080600080600060e0888a031215611bd157600080fd5b611bda88611ab1565b9650611be860208901611ab1565b95506040880135945060608801359350608088013560ff81168114611c0c57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611c3c57600080fd5b611c4583611ab1565b9150611b7160208401611ab1565b60008060408385031215611c6657600080fd5b505080516020909101519092909150565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611ca757611ca7611c77565b500290565b600082611cc957634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611ce057611ce0611c77565b500390565b60008219821115611cf857611cf8611c77565b500190565b600181811c90821680611d1157607f821691505b60208210811415611d3257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215611d7f57600080fd5b5051919050565b600080835481600182811c915080831680611da257607f831692505b6020808410821415611dc257634e487b7160e01b86526022600452602486fd5b818015611dd65760018114611de757611e14565b60ff19861689528489019650611e14565b60008a81526020902060005b86811015611e0c5781548b820152908501908301611df3565b505084890196505b50949897505050505050505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122023ff6247d5e88bd1f8d09be68605e1af63baae64a87fe5ffedd6b5b274d77c7f64736f6c634300080c0033000000000000000000000000bce0cf87f513102f22232436cca2ca49e815c3ac

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102695760003560e01c806370a0823111610151578063b460af94116100c3578063d505accf11610087578063d505accf14610544578063d73792a914610557578063d905777e14610560578063dd62ed3e14610589578063ef8b30f7146105b4578063f2fde38b146105c757600080fd5b8063b460af94146104f8578063ba0876521461050b578063c63d75b6146103c6578063c6e6f5921461051e578063ce96cb771461053157600080fd5b806394bf804d1161011557806394bf804d1461049b57806395d89b41146104ae578063a2468c19146104b6578063a8c62e76146104bf578063a9059cbb146104d2578063b3d7f6b9146104e557600080fd5b806370a082311461042f578063715018a61461044f5780637ecebe00146104575780637faaa6c1146104775780638da5cb5b1461048a57600080fd5b8063313ce567116101ea578063402d267d116101ae578063402d267d146103c65780634641257d146103db5780634bde38c8146103e35780634cdad506146103f65780636945c5ea146104095780636e553f651461041c57600080fd5b8063313ce5671461032a57806333a100ca146103635780633644e5151461037657806338d52e0f1461037e5780633998a681146103bd57600080fd5b806312e8e2c31161023157806312e8e2c3146102e757806318160ddd146102fc5780632060176b1461030557806323b872dd1461030e57806326232a2e1461032157600080fd5b806301e1d1141461026e57806306fdde031461028957806307a2d13a1461029e578063095ea7b3146102b15780630a28a477146102d4575b600080fd5b6102766105da565b6040519081526020015b60405180910390f35b61029161069f565b6040516102809190611a43565b6102766102ac366004611a98565b61072d565b6102c46102bf366004611acd565b61075a565b6040519015158152602001610280565b6102766102e2366004611a98565b6107c7565b6102fa6102f5366004611a98565b610825565b005b61027660035481565b6102766101f481565b6102c461031c366004611af7565b6108b7565b61027660095481565b6103517f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff9091168152602001610280565b6102fa610371366004611b33565b610997565b610276610a98565b6103a57f000000000000000000000000bce0cf87f513102f22232436cca2ca49e815c3ac81565b6040516001600160a01b039091168152602001610280565b6102766107d081565b6102766103d4366004611b33565b5060001990565b6102fa610af3565b600a546103a5906001600160a01b031681565b610276610404366004611a98565b610cee565b6102fa610417366004611b33565b610d48565b61027661042a366004611b4e565b610de3565b61027661043d366004611b33565b60046020526000908152604090205481565b6102fa610eba565b610276610465366004611b33565b60066020526000908152604090205481565b6102fa610485366004611a98565b610ef0565b6000546001600160a01b03166103a5565b6102766104a9366004611b4e565b610f72565b61029161100e565b61027660085481565b6007546103a5906001600160a01b031681565b6102c46104e0366004611acd565b61101b565b6102766104f3366004611a98565b611081565b610276610506366004611b7a565b6110a0565b610276610519366004611b7a565b6111ae565b61027661052c366004611a98565b6112f7565b61027661053f366004611b33565b611317565b6102fa610552366004611bb6565b611339565b61027661271081565b61027661056e366004611b33565b6001600160a01b031660009081526004602052604090205490565b610276610597366004611c29565b600560209081526000928352604080842090915290825290205481565b6102766105c2366004611a98565b611577565b6102fa6105d5366004611b33565b611582565b6000806000600760009054906101000a90046001600160a01b03166001600160a01b031663b31dcbcf6040518163ffffffff1660e01b81526004016040805180830381865afa158015610631573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106559190611c53565b915091508060001461068b57612710600954826106729190611c8d565b61067c9190611cac565b6106869082611cce565b61068e565b60005b6106989083611ce5565b9250505090565b600180546106ac90611cfd565b80601f01602080910402602001604051908101604052809291908181526020018280546106d890611cfd565b80156107255780601f106106fa57610100808354040283529160200191610725565b820191906000526020600020905b81548152906001019060200180831161070857829003601f168201915b505050505081565b60035460009080156107515761074c6107446105da565b84908361161a565b610753565b825b9392505050565b3360008181526005602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906107b59086815260200190565b60405180910390a35060015b92915050565b6000806107d3836112f7565b6003549091508015806107ed57506107eb8282611cce565b155b61081b5760085461080090612710611cce565b61080c61271084611c8d565b6108169190611cac565b61081d565b815b949350505050565b6000546001600160a01b031633146108585760405162461bcd60e51b815260040161084f90611d38565b60405180910390fd5b6107d081111561087b576040516395e28b8560e01b815260040160405180910390fd5b60098190556040518181527f45610d581145924dd7090a5017e5f2b1d6f42213bb2e95707ff86846bbfcb1ca906020015b60405180910390a150565b6001600160a01b03831660009081526005602090815260408083203384529091528120546000198114610913576108ee8382611cce565b6001600160a01b03861660009081526005602090815260408083203384529091529020555b6001600160a01b0385166000908152600460205260408120805485929061093b908490611cce565b90915550506001600160a01b0380851660008181526004602052604090819020805487019055519091871690600080516020611e23833981519152906109849087815260200190565b60405180910390a3506001949350505050565b6000546001600160a01b031633146109c15760405162461bcd60e51b815260040161084f90611d38565b6001600160a01b0381166109e85760405163d92e233d60e01b815260040160405180910390fd5b6007546001600160a01b031615610a125760405163a741a04560e01b815260040160405180910390fd5b600780546001600160a01b0319166001600160a01b0383811691909117909155610a61907f000000000000000000000000bce0cf87f513102f22232436cca2ca49e815c3ac1682600019611639565b6040516001600160a01b038216907fe70d79dad95c835bdd87e9cf4665651c9e5abb3b756e4fd2bf45f29c95c3aa4090600090a250565b60007f00000000000000000000000000000000000000000000000000000000000000014614610ace57610ac96116b6565b905090565b507f101eca74831bc1f1e0ead885ae19f309db42966bd1f53edbef1802152143711190565b600760009054906101000a90046001600160a01b03166001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b4357600080fd5b505af1158015610b57573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092507f000000000000000000000000bce0cf87f513102f22232436cca2ca49e815c3ac6001600160a01b031691506370a0823190602401602060405180830381865afa158015610bc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be69190611d6d565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a28015610ceb57600061271060095483610c379190611c8d565b610c419190611cac565b9050610c4d8183611cce565b600a54909250610c8a906001600160a01b037f000000000000000000000000bce0cf87f513102f22232436cca2ca49e815c3ac8116911683611750565b60075460405163534a7e1d60e11b8152600481018490526001600160a01b039091169063a694fc3a906024015b600060405180830381600087803b158015610cd157600080fd5b505af1158015610ce5573d6000803e3d6000fd5b50505050505b50565b600080610cfa8361072d565b6003549091506000811580610d165750610d148583611cce565b155b610d3057600854610d2b90849061271061161a565b610d33565b60005b9050610d3f8184611cce565b95945050505050565b6000546001600160a01b03163314610d725760405162461bcd60e51b815260040161084f90611d38565b6001600160a01b038116610d995760405163d92e233d60e01b815260040160405180910390fd5b600a80546001600160a01b0319166001600160a01b0383169081179091556040517f38703bc9e5fbfe6a4ab89353328531fd2a9b9b0a4953c587bd38e559da9c29cf90600090a250565b6000610dee83611577565b905080610e2b5760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f53484152455360a81b604482015260640161084f565b610e606001600160a01b037f000000000000000000000000bce0cf87f513102f22232436cca2ca49e815c3ac163330866117c8565b610e6a8282611852565b60408051848152602081018390526001600160a01b0384169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a36107c18382610c8a565b6000546001600160a01b03163314610ee45760405162461bcd60e51b815260040161084f90611d38565b610eee60006118ac565b565b6000546001600160a01b03163314610f1a5760405162461bcd60e51b815260040161084f90611d38565b6101f4811115610f3d576040516395e28b8560e01b815260040160405180910390fd5b60088190556040518181527f9d5ddc6fdb90a6647fe4981fdf08b45a5f9ef6d8ea960de27bef48fb48132592906020016108ac565b6000610f7d83611081565b9050610fb46001600160a01b037f000000000000000000000000bce0cf87f513102f22232436cca2ca49e815c3ac163330846117c8565b610fbe8284611852565b60408051828152602081018590526001600160a01b0384169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a36107c18184610c8a565b600280546106ac90611cfd565b3360009081526004602052604081208054839190839061103c908490611cce565b90915550506001600160a01b03831660008181526004602052604090819020805485019055513390600080516020611e23833981519152906107b59086815260200190565b60035460009080156107515761074c6110986105da565b8490836118fc565b60006110ab846107c7565b9050336001600160a01b0383161461111b576001600160a01b03821660009081526005602090815260408083203384529091529020546000198114611119576110f48282611cce565b6001600160a01b03841660009081526005602090815260408083203384529091529020555b505b611125848261192a565b61112f82826119e1565b60408051858152602081018390526001600160a01b03808516929086169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a46107536001600160a01b037f000000000000000000000000bce0cf87f513102f22232436cca2ca49e815c3ac168486611750565b6000336001600160a01b0383161461121e576001600160a01b0382166000908152600560209081526040808320338452909152902054600019811461121c576111f78582611cce565b6001600160a01b03841660009081526005602090815260408083203384529091529020555b505b61122784610cee565b9050806112645760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f41535345545360a81b604482015260640161084f565b61126e818561192a565b61127882856119e1565b60408051828152602081018690526001600160a01b03808516929086169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a46107536001600160a01b037f000000000000000000000000bce0cf87f513102f22232436cca2ca49e815c3ac168483611750565b60035460009080156107515761074c8161130f6105da565b85919061161a565b6001600160a01b0381166000908152600460205260408120546107c19061072d565b428410156113835760405162461bcd60e51b815260206004820152601760248201527614115493525517d11150511312539157d1561412549151604a1b604482015260640161084f565b6000600161138f610a98565b6001600160a01b038a811660008181526006602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa15801561149b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906114d15750876001600160a01b0316816001600160a01b0316145b61150e5760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b604482015260640161084f565b6001600160a01b0390811660009081526005602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b60006107c1826112f7565b6000546001600160a01b031633146115ac5760405162461bcd60e51b815260040161084f90611d38565b6001600160a01b0381166116115760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161084f565b610ceb816118ac565b82820281151584158583048514171661163257600080fd5b0492915050565b600060405163095ea7b360e01b8152836004820152826024820152602060006044836000895af13d15601f3d11600160005114161716915050806116b05760405162461bcd60e51b815260206004820152600e60248201526d1054141493d59157d1905253115160921b604482015260640161084f565b50505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60016040516116e89190611d86565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b600060405163a9059cbb60e01b8152836004820152826024820152602060006044836000895af13d15601f3d11600160005114161716915050806116b05760405162461bcd60e51b815260206004820152600f60248201526e1514905394d1915497d19052531151608a1b604482015260640161084f565b60006040516323b872dd60e01b81528460048201528360248201528260448201526020600060648360008a5af13d15601f3d116001600051141617169150508061184b5760405162461bcd60e51b81526020600482015260146024820152731514905394d1915497d19493d357d1905253115160621b604482015260640161084f565b5050505050565b80600360008282546118649190611ce5565b90915550506001600160a01b038216600081815260046020908152604080832080548601905551848152600080516020611e2383398151915291015b60405180910390a35050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82820281151584158583048514171661191457600080fd5b6001826001830304018115150290509392505050565b600760009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561197d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119a19190611d6d565b8211156119b0576119b0610af3565b600754604051632e1a7d4d60e01b8152600481018490526001600160a01b0390911690632e1a7d4d90602401610cb7565b6001600160a01b03821660009081526004602052604081208054839290611a09908490611cce565b90915550506003805482900390556040518181526000906001600160a01b03841690600080516020611e23833981519152906020016118a0565b600060208083528351808285015260005b81811015611a7057858101830151858201604001528201611a54565b81811115611a82576000604083870101525b50601f01601f1916929092016040019392505050565b600060208284031215611aaa57600080fd5b5035919050565b80356001600160a01b0381168114611ac857600080fd5b919050565b60008060408385031215611ae057600080fd5b611ae983611ab1565b946020939093013593505050565b600080600060608486031215611b0c57600080fd5b611b1584611ab1565b9250611b2360208501611ab1565b9150604084013590509250925092565b600060208284031215611b4557600080fd5b61075382611ab1565b60008060408385031215611b6157600080fd5b82359150611b7160208401611ab1565b90509250929050565b600080600060608486031215611b8f57600080fd5b83359250611b9f60208501611ab1565b9150611bad60408501611ab1565b90509250925092565b600080600080600080600060e0888a031215611bd157600080fd5b611bda88611ab1565b9650611be860208901611ab1565b95506040880135945060608801359350608088013560ff81168114611c0c57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215611c3c57600080fd5b611c4583611ab1565b9150611b7160208401611ab1565b60008060408385031215611c6657600080fd5b505080516020909101519092909150565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611ca757611ca7611c77565b500290565b600082611cc957634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611ce057611ce0611c77565b500390565b60008219821115611cf857611cf8611c77565b500190565b600181811c90821680611d1157607f821691505b60208210811415611d3257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215611d7f57600080fd5b5051919050565b600080835481600182811c915080831680611da257607f831692505b6020808410821415611dc257634e487b7160e01b86526022600452602486fd5b818015611dd65760018114611de757611e14565b60ff19861689528489019650611e14565b60008a81526020902060005b86811015611e0c5781548b820152908501908301611df3565b505084890196505b50949897505050505050505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122023ff6247d5e88bd1f8d09be68605e1af63baae64a87fe5ffedd6b5b274d77c7f64736f6c634300080c0033

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

000000000000000000000000bce0cf87f513102f22232436cca2ca49e815c3ac

-----Decoded View---------------
Arg [0] : pxCvx (address): 0xBCe0Cf87F513102F22232436CCa2ca49e815C3aC

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000bce0cf87f513102f22232436cca2ca49e815c3ac


Deployed Bytecode Sourcemap

37705:6276:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40196:573;;;:::i;:::-;;;160:25:1;;;148:2;133:18;40196:573:0;;;;;;;;4485:18;;;:::i;:::-;;;;;;;:::i;28873:261::-;;;;;;:::i;:::-;;:::i;5966:217::-;;;;;;:::i;:::-;;:::i;:::-;;;1585:14:1;;1578:22;1560:41;;1548:2;1533:18;5966:217:0;1420:187:1;42552:648:0;;;;;;:::i;:::-;;:::i;39049:193::-;;;;;;:::i;:::-;;:::i;:::-;;4769:26;;;;;;37881:52;;37930:3;37881:52;;6584:612;;;;;;:::i;:::-;;:::i;38095:33::-;;;;;;4541:31;;;;;;;;2117:4:1;2105:17;;;2087:36;;2075:2;2060:18;4541:31:0;1945:184:1;39658:410:0;;;;;;:::i;:::-;;:::i;8928:179::-;;;:::i;25460:28::-;;;;;;;;-1:-1:-1;;;;;2684:32:1;;;2666:51;;2654:2;2639:18;25460:28:0;2507:216:1;37940:47:0;;37983:4;37940:47;;30137:110;;;;;;:::i;:::-;-1:-1:-1;;;30222:17:0;30137:110;43259:719;;;:::i;38135:23::-;;;;;-1:-1:-1;;;;;38135:23:0;;;41638:630;;;;;;:::i;:::-;;:::i;39348:204::-;;;;;;:::i;:::-;;:::i;25876:528::-;;;;;;:::i;:::-;;:::i;4804:44::-;;;;;;:::i;:::-;;;;;;;;;;;;;;2624:103;;;:::i;5232:41::-;;;;;;:::i;:::-;;;;;;;;;;;;;;38708:233;;;;;;:::i;:::-;;:::i;1973:87::-;2019:7;2046:6;-1:-1:-1;;;;;2046:6:0;1973:87;;26412:478;;;;;;:::i;:::-;;:::i;4512:20::-;;;:::i;38050:38::-;;;;;;37839:33;;;;;-1:-1:-1;;;;;37839:33:0;;;6191:385;;;;;;:::i;:::-;;:::i;29277:255::-;;;;;;:::i;:::-;;:::i;26898:699::-;;;;;;:::i;:::-;;:::i;27605:734::-;;;;;;:::i;:::-;;:::i;28604:261::-;;;;;;:::i;:::-;;:::i;30370:133::-;;;;;;:::i;:::-;;:::i;7393:1527::-;;;;;;:::i;:::-;;:::i;37994:47::-;;38036:5;37994:47;;30511:114;;;;;;:::i;:::-;-1:-1:-1;;;;;30601:16:0;30574:7;30601:16;;;:9;:16;;;;;;;30511:114;4857:64;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;29142:127;;;;;;:::i;:::-;;:::i;2882:201::-;;;;;;:::i;:::-;;:::i;40196:573::-;40249:7;40363:20;40385:15;40404:8;;;;;;;;;-1:-1:-1;;;;;40404:8:0;-1:-1:-1;;;;;40404:45:0;;:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40362:89;;;;40630:7;40641:1;40630:12;:116;;38036:5;40714:11;;40704:7;:21;;;;:::i;:::-;40703:41;;;;:::i;:::-;40692:53;;:7;:53;:::i;:::-;40630:116;;;40666:1;40630:116;40583:178;;:12;:178;:::i;:::-;40563:198;;;;40196:573;:::o;4485:18::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;28873:261::-;28980:11;;28943:7;;29063:11;;:63;;29086:40;29104:13;:11;:13::i;:::-;29086:6;;29119;29086:17;:40::i;:::-;29063:63;;;29077:6;29063:63;29056:70;28873:261;-1:-1:-1;;;28873:261:0:o;5966:217::-;6067:10;6040:4;6057:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;6057:30:0;;;;;;;;;;:39;;;6114:37;6040:4;;6057:30;;6114:37;;;;6090:6;160:25:1;;148:2;133:18;;14:177;6114:37:0;;;;;;;;-1:-1:-1;6171:4:0;5966:217;;;;;:::o;42552:648::-;42659:7;42767:14;42784:23;42800:6;42784:15;:23::i;:::-;42868:11;;42767:40;;-1:-1:-1;43011:17:0;;;:47;;-1:-1:-1;43032:21:0;43047:6;43032:12;:21;:::i;:::-;:26;43011:47;43010:182;;43174:17;;43156:35;;38036:5;43156:35;:::i;:::-;43106:24;38036:5;43106:6;:24;:::i;:::-;43105:87;;;;:::i;:::-;43010:182;;;43079:6;43010:182;42990:202;42552:648;-1:-1:-1;;;;42552:648:0:o;39049:193::-;2019:7;2046:6;-1:-1:-1;;;;;2046:6:0;800:10;2193:23;2185:68;;;;-1:-1:-1;;;2185:68:0;;;;;;;:::i;:::-;;;;;;;;;37983:4:::1;39120:3;:22;39116:47;;;39151:12;;-1:-1:-1::0;;;39151:12:0::1;;;;;;;;;;;39116:47;39176:11;:17:::0;;;39211:23:::1;::::0;160:25:1;;;39211:23:0::1;::::0;148:2:1;133:18;39211:23:0::1;;;;;;;;39049:193:::0;:::o;6584:612::-;-1:-1:-1;;;;;6741:15:0;;6706:4;6741:15;;;:9;:15;;;;;;;;6757:10;6741:27;;;;;;;;-1:-1:-1;;6821:28:0;;6817:80;;6881:16;6891:6;6881:7;:16;:::i;:::-;-1:-1:-1;;;;;6851:15:0;;;;;;:9;:15;;;;;;;;6867:10;6851:27;;;;;;;:46;6817:80;-1:-1:-1;;;;;6910:15:0;;;;;;:9;:15;;;;;:25;;6929:6;;6910:15;:25;;6929:6;;6910:25;:::i;:::-;;;;-1:-1:-1;;;;;;;7086:13:0;;;;;;;:9;:13;;;;;;;:23;;;;;;7138:26;7086:13;;7138:26;;;-1:-1:-1;;;;;;;;;;;7138:26:0;;;7103:6;160:25:1;;148:2;133:18;;14:177;7138:26:0;;;;;;;;-1:-1:-1;7184:4:0;;6584:612;-1:-1:-1;;;;6584:612:0:o;39658:410::-;2019:7;2046:6;-1:-1:-1;;;;;2046:6:0;800:10;2193:23;2185:68;;;;-1:-1:-1;;;2185:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;39732:23:0;::::1;39728:49;;39764:13;;-1:-1:-1::0;;;39764:13:0::1;;;;;;;;;;;39728:49;39800:8;::::0;-1:-1:-1;;;;;39800:8:0::1;39792:31:::0;39788:56:::1;;39832:12;;-1:-1:-1::0;;;39832:12:0::1;;;;;;;;;;;39788:56;39921:8;:39:::0;;-1:-1:-1;;;;;;39921:39:0::1;-1:-1:-1::0;;;;;39921:39:0;;::::1;::::0;;;::::1;::::0;;;39973:47:::1;::::0;:5:::1;:17;39921:39:::0;-1:-1:-1;;39973:17:0::1;:47::i;:::-;40038:22;::::0;-1:-1:-1;;;;;40038:22:0;::::1;::::0;::::1;::::0;;;::::1;39658:410:::0;:::o;8928:179::-;8985:7;9029:16;9012:13;:33;:87;;9075:24;:22;:24::i;:::-;9005:94;;8928:179;:::o;9012:87::-;-1:-1:-1;9048:24:0;;8928:179::o;43259:719::-;43322:8;;;;;;;;;-1:-1:-1;;;;;43322:8:0;-1:-1:-1;;;;;43322:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;43473:30:0;;-1:-1:-1;;;43473:30:0;;43497:4;43473:30;;;2666:51:1;43455:15:0;;-1:-1:-1;43473:5:0;-1:-1:-1;;;;;43473:15:0;;-1:-1:-1;43473:15:0;;2639:18:1;;43473:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43521:28;;160:25:1;;;43455:48:0;;-1:-1:-1;43529:10:0;;43521:28;;148:2:1;133:18;43521:28:0;;;;;;;43566:12;;43562:409;;43628:17;38036:5;43659:11;;43649:7;:21;;;;:::i;:::-;43648:41;;;;:::i;:::-;43628:61;-1:-1:-1;43753:20:0;43628:61;43753:20;;:::i;:::-;43860:8;;43753:20;;-1:-1:-1;43841:39:0;;-1:-1:-1;;;;;43841:5:0;:18;;;43860:8;43870:9;43841:18;:39::i;:::-;43936:8;;:23;;-1:-1:-1;;;43936:23:0;;;;;160:25:1;;;-1:-1:-1;;;;;43936:8:0;;;;:14;;133:18:1;;43936:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43580:391;43562:409;43285:693;43259:719::o;41638:630::-;41743:7;41843:14;41860:23;41876:6;41860:15;:23::i;:::-;41919:11;;41843:40;;-1:-1:-1;41896:20:0;42033:17;;;:47;;-1:-1:-1;42054:21:0;42069:6;42054:12;:21;:::i;:::-;:26;42033:47;42032:135;;42132:17;;42114:53;;:6;;38036:5;42114:17;:53::i;:::-;42032:135;;;42097:1;42032:135;42014:153;-1:-1:-1;42244:16:0;42014:153;42244:6;:16;:::i;:::-;42237:23;41638:630;-1:-1:-1;;;;;41638:630:0:o;39348:204::-;2019:7;2046:6;-1:-1:-1;;;;;2046:6:0;800:10;2193:23;2185:68;;;;-1:-1:-1;;;2185:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;39422:23:0;::::1;39418:49;;39454:13;;-1:-1:-1::0;;;39454:13:0::1;;;;;;;;;;;39418:49;39480:8;:20:::0;;-1:-1:-1;;;;;;39480:20:0::1;-1:-1:-1::0;;;;;39480:20:0;::::1;::::0;;::::1;::::0;;;39518:26:::1;::::0;::::1;::::0;-1:-1:-1;;39518:26:0::1;39348:204:::0;:::o;25876:528::-;25951:14;26072:22;26087:6;26072:14;:22::i;:::-;26063:31;-1:-1:-1;26062:38:0;26054:62;;;;-1:-1:-1;;;26054:62:0;;6902:2:1;26054:62:0;;;6884:21:1;6941:2;6921:18;;;6914:30;-1:-1:-1;;;6960:18:1;;;6953:41;7011:18;;26054:62:0;6700:335:1;26054:62:0;26199:57;-1:-1:-1;;;;;26199:5:0;:22;26222:10;26242:4;26249:6;26199:22;:57::i;:::-;26269:23;26275:8;26285:6;26269:5;:23::i;:::-;26310:45;;;7214:25:1;;;7270:2;7255:18;;7248:34;;;-1:-1:-1;;;;;26310:45:0;;;26318:10;;26310:45;;7187:18:1;26310:45:0;;;;;;;26368:28;26381:6;26389;26368:12;:28::i;2624:103::-;2019:7;2046:6;-1:-1:-1;;;;;2046:6:0;800:10;2193:23;2185:68;;;;-1:-1:-1;;;2185:68:0;;;;;;;:::i;:::-;2689:30:::1;2716:1;2689:18;:30::i;:::-;2624:103::o:0;38708:233::-;2019:7;2046:6;-1:-1:-1;;;;;2046:6:0;800:10;2193:23;2185:68;;;;-1:-1:-1;;;2185:68:0;;;;;;;:::i;:::-;37930:3:::1;38789:7;:32;38785:57;;;38830:12;;-1:-1:-1::0;;;38830:12:0::1;;;;;;;;;;;38785:57;38855:17;:27:::0;;;38900:33:::1;::::0;160:25:1;;;38900:33:0::1;::::0;148:2:1;133:18;38900:33:0::1;14:177:1::0;26412:478:0;26484:14;26520:19;26532:6;26520:11;:19::i;:::-;26511:28;-1:-1:-1;26685:57:0;-1:-1:-1;;;;;26685:5:0;:22;26708:10;26728:4;26511:28;26685:22;:57::i;:::-;26755:23;26761:8;26771:6;26755:5;:23::i;:::-;26796:45;;;7214:25:1;;;7270:2;7255:18;;7248:34;;;-1:-1:-1;;;;;26796:45:0;;;26804:10;;26796:45;;7187:18:1;26796:45:0;;;;;;;26854:28;26867:6;26875;26854:12;:28::i;4512:20::-;;;;;;;:::i;6191:385::-;6288:10;6261:4;6278:21;;;:9;:21;;;;;:31;;6303:6;;6278:21;6261:4;;6278:31;;6303:6;;6278:31;:::i;:::-;;;;-1:-1:-1;;;;;;;6460:13:0;;;;;;:9;:13;;;;;;;:23;;;;;;6512:32;6521:10;;-1:-1:-1;;;;;;;;;;;6512:32:0;;;6477:6;160:25:1;;148:2;133:18;;14:177;29277:255:0;29380:11;;29343:7;;29463:11;;:61;;29486:38;29502:13;:11;:13::i;:::-;29486:6;;29517;29486:15;:38::i;26898:699::-;27023:14;27059:23;27075:6;27059:15;:23::i;:::-;27050:32;-1:-1:-1;27166:10:0;-1:-1:-1;;;;;27166:19:0;;;27162:232;;-1:-1:-1;;;;;27220:16:0;;27202:15;27220:16;;;:9;:16;;;;;;;;27237:10;27220:28;;;;;;;;-1:-1:-1;;27305:28:0;;27301:81;;27366:16;27376:6;27366:7;:16;:::i;:::-;-1:-1:-1;;;;;27335:16:0;;;;;;:9;:16;;;;;;;;27352:10;27335:28;;;;;;;:47;27301:81;27187:207;27162:232;27406:30;27421:6;27429;27406:14;:30::i;:::-;27449:20;27455:5;27462:6;27449:5;:20::i;:::-;27487:53;;;7214:25:1;;;7270:2;7255:18;;7248:34;;;-1:-1:-1;;;;;27487:53:0;;;;;;;;27496:10;;27487:53;;7187:18:1;27487:53:0;;;;;;;27553:36;-1:-1:-1;;;;;27553:5:0;:18;27572:8;27582:6;27553:18;:36::i;27605:734::-;27728:14;27759:10;-1:-1:-1;;;;;27759:19:0;;;27755:232;;-1:-1:-1;;;;;27813:16:0;;27795:15;27813:16;;;:9;:16;;;;;;;;27830:10;27813:28;;;;;;;;-1:-1:-1;;27898:28:0;;27894:81;;27959:16;27969:6;27959:7;:16;:::i;:::-;-1:-1:-1;;;;;27928:16:0;;;;;;:9;:16;;;;;;;;27945:10;27928:28;;;;;;;:47;27894:81;27780:207;27755:232;28092:21;28106:6;28092:13;:21::i;:::-;28083:30;-1:-1:-1;28082:37:0;28074:61;;;;-1:-1:-1;;;28074:61:0;;7495:2:1;28074:61:0;;;7477:21:1;7534:2;7514:18;;;7507:30;-1:-1:-1;;;7553:18:1;;;7546:41;7604:18;;28074:61:0;7293:335:1;28074:61:0;28148:30;28163:6;28171;28148:14;:30::i;:::-;28191:20;28197:5;28204:6;28191:5;:20::i;:::-;28229:53;;;7214:25:1;;;7270:2;7255:18;;7248:34;;;-1:-1:-1;;;;;28229:53:0;;;;;;;;28238:10;;28229:53;;7187:18:1;28229:53:0;;;;;;;28295:36;-1:-1:-1;;;;;28295:5:0;:18;28314:8;28324:6;28295:18;:36::i;28604:261::-;28711:11;;28674:7;;28794:11;;:63;;28817:40;28835:6;28843:13;:11;:13::i;:::-;28817:6;;:40;:17;:40::i;30370:133::-;-1:-1:-1;;;;;30478:16:0;;30435:7;30478:16;;;:9;:16;;;;;;30462:33;;:15;:33::i;7393:1527::-;7621:15;7609:8;:27;;7601:63;;;;-1:-1:-1;;;7601:63:0;;7835:2:1;7601:63:0;;;7817:21:1;7874:2;7854:18;;;7847:30;-1:-1:-1;;;7893:18:1;;;7886:53;7956:18;;7601:63:0;7633:347:1;7601:63:0;7834:24;7861:827;8001:18;:16;:18::i;:::-;-1:-1:-1;;;;;8455:13:0;;;;;;;:6;:13;;;;;;;;;:15;;;;;;;;8086:458;;8131:167;8086:458;;;8272:25:1;8351:18;;;8344:43;;;;8423:15;;;8403:18;;;8396:43;8455:18;;;8448:34;;;8498:19;;;8491:35;;;;8542:19;;;;8535:35;;;8086:458:0;;;;;;;;;;8244:19:1;;;8086:458:0;;;8046:525;;;;;;;;-1:-1:-1;;;7921:673:0;;;8839:27:1;8882:11;;;8875:27;;;;8918:12;;;8911:28;;;;8955:12;;7921:673:0;;;-1:-1:-1;;7921:673:0;;;;;;;;;7889:724;;7921:673;7889:724;;;;7861:827;;;;;;;;;9205:25:1;9278:4;9266:17;;9246:18;;;9239:45;9300:18;;;9293:34;;;9343:18;;;9336:34;;;9177:19;;7861:827:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;7861:827:0;;-1:-1:-1;;7861:827:0;;;-1:-1:-1;;;;;;;8713:30:0;;;;;;:59;;;8767:5;-1:-1:-1;;;;;8747:25:0;:16;-1:-1:-1;;;;;8747:25:0;;8713:59;8705:86;;;;-1:-1:-1;;;8705:86:0;;9583:2:1;8705:86:0;;;9565:21:1;9622:2;9602:18;;;9595:30;-1:-1:-1;;;9641:18:1;;;9634:44;9695:18;;8705:86:0;9381:338:1;8705:86:0;-1:-1:-1;;;;;8808:27:0;;;;;;;:9;:27;;;;;;;;:36;;;;;;;;;;;;;:44;;;8881:31;160:25:1;;;8808:36:0;;8881:31;;;;;133:18:1;8881:31:0;;;;;;;7393:1527;;;;;;;:::o;29142:127::-;29211:7;29238:23;29254:6;29238:15;:23::i;2882:201::-;2019:7;2046:6;-1:-1:-1;;;;;2046:6:0;800:10;2193:23;2185:68;;;;-1:-1:-1;;;2185:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;2971:22:0;::::1;2963:73;;;::::0;-1:-1:-1;;;2963:73:0;;9926:2:1;2963:73:0::1;::::0;::::1;9908:21:1::0;9965:2;9945:18;;;9938:30;10004:34;9984:18;;;9977:62;-1:-1:-1;;;10055:18:1;;;10048:36;10101:19;;2963:73:0::1;9724:402:1::0;2963:73:0::1;3047:28;3066:8;3047:18;:28::i;17920:552::-:0;18133:9;;;18267:19;;18260:27;18292:9;;18306;;;18303:16;;18289:31;18256:65;18246:123;;18352:1;18349;18342:12;18246:123;18435:19;;17920:552;-1:-1:-1;;17920:552:0:o;14888:1483::-;15004:12;15135:4;15129:11;-1:-1:-1;;;15261:17:0;15254:93;15395:2;15391:1;15372:17;15368:25;15361:37;15476:6;15471:2;15452:17;15448:26;15441:42;16288:2;16285:1;16281:2;16262:17;16259:1;16252:5;16245;16240:51;15804:16;15797:24;15791:2;15773:16;15770:24;15766:1;15762;15756:8;15753:15;15749:46;15746:76;15543:763;15532:774;;;16337:7;16329:34;;;;-1:-1:-1;;;16329:34:0;;10333:2:1;16329:34:0;;;10315:21:1;10372:2;10352:18;;;10345:30;-1:-1:-1;;;10391:18:1;;;10384:44;10445:18;;16329:34:0;10131:338:1;16329:34:0;14993:1378;14888:1483;;;:::o;9115:457::-;9180:7;9281:95;9415:4;9399:22;;;;;;:::i;:::-;;;;;;;;;;9248:301;;;11971:25:1;;;;12012:18;;12005:34;;;;9444:14:0;12055:18:1;;;12048:34;9481:13:0;12098:18:1;;;12091:34;9525:4:0;12141:19:1;;;12134:61;11943:19;;9248:301:0;;;;;;;;;;;;9220:344;;;;;;9200:364;;9115:457;:::o;13395:1485::-;13512:12;13643:4;13637:11;-1:-1:-1;;;13769:17:0;13762:93;13903:2;13899:1;13880:17;13876:25;13869:37;13984:6;13979:2;13960:17;13956:26;13949:42;14796:2;14793:1;14789:2;14770:17;14767:1;14760:5;14753;14748:51;14312:16;14305:24;14299:2;14281:16;14278:24;14274:1;14270;14264:8;14261:15;14257:46;14254:76;14051:763;14040:774;;;14845:7;14837:35;;;;-1:-1:-1;;;14837:35:0;;12408:2:1;14837:35:0;;;12390:21:1;12447:2;12427:18;;;12420:30;-1:-1:-1;;;12466:18:1;;;12459:45;12521:18;;14837:35:0;12206:339:1;11783:1604:0;11927:12;12058:4;12052:11;-1:-1:-1;;;12184:17:0;12177:93;12318:4;12314:1;12295:17;12291:25;12284:39;12403:2;12398;12379:17;12375:26;12368:38;12484:6;12479:2;12460:17;12456:26;12449:42;13298:2;13295:1;13290:3;13271:17;13268:1;13261:5;13254;13249:52;12812:16;12805:24;12799:2;12781:16;12778:24;12774:1;12770;12764:8;12761:15;12757:46;12754:76;12551:765;12540:776;;;13347:7;13339:40;;;;-1:-1:-1;;;13339:40:0;;12752:2:1;13339:40:0;;;12734:21:1;12791:2;12771:18;;;12764:30;-1:-1:-1;;;12810:18:1;;;12803:50;12870:18;;13339:40:0;12550:344:1;13339:40:0;11916:1471;11783:1604;;;;:::o;9772:335::-;9858:6;9843:11;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;10015:13:0;;;;;;:9;:13;;;;;;;;:23;;;;;;10067:32;160:25:1;;;-1:-1:-1;;;;;;;;;;;10067:32:0;133:18:1;10067:32:0;;;;;;;;9772:335;;:::o;3243:191::-;3317:16;3336:6;;-1:-1:-1;;;;;3353:17:0;;;-1:-1:-1;;;;;;3353:17:0;;;;;;3386:40;;3336:6;;;;;;;3386:40;;3317:16;3386:40;3306:128;3243:191;:::o;18480:771::-;18691:9;;;18825:19;;18818:27;18850:9;;18864;;;18861:16;;18847:31;18814:65;18804:123;;18910:1;18907;18900:12;18804:123;19230:1;19216:11;19212:1;19209;19205:9;19201:27;19197:35;19192:1;19185:9;19178:17;19174:59;19169:64;;18480:771;;;;;:::o;40927:275::-;41123:8;;;;;;;;;-1:-1:-1;;;;;41123:8:0;-1:-1:-1;;;;;41123:20:0;;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;41114:6;:31;41110:46;;;41147:9;:7;:9::i;:::-;41169:8;;:25;;-1:-1:-1;;;41169:25:0;;;;;160::1;;;-1:-1:-1;;;;;41169:8:0;;;;:17;;133:18:1;;41169:25:0;14:177:1;10115:338:0;-1:-1:-1;;;;;10188:15:0;;;;;;:9;:15;;;;;:25;;10207:6;;10188:15;:25;;10207:6;;10188:25;:::i;:::-;;;;-1:-1:-1;;10361:11:0;:21;;;;;;;10411:34;;160:25:1;;;-1:-1:-1;;;;;;;10411:34:0;;;-1:-1:-1;;;;;;;;;;;10411:34:0;148:2:1;133:18;10411:34:0;14:177:1;196:597;308:4;337:2;366;355:9;348:21;398:6;392:13;441:6;436:2;425:9;421:18;414:34;466:1;476:140;490:6;487:1;484:13;476:140;;;585:14;;;581:23;;575:30;551:17;;;570:2;547:26;540:66;505:10;;476:140;;;634:6;631:1;628:13;625:91;;;704:1;699:2;690:6;679:9;675:22;671:31;664:42;625:91;-1:-1:-1;777:2:1;756:15;-1:-1:-1;;752:29:1;737:45;;;;784:2;733:54;;196:597;-1:-1:-1;;;196:597:1:o;798:180::-;857:6;910:2;898:9;889:7;885:23;881:32;878:52;;;926:1;923;916:12;878:52;-1:-1:-1;949:23:1;;798:180;-1:-1:-1;798:180:1:o;983:173::-;1051:20;;-1:-1:-1;;;;;1100:31:1;;1090:42;;1080:70;;1146:1;1143;1136:12;1080:70;983:173;;;:::o;1161:254::-;1229:6;1237;1290:2;1278:9;1269:7;1265:23;1261:32;1258:52;;;1306:1;1303;1296:12;1258:52;1329:29;1348:9;1329:29;:::i;:::-;1319:39;1405:2;1390:18;;;;1377:32;;-1:-1:-1;;;1161:254:1:o;1612:328::-;1689:6;1697;1705;1758:2;1746:9;1737:7;1733:23;1729:32;1726:52;;;1774:1;1771;1764:12;1726:52;1797:29;1816:9;1797:29;:::i;:::-;1787:39;;1845:38;1879:2;1868:9;1864:18;1845:38;:::i;:::-;1835:48;;1930:2;1919:9;1915:18;1902:32;1892:42;;1612:328;;;;;:::o;2134:186::-;2193:6;2246:2;2234:9;2225:7;2221:23;2217:32;2214:52;;;2262:1;2259;2252:12;2214:52;2285:29;2304:9;2285:29;:::i;2936:254::-;3004:6;3012;3065:2;3053:9;3044:7;3040:23;3036:32;3033:52;;;3081:1;3078;3071:12;3033:52;3117:9;3104:23;3094:33;;3146:38;3180:2;3169:9;3165:18;3146:38;:::i;:::-;3136:48;;2936:254;;;;;:::o;3429:328::-;3506:6;3514;3522;3575:2;3563:9;3554:7;3550:23;3546:32;3543:52;;;3591:1;3588;3581:12;3543:52;3627:9;3614:23;3604:33;;3656:38;3690:2;3679:9;3675:18;3656:38;:::i;:::-;3646:48;;3713:38;3747:2;3736:9;3732:18;3713:38;:::i;:::-;3703:48;;3429:328;;;;;:::o;3762:693::-;3873:6;3881;3889;3897;3905;3913;3921;3974:3;3962:9;3953:7;3949:23;3945:33;3942:53;;;3991:1;3988;3981:12;3942:53;4014:29;4033:9;4014:29;:::i;:::-;4004:39;;4062:38;4096:2;4085:9;4081:18;4062:38;:::i;:::-;4052:48;;4147:2;4136:9;4132:18;4119:32;4109:42;;4198:2;4187:9;4183:18;4170:32;4160:42;;4252:3;4241:9;4237:19;4224:33;4297:4;4290:5;4286:16;4279:5;4276:27;4266:55;;4317:1;4314;4307:12;4266:55;3762:693;;;;-1:-1:-1;3762:693:1;;;;4340:5;4392:3;4377:19;;4364:33;;-1:-1:-1;4444:3:1;4429:19;;;4416:33;;3762:693;-1:-1:-1;;3762:693:1:o;4460:260::-;4528:6;4536;4589:2;4577:9;4568:7;4564:23;4560:32;4557:52;;;4605:1;4602;4595:12;4557:52;4628:29;4647:9;4628:29;:::i;:::-;4618:39;;4676:38;4710:2;4699:9;4695:18;4676:38;:::i;4725:245::-;4804:6;4812;4865:2;4853:9;4844:7;4840:23;4836:32;4833:52;;;4881:1;4878;4871:12;4833:52;-1:-1:-1;;4904:16:1;;4960:2;4945:18;;;4939:25;4904:16;;4939:25;;-1:-1:-1;4725:245:1:o;4975:127::-;5036:10;5031:3;5027:20;5024:1;5017:31;5067:4;5064:1;5057:15;5091:4;5088:1;5081:15;5107:168;5147:7;5213:1;5209;5205:6;5201:14;5198:1;5195:21;5190:1;5183:9;5176:17;5172:45;5169:71;;;5220:18;;:::i;:::-;-1:-1:-1;5260:9:1;;5107:168::o;5280:217::-;5320:1;5346;5336:132;;5390:10;5385:3;5381:20;5378:1;5371:31;5425:4;5422:1;5415:15;5453:4;5450:1;5443:15;5336:132;-1:-1:-1;5482:9:1;;5280:217::o;5502:125::-;5542:4;5570:1;5567;5564:8;5561:34;;;5575:18;;:::i;:::-;-1:-1:-1;5612:9:1;;5502:125::o;5632:128::-;5672:3;5703:1;5699:6;5696:1;5693:13;5690:39;;;5709:18;;:::i;:::-;-1:-1:-1;5745:9:1;;5632:128::o;5765:380::-;5844:1;5840:12;;;;5887;;;5908:61;;5962:4;5954:6;5950:17;5940:27;;5908:61;6015:2;6007:6;6004:14;5984:18;5981:38;5978:161;;;6061:10;6056:3;6052:20;6049:1;6042:31;6096:4;6093:1;6086:15;6124:4;6121:1;6114:15;5978:161;;5765:380;;;:::o;6150:356::-;6352:2;6334:21;;;6371:18;;;6364:30;6430:34;6425:2;6410:18;;6403:62;6497:2;6482:18;;6150:356::o;6511:184::-;6581:6;6634:2;6622:9;6613:7;6609:23;6605:32;6602:52;;;6650:1;6647;6640:12;6602:52;-1:-1:-1;6673:16:1;;6511:184;-1:-1:-1;6511:184:1:o;10603:1104::-;10733:3;10762:1;10795:6;10789:13;10825:3;10847:1;10875:9;10871:2;10867:18;10857:28;;10935:2;10924:9;10920:18;10957;10947:61;;11001:4;10993:6;10989:17;10979:27;;10947:61;11027:2;11075;11067:6;11064:14;11044:18;11041:38;11038:165;;;-1:-1:-1;;;11102:33:1;;11158:4;11155:1;11148:15;11188:4;11109:3;11176:17;11038:165;11219:18;11246:104;;;;11364:1;11359:323;;;;11212:470;;11246:104;-1:-1:-1;;11279:24:1;;11267:37;;11324:16;;;;-1:-1:-1;11246:104:1;;11359:323;10550:1;10543:14;;;10587:4;10574:18;;11457:1;11471:165;11485:6;11482:1;11479:13;11471:165;;;11563:14;;11550:11;;;11543:35;11606:16;;;;11500:10;;11471:165;;;11475:3;;11665:6;11660:3;11656:16;11649:23;;11212:470;-1:-1:-1;11698:3:1;;10603:1104;-1:-1:-1;;;;;;;;10603:1104:1:o

Swarm Source

ipfs://23ff6247d5e88bd1f8d09be68605e1af63baae64a87fe5ffedd6b5b274d77c7f
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.