Skip to content

feat: add Radiant lending onchain-actions plugin for Arbitrum#312

Open
Lexiie wants to merge 4 commits intoEmberAGI:mainfrom
Lexiie:feat/radiant-lending-plugin
Open

feat: add Radiant lending onchain-actions plugin for Arbitrum#312
Lexiie wants to merge 4 commits intoEmberAGI:mainfrom
Lexiie:feat/radiant-lending-plugin

Conversation

@Lexiie
Copy link

@Lexiie Lexiie commented Nov 20, 2025

Summary

This PR adds a full onchain-actions plugin integration for the Radiant V2 Lending Protocol on Arbitrum.
The plugin includes market data fetching, user position retrieval, and transaction builders for core lending actions.

⚠️ NOTE (Update)

This PR has been updated to align with the latest registry-based Ember Plugin System.
The original implementation predated the registry architecture; the latest commits
fully migrate the Radiant Lending plugin to the current standard.

Related Issue(s)

Closes #310


Type of Change

  • 🐛 Bug fix
  • ✨ New feature (adds functionality)
  • 🔌 Protocol integration (adds support for new DeFi protocol)
  • 🤖 Agent template
  • 🔧 MCP server
  • 📚 Documentation
  • 🔄 Refactor
  • 🧪 Tests (adding or updating tests)
  • ⚙️ Tooling/CI

🧪 Testing

Tests Performed

  • Unit tests for:
    • Market fetching via ProtocolDataProvider
    • User position parsing (collateral, debt, health factor)
    • Transaction builder calldata encoding/decoding
  • Validation of ABI compatibility with Radiant (Aave V3–style)

Test Results

  • All implemented test suites passed locally using Vitest
  • One integration test previously blocked by RPC mismatch is now fixed via corrected DataProvider and Pool addresses

Steps to Run Tests

pnpm install
pnpm test

@ParastooGM
Copy link
Contributor

Hey @Lexiie, Thanks for your PR. Could you share your Telegram handle for the next steps, please?

@Lexiie
Copy link
Author

Lexiie commented Nov 20, 2025 via email

…gin System

- Migrated plugin into registry-compliant structure

- Added getRadiantEmberPlugin wrapper following Aave plugin pattern

- Removed hardcoded RPC in favor of adapter params

- Added standardized error handling across actions & queries

- Wrapped existing markets/positions/actions logic with adapter class

- Improved plugin readiness for Vibekit Node
@Lexiie
Copy link
Author

Lexiie commented Dec 11, 2025

I’ve updated the Radiant plugin to follow the official plugin architecture guidelines.
The previous version didn’t fully align, but the latest refactor resolves this.

@Lexiie
Copy link
Author

Lexiie commented Jan 13, 2026

@0xTomDaniel could you please review when you have free time ?

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.

[New Protocol Integration]: Integrate Radiant Lending Protocol (Arbitrum)

2 participants