getStakeBalance
Description:
Getting user's balance in the vault
Arguments:
Name | Type | Required | Description |
---|---|---|---|
userAddress | string | Yes | The user address |
vaultAddress | string | Yes | The address of the vault |
Returns:
type Output = {
shares: bigint
assets: bigint
}
Name | Description |
---|---|
assets | Balance in ETH |
Example:
await sdk.vault.getStakeBalance({
userAddress: '0x...',
vaultAddress: '0x...',
})