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

New Challenge 4: Build a DEX #203

Open
Nadai2010 opened this issue Feb 12, 2025 · 2 comments
Open

New Challenge 4: Build a DEX #203

Nadai2010 opened this issue Feb 12, 2025 · 2 comments
Assignees

Comments

@Nadai2010
Copy link
Collaborator

Overview

Create a new challenge based on Speed Run Ethereum, specifically Challenge 4, but adapted to Starknet.

To access this challenge, users must have completed challenges 0, 1, 2, and 3 from Speed Run Ethereum.

⚖️ Build a DEX

💵 Develop a decentralized exchange (DEX) that allows swapping STRK for other tokens and vice versa.
💰 This is achieved by having the smart contract hold reserves of both assets and using a price function based on the reserve ratio.
🔄 Liquidity providers will receive a token representing their share of the reserves and transaction fees.

Proposed Solution

  1. Understand the challenge mechanics

    • Analyze how the original Speed Run Ethereum Challenge 4 works.
    • Identify the necessary modifications to adapt it to Starknet.
    • Implement swaps between STRK and other tokens.
  2. Create a separate private repository

    • Implement the challenge in Starknet using Cairo.
    • Ensure the contract logic follows best practices.
    • Document the challenge structure and steps in a README.md, following the format of previous challenges.
  3. Assign repository access

    • Grant repository access to nadai2010 or 0xquantum3labs for review and feedback.

Next Steps

  • Define the exact challenge specifications for the Starknet environment.
  • Develop and test the smart contract implementation.
  • Provide a step-by-step guide for users to complete the challenge.
  • Review and iterate based on feedback.
@Nadai2010 Nadai2010 self-assigned this Feb 12, 2025
@Dalongcoder0522
Copy link

Hi,
I just got the message from Carlos, please assign this ticket to me.
Thanks.

@Nadai2010
Copy link
Collaborator Author

Hi @Dalongcoder0522 perfect 🦾

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

No branches or pull requests

2 participants