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

feat: ekubo integration #124

Merged
merged 17 commits into from
Jan 8, 2024
Merged

feat: ekubo integration #124

merged 17 commits into from
Jan 8, 2024

Conversation

enitrat
Copy link
Collaborator

@enitrat enitrat commented Jan 3, 2024

Implements the integration of the Ekubo AMM withing the Unruggable framework, including:

  • Defining a generic trait that each supported exchanges must implement, with additional parameters and return types generic depending on the implementation of the exchange
  • Distincts Entrypoints to launch on ekubo / on jediswap
  • A EkuboLauncher contract that contains a registry to commonly used Ekubo addresses, and manages
    • The logic of setting the pool with an initial price, whose sign depends on if the counterparty token is token1 or token0
    • Assigning the correct values for the min and max bounds of the initial LP position
    • minting the LP position, in the previously defined pool, inside the assigned bounds
    • Exposes an entrypoint enabling the withdrawing of the LP fees
  • Testing of the create - launch - swap flow against the forked mainnet using ekubo contracts

Copy link

vercel bot commented Jan 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unruggable-memecoin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2024 8:08pm

contracts/src/exchanges/ekubo/ekubo_adapter.cairo Outdated Show resolved Hide resolved
contracts/src/exchanges/ekubo/launcher.cairo Show resolved Hide resolved
contracts/src/tokens/memecoin.cairo Outdated Show resolved Hide resolved
contracts/src/factory/interface.cairo Outdated Show resolved Hide resolved
contracts/src/factory/interface.cairo Outdated Show resolved Hide resolved
contracts/src/mocks/ekubo/swapper.cairo Outdated Show resolved Hide resolved
@AbdelStark AbdelStark merged commit 0b93f8e into main Jan 8, 2024
6 checks passed
@0xChqrles 0xChqrles deleted the feat/ekubo-integration branch April 23, 2024 07:51
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

Successfully merging this pull request may close these issues.

None yet

3 participants