Docs

earn.credit borrower actions

Execute reviewed collateral, borrow, and repay workflows with a customer wallet.

Package@torq-finance/sdk
Signatureearn.credit.borrow | repay | depositCollateral | withdrawCollateral

Behavior

Prepares the matching production Agent Credit action, binds the connected wallet as principal, requires explicit payload review, executes through the customer signer, and waits for final_success.

Security boundary

Canonical borrower role, market route, collateral policy, oracle freshness, liquidity, risk regime, and action-specific preflight remain authoritative. The convenience method does not bypass them.

See the API Reference for the governed endpoint contract and the workflow guide for canonical completion semantics.