Managing a crypto company's treasury today is a nightmare:
For Remote Teams:
- β Using personal wallets for business expenses = accounting hell
- β Reimbursements require 3+ manager signatures for every $50 expense
- β Tracking subscriptions across 10 different SaaS tools is impossible
- β No budget visibility until the month ends
For DAOs & Agencies:
- β Manual multisig approvals block operations (3-24 hour delays)
- β Payroll takes hours of manual work each month
- β No way to automate recurring vendor payments safely
- β Fragmented tools: Safe for treasury, spreadsheets for accounting, Discord for approvals
The Core Issue: A "Human Bottleneck" where every transaction requires manual approval, killing operational efficiency.
Entrust is a treasury automation platform that combines Safe Smart Accounts with AI-powered agents to eliminate the human bottleneck while maintaining full security and control.
Pitch Deck Link: https://drive.google.com/drive/folders/1pvlpjytDXb0HPG7Ljkg3yx8bK6YR1_HJ?usp=sharing
What Makes Us Different:
| Traditional Safe | Entrust |
|---|---|
| Every $50 expense needs 3 human signatures | AI agents auto-approve within limits |
| Manual tracking of expenses/reimbursements | Automated budget tracking per category |
| No visibility into spending until month-end | Real-time Envio-indexed cashflow insights |
| Risky full-privilege delegates | "Rich Treasury, Poor Agent" security model |
| Fragmented tooling | All-in-one OS: Budgets, Payroll, Subscriptions |
Our "Why": We built Entrust because we've lived this pain. Running a remote dev agency means juggling dozens of subscriptions across AWS, Notion, Figma, Linearβeach requiring manual payments. Reimbursements pile up because approving them takes more time than the expense itself. We're passionate about freeing teams from manual finance ops so they can focus on building products.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SAFE SMART ACCOUNT β
β (Your Organization) β
β Holds ALL Funds (ETH, USDC) β
β Requires Owner Signatures β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
β setDelegate(sessionKey, true)
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SESSION KEYS β
β (AI Agent Delegation Layer) β
β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β βInvoice Agent β βSubscription β β Payroll β β
β β β βAgent β βAgent β β
β β Limit: $500 β β Limit: $1000 β β Limit: $5000 β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β
β β’ Can call: payExpenseERC20(), payEmployeeERC20() β
β β’ Cannot call: withdraw(), destroy() β
β β’ Smart contract enforces spending caps β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Security Guarantees:
- Funds Never Leave the Safe Smart Account unless owner signs
- Session Keys are rate-limited by agent configuration
- Spending Caps enforced at both agent level and smart contract level
- Whitelist Requirements: Vendors must be registered, employees must be onboarded
- Full Audit Trail: Envio indexes every transaction for accounting
Frontend:
- Next.js 16 (App Router, Server Actions)
- TypeScript for type safety
- Tailwind CSS + shadcn/ui for modern UI
- Wagmi + Viem for Web3 wallet connections
- NextAuth.js for Google OAuth (seamless onboarding)
- Framer Motion for smooth animations
Backend:
- Next.js Server Actions for type-safe API calls
- Drizzle ORM with PostgreSQL (NeonDB)
- Vercel Blob Storage for receipt/invoice uploads
Blockchain:
- Network: Lisk Sepolia Testnet
- Smart Account: Safe Core SDK with session key delegation
- Tokens: ETH, USDC, mUSDC (multi-token treasury)
- Smart Contract: Solidity (Foundry) -
ExpenseLedger.sol- EntrustFactory: 0xaf23bf3798D70959ac2B68a6108A0Dcf7CAb5Aee
- Sepolia Blockscout Link: https://sepolia-blockscout.lisk.com/address/0xaf23bf3798D70959ac2B68a6108A0Dcf7CAb5Aee?tab=index
Indexing & Analytics:
- Envio HyperIndex for real-time blockchain event indexing
- Google Gemini 2.5 Flash (via Vercel AI SDK) for:
- Invoice OCR (extracts data from PDF receipts)
- Cashflow analysis (spending patterns, runway prediction)
- AI-powered CFO insights
// ExpenseLedger.sol
// Owner functions (require multisig approval)
function depositETH() payable external
function depositERC20(address token, uint256 amount) external
function withdrawETH(uint256 amount) external onlyOwner
function withdrawERC20(address token, uint256 amount) external onlyOwner
function registerVendor(address vendor, string name, string category) external onlyOwner
function registerEmployee(address employee, string name) external onlyOwner
function setDelegate(address delegate, bool authorized) external onlyOwner
// Delegated functions (AI agents with session keys)
function payExpenseERC20(address token, address vendor, uint256 amount, string note)
external onlyOwnerOrDelegate nonReentrant
function payEmployeeERC20(address token, address employee, uint256 amount, string note)
external onlyOwnerOrDelegate nonReentrantIndexed Entities:
Expense: Vendor and employee payments with token, amount, timestampTreasuryTransaction: Deposits and withdrawals for cashflow tracking
Transaction Types:
DEPOSIT- Adding funds to treasuryWITHDRAW- Removing funds from treasuryPAYMENT- Paying vendors/employeesDEPOSIT_ERC20_DIRECT- Direct token transfers
Use Case: Real-time accounting without relying on database stateβblockchain is the source of truth.
- Manage ETH, USDC, and mUSDC in one Safe Smart Account
- Real-time balance tracking
- Deposit/withdraw with full transparency
- Create budgets by category (Marketing, Operations, Software, etc.)
- Set spending limits per token
- Track spent vs. remaining with visual health indicators
- Role-based: Managers edit, Employees view-only
- Employees submit expenses with receipt uploads (Vercel Blob)
- Document Preview: View images, PDFs directly in-app
- Manager approval workflow
- AI agent processes approved payments automatically
- Budget category integration
- Automate SaaS subscriptions (AWS, Notion, Figma, etc.)
- Configure interval, amount, start/end dates
- Vendor Registration: Whitelist vendors before payments
- AI agent executes payments on schedule
- Budget tracking per subscription
- Register employees on-chain
- Set salary amounts per token
- AI agent processes salary payments
- Support for up to 10 employees (Autopilot plan)
- Invoice Agent: Process reimbursements under limit
- Subscription Agent: Handle recurring payments
- Payroll Agent: Execute salary payments
- Session key delegation with spending caps
- "Rich Treasury, Poor Agent" security model
- Invite team members via email
- Role-based access (Manager vs. Employee)
- Employee registration for payroll
- Wallet connection tracking
- Real-time transaction history from Envio
- Separate inflows (deposits) and outflows (payments)
- Per-token filtering (ETH, USDC, mUSDC)
- Transaction details with block explorer links
- Cashflow Analysis: Envio data analyzed for spending patterns
- Budget Health: Real-time monitoring with alerts
- Runway Prediction: Forecast financial sustainability
- Interactive Chat: Ask AI questions about your finances
- Managers: Full access (approve, configure, manage)
- Employees: Submit reimbursements, view budgets (read-only)
- Automatic role detection from session
We've designed a tiered subscription model that scales with team size:
| Plan | Price | Target | Features |
|---|---|---|---|
| Builders | Free | Bootstrapped teams | Smart treasury, 3 team members, manual approvals |
| Autopilot | $49/mo | Remote dev shops | AI agents, unlimited team, automated recurring payments, payroll (10 employees) |
| Treasury OS | $199/mo | Funded startups | Unlimited AI agents, advanced analytics, tax export, priority support |
Revenue Drivers:
- Monthly Subscriptions: Predictable recurring revenue
- Usage-Based Credits: 1 Credit System for AI operations (optional upsell)
- Enterprise Plans: Custom pricing for large organizations (unlimited agents + dedicated support)
Lisk Grant Program: During the Lisk Builder's Challenge, all Autopilot features are free for deployed contractsβdriving adoption while collecting user feedback.
We are committed to launching Entrust on Lisk Mainnet.
Why Lisk?
- Low gas fees essential for agentic finance (frequent transactions)
- Part of Optimism Superchain = ecosystem interoperability
- Developer-friendly with EVM compatibility
- Growing ecosystem of on-chain businesses
Mainnet Roadmap (Post-Hackathon):
- Smart contract audit (Certik or OpenZeppelin)
- Deploy ExpenseLedger on Lisk Mainnet
- Bridge USDC integration for stablecoin support
- Launch subscription tier for early adopters
- Onboard 10 pilot companies (remote dev agencies, DAOs)
Design Principles:
- Clarity over complexity: Financial data presented simply
- Role-aware dashboards: Managers see controls, employees see submissions
- Real-time feedback: Transaction status updates via Envio webhooks
- Mobile-responsive: Approve expenses on-the-go
Key UX Flows:
-
Employee Reimbursement (30 seconds):
- Upload receipt β Enter amount β Select category β Submit
- β Document preview shows uploaded file instantly
-
Manager Approval (1 click):
- View receipt β Verify amount β Click "Approve" β AI agent pays
-
Subscription Setup (2 minutes):
- Enter vendor wallet β Set amount/interval β Add budget category β Save
- β Agent handles payments automatically
1. "Rich Treasury, Poor Agent" Security Model
- Unlike delegating full wallet control, our agents have strictly limited permissions
- Smart contract enforces spending caps regardless of what AI "thinks"
- Even if session key is compromised, max loss = agent's spending limit
2. Multi-Agent Architecture
- Different agents for different purposes (Invoice, Subscription, Payroll)
- Each with own session key, spending limits, and permissions
- Prevents "single point of failure"
3. Envio-Powered Accounting
- Blockchain is source of truth (not database)
- Real-time cashflow without manual reconciliation
- Immutable audit trail for tax/compliance
4. Role-Based Access Built-In
- Not an afterthoughtβdesigned from ground up for teams
- Employees can submit/view, managers control
- Mirrors real company structures
entrust-monorepo/
βββ contracts/ # Solidity smart contracts (Foundry)
β βββ src/
β β βββ ExpenseLedger.sol # Main treasury contract
β β βββ MockUSDC.sol # ERC20 token for testing
β βββ script/
β βββ DeployFactory.s.sol # Deployment script
β
βββ indexer/ # Envio HyperIndex
β βββ schema.graphql # GraphQL schema
β βββ src/
β β βββ EventHandlers.ts # Event processing logic
β βββ config.yaml # Envio configuration
β
βββ web/ # Next.js frontend
βββ app/
β βββ actions/ # Server actions
β β βββ budgets.ts # Budget CRUD
β β βββ expenses.ts # Expense submissions
β β βββ subscriptions.ts # Recurring payments
β β βββ payroll.ts # Payroll processing
β β βββ ai.ts # AI-powered insights
β βββ dashboard/ # Manager dashboard
β βββ budgets/ # Budget management
β βββ reimbursements/ # Expense submissions
β βββ subscriptions/ # Recurring payments
β βββ payroll/ # Payroll management
β βββ team/ # Team management
β βββ chat/ # Activity feed + AI insights
βββ components/
β βββ dashboard/ # Dashboard components
β βββ ui/ # shadcn/ui components
β βββ ai-assistant-panel.tsx
β βββ cfo-insights-card.tsx
β βββ cashflow-ai-insights.tsx
βββ lib/
β βββ envio.ts # Envio GraphQL client
β βββ tokens.ts # Token configurations
β βββ smart-account.ts # Safe integration
β βββ session-key.ts # Session key management
βββ db/
βββ schema.ts # Drizzle ORM schema
Built for: Lisk Sepolia Testnet Innovation: AI Agents + Safe Smart Account Delegation Problem Solved: Human bottleneck in on-chain treasury management
Demo Highlights:
- Deploy a Safe Smart Account (treasury)
- Fund it with mUSDC (test token)
- Configure an Invoice Agent with $500 limit
- Submit an expense as an employee
- Approve it as a managerβAI agent pays automatically
- View real-time cashflow from Envio indexing
Code Links:
- π Smart Contract
- π Envio Schema
- π AI Agent Actions
- π Session Key Delegation
- Node.js 20+
- pnpm
- Rabby Wallet or other web3 wallet (Currently MetaMask wallet can't interact due to gas fee)
# Clone the repo
git clone https://github.com/Kimchiigu/entrust-monorepo.git
cd entrust-monorepo
# Install dependencies (web)
cd web
pnpm install
# Install dependencies (indexer)
cd ../indexer
pnpm installCreate .env.local in the web/ directory:
# Database
DATABASE_URL=postgresql://...
# NextAuth
NEXTAUTH_SECRET=your-secret-here
NEXTAUTH_URL=http://localhost:3000
# Google OAuth (for authentication)
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
# Google Generative AI (for AI insights)
GOOGLE_GENERATIVE_AI_API_KEY=your-api-key
# Vercel Blob (for file uploads)
BLOB_READ_WRITE_TOKEN=your-token-here
# WalletConnect (Reown App)
NEXT_PUBLIC_WALLET_CONNECT_ID=your-project-id
# Lisk Sepolia
NEXT_PUBLIC_CHAIN_ID=4202
NEXT_PUBLIC_RPC_URL=https://rpc.sepolia-testnet.lisk.comcd contracts
# Install dependencies
forge install
# Compile
forge build
# Deploy to Lisk Sepolia
forge script script/DeployFactory.s.sol:DeployFactory \
--rpc-url https://rpc.sepolia-testnet.lisk.com \
--broadcast \
-vvvcd indexer
# Generate types from schema
pnpm envio codegen
# Start development server
pnpm envio devcd web
# Run development server
pnpm devVisit http://localhost:3000 and sign in with Google.
- Smart contract security audit
- Deploy on Lisk Mainnet
- Launch subscription tier for early adopters
- Add USDC bridge integration
- Advanced policy engine (department-specific limits)
- Tax export generation (CSV/PDF for accountants)
- Paymaster integration (gasless transactions)
- Mobile app (iOS/Android)
- Multi-org support (enterprise)
- Advanced analytics (predictive spending)
- Plugin system (custom agent actions)
- API for third-party integrations
MIT License - see LICENSE for details.
- Lisk for the low-cost, high-speed blockchain
- Safe for industry-leading smart account infrastructure
- Envio for powerful indexing capabilities
- Vercel for the amazing AI SDK and hosting platform
- Google Gemini for the AI model powering our insights
Built with β€οΈ for the Lisk Builder's Challenge 2026
We're not just building a hackathon projectβwe're building the future of on-chain company operations.