stacksgov / grants-program

Archive of past Stacks Foundation grant applications. Historical record of ecosystem development.
https://stacks.org/grants
141 stars 36 forks source link

StableSwap DEX on Stacks #664

Closed dylanft closed 1 year ago

dylanft commented 2 years ago

APPLICANT

Type:                                                                        Direct Application

Email:                                                                    dylan@bitflow.finance

Discord:                                                    dylanft#2961

Twitter:                                                        @StacksDeveloper

Stacks Forum:           

GRANT BASICS

Grant Name:                                        StableSwap DEX on Stacks

Total Budget:                              25,000

Total Duration:                 360

Grant Type:                                               Open Source Dev 1st time Grantees

Grant Track:                                          Stacks dApps & Clarity

Grant Goal:                                               Create New Technology

Grant Audience:             Developers

Specific Audience:         Smart contract developers looking to build mature DeFi solutions with secure post-conditions.

Grant Team:                                       dylanft, diegomey

Previous Grants:                      

Ecosystem Programs:      We were accepted into the Stacks Web3 Startup Lab, and together we’ve founded BitFlow Finance, a decentralized protocol built to reward native Bitcoin holders based on trading activity between price-stable tokens. We were selected to present on Demo Day for Cohort 1 (link included in the attachment)

GRANT MISSION, IMPACT, RISKS & REFERENCE

Grant Mission:         We are missing an essential utility that will accelerate the broader adoption of Stacks: a decentralized exchange where users can trade and/or earn yield with stable cryptocurrencies in a non-custodial manner without the need for an intermediary to facilitate the transactions. The deepest liquidity pools for price-stable token pairs should reside on Stacks, and the work in this grant will serve as a building block towards making that a reality.

New: 1) the first stableswap DEX live on Stacks 2) a 'real yield' protocol design that rewards liquidity providers with the same tokens used in the underlying pools

Benefits: 1 ) Building blocks for a mature stableswap market: This kind of DEX offers an alternative to centralized platforms for trading between and/or earning yield on price stable assets. Having a DEX optimized for stableswaps results in lower fees, fewer slippage failures, and deeper liquidity pools. This will be a catalyst in attracting additional stablecoin liquidity (USDC, USDT, etc) to Stacks

2) More DeFi developer resources enable more DeFi products: We'll provide fully open source code for the dApp, plus tutorial resources to experiment with building a DEX. For example: We will build a protocol based on this template to disrupt Curve and provide Bitcoiners with an advantage in DeFi. Other protocols, like Convex, can be built on top of it.

We've received encouraging feedback from community members and DeFi pioneers in the Stacks ecosystem who want this built.

Grant Impact:               - Github favorites / forks / comments

Grant Risks:                          Using this DEX / template won't require putting any xUSD/USDA at risk. The biggest risk is related to how long the front-end portion of the template will be useful based on upgrades to different frameworks. We'll minimize the front-end complexity wherever possible, and upgrade the repo as necessary.

Support Link:                                     Contains screenshots / links:

GRANT ROADMAP & DELIVERABLES

MILESTONE 1:

Deliverable:                   Smart contracts: Bringing the stableswap AMM framework from curve.fi to Stacks

MILESTONE 2:

Deliverable:                   Front-End dApp code + Tutorial on Stableswaps: how to build/use, tokenomics, etc

FINAL DELIVERABLE

Deliverable:                   A StableSwap DEX live on testnet & mainnet, with fully open-source code and tutorials to walk through the Clarity smart contracts and front-end development.

stacks-foundation commented 2 years ago

👋 @dylanft
Thanks for your application! We will do a pre-review and let you know if we have any immediate questions. In the mean time please refer to our review schedule here for a detailed timeline and response dates.
Best, Will

JacobRyan258 commented 2 years ago

Looking forward to seeing this project progress! Being a web 3 Startup Lab cohort member alongside this team, I can share that their work ethic is very strong! Fully support this grant application!

ropl-btc commented 2 years ago

Very excited for this project. Dylan and Diego are definitely the right ones to get this thing rolling!

Albert-Present commented 2 years ago

This is a great project that will build an essential cornerstone that will enable an entire segment of DeFI on Stacks - potentially creating several killer apps in the process. This solution also paves the road to creating yield through stable swaps with Native Bitcoin on Stacks. This is the beginning of a big step towards a user owned Internet on Bitcoin through Stacks! I have witnessed Dylan and his team firsthand in facing and overcoming obstacles, so I know they will get the job done! I support the approval of this grant!

The-advisor-btc commented 2 years ago

BitFlow is among the most interesting DeFi projects on Stacks. Not only would it create an efficient DEX for stable pools, but it would give utility to BTC holders, which is Stacks goal.

Diego has been an active member of Stacks ecosystem for a while & I'm curious to see the team building this great product.

eliherf commented 2 years ago

Can't wait to see this project unfold. Stable coins and native BTC is definitely the big unlock on Stacks for wider adoption. And Bitcoiner adoption. Much endorsement from me.

BowTiedDeployer commented 2 years ago

Interesting project! Looking forward to development of DeFi innovations like this.

scott4044 commented 2 years ago

Exciting to see a stable swap protocol coming to Stacks -- it's a no brainer . Dylan & Diego are a perfect team to get the job done and am excited to follow the progress of this project

bjuliarso commented 2 years ago

Hi Dyland, Diego: you Guys are extremely very active during WSL, and we are definetly excited to see the success of your project Bitflow. And we all have full support for the Grant that you Guys submitted.

orlandobtc commented 2 years ago

Definitely support this team. I have been fortunate to work with Deigo on his CityPacks NFT project and am confident that he is a person who can execute and deliver.

In terms of the proposal itself, a stablecoin DEX is badly needed in the ecosystem. Right now, the only decentralized stablecoin on Stacks, USDA, is not holding its peg to USD. The only other stablecoin in the ecosysem is xUSD (wrapped USDC) which carries both bridge risk (bridges are well known as a honey pot for hackers) and censorship risk (since Circle can freeze anyone's USDC). A stablecoin DEX would make it easier for USDA to maintain its peg as arbitrageurs would be able to more easily swap between USDA and xUSD. Additionally, this DEX would incentivize other stablecoins to potentially come to Stacks as they would know that their a stablecoin DEX would be waiting for them to assist in maintaining their peg.

will-corcoran commented 2 years ago

Hi @dylanft

Thanks Will

dylanft commented 2 years ago

Hey @will-at-stacks

Yes to all 3!

1) I met with Chiente and Chan back in June about creating a stable swap dex and ways it can benefit the whole Stacks ecosystem. They've definitely made some progress preparing a stablecoin pool for ALEX, and Chan was kind enough to share a link to one of their contracts on a dev branch. From what I gathered, the alexgo-io/alex-v1 repo is open source and falls under the standard MIT license without any restrictions for us to use, if needed. The protocol designs are different, and there are advantages to having a product where yield is paid out using the tokens in the underlying pools and a governance token dedicated exclusively to stable swap protocol voting + yield boosting. But they obviously have a brilliant team, and I’m sure it’d be helpful if we shared more insight/tooling going forward.

2) I met with MattyTokenomics this summer as well. During one of the Web3 Startup Lab sessions, Diego and I volunteered to present the Tokenomics Canvas for a stable swap dex similar to Curve. Filling it out was a helpful exercise for designing/engineering sustainable incentives, so we’ll definitely include a polished walkthrough of that for this dex as part of our tutorial deliverable. Happy to meet with him again to ensure we're publishing quality tokenomics content.

3) Absolutely. The research and work we did throughout the summer in the Web3 Startup Lab has prepared us to hit the ground running for this grant. Our own timeline for these deliverables is a bit more aggressive, and I'm confident we will complete the work before 3/31/23.

Thanks, Dylan

Albert-Present commented 2 years ago

I can vouch for all three as I was the one who helped facilitate those connections during the Startup Lab. Dylan and his team are highly capable and thorough as well as plugged into our community.

will-corcoran commented 2 years ago

Hi @dylanft -

Congrats! Your grant application has been approved. We just sent you an invite (to the email the application was submitted with) to an onboarding call on Monday. We will use this call to provide an overview of next steps and expectations for proceeding with the grant.

If you are not able to make the call, don't worry, it will be recorded.

Best, Will Stacks Foundation Grants Program Manager.

dylanft commented 2 years ago

That is great news, thanks Will!

And also a big thank you to everyone who took time to voice their support for this grant application.

will-corcoran commented 1 year ago

Updates to this grant can also be found here