Proposal to fix Staking contract for new staker #369
kfujita0520
started this conversation in
Protocol Specifications
Replies: 2 comments 2 replies
-
I think @zgorizzo69 might know the best on whether this proposed solution is viable. You bring up a good point about newcomers probably having a bad feeling about the project. I think a more immediate fix could be to have a warning message on the UI next to the withdraw buttons that say to contact us for a reimbursement of the difference if you are withdrawing. |
Beta Was this translation helpful? Give feedback.
0 replies
-
first thing first .. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently Staking contract in production has some issue. When user tried to withdraw their LP token which they have staked after specific period, they could only receive much less amount than they have staked.
While most of stakers might be internal memeber, I think this is serious problem, because when any new comer tried to stake their LP token for testing purpose in short term, they will have very bad experience as they cannot get back their LP tokens after staking period, which may cause negative impression to project itself.
In my observation, the technial problem right now is, the system calculated returned amount in wired way (return proportional amount to actual holding amount in BondingV2 contract). But because you would not hold all deposited LP tokens in Bonding V2 contract, reported issue will happen.
I believe we can fix the code to return the original amount as it should be and if requested withdrawal amount is more than you hold, system can throw error. In this way, you could avoid the issue. If you could stop withdrawal of big amount staker, which is usually internal member having longer stake period, this issue won't happen actually.
To minimize the impact on existing system, I propose we can just roll out new BondingFormula contract and switch it by updating the address of management contract.
If this proposal is fine for you, I can work on that. Your kind attention and advise is highly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions