@augustdigital/sdk 8.14.0 → 8.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/core/analytics/version.d.ts +1 -1
- package/lib/core/analytics/version.js +1 -1
- package/lib/core/errors/index.d.ts +39 -1
- package/lib/core/errors/index.js +43 -1
- package/lib/modules/vaults/getters.d.ts +66 -0
- package/lib/modules/vaults/getters.js +74 -0
- package/lib/modules/vaults/utils.js +2 -0
- package/lib/sdk.d.ts +10415 -10285
- package/lib/types/vaults.d.ts +7 -0
- package/lib/types/webserver.d.ts +16 -0
- package/package.json +1 -1
package/lib/types/vaults.d.ts
CHANGED
|
@@ -191,6 +191,13 @@ export interface IVaultAdapterConfig {
|
|
|
191
191
|
export interface IVault {
|
|
192
192
|
max_drawdown?: number | null;
|
|
193
193
|
historical_apy?: Record<number, number> | null;
|
|
194
|
+
/**
|
|
195
|
+
* Compound-annualized historical APY keyed by horizon in days (1/7/30), as
|
|
196
|
+
* decimal fractions. Same shape and per-horizon null semantics as
|
|
197
|
+
* `historical_apy`. Display is opted in per vault via
|
|
198
|
+
* `apyOverride.is_show_compound_apy`; absent on older/cached responses.
|
|
199
|
+
*/
|
|
200
|
+
historical_compound_apy?: Record<number, number> | null;
|
|
194
201
|
/** @deprecated Use getVaultHistoricalTimeseries instead */
|
|
195
202
|
historical_snapshots?: IHIstoricalSnapshot[];
|
|
196
203
|
depositCap?: INormalizedNumber;
|
package/lib/types/webserver.d.ts
CHANGED
|
@@ -427,6 +427,9 @@ export interface ITokenizedVaultEoaOperator {
|
|
|
427
427
|
* Controls how the vault's APY is displayed in the UI.
|
|
428
428
|
* When `is_show_target_apy` is true, the UI should show a target/projected APY.
|
|
429
429
|
* When `is_show_hardcoded_apy` is true, `hardcoded_apy` overrides the computed APY.
|
|
430
|
+
* When `is_show_compound_apy` is true, the UI should render the
|
|
431
|
+
* compound-annualized historical APY (`historical_compound_apy`) instead of
|
|
432
|
+
* the simple one.
|
|
430
433
|
*/
|
|
431
434
|
export interface IApyOverride {
|
|
432
435
|
/** Whether to display a target APY rather than historical performance. */
|
|
@@ -435,6 +438,13 @@ export interface IApyOverride {
|
|
|
435
438
|
is_show_hardcoded_apy: boolean;
|
|
436
439
|
/** The fixed APY value to display when `is_show_hardcoded_apy` is true, or null. */
|
|
437
440
|
hardcoded_apy: number | null;
|
|
441
|
+
/**
|
|
442
|
+
* Whether to display the compound-annualized historical APY
|
|
443
|
+
* (`historical_compound_apy`) instead of the simple `historical_apy`.
|
|
444
|
+
* Absent (older/cached responses) or false means simple. Independent of the
|
|
445
|
+
* target/hardcoded flags above, which keep their existing precedence.
|
|
446
|
+
*/
|
|
447
|
+
is_show_compound_apy?: boolean;
|
|
438
448
|
}
|
|
439
449
|
export interface ITokenizedVaultStrategist {
|
|
440
450
|
strategist_name: string;
|
|
@@ -574,6 +584,12 @@ export interface ITokenizedVault {
|
|
|
574
584
|
stellar_vault_metadata?: IStellarVaultMetadata | null;
|
|
575
585
|
lagDuration: number;
|
|
576
586
|
historical_apy: Record<number, number> | null;
|
|
587
|
+
/**
|
|
588
|
+
* Compound-annualized historical APY keyed by horizon in days (1/7/30), as
|
|
589
|
+
* decimal fractions (0.0795 = 7.95%). Same shape and per-horizon null
|
|
590
|
+
* semantics as `historical_apy`. Absent on older/cached responses.
|
|
591
|
+
*/
|
|
592
|
+
historical_compound_apy?: Record<number, number> | null;
|
|
577
593
|
/** @deprecated Use getVaultHistoricalTimeseries instead */
|
|
578
594
|
historical_snapshots?: IHIstoricalSnapshot[];
|
|
579
595
|
max_drawdown: number | null;
|