Skip to content

Commit

Permalink
tweak: calculate available vested amount for the next layer
Browse files Browse the repository at this point in the history
  • Loading branch information
brusherru committed Dec 19, 2024
1 parent 1ca12e0 commit b2ada61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/useVaultBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
Expand Down

0 comments on commit b2ada61

Please sign in to comment.