@dripfi/drip-sdk 1.4.3-yelay-lite-6 → 1.4.3-yelay-lite-7
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 +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
@@ -130,6 +130,7 @@ Access user methods through `sdk.user`:
|
|
130
130
|
| -------------------------------------------------------------------- | -------------------------------------- |
|
131
131
|
| `linkSuiWalletWithEthWallet(suiWalletAddress: string): Promise<boolean>` | Links a Sui wallet with an Ethereum wallet. |
|
132
132
|
| `getLinkedSuiWallet(): Promise<string>` | Retrieves the Sui wallet address linked to the user's Ethereum wallet. |
|
133
|
+
| `getEarnings(projectName: string): Promise<Earnings>` | Retrieves the user earnings for each project's vaults |
|
133
134
|
|
134
135
|
|
135
136
|
## Recycler
|
@@ -523,6 +524,7 @@ type VaultData = {
|
|
523
524
|
projectType: string;
|
524
525
|
liveFrom: string;
|
525
526
|
liveUntil: string;
|
527
|
+
apy: number;
|
526
528
|
tvlUsd: number;
|
527
529
|
avgTvl: number;
|
528
530
|
tokenPrice: number;
|
@@ -643,6 +645,17 @@ type ChainId =
|
|
643
645
|
| typeof ETHEREUM_SEPOLIA_CHAIN_ID
|
644
646
|
| typeof ARBITRUM_CHAIN_ID;
|
645
647
|
|
648
|
+
type Earnings = {
|
649
|
+
[vaultAddress: string]: {
|
650
|
+
onChainProjectId: number;
|
651
|
+
precisionDecimals: number;
|
652
|
+
amountEarned: string;
|
653
|
+
symbol: string;
|
654
|
+
deposit: string;
|
655
|
+
earningPerHour: string;
|
656
|
+
};
|
657
|
+
};
|
658
|
+
|
646
659
|
```
|
647
660
|
|
648
661
|
# Abis
|