Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 2.31 KB

staking.md

File metadata and controls

36 lines (26 loc) · 2.31 KB

Staking

Distributor

The distributor contract receives minted OHM from the treasury in order to drip-feed rewards to stakers. The reward rate target as of time of writing is set to 3500, which translates to 0.35% of total supply, since the reward rate is defined in tens of thousands. Note that the reward rate determines the rebase rate and that the rebase rate determines the APY. Below are listed distributor contracts by version, where the latest version represents the currently active contract.

LP Staking

LP staking is deprecated. You can unstake your LP via Etherscan still.

Staking

Prior to V1.1 migration, the old staking contract (V1) was used for staking OHM. Afterwards, a new staking contract (V2) was rolled out, which works with a staking helper (V2, Staking Helper). The staking helper contract calls "stake" and then "claim" of the new staking contract. When the "stake" function is called, sOHM is put into a warmup phase and all the information about how much sOHM a user has staked is stored in the new staking contract. When the "claim" function is called, sOHM is retrieved from the warmup and then sent to the user's wallet.

As part of the V2 migration, a new staking contract (V3) has been rolled out, which supersedes the old staking contract and the staking helper. It supports both staking and unstaking operations.