feat: add RsoftBankActionProvider — AI-native USDC lending for agents on Base mainnet - #1482
Open
rsoft-latam wants to merge 1 commit into
Open
feat: add RsoftBankActionProvider — AI-native USDC lending for agents on Base mainnet#1482rsoft-latam wants to merge 1 commit into
rsoft-latam wants to merge 1 commit into
Conversation
🟡 Heimdall Review Status
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds RsoftBankActionProvider, giving AgentKit agents the full credit cycle of RSoft Agentic Bank — an AI-native USDC lending service for autonomous agents, live on Base mainnet:
get_interest_rates— current lending rates and terms by risk tier (free)get_creditworthiness— credit score, loan history and outstanding debt (free)get_trust_score— AgentTrust-8004 on-chain trust score (0-100) of any agent wallet, with anomaly flag, for vetting counterparties (free)request_loan— signs the bank's EIP-712LoanRequeststruct natively withwalletProvider.signTypedDataand submits it; the bank never sees a private key. Fail-closed without a bank API keyget_repayment_info/confirm_repayment— repay via the standard erc20 transfer action, then report the tx hash; each repaid loan builds portable ERC-8004 on-chain credit reputationNetwork support: Base mainnet only. The service is live and has processed real autonomous loan cycles (agents borrowing and repaying with no human in the loop).
Follows the repo conventions: constants/schemas/provider/index/README/tests layout, JSDoc throughout, changeset included.
pnpm lintclean,pnpm buildclean, 10/10 unit tests passing.A standalone npm package (
rsoft-bank-agentkit) exists for early users; this PR contributes it upstream so agents get it out of the box.Tests
jest src/action-providers/rsoftBank→ 10 passed (network gating, fee/fail-closed behavior, EIP-712 signing payload, request/confirm bodies, error rendering)Happy to adjust naming, category or anything else to fit the project's direction.