Documentation

Action Processor

How the backend service processes encrypted lending actions

Processing Flow

1

Poll for Pending Actions

Query Ponder GraphQL for actions with status: "pending"

2

Validate Prices

Check oracle prices aren't stale, update if needed

3

Call processAction()

Submit to LendingCore on Sapphire with action hash and payload

4

Handle Result

Log success or retry on failure

Error Handling

Transaction Fails

Retry up to MAX_RETRIES (default: 3)

RPC Errors

Wait and retry with exponential backoff

Health Factor Rejection

Log error, mark action as failed

Stale Prices

Update prices before processing

Related