-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Liquidity mining #1851
Liquidity mining #1851
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn`t wait to check this important PR out :) . It looks like you are using an svg prepared for the market details view which does not work well with the markets overview listItem rewards icon (borders are too thin):
I´ve created a specific rewards icon with 16x16px so the borders are look like they supposed to:
rewards.svg.zip
This reverts commit d03e3a0.
I haven't been able to reproduce, but there shouldn't be room for a calculation issue since we're fetching data directly from the chain. To clarify, you reproduce by clicking claim then rejecting the tx and repeating until you get the error? Does it work if you wait a few seconds and try again? |
mmmmm true, all data directly fetched from the chain 🤔 gotta see if I can reproduce again today but yeah what you wrote is how I was getting the error yesterday edit: I can't figure out why this is happening 😩 more details: I'm using this market and I have 29.70 DAI out of the total 30.69 DAI liquidity. When I click claim rewards I get a cpk error... if I add |
Was just testing it! Claiming and depositing and withdrawing works good fore me. I found one issue when I claim rewards immediately after Im able to claim it again. Is this some issue with dust value or? |
looks like there is an issue with showing the current APY with this market: |
I don`t think it is an issue with the 15 seconds block time as @kadenzipfel is expecting. I tried to claim rewards 4 minutes after my deposit: nue-2.mov |
Im able to reproduce it but only on categorical http://localhost:3001/#/0xe253df8dfc512b938d09ede69406f68185e13875/pool |
@hexyls @Mi-Lan @pimato I still have not been able to reproduce the bug but I have implemented hexyls' suggestion to reduce the total claim amount slightly. Hopefully this should generally prevent issues, but I think using the cpk for this kind of action will never be quite perfect, yet as long as the user can still claim after trying again I think it's ok to ignore |
@kadenzipfel yeah no idea why but that does appear to resolve the issue 👍 curious if the problem goes away for anyone else |
Test cases:
|
New, short term markets for testing:
Resolution date is Sunday at 12:00am UTC, so staking rewards end Saturday at 12:00am UTC so make sure to test before then |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works!
Closes: #1822
Closes: #1824
Closes: #1832
Closes: #1833
Closes: #1834
Testing (rinkeby):
Here are the markets that can be used for testing:
New markets for testing:
Test cases: