parallel-finance / parallel

A decentralized lending & staking protocol built on top of the Polkadot ecosystem.
https://parallel.fi
GNU General Public License v3.0
120 stars 35 forks source link

add MaxRewardsPerEra, MaxSlashesPerEra, StakingMarketCap to liquid staking v2 #425

Closed GopherJ closed 2 years ago

mclyk commented 3 years ago

It will be nice if there is some checklist and more info about the demands, as the motivation. for now, I can only see a title. Besides, let's confirm with the product side, so we can synchronize with the product. @Helen8 @GopherJ

Helen8 commented 3 years ago
  1. To confirm, based on the backend updates, these are the current liquid staking v2 goals and scope - please let me know if this is correct or missing anything? a. Improve user experience by allowing users to claim KSM + reward - xcm fees; XCM fees will be paid by the newly built insurance pool b. Improve the calculations and timing between KSM, xKSM stake and unstake mapping process - as a result, the users can see more accurate exchange rate data? how often does exchange rate get updated? Shall we do some extensive testing to see if there are edge cases where the exchange ratio is very far from 1:1 based on new updates? c. New data points for rewards per era and slash per era and block index; as a result, the users can see more accurately the earned amount from staking AND start earning after era 1 d. Ability to query history event depth - enable better error logging and debugging issues/ calculation issues?

  2. Can we link all the related tickets and requests into the Liquid Staking v2 Epic? I can also review and write down use cases on the product side to see how it would impact the frontend UI. Note: There was another ticket where I added comments on the claim flow that we need to add to the front end for the unstaking process.

@MrPai @GopherJ

mclyk commented 3 years ago

Please refer to the following link for more info, another design shows up this weekend: #432 #431 I am studying this new design too, will confirm with you once I figure it out. @Helen8

GopherJ commented 2 years ago

close in favor of #711