📍 Page Location
URL: /dashboard/authenticated
📸 Visual Representation of the Page
Step 4: Act as Buyer - Pay Deposit
TRADER🔔 Notifications
My Contracts (Dual Role)
| Contract ID | My Role | Product | Status | Actions |
|---|---|---|---|---|
| contract-001 | BUYER | Wheat | PENDING DEPOSIT | |
| contract-002 | SUPPLIER | Rice | PENDING CONFIRMATION |
🎨 Detailed Visual Description
Contracts with trader as buyer show "Pay Deposit" button. Same buyer workflow applies.
Key Visual Elements:
- Buyer actions
- Deposit payment
- MetaMask support
⚙️ Backend Process
API Endpoint: POST /api/contracts/:contractId/deposit
Process Flow:
1. Validates trader is buyerEmail
2. Processes deposit payment
3. Updates contract statusDatabase Operations:
- Table:
database.contracts, database.wallets - Action: Process deposit as buyer
➡️ Next Action
Deposit paid, contract becomes active