@giveth:lockable
Staked GIV an account can lock (or unstake) right now: staked GIV minus everything the GIVpower contract counts as locked, including ended locks that were never unlocked (see @giveth:unlockable). Counts pending stake/lock actions earlier in the script — what lock max resolves to.
Returns: number
Syntax
Section titled “Syntax”@giveth:lockable(account?)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
[account] | address | Account to inspect (defaults to the connected account) |
Examples
Section titled “Examples”# Print the staked GIV you could lock right nowprint "Lockable GIV:" @giveth:lockable()Lockable vs unstakable
Section titled “Lockable vs unstakable”Both giveth:lock and
giveth:unstake are gated by the same contract
check — staked balance minus totalAmountLocked — which is what this
helper returns. @giveth:unstakable differs by following
the round clock instead: it already counts locks whose round ended but
that still need a giveth:unlock
(@giveth:unlockable shows that portion).