dotshammerspanner
DeFi

TWAP program on Phoenix

TWAP program on Phoenix

Phoenix

Phoenix

Problem to Solve

Phoenix is the latest and leading on-chain order book on Solana, which has already facilitated over $250 million in trading volume. It also holds the distinction of being the first crankless limit order book DEX. The TWAP (Time-Weighted Average Price) program plays a critical role in any order book by enabling the execution of large orders over a defined timeframe, aiming to achieve an average price that closely aligns with the prevailing market price during that period. Developing a TWAP program for Phoenix will significantly aid in mitigating market impact and reducing slippage when trading substantial asset quantities.

Possible Solution

Proposed solution for implementing a TWAP program on the Phoenix Order book: - Construct an algorithm based on a sample TWAP algorithm, customized to suit the unique features of Phoenix. - Create a user interface (UI) or widget that empowers users to place TWAP orders. This entails inputting details such as the desired USD amount or asset quantity for buying or selling, alongside a designated time interval (period field) for execution.

Resources

- Phoenix Github Repository - https://github.com/Ellipsis-Labs/phoenix-v1 - Sample TWAP Program for DEX Implementation -https://github.com/orbs-network/twap - Phoenix Website and Documentation - https://www.phoenix.trade/

Need some help?

Join a Superteam

If you want to start working with other talented people, join a Superteam community. They're filled with developers, designers, marketers, and everyone else you'll need to ship your idea to production.

dots

Get grant funding to build (it's free)

The ideas on this site are curated by Solana founders across the ecosystem. They're ready to give you an equity-free grant to get building.