iTake - Food Delivery
iTake is a MetaDAO (vertical application) running on Horizon Protocol, demonstrating how real-world logistics can be coordinated through blockchain-backed escrow and guild-based organization. Users access iTake through the iTake mini-app within the Horizon mobile application.
Overviewβ
iTake connects three key participants through the Horizon mobile app:
- Restaurants - Food providers who operate as SubDAOs
- Customers - Users who order food via the Consumer Mini-App
- Drivers - Delivery performers who fulfill orders via the Worker Mini-App
DAO Structureβ
iTake implements Horizon's hierarchical DAO model:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β iTake MetaDAO β
β (Platform Layer) β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β β’ Platform governance and policies β β
β β β’ Cross-restaurant dispute resolution β β
β β β’ Driver pool coordination β β
β β β’ Platform-wide promotions β β
β β β’ Collects 1% MetaDAO fee β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Restaurant SubDAOs β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββ β
β β CafΓ© A β β Pizzeria B β β Tacos C β β ... β β
β β SubDAO β β SubDAO β β SubDAO β β β β
β β β β β β β β β β
β β Menu β β Menu β β Menu β β β β
β β Staff β β Staff β β Staff β β β β
β β Analytics β β Analytics β β Analytics β β β β
β β 2% SubDAO β β 2% SubDAO β β 2% SubDAO β β β β
β β fee β β fee β β fee β β β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ βββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
MetaDAO Responsibilitiesβ
The iTake MetaDAO handles platform-level functions:
| Function | Description |
|---|---|
| Governance | Sets platform policies, fee structures, quality standards |
| Dispute Resolution | Manages cross-restaurant and driver-customer disputes |
| Driver Pool | Coordinates the shared driver network across all restaurants |
| Onboarding | Approves new restaurant SubDAOs |
| Compliance | Ensures food safety and delivery standards |
SubDAO Responsibilitiesβ
Each restaurant operates as an independent SubDAO:
| Function | Description |
|---|---|
| Menu Management | Create, update, price menu items |
| Order Handling | Accept, prepare, mark orders ready |
| Staff Management | Manage kitchen staff roles and permissions |
| Analytics | Track orders, revenue, ratings, popular items |
| Delivery Zones | Configure delivery radius and fees |
Consumer Mini-Appβ
The Consumer Mini-App is accessed within the Horizon mobile application and provides the customer ordering experience.
Featuresβ
| Feature | Description |
|---|---|
| Restaurant Discovery | Browse nearby restaurants by cuisine, rating, or distance |
| Menu Browsing | View menus, item photos, descriptions, prices, and dietary info |
| Cart & Checkout | Add items, customize orders, specify delivery address |
| Real-Time Tracking | Follow order preparation and driver location live |
| Order History | View past orders, reorder favorites, track spending |
| Ratings & Reviews | Rate food quality, delivery speed, and driver service |
User Flowβ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Consumer Journey β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1. Browse 2. Customize 3. Checkout 4. Track
β β β β
βββββββββ βββββββββ βββββββββ βββββββββββ
βSelect ββββββββΆβBuild βββββββββΆβ Pay βββββββββΆβWatch β
βRestaurβ β Cart β β(Escrowβ β Live β
β ant β β β β Lock) β β Map β
βββββββββ βββββββββ βββββββββ βββββββββββ
β
ββββββββββββββββββββ
βΌ
5. Receive & Rate
β
βββββββββββββ
βConfirm β
βDelivery β
β& Rate β
βββββββββββββ
Key Screensβ
- Home: Featured restaurants, categories, search
- Restaurant: Menu categories, item grid, restaurant info
- Item Detail: Photos, description, customization options
- Cart: Order summary, delivery info, estimated time
- Checkout: Payment confirmation, escrow lock
- Tracking: Preparation status, driver location, ETA
- Order Complete: Rating prompts, reorder option
Worker Mini-App (Driver Mode)β
Drivers access the Worker Mini-App by switching to "Driver Mode" within the iTake section of the Horizon app.
Featuresβ
| Feature | Description |
|---|---|
| Mission Discovery | See available deliveries on an interactive map |
| Earnings Dashboard | Track daily/weekly earnings, completed deliveries |
| Route Navigation | Turn-by-turn directions to pickup and dropoff |
| Order Details | View items, special instructions, customer notes |
| Status Updates | Mark arrived, picked up, delivered |
| XP & Reputation | View level progress, ratings, achievements |
Driver Flowβ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Driver Journey β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1. Go Online 2. Accept 3. Pickup 4. Deliver
β β β β
βββββββββββ βββββββββββ βββββββββββ βββββββββββββββ
β See ββββββΆβ Claim βββββββΆβNavigate βββββββΆβNavigate to β
βAvailableβ β Mission β βto Rest. β β Customer β
βMissions β β β βMark β β Complete β
βββββββββββ βββββββββββ βPicked Upβ β Delivery β
βββββββββββ βββββββββββββββ
β
ββββββββββββββββββββ
βΌ
5. Get Paid
β
βββββββββββββββββ
β Escrow β
β Settles β
β Automatically β
βββββββββββββββββ
Mission Statesβ
| State | Description |
|---|---|
| Available | Visible on map, not yet claimed |
| Accepted | Driver claimed, navigating to restaurant |
| At Pickup | Driver at restaurant, waiting for food |
| Picked Up | Food in hand, navigating to customer |
| Delivered | Customer confirmed receipt |
| Completed | Payment settled, XP awarded |
Driver Earningsβ
Drivers receive the delivery fee minus platform fees:
| Component | Amount |
|---|---|
| Base Delivery Fee | Set by restaurant |
| Distance Bonus | Additional for longer deliveries |
| Tips | 100% go to driver |
| Platform Fees | β€10% (driver keeps β₯90%) |
Restaurant Dashboardβ
Restaurant operators access a web-based dashboard to manage their SubDAO.
Dashboard Sectionsβ
Ordersβ
- Incoming Orders: Accept or reject new orders
- In Preparation: Mark items as cooking/ready
- Ready for Pickup: Notify drivers, track handoffs
- Order History: Search, filter, export past orders
Menu Managementβ
- Categories: Organize menu into sections
- Items: Add/edit items with photos, pricing, availability
- Modifiers: Create add-ons, customizations, sizes
- Availability: Toggle items on/off, set stock limits
Analyticsβ
- Revenue: Daily, weekly, monthly revenue tracking
- Popular Items: Most ordered items, trending dishes
- Ratings: Average rating, recent reviews, feedback
- Delivery Times: Average prep time, delivery times
Staff (Guild Roles)β
- Owner: Full control, treasury access
- Manager: Order management, menu editing
- Kitchen: View orders, mark items ready
- Viewer: Read-only access to analytics
Settingsβ
- Restaurant Info: Name, description, photos, hours
- Delivery Zones: Geographic coverage, minimum orders
- Fees: Delivery fee structure, SubDAO fee percentage
- Integrations: POS, printer, notification settings
Payment & Fee Distributionβ
When a delivery completes, the smart contract automatically distributes funds:
Fee Breakdownβ
| Recipient | Percentage | Description |
|---|---|---|
| Driver | β₯90% | Guaranteed minimum of delivery fee |
| Protocol | 2.5% | Platform sustainability |
| Labs | 2.5% | R&D and development |
| Resolver | 2% | Dispute resolution pool |
| iTake (MetaDAO) | 1% | Platform operations |
| Restaurant (SubDAO) | 2% | Restaurant's share |
Example: β¬10 Delivery Feeβ
Driver: β¬9.00 (90%)
Protocol: β¬0.25 (2.5%)
Labs: β¬0.25 (2.5%)
Resolver: β¬0.20 (2%)
iTake: β¬0.10 (1%)
Restaurant: β¬0.20 (2%)
βββββββββββββββββββββββββ
Total Fees: β¬1.00 (10%)
Note: Food revenue goes directly to the restaurant. The breakdown above applies only to delivery fees.
Location & Verificationβ
iTake uses Horizon's geolocation features for secure delivery verification.
Geofence Verificationβ
| Checkpoint | Radius | Purpose |
|---|---|---|
| Restaurant Pickup | 75m | Confirm driver arrived at restaurant |
| Customer Dropoff | 75m | Confirm delivery completed |
| Live Tracking | Continuous | Real-time driver location (opt-in) |
Privacy Featuresβ
- Location Encryption: All location data encrypted at rest
- Auto-Purge: Location history deleted after 30 days
- Opt-In Tracking: Drivers choose to share real-time location
- Minimal Data: Only essential location data stored
Getting Startedβ
For Restaurantsβ
- Apply: Contact iTake MetaDAO to apply as a SubDAO
- Verification: Provide business documentation, food safety certs
- Onboarding: Set up restaurant profile, upload menu
- Configure: Set delivery zones, hours, fees
- Go Live: Start receiving orders
For Driversβ
- Requirements: Valid ID, clean driving record, smartphone
- Join: Apply through iTake MetaDAO or individual restaurants
- Verification: Complete background check (where required)
- Training: Complete onboarding tutorial in app
- Start Earning: Go online and accept deliveries
For Customersβ
- Download: Get the Horizon mobile app
- Navigate: Open the iTake mini-app
- Browse: Explore restaurants in your area
- Order: Build your cart and checkout
- Track: Watch your order in real-time
- Rate: Leave feedback for restaurant and driver
Technical Integrationβ
Creating a Delivery Missionβ
const order = await itakeClient.createOrder({
restaurantId: restaurant.subDAOAddress,
items: [
{ itemId: "pizza-margherita", quantity: 2 },
{ itemId: "tiramisu", quantity: 1 }
],
deliveryAddress: {
latitude: customer.lat,
longitude: customer.lng,
address: customer.formattedAddress,
},
paymentMethod: "usdc",
});
// Order creates a delivery mission automatically
// Mission is visible to drivers in the area
Restaurant Webhook Eventsβ
// Events restaurant systems can subscribe to
type RestaurantEvent =
| "order.created" // New order placed
| "order.cancelled" // Customer cancelled
| "driver.assigned" // Driver accepted mission
| "driver.arrived" // Driver at restaurant
| "order.pickedup" // Driver has food
| "order.delivered" // Delivery complete
| "payment.settled"; // Funds distributed
Architectureβ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Horizon Mobile App β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β iTake Mini-App (Vertical) β β
β β βββββββββββββββββββ ββββββββββββββββββββββββββββββββββββ β
β β β Consumer Mode β β Driver Mode ββ β
β β β (Ordering) β β (Deliveries) ββ β
β β βββββββββββββββββββ ββββββββββββββββββββββββββββββββββββ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββ
β Restaurant Dashboard β
β (Web App for SubDAO Management) β
ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββ
β Horizon Service API β
β iTake Module Β· Orders Β· Matching Engine β
ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββ
β Horizon Protocol β
β Missions Β· Escrow Β· Guilds Β· Reputation Β· Map β
ββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββ
β Base L2 β
β Smart Contracts Β· DeliveryEscrow Β· USDC β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
XP & Progressionβ
Driver XP Rewardsβ
| Action | XP | Notes |
|---|---|---|
| Complete delivery | 12 XP | Base reward |
| 5-star rating | +5 XP | Bonus for excellence |
| Long distance (>5km) | +5 XP | Distance bonus |
| Streak bonus | +4-20 XP | Consecutive day multiplier |
Driver Levelsβ
| Level | XP Required | Benefits |
|---|---|---|
| Newcomer | 0 | Basic access |
| Driver | 300 | Verified badge |
| Pro | 1,500 | Priority queue |
| Expert | 5,000 | Premium missions |
| Master | 15,000 | Higher earnings |
Resourcesβ
Note: iTake is one of several verticals (mini-apps) that can run on the Horizon Protocol. Each vertical operates as a MetaDAO with its own SubDAOs. Other examples include ridesDAO for ride-sharing and BuildDao for construction.