@mycelium-sdk/core
    Preparing search index...

    Interface SparkVaultBalance

    The info about current user's balance in a Spark vault

    interface SparkVaultBalance {
        depositedAmount: string;
        shares: string;
        vaultInfo: SparkVaultInfo;
    }
    Index

    Properties

    depositedAmount: string

    amount of deposited tokens + earned tokens

    To get the amount of earned tokens, you need to store all user's deposits and withdrawals on your side and then subtract the amount of deposited tokens from the depositedAmount

    shares: string

    amount of shares in sUSDC token that user has in the Spark vault

    vaultInfo: SparkVaultInfo

    detailed info about a Spark vault where a user deposited funds