In V2, we aim to provide a more stable APY across program duration. Early adopters still get better reward but later adopters now get a better reward right at the beginning. We achieve that by abandoning reward multiplication, so now users have a better base reward.
The rewards of users are the sum of all rewards in the past adjusted to the latest demand factor.
The Super Staking model heavily depends on token price which is provided by an oracle feed. In extreme cases when the oracle's price feed is hacked or manipulated, the staking program will also be affected. Even though we already limit the range of demand factor to 0.1 → 1, having the sudden surge in demand factor shows some weakness on security frontier. In V2, we will include 2 measues to tackle this problem.
In the current implementation, demand factor will be calculated using the latest price. To prevent a sudden change in price, we can introduce a delay and a variance tolerance for price change.
Time-Weighted Average Price (TWAP)
Variance Tolerance is a simple but effective way to prevent a sudden surge in price, but the price change curve is still steep. And in extreme cases where hackers have control over the oracle feed, they can still bypass that mechanism. Fortunately, these 2 problems can be resolved by TWAP calculation.
The curve will be averaged out and become less steep.
Even when hackers can control the oracle feed, they will have a tougher time if they want to exploit SS. The price will need some time for the price to increase, and during that time, the team will have enough time to implement a prevention measure (such as changing the oracle).