Skip to content
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

Release tracking issue: DEX #1724

Open
58 of 65 tasks
zbuc opened this issue Dec 8, 2022 · 0 comments
Open
58 of 65 tasks

Release tracking issue: DEX #1724

zbuc opened this issue Dec 8, 2022 · 0 comments
Assignees
Labels
_P-V1 Priority: slated for V1 release

Comments

@zbuc
Copy link
Member

zbuc commented Dec 8, 2022

This issue tracks implementation of Penumbra's DEX engine, the component that performs the four phases of DEX execution at the end of every block:

  1. Adding all newly opened liquidity positions
  2. Executing the batched swaps from the current block against that liquidity and recording the results
  3. Arbing prices back to consistency
  4. Closing all newly closed liquidity positions

To do this, we have a number of tasks, both on the in-consensus application side, as well as on the client side, and in the protocol tooling. These tasks break down as follows:

System / Mechanism design issues

This category is largely done, except for the details of trading function approximations and the reward claim mechanism. Since we don't currently have an LP reward system, reward claim design isn't blocking at the moment, and we'll do it after getting the rest of the system working.

Crypto

ActionHandler implementations

This category covers the consensus-side execution of the action handlers for position actions. Client-side logic like Planner support is tracked in #1991.

DEX Engine

DEX engine bugs (non-exhaustive):

Client support

We don't expect that in the long term, pcli will be used much for position management, but we'll use it as an MVP to exercise the chain logic at first. We need:

Node architecture integration work

Testing wishlish (more to come..):

Testnet Strategy

Some ideas:

Raw notes

Based on details in https://hackmd.io/rsgSwz3BQKuL0GrSF0LWXA# and https://hackmd.io/jtoiMn0pQnSTZlOi2ig5Wg

@erwanor erwanor added the A-zswap Area: Design and implementation of ZSwap label Jan 13, 2023
@erwanor erwanor added this to Testnets Jan 13, 2023
@zbuc zbuc moved this to Future in Testnets Jan 13, 2023
@erwanor erwanor moved this from Future to Testnet 44: Ananke in Testnets Feb 3, 2023
@conorsch conorsch moved this from Testnet 44: Ananke to Future in Testnets Feb 10, 2023
@zbuc zbuc mentioned this issue Mar 15, 2023
3 tasks
@hdevalence hdevalence changed the title Implement Dex Execution Implement DEX engine Mar 20, 2023
@zbuc zbuc moved this from Future to Tracking Issues in Testnets Mar 24, 2023
@erwanor erwanor changed the title Implement DEX engine Tracking issue: DEX Apr 6, 2023
@aubrika aubrika added this to Penumbra Oct 30, 2023
@github-project-automation github-project-automation bot moved this to 🗄️ Backlog in Penumbra Oct 30, 2023
@erwanor erwanor self-assigned this Nov 15, 2023
@erwanor erwanor added _P-V1 Priority: slated for V1 release and removed A-zswap Area: Design and implementation of ZSwap E-multi-week labels Jan 8, 2024
@erwanor erwanor changed the title Tracking issue: DEX Release tracking issue: DEX Jan 8, 2024
@conorsch conorsch modified the milestone: v1 Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
_P-V1 Priority: slated for V1 release
Projects
Status: Backlog
Status: Tracking Issues
Development

No branches or pull requests

3 participants