Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SoroSave Contracts

Soroban smart contracts for the SoroSave decentralized rotating savings protocol.

Overview

SoroSave enables trustless group savings (ajo/susu/chit fund) on the Stellar network via Soroban smart contracts.

Structure

contracts/sorosave/src/
├── lib.rs            # Contract entry + constructor
├── types.rs          # Data structures (GroupStatus, SavingsGroup, etc.)
├── errors.rs         # ContractError enum
├── storage.rs        # Storage helpers with TTL management
├── group.rs          # Group lifecycle (create, join, leave, start)
├── contribution.rs   # Contribution logic + token transfers
├── payout.rs         # Payout distribution
├── admin.rs          # Admin controls, disputes, emergency withdraw
└── test.rs           # Unit tests

Build

cargo build --target wasm32-unknown-unknown --release

Test

cargo test

License

MIT

About

SoroSave smart contracts — Soroban rotating savings groups

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages