Ajo on Ootle: rotating savings circles you don’t have to trust anyone to hold
Code (MIT): GitHub - G-ojies/ajo-ootle: Ajo: rotating savings circles (ajo, esusu, susu) on Tari Ootle. Template, engine tests and a walletless web demo. · GitHub
MVP app (walletless demo): Ajo on Ootle (a circle already in progress: Ajo on Ootle)
Announcement (Medium): https://medium.com/@greatojies/ajo-on-ootle-savings-circles-where-nobody-has-to-hold-the-money-3e2a2dbf6430
Tari payment address: 124vi5rtdwoFK6qNoFAPc4wdWchJmeQ38wpiLqpJgCcw5ZJRnNwNuUXcXyVZH9ushoVhpmDPdnaMaRFzbMGWc3Rjogk
What it is. An ajo (also called esusu, susu, chama or a ROSCA) is how millions of people save without a bank: a group agrees an amount, everyone pays it every round, and each round the whole pot goes to the next person in line. In Nigeria alone, market traders, office colleagues and church groups run them every week. They work on trust, and they fail in two places: the person holding the money, and the member who collects early and then stops paying.
Ajo puts both on Ootle:
- Nobody holds the money. Each circle is an ownerless, non-upgradable component. Pots and deposits sit in its vaults, and no admin method can move them.
- One round’s deposit backs every member. If a round’s deadline passes and someone hasn’t paid, anyone can close the round. The missing payment comes out of that member’s deposit, so the recipient still gets a full pot, and a
Defaultedevent records the miss for everyone to see. Members who never miss take their deposit back at the end. - Only the recipient can take a pot. Closing a round credits the pot to its recipient, who
collects it with their own key. A slow recipient can’t hold up the next round.
What’s in the repo
src/lib.rs: the Ajo template (tari_template_lib 0.38):create,join,leave,contribute,settle,collect,reclaim_deposit,info, plus events for every step.tests/ajo.rs: engine tests on the in-process Ootle engine with TARI: a full circle where everyone ends where they started, a missed payment covered by the deposit and then a second miss recorded short, member and exact-amount checks, and bad-circle rejection.web/: the walletless MVP. It runs a circle in the browser under the same rules (and the same refusal messages) as the template, tested against the same scenarios.cli/:ajo-cli, which publishes the template and drives a circle on Esmeralda from local keys.
Live on Esmeralda: a full circle, start to finish. Template template_3519aefd3d17e2bb88f061e1490a8107925381cf7c4af3f5911c4c1668e01b11, circle component_6d72f5d307efbe7cfd56ee190979ec4fb2de48cacc44a649ba0d809f3d4d4346 (3 members, 5 tTARI a round):
- Round 1: everyone paid, the round closed early, member 0 collected 15 tTARI.
- Round 2: member 2 deliberately didn’t pay. Closing early was refused on-chain (“Round 1 is still open until epoch 13107”), and so was member 2 trying to collect someone else’s pot. After the deadline the round closed with member 2’s deposit covering the miss (
Defaulted,covered_by_deposit = true), so member 1 still got a full 15 tTARI. - Round 3: everyone paid, member 2 collected,
CircleFinished. - Members 0 and 1 got their deposits back; member 2’s refund was refused (“Member 2’s deposit covered a missed payment”).
Everyone received exactly one pot, the members who always paid ended where they started, and the miss is on the public record. Transaction ids are in the README. Each Ajo call cost about 0.004 tTARI in fees.
Why it’s an MVP and not a toy. A savings group could use this today: agree the list and the amount, create the circle, and the template enforces the order, the amounts, the deadlines and the default cover. Next steps: a Sapient signing flow in the page, and circle invites by Ootle address.