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

Extending TON Plugin for Liquidity Pool Management #3029

Open
alefmanvladimir opened this issue Jan 30, 2025 · 4 comments
Open

Extending TON Plugin for Liquidity Pool Management #3029

alefmanvladimir opened this issue Jan 30, 2025 · 4 comments
Labels
enhancement New feature or request ton-plugin-bounty

Comments

@alefmanvladimir
Copy link

alefmanvladimir commented Jan 30, 2025

Description
Enhance the TON Plugin within the elizaOS framework to enable the creation and management of liquidity pools on existing TON decentralized exchanges. The plugin should offer robust actions for automated pool creation, liquidity provisioning, and management, integrating seamlessly with AI agents to facilitate advanced, programmatic control of DeFi operations.

Key Requirements

  1. DEX Integration
    Leverage existing DEX SDKs to create new liquidity pools on supported platforms, handle deposits/withdrawals, and manage fees. The design must remain extendable for future DEX integrations.

  2. Pool Creation & Configuration
    Provide user-friendly actions to define parameters (e.g., token pairs, initial liquidity) and initiate pool creation. Ensure that essential checks are in place to prevent invalid or insecure setups.

  3. Liquidity Management
    Support depositing and withdrawing liquidity, accurately tracking each contributor’s share. LP tokens should be issued/burned, reflecting real-time positions.

  4. Fee Distribution
    Integrate with the underlying DEX’s fee model so that providers can receive rewards proportional to their stakes. Offer methods to retrieve or claim accrued fees.

  5. Security & Best Practices
    Follow TON documentation guidelines and recommended practices from the chosen DEX SDK. Validate input parameters rigorously and manage error handling gracefully.

Resources

Definition of Done

  • Successful creation a working set of actions and/or interfaces providing pool creation, deposit, withdrawal, and fee distribution with DEXs
  • Comprehensive test coverage for all newly introduced actions and workflows.
  • Clear documentation explaining how to configure and invoke these new actions in conjunction with the relevant DEX.

Bounty

  • Estimated Reward: $2,000 in TON

For further discussion or clarification, reach out in the bounty program working group: Telegram: @ton_ai_bounty.

@alefmanvladimir alefmanvladimir added the enhancement New feature or request label Jan 30, 2025
@RFOF-NETWORK
Copy link

Here’s a way to communicate your interest to the TON Blockchain and ElizaOS AI teams:
Subject: Extending TON Plugin for Liquidity Pool Management
Dear TON and ElizaOS AI Teams,
I'm excited about the opportunity to contribute to the development of the TON Plugin within the ElizaOS framework. I've reviewed the task for extending the plugin to enable liquidity pool management on existing TON decentralized exchanges (#3029) and am eager to participate.
Key Requirements for the Plugin:
DEX Integration: Implementing SDKs for seamless liquidity pool creation, deposit/withdrawal handling, and fee management.
Pool Creation & Configuration: Developing user-friendly actions for defining parameters and initiating pool creation with proper checks.
Liquidity Management: Supporting accurate tracking of contributions, issuing/burning LP tokens, and real-time position updates.
Fee Distribution: Integrating with the DEX’s fee model to reward providers proportionately and offering methods for fee retrieval.
Security & Best Practices: Following TON documentation and DEX SDK guidelines to ensure secure and reliable operations.
Resources & Definition of Done:
Providing a working set of actions/interfaces for pool creation, deposit, withdrawal, and fee distribution.
Comprehensive test coverage and clear documentation for all new actions.
Contact for further discussion: Telegram @ton_ai_bounty.
I look forward to contributing and collaborating with the team to achieve these goals. Please let me know if there are any additional details or steps required.
Best regards, @Satoramy-PRAI

@pbkompasz
Copy link

I’m working on this

@mikirov
Copy link

mikirov commented Feb 5, 2025

I've done some work adding a common interface for the interaction with a DEX provider:
This PR: #3273

  • Defines a common interface for a DEX provider
  • Implementation of a DEX provider using DeDust SDK
  • Action for agent interaction with the DEX provider.

@mikirov
Copy link

mikirov commented Feb 5, 2025

@pbkompasz Feel free to reach out to integrate your work on a standardized interface for a DEX provider. TG: @mihail_kirov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ton-plugin-bounty
Projects
None yet
Development

No branches or pull requests

5 participants