HSP Sandbox Mode— Settlement flows are simulated. On-chain payroll is fully functional.
← Docs
Receipt-backed credit

Advances

PayrollAdvance.sol

Advances close the PayFi loop: Income → Reputation → Credit → Settlement. Recipients borrow against their next confirmed payout. Repayment is auto-deducted during executeCycle. Lenders earn interest distributed pro-rata via shares.

Reputation-tiered LTV + APR

IncomeOn-time rateMax LTVInterest
≥ $10k≥ 80%70%1% / cycle
$1k – $10kany50%1.5% / cycle
$100 – $1kany30%2% / cycle
< $1000 (denied)

Repayment flow

executeCycle() {
  for each recipient:
    netAmount = onRepay(payrollId, recipient, grossAmount, token)
    // debt + interest deducted; net transferred to recipient
    // debt portion pushed to advance pool; interest = lender yield
}

Lender pool

Lenders deposit USDT into the pool; receive shares. Interest from repaid advances grows pool TVL. Withdraw anytime at current share price.

Tokenized positions (bonus)

Lender shares can be minted as ERC-721 AdvancePositionNFT — tradeable on secondary markets without closing the underlying position.