Skip to content

feat: implement loan default detection with BullMQ job and manual end…#58

Open
Osifowora wants to merge 1 commit into
StepFi-app:mainfrom
Osifowora:implement-loan-default-detection-BullMQ-job
Open

feat: implement loan default detection with BullMQ job and manual end…#58
Osifowora wants to merge 1 commit into
StepFi-app:mainfrom
Osifowora:implement-loan-default-detection-BullMQ-job

Conversation

@Osifowora

Copy link
Copy Markdown

Closes #29

🔗 Related Issue

Closes #issue-number


🔖 Title


📝 Description


🔄 Changes Made


📸 Screenshots (if applicable)


🗒️ Additional Notes

…point

- Add default-detection BullMQ module with 6-hour repeating job
- Add CreditLineContractClient.buildDeclareDefaultTx() for on-chain default
- Add BlockchainService.submitTransaction() for signed XDR submission
- Add POST /loans/:id/check-default endpoint (JWT-guarded manual trigger)
- Add LoansService.checkDefault() for grace-period validation and on-chain flow
- Add Supabase migration for default_detection_results table
- Register DefaultDetectionModule in AppModule
- Extract shared DEFAULT_GRACE_PERIOD_DAYS constant (30 days)

Closes StepFi-app#29
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.

core: implement loan default detection BullMQ job

1 participant