Skip to main content
Ankara has three ways to lend on Stellar. All are Stellar-only.

Score-based loans

collateral-vault can size a loan against a credit score from a pluggable source, not only against collateral:
  • Pluggable source: any contract exposing credit_score(borrower) -> Option<CreditScore { score, updated_at }>. Ankara ships manual-credit-scorer (a trusted Manager posts scores, like manual-oracle does for prices). You can swap in a scoring partner’s contract, a cooperative’s membership record, or an adapter over attestation-registry CREDIT claims. The vault never assumes a scoring model.
  • Tiers (set_score_config, Manager): strictly ascending min_score, each with an unsecured credit_limit, a flat fee_bps charged on repayment, and a max_term_secs. Scores older than max_score_age are rejected.
  • Collateral is optional: pass none for a fully unsecured loan, or add some to raise the limit.
  • Due date instead of price liquidation: a scored loan must be repaid (principal plus fee) within its term. After that, anyone can mark_defaulted: pledged collateral goes to the Manager and a defaulted event is emitted for score sources to pick up. Scored loans are never price-liquidated.
  • The ordinary open_loan / liquidate path is unchanged.

Group savings & lending: savings-circle

One deployment serves any number of circles in any SEP-41 token. There’s no admin. The organizer fixes each circle’s rules when creating it, and the circle starts automatically once it’s full (or when the organizer calls start_circle with at least 2 members).

Rotating

Each round, every member contributes the fixed amount, and the pot goes to one member, in join order. disburse (callable by anyone) pays out once everyone has contributed, or after the round’s deadline with whatever was collected. Missed contributions are recorded on the member, so the group can see them.

Pooled

  • Members contribute once per period for rounds periods.
  • Any member can borrow up to borrow_multiple_bps of their own savings (20_000 = 2× savings), so the group backs part of the loan. They repay principal plus a flat loan_fee_bps, and the fee goes into the pool.
  • After the last period, each member withdraws their share of the pool, pro-rata to savings, so fees are shared. A member still owing when the pool closes forfeits their savings to the pool: the defaulter absorbs losses first, and only the remainder is shared across the group.