AI-Managed DeFi ROSCA on Hedera.
Main Track: DeFi & Tokenization
Bounty: Bonzo
AI-Managed DeFi ROSCA
Sanca is not just a DeFi vault. It is an AI-managed community finance protocol built on Hedera.
Web: https://sanca.spaceDemo Video: Sanca DemoPitch Deck: Canva Pitch Deck
Sanca transforms traditional savings circles into AI-managed DeFi infrastructure where community capital earns yield, payouts are automated, and vault risk is actively managed through an intelligent keeper.
Sanca is an AI-managed DeFi ROSCA protocol on Hedera. Users join transparent community savings pools, contribute in cycles, and receive automated payouts while pooled collateral is routed into a Bonzo-style vault flow instead of sitting idle. A volatility-aware AI keeper agent monitors HBAR/USDC, generates rebalance decisions, and executes vault maintenance through SancaPool, turning community savings into productive on-chain capital with visible yield, automated coordination, and risk-aware vault management.
Sanca is a full-stack community finance protocol that combines:
- a real-world financial primitive: ROSCA
- productive on-chain capital instead of idle balances
- tokenized vault-style exposure through Bonzo-like share accounting
- automated payout infrastructure
- an AI-managed risk layer for vault operations
In one sentence:
Sanca is not just a DeFi vault. It is an AI-managed community finance protocol.
This framing highlights both:
- the human problem being solved
- the DeFi infrastructure that makes the solution more capital-efficient
For the Bonzo bounty, Sanca focuses on one specific interpretation of the prompt:
Sanca implements the first Bonzo example directly:
- monitor
HBAR/USDCmarket conditions - compute a structured volatility regime
- decide whether to
rebalance,collectFees, ornoop - execute through
SancaPool, preserving pool-owned vault accounting
This means the keeper is not a generic chatbot. It is a narrow, purpose-built intelligence layer for DeFi infrastructure.
This scope keeps the implementation:
- clear problem selection
- technical focus
- production-minded architecture
- a credible path from testnet mock to Bonzo-like mainnet parity
Traditional ROSCAs are one of the most battle-tested community finance models in the world, but they suffer from five structural weaknesses:
- They require trust in a coordinator.
- They are operationally manual.
- Contributions and payouts are not transparently auditable.
- Idle collateral does not earn yield.
- Member default creates social and financial risk.
At the same time, modern DeFi vaults solve yield generation but do not solve community-native capital coordination. And even vaults themselves are still often managed by static keepers that react too slowly to changing volatility conditions.
Sanca connects these two worlds:
- community savings coordination
- programmable yield infrastructure
- intelligent vault maintenance
Sanca is a trustless ROSCA system on Hedera where:
- users create or join community savings pools
- contributions and payouts are enforced by smart contracts
- pooled collateral is deposited into a Bonzo-style vault flow
- vault shares remain owned by
SancaPool - a specialized keeper agent manages risk-aware vault maintenance
This creates a full-stack DeFi product rather than a contract-only demo:
- user-facing community savings UX
- automated payout infrastructure
- yield-bearing collateral
- observability APIs
- AI-managed vault operations
Sanca can be explained in two layers:
“A modern savings circle where the money doesn’t sit still.”
and
“An AI-managed community finance protocol.”
Instead of leaving pooled collateral idle, Sanca routes it into a Bonzo-style yield strategy and layers an intelligent keeper on top to improve how that capital is managed. The system is designed to be legible to users and extensible toward real mainnet deployment.
The project maps cleanly to common evaluation dimensions:
Innovation: community finance + DeFi vaults + intelligent keeperFeasibility: clear contract/service architecture already implementedExecution: end-to-end MVP across contracts, services, APIs, and UIIntegration: deep use of Hedera EVM, Mirror Node, Hashio RPC, Hedera PRNG, HIP-719-style flows, and ecosystem toolingSuccess: recurring savings activity, visible yield, automated settlement, and clear paths to repeat on-chain usageClarity: simple, memorable, and easy to demonstrate
The keeper service reads on-chain state plus market context, then decides whether the vault position should:
- tighten
- widen
- collect fees
- stay unchanged
Sanca recreates ROSCA mechanics with smart contracts:
- members contribute in cycles
- payouts rotate across participants
- pool rules are enforced transparently on-chain
Cycle progression, settlement, and payout logic are automated through smart contracts and supporting services, reducing coordinator trust and operational friction.
Rather than leaving pooled collateral dormant, Sanca routes it into a Bonzo-style vault flow on Hedera, turning community savings into productive on-chain capital.
Vault shares remain owned by SancaPool, while the keeper adds a specialized risk-management layer that adapts vault behavior to market volatility without breaking pool accounting.
The frontend surfaces:
- 30D APY
- vault TVL
- next keeper action
- volatility regime
- decision and execution history
graph TB
U[Users] --> FE[Sanca Web App]
FE --> API[Next.js API Routes]
API --> MIRROR[Hedera Mirror Node]
API --> RPC[Hedera RPC]
API --> KEEPERAPI[Keeper Service API]
FE --> FACTORY[SancaFactory]
FACTORY --> POOL[SancaPool]
POOL --> GUARD[MockDepositGuard]
GUARD --> VAULT[MockBonzoVault]
POOL --> PRNG[Hedera Randomness / Draw Logic]
KEEPER[Keeper Service] --> POOL
KEEPER --> SAUCER[SaucerSwap CLMM Signal]
contracts/On-chain system includingSancaFactory,SancaPool,MockBonzoVault, andMockDepositGuardkeeper-service/Volatility-aware keeper agent and execution servicesettler-service/Watcher + scheduler service for on-time pool settlementapp/,components/,hooks/,lib/Next.js frontend and server routes for end-user experiencedocs/PRD and technical spec for the intelligent keeper design
The design is intentionally narrow where it matters:
- one pair:
HBAR/USDC - one keeper mission: volatility-aware vault maintenance
- one execution surface:
SancaPool - one user flow: savings circles with productive collateral
The architecture is modular, but the use case is focused.
Sanca demonstrates:
Composable capital: pooled user collateral enters a vault strategy instead of staying idleTokenized position logic: vault shares and pool accounting represent productive capitalProgrammable financial coordination: savings, collateral, payout, and liquidation logic are encoded on-chainDeep infrastructure use: Hedera contracts, Mirror Node, RPC, and ecosystem integrations all work together
The DeFi architecture is paired with a human-understandable use case: community savings circles with productive collateral.
The Bonzo bounty asks for an Intelligent Keeper Agent that does more than run static automation.
Sanca answers that with:
- structured keeper context
- volatility-aware reasoning
- Bonzo-like rebalance parameter generation
- deterministic execution through
viem - frontend visibility into decisions and action history
The implementation deliberately focuses only on the Volatility-Aware Rebalancer concept, which keeps the project coherent and technically believable.
The keeper architecture also initializes Hedera Agent Kit with a Hedera operator client, while keeping the reasoning loop narrow and the execution path deterministic. This makes the system more credible for a DeFi keeper use case than a broad, over-claimed autonomous agent.
Sanca operates through a simple end-to-end flow:
- A user creates a savings circle.
- Other members join and lock collateral.
- The pool becomes active and operates on-chain.
- Collateral is routed through a Bonzo-style vault flow.
- The frontend shows vault yield metrics and keeper intelligence.
- The keeper surfaces market regime, next action, and execution history.
This flow combines community finance, DeFi yield infrastructure, and intelligent vault management in one product experience.
Next.js 16React 19TypeScriptTailwind CSS v4Reown AppKitwagmiviem
Solidity 0.8.24FoundryOpenZeppelinEIP-1167 minimal proxiesHedera EVM
Hedera Mirror NodeHashio RPCExpressTypeScriptGroqHedera Agent Kit-initialized keeper runtime
Bonzo-style vault architectureSaucerSwap CLMM-derived signal inputs
- smart contract pool system
- Bonzo-like mock vault and guard
- Hedera Mirror Node-backed API routes
- transaction dialogs for join, contribute, and withdraw
- modular TypeScript
keeper-service - modular TypeScript
settler-service - frontend keeper analytics on pool cards
- frontend keeper history page
- users can create circles
- users can join circles
- users can contribute and withdraw
- users see yield-oriented metrics
- collateral is treated as productive capital
- vault state is visible in the frontend
- keeper logic is not cosmetic; it has execution pathways
- contracts, frontend, keeper, settler, and indexing flows are wired to
Hedera Testnet(chainId 296) Hedera Mirror NodeREST is used for historical contract logs, event indexing, and pool snapshotsHashio RPCis used for live reads and writes across the app, keeper, settler, Foundry scripts, and Ponder- the keeper runtime initializes
Hedera Agent Kitwith a Hedera operator client as part of the intelligent keeper architecture SancaPooluses HederaPRNGvia system contract0x169to shuffle winner order for payout scheduling- the contracts use Hedera
HIP-719-style token association viaassociate()for pool and vault token setup - the product surfaces verifiable Hedera activity through
HashScanlinks for wallet and keeper transactions
Sanca is designed around recurring on-chain coordination, not one-off speculative interactions.
- each new pool creates a new on-chain coordination surface for a real savings group
- each member adds repeatable join, contribution, and payout activity across cycles
- automated settlement and keeper actions create visible protocol operations beyond simple deposits
- Hedera's low-fee, high-throughput environment is well-suited for cycle-based recurring transactions
- the product is understandable to mainstream users because the entry point is community savings, not only vault strategy optimization
This gives Sanca a plausible path to sustained on-chain activity if adopted by real communities, contributor groups, cooperatives, and digitally coordinated savings clubs.
The current MVP is positioned for user groups that already coordinate money socially but lack transparent infrastructure:
- community savings groups and rotating savings clubs
- crypto-native groups that want structured treasury coordination
- campus, local, or diaspora communities that already use informal contribution rotations
- small online communities that want transparent payout order and contribution tracking
The immediate validation path is straightforward:
- test the full create, join, contribute, and payout flow with small user groups
- observe where social coordination still creates friction
- measure whether visible yield and automated settlement make participation more compelling than manual ROSCAs
- use keeper history and HashScan-linked execution as trust-building product features during user feedback cycles
| Component | Address |
|---|---|
| USDC | 0x0000000000000000000000000000000000001549 |
| Bonzo Vault | 0x5886EBcBfB04d417cFb9e5711979140e44C28B11 |
| Deposit Guard | 0xB9AfFf6F6f146DeBe0768e8082524A4600fDC1B9 |
| SancaPool Implementation | 0xE521D3c0D2610c7c753aD7a12e45A9AF627Ac83C |
| SancaFactory | 0x08a74CB8D0B398d9d6add0992085E488321Ef686 |
| Service | Address |
|---|---|
| Keeper | 0xC3BF4C8B5A9bb1E68E9E5B26167c76a311DCe488 |
| Settler | 0x964559C7f52382Fd8295023111e2A5d22e598612 |
These addresses represent the current testnet deployment used by the Sanca frontend, keeper flow, and cycle settlement flow.
- Node.js 18+
- npm
- Foundry
- Hedera testnet access
npm install
cd contracts
forge installFrontend .env:
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your_project_id
HEDERA_RPC_URL=https://testnet.hashio.io/api
HEDERA_MIRROR_RPC_URL=https://testnet.mirrornode.hedera.com/api/v1
KEEPER_SERVICE_URL=http://127.0.0.1:3002
NEXT_PUBLIC_FACTORY_ADDRESS=0x...
NEXT_PUBLIC_USDC_ADDRESS=0x...
NEXT_PUBLIC_POOL_IMPL_ADDRESS=0x...Contracts .env:
PRIVATE_KEY=your_private_key
HEDERA_RPC_URL=https://testnet.hashio.io/api
HEDERA_MIRROR_RPC_URL=https://testnet.mirrornode.hedera.com/api/v1Keeper .env:
ACCOUNT_ID=0.0.xxxxx
PRIVATE_KEY=0x...
GROQ_API_KEY=gsk_...
RPC_URL=https://testnet.hashio.io/api
MAINNET_RPC_URL=https://mainnet.hashio.io/api
FACTORY_ADDRESS=0x...Frontend:
npm run devKeeper service:
cd keeper-service
npm startSettler service:
cd settler-service
npm start- Keeper Service README
- Contracts README
- Intelligent Keeper PRD
- Volatility-Aware CLMM Keeper Technical Spec
- trustless ROSCA pool flows
- Bonzo-style testnet vault integration
- volatility-aware keeper service
- frontend keeper observability
- Hedera testnet deployment
- stronger vault accrual simulation
- mainnet-aligned Bonzo vault parameters
- richer analytics and attribution
- audit and production hardening
Within the Hedera Hello Future Apex Hackathon 2026, Sanca is aligned to:
Main track:DeFi & TokenizationBounty:Bonzo
Relevant references:
| Member | Role | Contact |
|---|---|---|
| RowNode | Fullstack | Github |
This project is licensed under the MIT License. See LICENSE.
Built for the Hedera ecosystem and the Hedera Apex Hackathon.