Skip to content

Commit cc71b5c

Browse files
committed
feat: generated method-action-types
1 parent 146f004 commit cc71b5c

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

packages/money-account-balance-service/src/money-account-balance-service-method-action-types.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { MoneyAccountBalanceService } from './money-account-balance-service
88
/**
99
* Fetches the mUSD ERC-20 balance for the given account address via RPC.
1010
*
11-
* @param accountAddress - The Money account's address.
11+
* @param accountAddress - The Money account's Ethereum address.
1212
* @returns The mUSD balance as a raw uint256 string.
1313
*/
1414
export type MoneyAccountBalanceServiceGetMusdBalanceAction = {
@@ -20,7 +20,7 @@ export type MoneyAccountBalanceServiceGetMusdBalanceAction = {
2020
* Fetches the musdSHFvd (Veda vault share) ERC-20 balance for the given
2121
* account address via RPC.
2222
*
23-
* @param accountAddress - The Money account's address.
23+
* @param accountAddress - The Money account's Ethereum address.
2424
* @returns The musdSHFvd balance as a raw uint256 string.
2525
*/
2626
export type MoneyAccountBalanceServiceGetMusdSHFvdBalanceAction = {
@@ -29,8 +29,12 @@ export type MoneyAccountBalanceServiceGetMusdSHFvdBalanceAction = {
2929
};
3030

3131
/**
32-
* Fetches the current exchange rate from the Veda Accountant contract via RPC.
32+
* Fetches the current exchange rate from the Veda Accountant contract via
33+
* RPC. The rate represents the conversion factor from musdSHFvd shares to
34+
* the underlying mUSD asset.
3335
*
36+
* @param options - The options for the query.
37+
* @param options.staleTime - The stale time for the query. Defaults to 30 seconds.
3438
* @returns The exchange rate as a raw uint256 string.
3539
*/
3640
export type MoneyAccountBalanceServiceGetExchangeRateAction = {
@@ -41,10 +45,12 @@ export type MoneyAccountBalanceServiceGetExchangeRateAction = {
4145
/**
4246
* Computes the mUSD-equivalent value of the account's musdSHFvd holdings.
4347
* Internally fetches the musdSHFvd balance and exchange rate (using cached
44-
* values when available), then multiplies them.
48+
* values when available within their staleTime windows), then multiplies
49+
* them.
4550
*
46-
* @param accountAddress - The Money account's address.
47-
* @returns The musdSHFvd balance, exchange rate, and computed mUSD-equivalent value.
51+
* @param accountAddress - The Money account's Ethereum address.
52+
* @returns The musdSHFvd balance, exchange rate, and computed
53+
* mUSD-equivalent value as raw uint256 strings.
4854
*/
4955
export type MoneyAccountBalanceServiceGetMusdEquivalentValueAction = {
5056
type: `MoneyAccountBalanceService:getMusdEquivalentValue`;
@@ -54,7 +60,7 @@ export type MoneyAccountBalanceServiceGetMusdEquivalentValueAction = {
5460
/**
5561
* Fetches the vault's APY and fee breakdown from the Veda performance REST API.
5662
*
57-
* @returns The 7-day trailing net APY, fees, and per-position breakdown.
63+
* @returns The normalized vault APY response.
5864
*/
5965
export type MoneyAccountBalanceServiceGetVaultApyAction = {
6066
type: `MoneyAccountBalanceService:getVaultApy`;

0 commit comments

Comments
 (0)