🔖 Title
Loan lifecycle scheduled jobs: default detection, interest accrual, yield distribution
📄 Description
src/jobs/ already has blockchain-indexer, transaction-status-checker, and loan-payment-reminder as BullMQ repeatable jobs. Missing pieces for a complete loan lifecycle: automatic default marking once the grace period elapses, accrued-interest calculation, and yield distribution to liquidity providers.
✅ Tasks to complete
📚 Documentation/context for AI
(This link never should removed)
https://github.com/TrustUp-app/TrustUp-API/tree/main/docs
🗒️ Additional notes
Follow the existing BullMQ repeatable-job pattern used by blockchain-indexer/transaction-status-checker/loan-payment-reminder — do not introduce @nestjs/schedule @Cron decorators, which are not used elsewhere in this repo.
🔖 Title
Loan lifecycle scheduled jobs: default detection, interest accrual, yield distribution
📄 Description
src/jobs/already hasblockchain-indexer,transaction-status-checker, andloan-payment-reminderas BullMQ repeatable jobs. Missing pieces for a complete loan lifecycle: automatic default marking once the grace period elapses, accrued-interest calculation, and yield distribution to liquidity providers.✅ Tasks to complete
loan-default-detectorjob — daily scan for loans past grace period, mark as defaulted and trigger on-chain default flowinterest-accrualjob — periodic accrued interest calculation and persistence per active loanyield-distributionjob — periodic yield distribution to LPs based on pool performancesrc/jobs/📚 Documentation/context for AI
(This link never should removed)
https://github.com/TrustUp-app/TrustUp-API/tree/main/docs
🗒️ Additional notes
Follow the existing BullMQ repeatable-job pattern used by
blockchain-indexer/transaction-status-checker/loan-payment-reminder— do not introduce@nestjs/schedule@Crondecorators, which are not used elsewhere in this repo.