@augustdigital/sdk 8.3.1 → 8.3.2
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "8.3.
|
|
1
|
+
export declare const SDK_VERSION = "8.3.2";
|
|
@@ -20,6 +20,7 @@ export declare function mapStrategists(tokenizedVault: ITokenizedVault): {
|
|
|
20
20
|
logo: string;
|
|
21
21
|
name: string;
|
|
22
22
|
type: string;
|
|
23
|
+
website_url: string;
|
|
23
24
|
}[];
|
|
24
25
|
export declare function mapComposabilityIntegrations(tokenizedVault: ITokenizedVault): IVault['composabilityIntegrations'];
|
|
25
26
|
export declare function backendTvlToNormalizedBn(tvl: number | null | undefined, decimals: number): INormalizedNumber;
|
|
@@ -181,12 +181,14 @@ function mapStrategists(tokenizedVault) {
|
|
|
181
181
|
logo: s.strategist?.strategist_logo,
|
|
182
182
|
name: s.strategist?.strategist_name,
|
|
183
183
|
type: 'subaccount',
|
|
184
|
+
website_url: s.strategist?.website_url ?? null,
|
|
184
185
|
}))
|
|
185
186
|
: (tokenizedVault.hardcoded_strategists || []).map((s) => ({
|
|
186
187
|
address: '0x',
|
|
187
188
|
logo: s.strategist_logo,
|
|
188
189
|
name: s.strategist_name,
|
|
189
190
|
type: 'subaccount',
|
|
191
|
+
website_url: s.website_url ?? null,
|
|
190
192
|
}));
|
|
191
193
|
}
|
|
192
194
|
function mapComposabilityIntegrations(tokenizedVault) {
|
|
@@ -328,6 +330,7 @@ function buildBackendVault(tokenizedVault, overrides) {
|
|
|
328
330
|
}
|
|
329
331
|
: {}),
|
|
330
332
|
showCapFilled: tokenizedVault?.show_cap_filled ?? null,
|
|
333
|
+
apyOverride: tokenizedVault.apy_override ?? null,
|
|
331
334
|
...overrides,
|
|
332
335
|
};
|
|
333
336
|
}
|
|
@@ -504,6 +507,7 @@ async function buildFormattedVault(provider, tokenizedVault, contractCalls) {
|
|
|
504
507
|
latest_reported_tvl: tokenizedVault?.latest_reported_tvl,
|
|
505
508
|
cachedAt: tokenizedVault?.cached_at ?? null,
|
|
506
509
|
showCapFilled: tokenizedVault?.show_cap_filled ?? null,
|
|
510
|
+
apyOverride: tokenizedVault?.apy_override ?? null,
|
|
507
511
|
};
|
|
508
512
|
if (tokenizedVault.instant_redeem_config) {
|
|
509
513
|
const config = tokenizedVault.instant_redeem_config;
|
package/lib/types/vaults.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IAddress, INormalizedNumber, VaultAddress } from './web3';
|
|
2
|
-
import { IDebankProtocolExposure, IDebankTokenExposure, IOTCPosition, IWSSubaccountCefi, IWSSubaccountLoan, IWSTokenEntry, ITokenizedVaultOperator, ITokenizedVaultEoaOperator, IHIstoricalSnapshot } from './webserver';
|
|
2
|
+
import { IDebankProtocolExposure, IDebankTokenExposure, IOTCPosition, IWSSubaccountCefi, IWSSubaccountLoan, IWSTokenEntry, ITokenizedVaultOperator, ITokenizedVaultEoaOperator, IHIstoricalSnapshot, IApyOverride } from './webserver';
|
|
3
3
|
import type { InterfaceAbi } from 'ethers';
|
|
4
4
|
export interface IVaultLoan {
|
|
5
5
|
vault: VaultAddress;
|
|
@@ -100,6 +100,7 @@ export interface IVaultStrategist {
|
|
|
100
100
|
logo: string;
|
|
101
101
|
name: string;
|
|
102
102
|
type?: string;
|
|
103
|
+
website_url: string | null;
|
|
103
104
|
}
|
|
104
105
|
export type IVaultVersion = 'evm-0' | 'evm-1' | 'evm-2' | 'sol-0' | 'sui-0' | 'stellar-0';
|
|
105
106
|
export type { ChainType } from './web3';
|
|
@@ -194,6 +195,7 @@ export interface IVault {
|
|
|
194
195
|
latest_reported_tvl?: number | null;
|
|
195
196
|
cachedAt?: string | null;
|
|
196
197
|
showCapFilled?: boolean | null;
|
|
198
|
+
apyOverride?: IApyOverride | null;
|
|
197
199
|
programId?: string;
|
|
198
200
|
instant_redeem_config?: {
|
|
199
201
|
subaccountAddress: IAddress;
|