Comment on page

Staking

🔲 Overview

☑️ Seaswap staking is a customizable feature that allows developers to set up staking pools with their chosen stake and reward tokens and harvest duration. Staking pools store all the necessary information related to staking, such as stakes, rewards, and duration, making it easy for users to participate and earn rewards.
☑️ During the harvesting process, all rewards accumulated in a staking pool are distributed among the stakers. In the absence of stakers, the rewards are sent to the treasury.
☑️ The term 'unobtainable reward' refers to the portion of rewards that were earned before a user joined a staking pool. This mechanism helps prevent users from claiming excessive rewards in certain cases and ensures that rewards are fairly distributed among all stakers.

🔲 Weekly Lock

By default, all stakes are locked for one week, but stakers can unlock their coins after that initial week elapses. It's also possible to unlock stakes early if the harvest period finishes before the scheduled end date.

🔲 Harvest

To earn rewards from staking, users need to perform a harvest by calling the harvest function via the dApp user interface. The harvest function triggers the distribution of accumulated rewards to all stakers in the pool.

🔲 Extending the harvest period

To extend the harvest period, depositing more rewards into the pool is possible before the end of the harvest period. This can be done by anyone who holds reward coins, and it becomes possible immediately after the pool is created.

🔲 After the harvest period

Once the harvest period ends, users can still harvest any remaining rewards and withdraw their staked coins/NFTs. However, they will not be able to stake more, accumulate new rewards, or extend the pool duration.

🔲 Important

Please note that this feature may not be compatible with exotic coins, such as those with large decimal numbers or extremely large supply. Therefore, use this feature at your own risk and make sure to double-check that everything works correctly, such as by forking and running tests with your coin. Additionally, it's crucial to ensure that the reward amount, including the amount distributed per second, is sufficient to be divided among all potential stakers.