Skip to content

sorosave-protocol/contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages