Inspiration
SWAN was inspired by the growing need for intelligent automation in decentralized finance (DeFi). We recognized that while DeFi offers tremendous opportunities, it can be complex and time-consuming for users to monitor markets, execute trades, and manage their portfolios efficiently. The vision was to create an AI-powered agent that could handle these tasks autonomously while maintaining security and user control.
What it does
SWAN is a sophisticated DeFi Autonomous Agent, offering: Intelligent Trading
- Automated token swaps using advanced routing algorithms
- Smart price discovery across multiple DEXs
- Real-time market analysis and trading opportunities Portfolio Management
- Comprehensive portfolio tracking and analytics
- Liquidity pool management (coming soon)
- Staking (coming soon) Social Integration
- Twitter integration for market sentiment analysis
- Automated trading based on social signals
- Tweet analysis for token discovery
- Posting on Social platforms like Twitter Advanced Features
- Scheduled automated actions
- Long-term memory powered by IPFS
How we built it
SWAN was built using a modern tech stack:
- Next.js 15.1.3 for the web interface
- React 19 for UI components
- Prisma for database management
- SWR for data fetching and caching
- Next-Auth for authentication
Blockchain Integration
- NEAR blockchain integration via near-api-jss
- DEX integration - @ref-finance/ref-sdk
- Indexed Data - NEARBLOCKS, DexScreener
AI/ML Components
- OPENAI (gpt-4o, gpt-4o-mini), CLAUDE (sonnet-3.5)
Challenges we ran into
Technical Complexity
- Ensuring secure and efficient wallet interactions
- Integrating with ref finace while making sure all edge cases are handled
- Building reliable scheduled/automated trading systems
User Experience
- Integrating with multiple platforms to ensure reliable price discovery mechanisms
- Creating an intuitive interface for managing autonomous actions
Accomplishments that we're proud of
We are happy to finally complete the product development in the hackathon period. Regardless of the results, the best part we are proud of is, that this is the product we will ourselves use to automate our trading life and make things smoother. So we believe, similar to us, many traders would also require a similar platform to ease their hectic life.
What's next for SWAN | Autonomous Trading Agent
- Advanced trading strategy customization
- Extended social media integration
- Cross-chain support by integrating Aurora and Near intents
- Integration with more DeFi protocols
- Enhanced portfolio management tools
Built With
- dexscreener
- near
- next.js
- openai
Log in or sign up for Devpost to join the conversation.