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

[StableSwap] Issue 2: Stable Swap Algorithm #32

Open
polarker opened this issue Nov 15, 2024 · 13 comments · May be fixed by #45
Open

[StableSwap] Issue 2: Stable Swap Algorithm #32

polarker opened this issue Nov 15, 2024 · 13 comments · May be fixed by #45
Assignees
Labels

Comments

@polarker
Copy link
Member

Parent issue: #24

Objective:

Create a stable swap mechanism that ensures low-slippage trades between similarly-valued assets within the pool.

Description:

This issue focuses on implementing the stable swap algorithm based on an invariant function, such as the constant product or a similar stable swap algorithm.

Tasks:

  1. Design and implement the stable swap algorithm to maintain price stability.
  2. Ensure the algorithm supports low-slippage trades between assets in the pool.
  3. Add functions for users to perform swaps between assets in the pool.
  4. Write unit and integration tests for the swap functionality, including edge cases (e.g., swaps at extreme ratios).

Acceptance Criteria:

  • The swap algorithm maintains price stability for similarly-valued assets.
  • Users can perform trades with minimal slippage.
  • Tests demonstrate the robustness of the algorithm under various scenarios.
@polarker polarker changed the title Stable Swap Issue 2: Stable Swap Algorithm [Stable Swap] Issue 2: Stable Swap Algorithm Nov 15, 2024
@polarker polarker changed the title [Stable Swap] Issue 2: Stable Swap Algorithm [StableSwap] Issue 2: Stable Swap Algorithm Nov 16, 2024
@mimisavage
Copy link

Would love to tackle this!

@ShantelPeters
Copy link

Is it okay if I tackle this?

@MrRoudyk
Copy link

I'd like to take this issue.

@Supa-mega
Copy link

Let me handle this issue!

@vestor-dev
Copy link

hey sir I'd like to handle this task.
i'm a frontend developer and a blockchain dev
i would really love to contribute to your project
please kindly assign :)

@htiennv
Copy link

htiennv commented Nov 22, 2024

Hi, i have experience on Stable Swap. Could i take this issue?. Thanks

@TropicalDog17
Copy link

TropicalDog17 commented Nov 22, 2024

Hi @polarker, I’d like to resolve this. I have experience in Javascript/TypeScript so it would be easier to pickup Ralph. I will review some existing Solidity/others implementation and follow the issue to deliver the issue successfully.

@bruhhgnik
Copy link

Can I contribute to this one? i have somewhat experience in similar projects, i think i can get this done in 2 days

@suhas-sensei
Copy link

Can i work on this one? I have experience implementing uniswap v2 architecture

@kfastov
Copy link
Collaborator

kfastov commented Nov 23, 2024

Hello! Please wait for the issue #31 to be solved, it will provide base contract and boilerplate code 🙏

@abdegenius
Copy link

May I try my hand at this?

@CEOliam
Copy link

CEOliam commented Nov 25, 2024

Could I take over this issue?

@aniruddhaaps
Copy link

To address thiis issue I would design an invariant swap algorithm, such as constant product, ensuring that the price of the same-valued assets is stable. Implement low-slippage trades and user-friendly swap operations in the pool. Test the mechanism through comprehensive unit and integration tests that satisfy edge case and extreme event conditions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.