-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Feature] Pay for fee using public credits #1755
Comments
We discussed the idea to use public credits for the fee. There are several tradeoffs that are made in doing this. For one, using public credits means we will need to introduce a (numeric) In addition, should a
Because of these major tradeoffs, we decided not to pursue public credits, until a better design (than what existing ledgers like Ethereum have chosen) is proposed. |
That make a lot of sense, thanks for the answer. should I close this issue for now? |
I think it can be closed for now. I'll add one more comment for all readers: There needs to be much better UI/UX-based web or client based services to help users detect, decrypt, manage, and join/split their Aleo credits. This would help to mitigate and offset usability concerns for including the fee in each transaction. We're open to working with teams that want to build out such services, especially in a privacy-preserving manner, as we believe this is a core component to a thriving developer ecosystem for Leo and Aleo instructions. |
Closing as not planned for now. |
Reopening this issue as we may have come up with a way to support public fees without sacrificing concurrency (because of the |
The MVP for this feature has been implemented in #1867. There remains much more work needed to do to ensure safety and stability of this feature. |
Closing since we now support public fees. |
🚀 Feature
As we have public native tokens now, we might consider allowing users to use public credits to pay for the transaction fee.
Motivation
This might help achieving #1753, where the user could only pay what the finalizers actually consumes (and potentially storage costs as well), plus a fixed priority fee, instead of providing a fixed amount, then derive the priority fee by subtracting the minimum required other fee.
Implementation
Maybe by adding a new
fee_public
transition forcredits.aleo
and do the fee part in the finalizer just for implementing the feature, but doing in this way wouldn't help in the above situation (we still have a fixed transition input).Maybe by subtracting the specified fee directly from the
account
mapping and adding a mapping operation without external finalize sources (essentially a built-in finalizer without the accompanying transition).Are you willing to open a pull request? (See CONTRIBUTING)
Depends...
The text was updated successfully, but these errors were encountered: