diff --git a/packages/server/src/queries/complex/portfolio/assets.ts b/packages/server/src/queries/complex/portfolio/assets.ts index b7409a5676..dd75618ac6 100644 --- a/packages/server/src/queries/complex/portfolio/assets.ts +++ b/packages/server/src/queries/complex/portfolio/assets.ts @@ -190,6 +190,8 @@ export async function getPortfolioAssets({ new Dec(categories["total-assets"].capitalization) ); + console.log("categories: total-assets", categories["total-assets"].capitalization); + // Update userBalanceDenoms to be a list of objects with denom and amount const userBalanceDenoms = categories["user-balances"]?.account_coins_result?.map((result) => ({ diff --git a/packages/trpc/src/pools.ts b/packages/trpc/src/pools.ts index 938f759196..0dd85c9552 100644 --- a/packages/trpc/src/pools.ts +++ b/packages/trpc/src/pools.ts @@ -75,6 +75,7 @@ export const poolsRouter = createTRPCRouter({ .merge(UserOsmoAddressSchema) ) .query(async ({ input: { poolId, userOsmoAddress }, ctx }) => + getSharePoolBondDurations({ ...ctx, poolId, diff --git a/packages/web/components/complex/portfolio/portfolio-page.tsx b/packages/web/components/complex/portfolio/portfolio-page.tsx index 6878a041cc..00cd5a28fd 100644 --- a/packages/web/components/complex/portfolio/portfolio-page.tsx +++ b/packages/web/components/complex/portfolio/portfolio-page.tsx @@ -53,6 +53,8 @@ export const PortfolioPage: FunctionComponent = observer(() => { const totalCap = allocation?.totalCap; + console.log("totalCap", totalCap); + const userHasNoAssets = Boolean(allocation && totalCap?.toDec()?.isZero()); const [overviewRef, { height: overviewHeight }] =