Skip to content

giveth:lock

Lock staked GIV for a number of GIVpower rounds (2 weeks each) to multiply its GIVpower. Pass max as the amount to lock all staked GIV that is not already locked; a zero amount does nothing. Locked GIV cannot be unstaked until the last round ends and it is unlocked.

giveth:lock <amount> <rounds>
NameTypeDescription
amountcommand | numberAmount of staked GIV to lock in base units (wei), or the keyword max for all staked GIV not already locked (see @giveth:lockable)
roundsnumberNumber of rounds to lock for (each round lasts 2 weeks)
# Lock 100 staked GIV for 26 rounds (a year) to multiply its GIVpower
giveth:lock 100e18 26
# Lock all staked GIV that is not already locked
giveth:lock max 26

Locking multiplies GIVpower: amount * sqrt(rounds + 1) instead of a 1x weight. Each round lasts two weeks; the lock releases at the end of its last round, after which giveth:unlock makes the tokens unstakeable again.