-
Notifications
You must be signed in to change notification settings - Fork 127
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
Fixes Deep Dive Docs Bounty Issue 598 #894
base: main
Are you sure you want to change the base?
Fixes Deep Dive Docs Bounty Issue 598 #894
Conversation
Awesome work! We'll get this assigned and reviewed 🎉 |
Hey @rahul-soshte, thanks for contributing. Some feedback and a request - Under estimation with Write Ledger Entries set to 5, it returns 5 xlm. It looks like the values make more sense once they're all filled in. The estimation tab is also missing parameters for rent. Can you please demonstrate the calculations are right by making sure the result from Simulation matches up with what Estimation returns? I found a transaction on testnet, put it into simulation, and then put those values into Estimation, which returned a lower value (I'm guessing because the rent calculation was missing). Another thing to look into - the writeBytes shown on stellar.expert for the transaction I linked when you expand the arrows on the right is 3x higher than what your Simulation returns. I'm not sure why they're so different. |
Thank you @sisuresh for the feedback, I will dig more deep with the calculations and check what's missing in the overall calculations. |
I'd also recommend taking a look at https://github.com/stellar/rs-soroban-env/blob/main/soroban-env-host/src/fees.rs. |
Hi @sisuresh, So I have researched the link that you gave, read the fee docs again, making sure what I am interpreting is correct. I have even open sourced the GUI repo ( used the laboratory frontend code as a base ), so it is much more faster to get feedback. Here are the changes/clarifications since the last time we talked,
@briwylde08 I am working on this tirelessly, it's just that there are lot many nuances than I thought. I am committed to completing this, and later extending it's scope so that it can be a good SCF project and also for maintenance of the GUI app, ad infinitum, since as Stellar grows, this GUI will need tweaks as well, based on the protocol changes. |
Hi @rahul-soshte! I completely respect that this is not an easy task and appreciate your continued work on it - a tool like this is super valuable to the ecosystem. I have no issues with this qualifying for the bounty (probably worth more than originally posted) and I agree that it would also make an awesome SCF project. I tagged @sisuresh for review again and the team will be in touch with feedback! Thanks again for your work! |
Hey @rahul-soshte, thanks for the improvements. I put the testnet tx into Simulation, which returned the following -
but Estimation returned 0.0293787 XLM. Do you know why there's a difference? Is that expected? I'm using 1398989 as the current ledger for both. |
Hey @sisuresh Sorry for the delay got caught up in travelling somewhere and fell sick a bit. So yeah I mean initially in the simulation, I was showing the max fee that simulation Endpoint returned instead of the actual estimated fee, which is wrong and confusing UX. So I now have fixed it. The simulation's estimated fee should match the direct estimation considering all the resource + rent value in the UI. If you can find more bugs please do let me know. The Testnet tx we were using, has been wiped up by the network reset. I am still working on fixing any bugs, and gonna research on how simulationTransaction endpoint is calculating the max resource fee. It so much higher than the actual fee charged. I am not sure why. |
I will have to read these CAP docs on fees, they could help me in making this fee estimator the most perfect and they would have esoteric knowledge that isn't available in the stellar docs |
Hey @rahul-soshte, sorry for the delayed review. I wouldn't be surprised if users (or maybe even simulation) just adds a buffer for max fee to make sure their transaction will make it into the ledger, so I wouldn't worry about that (still worth looking into though as I bet it'll be educational!). I put a transaction from testnet into your Simulation tab and then into Estimation. The Estimate Total Fee matched between the two, so I think we're good there. The Analytics tab seems broken though. When I'm on the testnet option I see this under Analytics -
|
Hello @sisuresh, Sorry for the late reply. I am trying to use this indexer project https://www.mercurydata.app/ Zephyr is a great solution, but its like really new and things are breaking sometimes. Now I am getting error while fetching, earlier I was not getting errors while pulling data from a serverless function, which is written here in the deployed program I am trying to pull the data from the serverless function here, in the simulator's frontend I have commented out the analytics part. I wanted to do more work on the analytics part, since it was a interesting topic. I had also applied for a SCF#30 Build Award for this, but got rejected on that. Now got to form my own budget, and wait for the Zephyr ecosystem to mature more for the analytics part. |
Hi @rahul-soshte! Would just like to let you know that @sisuresh is out of office currently but will respond when he gets back! |
Okay @briwylde08 thanks for letting me know. |
Hi @rahul-soshte, looks like this is in a good initial state to me. I'll pass the review onto @briwylde08 now. Thanks! |
Thanks @sisuresh for the review and @rahul-soshte on the work! I'm going have one of our devs on DevRel give this a final pass before approval. |
Hi @rahul-soshte! Just sent you a quick email using the address you provided in previous submissions. 🙏 |
Added a new category called Network Insights, in the Developer Tools, and added the link to the fee simulator tool, along with a nice description
Resolves issue #598