@augustdigital/sdk 8.16.1 → 8.17.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.
|
@@ -390,6 +390,8 @@ function buildBackendVault(tokenizedVault, overrides) {
|
|
|
390
390
|
performanceFeeWaivedUntilTvl: tokenizedVault.performance_fee_waived_until_tvl ?? null,
|
|
391
391
|
},
|
|
392
392
|
lagDuration: 0,
|
|
393
|
+
withdrawalMarginSeconds: tokenizedVault.withdrawal_margin_seconds ?? null,
|
|
394
|
+
iatTraders: tokenizedVault.iat_traders ?? null,
|
|
393
395
|
maxDailyDrawdown: tokenizedVault.max_daily_drawdown || 0,
|
|
394
396
|
risk: tokenizedVault.risk || 'low',
|
|
395
397
|
isWithdrawalPaused: false,
|
|
@@ -471,6 +473,8 @@ async function buildFormattedVault(provider, tokenizedVault, contractCalls) {
|
|
|
471
473
|
maxDailyDrawdown: tokenizedVault.max_daily_drawdown || 0,
|
|
472
474
|
risk: tokenizedVault.risk,
|
|
473
475
|
lagDuration: Number(contractCalls.lagDuration),
|
|
476
|
+
withdrawalMarginSeconds: tokenizedVault.withdrawal_margin_seconds ?? null,
|
|
477
|
+
iatTraders: tokenizedVault.iat_traders ?? null,
|
|
474
478
|
address: tokenizedVault.address,
|
|
475
479
|
name: tokenizedVault.vault_name,
|
|
476
480
|
logoUrl: tokenizedVault.vault_logo_url,
|
package/lib/sdk.d.ts
CHANGED
|
@@ -21497,6 +21497,17 @@ declare function assertNotStellar(address: string, operation: string): void;
|
|
|
21497
21497
|
solana_vault_metadata?: ISolanaVaultMetadata | null;
|
|
21498
21498
|
stellar_vault_metadata?: IStellarVaultMetadata | null;
|
|
21499
21499
|
lagDuration: number;
|
|
21500
|
+
/**
|
|
21501
|
+
* Display buffer in seconds added on top of the on-chain lag for the
|
|
21502
|
+
* withdrawal period shown to users. Null when not configured.
|
|
21503
|
+
*/
|
|
21504
|
+
withdrawal_margin_seconds?: number | null;
|
|
21505
|
+
/**
|
|
21506
|
+
* IAT trader wallet addresses for the vault. Address format follows the
|
|
21507
|
+
* vault's chain (EVM hex / Solana base58 / Stellar). Null when not
|
|
21508
|
+
* configured.
|
|
21509
|
+
*/
|
|
21510
|
+
iat_traders?: string[] | null;
|
|
21500
21511
|
historical_apy: Record<number, number> | null;
|
|
21501
21512
|
/**
|
|
21502
21513
|
* Compound-annualized historical APY keyed by horizon in days (1/7/30), as
|
|
@@ -21792,6 +21803,18 @@ declare function assertNotStellar(address: string, operation: string): void;
|
|
|
21792
21803
|
performanceFeeWaivedUntilTvl: number | null;
|
|
21793
21804
|
};
|
|
21794
21805
|
lagDuration: number;
|
|
21806
|
+
/**
|
|
21807
|
+
* Backend-configured display buffer in seconds added on top of
|
|
21808
|
+
* `lagDuration` for the withdrawal period shown to users. Null when the
|
|
21809
|
+
* backend has not set a value — consumers apply their own default.
|
|
21810
|
+
*/
|
|
21811
|
+
withdrawalMarginSeconds?: number | null;
|
|
21812
|
+
/**
|
|
21813
|
+
* IAT trader wallet addresses for the vault, from the backend
|
|
21814
|
+
* `iat_traders` field. Address format follows the vault's chain
|
|
21815
|
+
* (EVM hex / Solana base58 / Stellar). Null when not configured.
|
|
21816
|
+
*/
|
|
21817
|
+
iatTraders?: string[] | null;
|
|
21795
21818
|
maxDailyDrawdown: number;
|
|
21796
21819
|
risk: string;
|
|
21797
21820
|
isWithdrawalPaused: boolean;
|
package/lib/types/vaults.d.ts
CHANGED
|
@@ -333,6 +333,18 @@ export interface IVault {
|
|
|
333
333
|
performanceFeeWaivedUntilTvl: number | null;
|
|
334
334
|
};
|
|
335
335
|
lagDuration: number;
|
|
336
|
+
/**
|
|
337
|
+
* Backend-configured display buffer in seconds added on top of
|
|
338
|
+
* `lagDuration` for the withdrawal period shown to users. Null when the
|
|
339
|
+
* backend has not set a value — consumers apply their own default.
|
|
340
|
+
*/
|
|
341
|
+
withdrawalMarginSeconds?: number | null;
|
|
342
|
+
/**
|
|
343
|
+
* IAT trader wallet addresses for the vault, from the backend
|
|
344
|
+
* `iat_traders` field. Address format follows the vault's chain
|
|
345
|
+
* (EVM hex / Solana base58 / Stellar). Null when not configured.
|
|
346
|
+
*/
|
|
347
|
+
iatTraders?: string[] | null;
|
|
336
348
|
maxDailyDrawdown: number;
|
|
337
349
|
risk: string;
|
|
338
350
|
isWithdrawalPaused: boolean;
|
package/lib/types/webserver.d.ts
CHANGED
|
@@ -624,6 +624,17 @@ export interface ITokenizedVault {
|
|
|
624
624
|
solana_vault_metadata?: ISolanaVaultMetadata | null;
|
|
625
625
|
stellar_vault_metadata?: IStellarVaultMetadata | null;
|
|
626
626
|
lagDuration: number;
|
|
627
|
+
/**
|
|
628
|
+
* Display buffer in seconds added on top of the on-chain lag for the
|
|
629
|
+
* withdrawal period shown to users. Null when not configured.
|
|
630
|
+
*/
|
|
631
|
+
withdrawal_margin_seconds?: number | null;
|
|
632
|
+
/**
|
|
633
|
+
* IAT trader wallet addresses for the vault. Address format follows the
|
|
634
|
+
* vault's chain (EVM hex / Solana base58 / Stellar). Null when not
|
|
635
|
+
* configured.
|
|
636
|
+
*/
|
|
637
|
+
iat_traders?: string[] | null;
|
|
627
638
|
historical_apy: Record<number, number> | null;
|
|
628
639
|
/**
|
|
629
640
|
* Compound-annualized historical APY keyed by horizon in days (1/7/30), as
|