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

Lend and Borrow Integration in TON Plugin #3030

Closed
alefmanvladimir opened this issue Jan 30, 2025 · 5 comments
Closed

Lend and Borrow Integration in TON Plugin #3030

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

Comments

@alefmanvladimir
Copy link

alefmanvladimir commented Jan 30, 2025

Description
Extend the TON Plugin within the elizaOS framework to offer lending and borrowing capabilities using existing lending protocols on the TON blockchain. These new actions should allow AI agents to deposit assets as collateral, accrue interest, borrow tokens, and manage debt positions—all via automated, programmatic calls.

Key Requirements

  1. Protocol Integration

    • Connect with an existing TON-based lending protocol or provide a flexible interface to support multiple protocols in the future.
    • Ensure seamless deposits, withdrawals, borrowing, and repayment functionalities.
  2. Collateral Management

    • Implement methods for depositing collateral and tracking its value in real-time.
  3. Interest & Repayment

    • Expose methods for calculating and displaying accrued interest on borrowed positions.
    • Provide actions for partial or complete repayment of borrowed funds.
  4. Security & Access Control

    • Adhere to recommended security practices and documentation from the chosen lending protocol.
    • Validate user inputs (collateral amounts, borrow limits) to prevent malicious or unintended behavior.

Resources

Definition of Done

  • Complete integration of lending and borrowing functionality with at least one TON-based lending protocol.
  • Comprehensive test coverage demonstrating deposits, borrows, repayments, and liquidation scenarios.
  • Clear documentation instructing developers and AI agents on configuring and invoking these new actions.

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
@0xSaksham
Copy link

Would love to work on this as I have previous experience working with elizaOS

@Oersta1rdt
Copy link

Would love to join in working this out, most would really love this too

@sekmet
Copy link
Contributor

sekmet commented Feb 5, 2025

Working on this

@Kaladin13
Copy link

@sekmet Hi, great work!

I am too working on this, I've implemented getting info about current user lending position, can I merge it with your work? It follows the same code style as original eliza example

@delovoyhomie
Copy link

@lalalune could you please reopen the issue and then close it as completed? thanks!

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

8 participants