Source for getting balance of staked assets

Is there a way to get claimable balance for users from vaults and staked assets for a particular user address, is there an api to get balance for a particular user , also the subgraph seems to not have user level information, thanks in advance :slight_smile:

Hi!

Yes you can call a particular function on the vault itself to get the balance:

earned() will return the earned amount

balanceOf() will return the balance of the vault tokens, while rawBalanceOf() is for the underlying.

Thanks @dimsome for the reply, i got it. But is there any source to get the USD price of vaults?