-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Research]: Sponsored-Tx Fee Market #38
Comments
I've built a sponsoring server in the past, but not a "pay me in token X and I'll sponsor your STX fees". The generic "how do you sponsor a tx" part is easy, and I think supporting a dynamic fee market is more tricky. One question that needs to be answered is: what exactly is the market dynamic here? Is this a service we maintain, and we intend to only pay "fair market value" for the user's sBTC? Is the intention that anyone can run this sponsoring service? I see two high-level approaches that can work here. In both cases, the user needs to do a custom action before making the sBTC withdraw.
In this case, I think 2 is much more elegant, as the sponsoring server doesn't take on market risk. In approach 1, there is some amount of time where the sponsor holds sBTC before swapping it to STX. In either case, someone is swapping sBTC for STX, and the question is just on who does the swap. One approach on the Clarity side could be to make a custom contract that makes this easy. We could even do a generic trait-based approach, which would support paying for STX fees in sBTC for any contract call, not just withdraws. |
One other point I want to make here: I think this is an excellent feature, but I personally would argue very strongly for us to not prioritize working on this until after launch. A few reasons:
|
Relates to this conversation from Marvin: stacks-network/stacks-core#4235 |
Questions:
We should make a design discussion for including this. All the external details should be included there. |
Conclusion: We will use transaction sponsorship instead of a STX faucet to enable users to make Stacks contract calls with only sBTC. |
Completing the issue description and arriving at a conclusion is the deliverable of this issue.
Research - Sponsored Tx Fee Market
1. Summary
This ticket holds the research relating to the exact setup required to stand-up & maintain an sBTC sponsored fee market to support sBTC withdrawal requests strictly in sBTC (aka no STX required).
2. Context & Relevance
We have work on implementing the sponsored transaction from the Clarity side, so this issue mainly pertains how we dynamically provide liquidity to this market.
3. Research
3.1 Proposed Research Conclusions
After discussing this ticket async we determined:
3.2 External Resources
3.3 Areas of Ambiguity
Closing Checklist
The text was updated successfully, but these errors were encountered: