From b2ada61ec9dd5a670d45d79b0d9189f8f5f15eef Mon Sep 17 00:00:00 2001 From: brusher_ru Date: Thu, 19 Dec 2024 16:43:38 -0300 Subject: [PATCH] tweak: calculate available vested amount for the next layer --- src/hooks/useVaultBalance.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/useVaultBalance.ts b/src/hooks/useVaultBalance.ts index 26cc438..4fbf7ef 100644 --- a/src/hooks/useVaultBalance.ts +++ b/src/hooks/useVaultBalance.ts @@ -45,7 +45,8 @@ const useVaultBalance = ( O.map(([args, net]) => getVaultUnlockedAmount( args, - layerByTimestamp(net.genesisTime, net.layerDuration, now), + // Calculate unlocked amount for the next layer + layerByTimestamp(net.genesisTime, net.layerDuration, now) + 1, balance ) )