giveth:stake
Stake GIV for GIVpower, approving the staking contract automatically when needed. Pass max as the amount to stake the full GIV balance; a zero amount does nothing. On Gnosis GIV is wrapped into gGIV through the GIVgarden (which auto-stakes it); on Optimism and Polygon zkEVM it is staked directly. Staked GIV earns GIVstream rewards and can be locked for more GIVpower.
Syntax
Section titled “Syntax”giveth:stake <amount>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
amount | command | number | Amount of GIV to stake in base units (wei), or the keyword max for the full GIV balance (see @giveth:stakable) |
Options
Section titled “Options”| Name | Type | Description |
|---|---|---|
--no-approve | bool | Skip the automatic allowance check and approve action |
Examples
Section titled “Examples”# Stake 100 GIV for GIVpower (auto-approves)giveth:stake 100e18
# Stake every GIV in the walletgiveth:stake maxGIVpower lifecycle
Section titled “GIVpower lifecycle”Staked GIV earns rewards (harvest them with giveth:claim) and counts as GIVpower you can use to boost projects on giveth.io. Lock it with giveth:lock to multiply its power. On Gnosis staking wraps GIV into gGIV through the GIVgarden; on Optimism and Polygon zkEVM it deposits into the UnipoolGIVpower contract.
Commands that produce nothing (claiming with nothing accrued, staking a
zero balance) simply emit no transaction, and max amounts count the
pending effects of earlier commands in the same script. Maxing out GIVpower
on a chain therefore needs no guards or bookkeeping:
load giveth
giveth:claimgiveth:stake maxgiveth:lock max 26