@dripfi/drip-sdk 1.4.15-remove-spool-sdk-2 → 1.4.16-test-tvl
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/README.md
CHANGED
@@ -10,7 +10,6 @@ The Drip SDK is a TypeScript library designed to interact with the Perq protocol
|
|
10
10
|
- [Usage](#usage)
|
11
11
|
- [Modules](#modules)
|
12
12
|
- [Core SDK](#core-sdk)
|
13
|
-
- [V2 Vaults](#v2-vaults)
|
14
13
|
- [Lite Vaults](#lite-vaults)
|
15
14
|
- [Loyalty Cards](#loyalty-cards)
|
16
15
|
- [Vesting](#vesting)
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import DepositToken from './DepositToken';
|
2
|
+
import ProjectTvl from './ProjectTvl';
|
2
3
|
import VaultType from './VaultType';
|
3
4
|
export type ReducedProjectData = {
|
5
|
+
tvl?: ProjectTvl;
|
4
6
|
projectName: string;
|
5
7
|
logo: string;
|
6
8
|
bannerImage: string;
|
@@ -11,10 +13,7 @@ export type ReducedProjectData = {
|
|
11
13
|
distributionType: VaultType;
|
12
14
|
liveUntil: string;
|
13
15
|
liveFrom: string;
|
14
|
-
tvlUsd: number;
|
15
|
-
tvl: number;
|
16
16
|
vAPY: number;
|
17
|
-
peakTVL: number;
|
18
17
|
chainIds: number[];
|
19
18
|
isFeatured: boolean;
|
20
19
|
currencies: DepositToken[];
|
@@ -3,7 +3,9 @@ import DepositToken from './DepositToken';
|
|
3
3
|
import Strategy from './Strategy';
|
4
4
|
import StretchGoal from './StretchGoal';
|
5
5
|
import VaultReward from './VaultReward';
|
6
|
+
import VaultTvl from './VaultTvl';
|
6
7
|
type VaultData = {
|
8
|
+
tvl?: VaultTvl;
|
7
9
|
depositToken: DepositToken;
|
8
10
|
vaultAddress: string;
|
9
11
|
projectName: string;
|
@@ -12,14 +14,10 @@ type VaultData = {
|
|
12
14
|
liveFrom: string;
|
13
15
|
liveUntil: string;
|
14
16
|
apy: number;
|
15
|
-
tvlUsd: number;
|
16
|
-
avgTvl: number;
|
17
17
|
tokenPrice: number;
|
18
18
|
change24h: number;
|
19
19
|
volume24h: number;
|
20
|
-
peakTvl: number;
|
21
20
|
onChainProjectId: number;
|
22
|
-
combinedTvl: number;
|
23
21
|
isActive: boolean;
|
24
22
|
owners: string[];
|
25
23
|
coingeckoId?: string;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
type VaultTvl = {
|
2
|
+
average: number;
|
3
|
+
averageUsd: number;
|
4
|
+
peak: number;
|
5
|
+
peakUsd: number;
|
6
|
+
current: number;
|
7
|
+
currentUsd: number;
|
8
|
+
historical: {
|
9
|
+
[timestamp: number]: {
|
10
|
+
amount: number;
|
11
|
+
amountUsd: number;
|
12
|
+
};
|
13
|
+
};
|
14
|
+
};
|
15
|
+
export default VaultTvl;
|