GYSR documentation
Searchโ€ฆ
Modules
Staking modules and reward modules
GYSR v2 uses a modular architecture where the staking logic and reward logic are each contained within a swappable building block. This generalizes our system by allowing users to select from a variety of staking and reward modules when creating a pool.

Staking modules

The staking module encapsulates and handles all Pool logic dealing with staking assets. This includes token valuation, balance management, and transfers.

ERC20 staking module

This module allows users to deposit an amount of ERC20 token in exchange for shares credited to their address.
When the user unstakes, the tokens will be returned to the user and the associated shares will be burned.

ERC721 staking module

This module allows users to deposit an specified set of ERC721 tokens in exchange for shares credited to their address.
When the user unstakes, the same tokens will be returned to the user and the associated shares will be burned.

Reward modules

ERC20 competitive reward module

This reward module was designed to emulate the behavior of the original v1 Geyser contract.
When a user stakes, they receive credit for the associated number of shares, and immediately begin to accrue share seconds. Share seconds are the primary unit of accounting in this module, and they are burned during reward distribution.
This module distributes a single ERC20 token asset as the reward. The overall reward amount and rate is fixed, but individual earning rates can vary based on participation.

ERC20 friendly reward module

This reward module was designed to facilitate a simpler staking process where earned rewards can only increase and cannot be negatively impacted by the actions of others in the Pool.
When a user stakes, they receive credit for the associated number of shares and begin earning at a rate proportional to their share of the entire Pool. As stakes are added or removed from a given Pool, the rate of earnings is adjusted for all stakes in that Pool.
This module distributes a single ERC20 token asset as the reward. The overall reward amount and rate is fixed, but individual earning rates can vary based on participation
Copy link
On this page
Staking modules
Reward modules