diff --git a/apps/core/src/utils/stake/getTransactionAmountForTimelocked.ts b/apps/core/src/utils/stake/getTransactionAmountForTimelocked.ts index edad50cf796..fd1e9c9db25 100644 --- a/apps/core/src/utils/stake/getTransactionAmountForTimelocked.ts +++ b/apps/core/src/utils/stake/getTransactionAmountForTimelocked.ts @@ -13,7 +13,7 @@ export function getTransactionAmountForTimelocked( if (isTimelockedStaking) { const { totalStakedAmount } = getStakeDetailsFromEvents(events); - return totalStakedAmount; + return -BigInt(totalStakedAmount); } else if (isTimelockedUnstaking) { const { totalUnstakeAmount } = getUnstakeDetailsFromEvents(events); return totalUnstakeAmount; diff --git a/apps/wallet-dashboard/app/(protected)/staking/page.tsx b/apps/wallet-dashboard/app/(protected)/staking/page.tsx index b0053ca9eb2..edced5261f4 100644 --- a/apps/wallet-dashboard/app/(protected)/staking/page.tsx +++ b/apps/wallet-dashboard/app/(protected)/staking/page.tsx @@ -259,29 +259,27 @@ function StakingDashboardPage(): React.JSX.Element { )} ) : ( -
+
)} {hasAvailableVestedStaking && supplyIncreaseVestingEnabled && ( -
- -
- router.push('/vesting')} - size={ButtonSize.Small} - type={ButtonType.Outlined} - text="View" - /> - } - /> - </div> - </Panel> - </div> + <Panel bgColor="bg-secondary-90 dark:bg-secondary-10"> + <div className="py-sm"> + <Title + title="Available Vested Staking" + subtitle="In progress vested staking" + trailingElement={ + <Button + onClick={() => router.push('/vesting')} + size={ButtonSize.Small} + type={ButtonType.Outlined} + text="View" + /> + } + /> + </div> + </Panel> )} </div> </div>