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
shares:string
amount of shares in sUSDC token that user has in the Spark vault
vaultInfo
vaultInfo:SparkVaultInfo
detailed info about a Spark vault where a user deposited funds
The info about current user's balance in a Spark vault