Skip to content

Blend Protocol integration: loan_repaid events on testnet #18

Description

@Cbiux

Summary

Integrate Blend Protocol repayments on testnet as loan_repaid credit events — detect genuine Repay operations on-chain and report to ZCore.

Blend is contract-first (no REST webhooks). Same adapter pattern as #17.


Scope (v1)

  1. Document testnet pool + asset IDs
  2. Script to parse Blend Repay txs from Horizon/Soroban RPC
  3. Map to ZCore POST /api/events/report with eventType: "loan_repaid"

ZCore payload

{
  "apiKey": "<blend_platform_key>",
  "eventType": "loan_repaid",
  "walletAddress": "G<BORROWER>",
  "amount": 500,
  "currency": "USDC",
  "txHash": "...",
  "timestamp": "2026-06-20T12:00:00.000Z"
}

Score: EVENT_WEIGHTS.loan_repaid in Server/src/constants/scoring.constants.ts (max 80 pts/event).

Verification: Server/src/services/stellar.service.tsverifyTransaction(txHash).


Deliverables

Path Action
Docs/integrations/blend-protocol.md Create — pool IDs, Repay op detection, examples
scripts/integrations/blend-repay-indexer.ts Optional — scan recent txs, filter Repay

Acceptance criteria


References

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSPart of the GrantFox OSS programMaybe RewardedThis issue may receive a reward or bountyOfficial CampaignPart of an official ZCore campaignenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions