diff --git a/app/javascript/src/pages/Dashboard/Dashboard.tsx b/app/javascript/src/pages/Dashboard/Dashboard.tsx
index 3e9df27..91ef210 100644
--- a/app/javascript/src/pages/Dashboard/Dashboard.tsx
+++ b/app/javascript/src/pages/Dashboard/Dashboard.tsx
@@ -15,14 +15,56 @@ export const Dashbaord: FC = () => {
if (data?.status === "0" || !data) return null;
return (
-
-
- - Ganho: {data.result.PancakeSwap.staking.totalUSDValues.yield}
- -
- Depositado: {data.result.PancakeSwap.staking.totalUSDValues.deposit}
-
- - Total: {data.result.PancakeSwap.staking.totalUSDValues.total}
-
+
+
+
+
+
+ |
+ Pool
+ |
+
+ Depositado
+ |
+
+ Ganho
+ |
+
+
+
+ {data.result.PancakeSwap.staking.vaults.map((vault) => {
+ return (
+
+ |
+
+ {vault.name}
+
+ |
+
+
+ {vault.depositedTokens.toFixed(4)}
+
+ |
+
+
+ {vault.totalRewards.toFixed(4)}
+
+ |
+
+ );
+ })}
+
+
+
);
};
diff --git a/app/javascript/src/types/yieldwatch.d.ts b/app/javascript/src/types/yieldwatch.d.ts
index ce33460..2d64201 100644
--- a/app/javascript/src/types/yieldwatch.d.ts
+++ b/app/javascript/src/types/yieldwatch.d.ts
@@ -56,9 +56,31 @@ type TotalUSDValues3 = {
total: number;
};
+type PoolInfo = {
+ apr: number;
+};
+
+type Vault = {
+ type: string;
+ name: string;
+ platform: string;
+ chainId: number;
+ depositToken: string;
+ rewardToken: string;
+ depositedTokens: number;
+ pendingRewards: number;
+ harvestedRewards: number;
+ totalRewards: number;
+ priceInUSDRewardToken: number;
+ priceInUSDDepositToken: number;
+ stakingTx: any[];
+ apy: number;
+ poolInfo: PoolInfo;
+};
+
type Staking = {
totalUSDValues: TotalUSDValues3;
- vaults: any[];
+ vaults: Vault[];
};
type PancakeSwap = {
@@ -76,10 +98,11 @@ type Result = {
watchBalance: WatchBalance;
currencies: Currencies;
PancakeSwap: PancakeSwap;
+ walletBalance: WalletBalance;
};
export type YieldwatchResponse = {
- status: "0" | "1";
+ status: string;
message: string;
result: Result;
};