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.
Syntax
Section titled “Syntax”giveth:lock <amount> <rounds>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
amount | command | number | Amount of staked GIV to lock in base units (wei), or the keyword max for all staked GIV not already locked (see @giveth:lockable) |
rounds | number | Number of rounds to lock for (each round lasts 2 weeks) |
Examples
Section titled “Examples”# Lock 100 staked GIV for 26 rounds (a year) to multiply its GIVpowergiveth:lock 100e18 26
# Lock all staked GIV that is not already lockedgiveth:lock max 26Power multiplier
Section titled “Power multiplier”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.