π DoraHacks Aptos CtrlMove Hackathon Submission
Aptos Synapse is a comprehensive DeFi platform built on Aptos blockchain, featuring lending protocols, cross-chain bridges, token swaps, and advanced analytics.
- Lending & Borrowing: Secure over-collateralized lending with automated liquidation
- Cross-chain Bridge: Seamless asset bridging powered by Kana Labs
- Token Swaps: Integrated DEX functionality via Tapp.Exchange
- Analytics Dashboard: Real-time insights powered by Hyperion
- SBT Integration: Soul Bound Tokens for reputation and governance
- π Kana Labs: Cross-chain bridge infrastructure
- π Nodit: Aptos blockchain data and analytics
- π Tapp.Exchange: DEX aggregation and optimal swap routes
- π Hyperion: Advanced DeFi analytics and insights
aptos_synapse/
βββ contracts/ # Move smart contracts
β βββ aptos_synapse/
β βββ sources/
β β βββ main.move # Main lending protocol
β β βββ sbt.move # Soul Bound Token implementation
β βββ Move.toml
βββ frontend/ # Next.js frontend application
β βββ src/
β β βββ app/ # Next.js app router
β β βββ components/ # React components
β β β βββ WalletProvider.tsx
β β β βββ WalletButton.tsx
β β β βββ Bridge.tsx
β β β βββ Swap.tsx
β β β βββ Lending.tsx
β β β βββ Analytics.tsx
β β βββ lib/ # API integrations
β β βββ kana-labs.ts
β β βββ nodit.ts
β β βββ tapp-exchange.ts
β β βββ hyperion.ts
β βββ package.json
βββ scripts/ # Deployment and utility scripts
βββ vercel.json # Vercel deployment configuration
- Node.js 18+
- Aptos CLI
- Git
-
Clone the repository
git clone <repository-url> cd aptos_synapse
-
Install dependencies
cd frontend npm install -
Setup environment variables
cp .env.example .env.local # Edit .env.local with your configuration -
Deploy smart contracts
cd ../contracts/aptos_synapse aptos move publish --named-addresses aptos_synapse=default -
Start development server
cd ../../frontend npm run dev -
Open application Navigate to
http://localhost:3000
- Click "Connect Wallet" in the top right
- Select your preferred Aptos wallet
- Approve the connection
- Navigate to the Lending section
- Choose "Supply" or "Borrow"
- Select asset and enter amount
- Confirm transaction
- Go to Bridge section
- Select source and destination chains
- Enter amount to bridge
- Confirm bridge transaction
- Access Swap section
- Select input and output tokens
- Enter swap amount
- Execute swap
# Aptos Network
NEXT_PUBLIC_APTOS_NETWORK=testnet
NEXT_PUBLIC_APTOS_NODE_URL=https://fullnode.testnet.aptoslabs.com/v1
NEXT_PUBLIC_APTOS_FAUCET_URL=https://faucet.testnet.aptoslabs.com
# Smart Contracts
NEXT_PUBLIC_LENDING_CONTRACT_ADDRESS=0x...
NEXT_PUBLIC_SBT_CONTRACT_ADDRESS=0x...
# Sponsor APIs
NEXT_PUBLIC_KANA_LABS_API_URL=https://api.kanalabs.io/v1
NEXT_PUBLIC_NODIT_API_URL=https://aptos-testnet.nodit.io
NEXT_PUBLIC_TAPP_EXCHANGE_API_URL=https://api.tapp.exchange/v1
NEXT_PUBLIC_HYPERION_API_URL=https://api.hyperion.xyz/v1-
Connect to Vercel
npm i -g vercel vercel login
-
Deploy
vercel --prod
-
Set Environment Variables
- Go to Vercel dashboard
- Navigate to project settings
- Add environment variables from
.env.example
-
Build the application
cd frontend npm run build -
Deploy to your hosting provider Upload the
frontend/.nextdirectory
cd frontend
npm run testcd contracts/aptos_synapse
aptos move test- Purpose: Cross-chain asset bridging
- Features: Multi-chain support, optimal routing
- Implementation:
src/lib/kana-labs.ts,src/components/Bridge.tsx
- Purpose: Aptos blockchain data access
- Features: Account info, transaction history, gas estimation
- Implementation:
src/lib/nodit.ts
- Purpose: DEX aggregation and token swaps
- Features: Best price routing, slippage protection
- Implementation:
src/lib/tapp-exchange.ts,src/components/Swap.tsx
- Purpose: DeFi analytics and insights
- Features: Protocol metrics, user analytics, token data
- Implementation:
src/lib/hyperion.ts,src/components/Analytics.tsx
- Smart contracts use over-collateralization
- Automated liquidation mechanisms
- Secure wallet integration
- Input validation and sanitization
- Rate limiting on API calls
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
MIT License - see LICENSE file for details
Event: DoraHacks Aptos CtrlMove Hackathon
Category: DeFi Infrastructure
Team: Aptos Synapse
- Unified DeFi Hub: All-in-one platform for lending, bridging, and swapping
- Multi-Sponsor Integration: Leveraging 4 different sponsor technologies
- Cross-chain Compatibility: Seamless asset movement between chains
- Advanced Analytics: Real-time insights and metrics
- Soul Bound Tokens: Reputation and governance system
- Live Demo: [Deployed URL]
- Video Demo: [Video URL]
- Presentation: [Slides URL]
- GitHub: [Repository URL]
- Demo: [Live Demo URL]
- Documentation: [Docs URL]
Built with β€οΈ for the Aptos ecosystem