xHIVE Plug-in
Last updated
Last updated
Plugins are contracts linked to the xHIVE contract. Some are native and directly made by the Hiveswap team (dividends, yield booster, and more to come...) but others can be freely integrated by anyone from the ecosystem.
Users can take advantage of plugins' unique benefits by allocating xHIVE to them by directly staking into the xHIVE contract.
There is a default 0.5% deallocation fee on all xHIVE plugins.
In other words, if you allocate 100 xHIVE to a plugin and later deallocate the whole amount, you will only get back 99.5 xHIVE. Dividends:
The majority of the protocol earnings are redistributed to users allocating xHIVE to the Dividends plugin.
This dividends distribution can be done in the form of one or more tokens, and happens continuously.
Epochs:
The distribution is based on a weekly epoch logic: every week, a fixed part of the owner-defined accumulated tokens is marked as to be distributed.
The same process is repeated every 7 days.
Handling payouts:
The distribution of those tokens is equally spread over the duration of the epoch, and allocated on a second-basis to every user with a xHIVE allocation on this Dividends plugin, proportionally to their share of the total allocation.
Dividends being distributed continuously, users don't need to wait for the end of the epoch to collect them.
Deallocation:
Deallocating xHIVE from this plugin is not subject to any condition, and can be done any time.
The deallocation fee is 0.5%.The deallocation fee is 0.5%.
Yield boosts: Through the YieldBooster plugin, every user can allocate its xHIVE to a staked position (spNFT) in order to earn additional yield.
The induced yield boost multiplier is different based on the staking position's wrapped LP, but will usually use the default x2 value.
This value is calculated for every position from the following elements:
The position's LP amount
The total staked LP amount across all positions and users
The position's allocated xHIVE amount
The total allocated xHIVE across all of the positions with the same LP
The LP max boost multiplier (can't exceed x2.5)
Formula for yield boosts: