The agent extracts three signals: healthFactor, principal + interest (total debt), and dueDate.
2
Evaluate & Decide
The agent applies rules to decide what action to take:
Condition
Action
dueDate is within 3 days and debt > 0
Auto-repay full balance
healthFactor < 1.3
Lock additional collateral
healthFactor < 1.1
Lock collateral + alert user
healthFactor >= 1.3 and no upcoming due date
No action
3
Execute
Auto-Repay
Top Up Collateral
When the due date is approaching, the agent repays the full outstanding balance:
curl -X GET 'https://api.sprinter.tech/credit/accounts/0xUSER/repay?amount=2012500000'
The amount is principal + interest in USDC lowest denomination (6 decimals). $2,012.50 = 2012500000.Returns { calls: ContractCall[] } — execute via the delegated signer.
When health factor is low, the agent locks additional collateral:
curl -X GET 'https://api.sprinter.tech/credit/accounts/0xUSER/lock?amount=1000000000000000000&asset=0xCOLLATERAL_TOKEN'
Returns { calls: ContractCall[] } — execute via the delegated signer.
Default: every 5 minutes. Increase for lower API usage, decrease if positions are volatile. For most users, 5–15 minutes is sufficient.
Health Factor Threshold
Default: 1.3. The agent tops up collateral when health factor drops below this. See Risk Management for liquidation thresholds — positions below 1.0 are liquidatable.
Repayment Timing
Default: 3 days before due date. Repaying early avoids the 15% overdue APR that kicks in after the billing cycle ends.