-
Notifications
You must be signed in to change notification settings - Fork 18
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
When Users attempt to donate with Solana Devnet, the calculations for Giveth Givbacks after selecting any of the percentage is not correct (the amount being donated to Giveth shown on the preview modal is also wrong) #1710
Comments
@LatifatAbdullahi - you can confirm this only applies when on solana devnet? no other chains are affected by this bug? @MohammadPCh - can you check this out or delegate it to another FE dev? |
Yes, only on Solana Devnet |
@lovelgeorge99 could you please take this? Thanks |
ok i will work on this 👍
|
Could you please take a look on this comment |
Earlier the logic was if the user is trying to donate Now the new logic is that if the user is trying to donate a amount less than the minimum giveth donation amount ,giveth donation is converted to 0 |
Thanks @lovelgeorge99 |
Sorry I don't understand clearly what is explained. Is it this?
Since we can't accept numbers under the minumum (e.g. If this is true then what we should do check the box for "I do not want to support Giveth . . . " to ensure no second tx is generated and the text shown on the page makes sense. |
This is the previous behavior of system in donation page, Screen.Recording.2024-08-11.at.11.51.06.AM.movMy question is, even though the user has chosen a percentage and "Donating 15% to Giveth: 0 GIV" is shown, is the behavior accepted? @divine-comedian
|
yes @maryjaf |
This change should be reverted Screen.Recording.2024-08-11.at.7.21.10.PM.mov |
@maryjaf you used Trust wallet? thx |
2024-08-12.10-40-37.mp4 |
No I tested it on Metamask |
Actually the problem is related this new logic, in this scenario that user enters 0.000001( minimum amount of donation) and select a percentage for donating to Giveth |
@divine-comedian this is how thing are sorted up, minimal GIV donation is 0.000001 (read 5 decimals zeros) and for example 5% of GIV donation to Giveth is 0.00000005 GIV (read 7 decimals zeros). App than setup GIV 5% donation to 0 and that's why the transaction fails. Why did someone implement this code, maybe there was some request for it. Now what you want to do, to allow small amount of GIV token donation to Giveth if someone add smallest amount of "main" donation, or we can than reset the GIveth donation amount to minimal token donation amount, in this previous case it was 0.000001 ? thx |
chatted with kechy - since this feature/bug isn't super important so let's go the way of least headache. If the minimum donation amount if set we should set the giveth donation amount to 0 and ensure the UI elements reflect this.
|
@kkatusic what is the update on this issue? |
this is waiting PR review :( I will ask for review |
@LatifatAbdullahi you can test when you get time ;) |
These have been fulfilled
However at the point of Donation confirmation, it takes too long to confirm donation, over a minute, it just keeps loading continuously and my wallet is deducted without a success modal. BukkyProject._.Giveth.-.Google.Chrome.2024-08-30.16-57-13.mp4Cloy._.Giveth.-.Google.Chrome.2024-08-21.18-33-00.mp4 |
@LatifatAbdullahi this is already done? |
@kkatusic |
@LatifatAbdullahi, ccc @divine-comedian, making donation on Solana DevNet is old issue, we didn't manage it to work, I also reported that issue on package github account: I tried and succeeded to made donation on SOlana project on production and it is working fine, check images: you decide will we wait to they fix devnet transaction problem or we will close this issue |
honestly, not very important to get solana devnet perfect, if we are sure production is working OK I think we can move on! |
Given that Users have connected their wallet and Signed In.
And the Network is Solana Devnet
And Users have inputted the number of tokens to be donated
When Users select a percentage to be donated to giveth
Then the Giveth donation calculated amount is still equal to the amount being donated to the Project
The text was updated successfully, but these errors were encountered: