NexusFi is a next-generation decentralized application (dApp) designed to simplify and streamline the process of investing in multiple cryptocurrencies across various blockchains. With NexusFi, you can create custom index funds or choose from predefined funds, allowing you to diversify your portfolio and invest in assets like Ethereum, Bitcoin, and more, all in a single transaction.
We have abstracted away the lengthy process of investing in multiple tokens on different chains or forming an investment strategy to make money and diversify your portfolio. Want to buy Ethereum and Bitcoin at the same time? We got you covered.
NexusFi utilizes Near's chain signatures to provide users with a seamless multi-chain experience, enabling control over addresses on EVM, Bitcoin, and other blockchains directly from their Near account. This innovative approach eliminates the hassle of managing multiple wallets and transactions, empowering users with simplicity and efficiency.
Features:
- Predefined Index Funds: Users can invest in expertly curated funds that bundle multiple cryptocurrencies with predefined weights.
- Custom Index Funds (Coming Soon): Create your own investment strategy by selecting tokens and defining their proportions in your personalized index fund.
- Buy-In & Withdrawals: Buy into funds with stablecoins (e.g., USDC) and seamlessly withdraw assets either as underlying tokens or in USDC.
- Cross-Chain Asset Management: Powered by Near's chain signatures, NexusFi enables cross-chain interactions for a unified investment experience.
- Real-Time Asset Valuation: Utilizing Pyth Network's price feeds, NexusFi ensures accurate and up-to-date valuation of assets in your portfolio.
NexusFi reimagines crypto portfolio management, making it easy, efficient, and accessible for all users while leveraging Near's robust infrastructure to provide a secure and decentralized solution.
NexusFi is a decentralized application built to provide a seamless, cross-chain investment experience. Here's a breakdown of the technologies and architecture that bring it to life:
Smart Contract
The core of NexusFi is a Rust-based smart contract deployed on the NEAR blockchain. It utilizes:
- NEAR SDK for smart contract development, managing state, and interacting with users' NEAR accounts.
- Fungible Token Standards for handling USDC deposits and withdrawals.
- Pyth Network for fetching accurate, real-time price feeds of underlying assets (e.g., Bitcoin, Ethereum) to calculate asset value changes.
- Chain Signatures from NEAR for cross-chain interactions, enabling users to control assets on EVM-compatible chains and Bitcoin via their NEAR account.
Key Features:
- Index Fund Creation: The contract allows predefined and user-defined index funds with weighted distributions.
- Asset Allocation: Using price feeds, the smart contract calculates the amount of each underlying asset based on user investment in USDC.
- Balance Mapping: Maintains user balances for each underlying asset and tracks investments securely.
Frontend
The frontend is built with Next.js, Tailwind CSS, Shadcn, and Framer Motion, providing a user-friendly interface to:
- Browse predefined index funds.
- Visualize asset distributions and weights.
- Buy into funds using USDC on NEAR testnet.
- Manage balances and track portfolio performance.
For state management and blockchain interaction:
- NEAR Wallet Connection: Allows users to log in and interact with the dApp using their NEAR accounts.
- NEAR.js and NEAR Wallet Selector: Handle account and transaction management, ensuring a smooth user experience.
Cross-Chain Capabilities
To enable multi-chain functionality, NexusFi leverages:
- NEAR’s Chain Signatures: Allows control over assets on EVM-compatible blockchains and Bitcoin from a single NEAR account.
- Custom Bridge Logic (Coming Soon): Will enable direct asset transfers between NEAR and other blockchains, making investments more seamless.
Partner Technologies
- NEAR Blockchain: We primarily worked with Near and its chain signatures to enable users to invest in index funds, and control different accounts on EVM with one Near account.
Challenges
- Cross-Chain Interaction: Building a secure and efficient multi-chain mechanism requires meticulous planning and reliance on NEAR’s advanced features.