Skip to content

AlexScherbatyuk/chainlink-decup-protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeCup Protocol 🍵

Decentralized Cup of Assets - Revolutionizing Multi-Asset Trading Across Chains

A revolutionary Web3 protocol that enables seamless cross-chain trading of multi-asset bundles through NFT representation, powered by Chainlink CCIP and built with Next.js frontend and Foundry smart contracts.

🚀 Main Ideas

1. Chainlink CCIP Integration

  • Leverages Chainlink Cross-Chain Interoperability Protocol (CCIP) for secure and reliable cross-chain communication
  • Enables seamless asset transfers and trading across multiple blockchain networks
  • Provides enterprise-grade security and reliability for cross-chain operations

2. Decentralized Cup of Assets (DeCup)

  • Multi-Asset NFTs: Each DeCup NFT represents a bundle of multiple assets (native cryptocurrency + various ERC20 tokens)
  • Single Transaction Simplicity: Buy or sell entire portfolios of diverse assets in one transaction
  • Cross-Chain Compatibility: Trade asset bundles across different blockchain networks seamlessly
  • Collateralized NFTs: Each NFT is backed by real assets deposited as collateral

3. Unified Cross-Chain Trading

  • One-Click Portfolio Trading: Execute complex multi-asset trades with a single transaction
  • Cross-Chain Arbitrage: Take advantage of price differences across different networks
  • Automated Asset Management: Smart contracts handle the complexity of multi-chain asset management

🎯 Problems Solved

The DeCup Protocol addresses critical pain points that the Web3 community faces today:

1. Multiple Transaction Complexity

  • ❌ Traditional Problem: Buying/selling multiple assets typically requires separate transactions for each asset
  • ✅ DeCup Solution: Bundle multiple assets into a single NFT, enabling one-transaction portfolio management
  • 💡 Benefit: Reduced complexity, lower gas costs, and improved user experience

2. Cross-Chain Fee Management

  • ❌ Traditional Problem: Users must pre-transfer funds to different chains, paying bridge fees and managing gas tokens on each network
  • ✅ DeCup Solution: Pay for everything on the target blockchain - no need for complex cross-chain fund preparation
  • 💡 Benefit: Simplified fee structure and eliminated need for native tokens on multiple chains

3. Portfolio Fragmentation

  • ❌ Traditional Problem: Crypto portfolios are scattered across multiple chains and protocols
  • ✅ DeCup Solution: Consolidate diverse assets into tradeable NFT bundles
  • 💡 Benefit: Better portfolio visibility and simplified asset management

4. Cross-Chain Liquidity Silos

  • ❌ Traditional Problem: Liquidity is trapped on individual chains, limiting trading opportunities
  • ✅ DeCup Solution: Connect liquidity across chains through CCIP-powered cross-chain trading
  • 💡 Benefit: Access to global liquidity pools and better price discovery

5. Multi-Step Trading Processes

  • ❌ Traditional Problem: Complex workflows requiring multiple approvals, swaps, and bridge transactions
  • ✅ DeCup Solution: Streamlined process with smart contract automation handling complexity
  • 💡 Benefit: Reduced friction and lower probability of transaction failures

🏗️ Architecture

Smart Contracts

  • DeCup.sol: Core NFT contract managing asset bundles and collateral
  • DeCupManager.sol: Marketplace contract handling cross-chain sales and CCIP integration
  • Chainlink Price Feeds: Real-time asset pricing for accurate valuations
  • CCIP Integration: Secure cross-chain message passing and asset transfers

Frontend

  • Next.js Application: Modern, responsive user interface
  • Web3 Integration: Seamless wallet connectivity and transaction management
  • Multi-Chain Support: Unified interface for multiple blockchain networks

🔧 Key Features

  • 🔗 Cross-Chain Trading: Buy/sell asset bundles across different blockchains
  • 📦 Multi-Asset Bundles: Package diverse cryptocurrencies into single tradeable units
  • 💰 Dynamic Pricing: Chainlink Price Feeds ensure accurate, real-time valuations
  • 🔒 Secure Collateralization: Assets are safely locked in smart contracts
  • ⚡ Single Transaction: Complex multi-asset operations in one transaction
  • 🌐 Universal Payment: Pay with any supported asset on any supported chain
  • 📊 Portfolio NFTs: Visual representation of asset bundles as tradeable NFTs

🎉 Benefits for Users

  • Simplified Trading: No more juggling multiple transactions and chain-specific tokens
  • Cost Efficiency: Reduced gas fees through transaction batching and optimized routing
  • Enhanced Liquidity: Access to cross-chain liquidity pools and trading opportunities
  • Portfolio Management: Easy visualization and management of diverse crypto holdings
  • Arbitrage Opportunities: Exploit price differences across chains with minimal friction
  • Future-Proof: Built on enterprise-grade infrastructure (Chainlink) for long-term reliability

📁 Project Structure

├── frontend/          # Next.js frontend application
└── contracts/         # Foundry smart contracts
    ├── src/          # Smart contract source files
    ├── test/         # Contract tests
    └── script/       # Deployment scripts

🚀 Setup & Documentation

Quick Start

Follow the detailed setup instructions in each component directory:

Development Workflow

  1. Smart Contracts: Navigate to /contracts/ and follow the setup guide for deploying DeCup and DeCupManager contracts
  2. Frontend Application: Navigate to /frontend/ and follow the setup guide for running the Next.js application
  3. Integration: Configure the frontend to connect with your deployed smart contracts

DeCup Protocol - Making multi-asset, cross-chain trading as simple as brewing a cup of tea

About

The Decentralized Cup of Assets (DeCup) is a Web3 protocol that enables seamless cross-chain trading of multi-asset bundles represented as NFTs, powered by Chainlink CCIP. It simplifies portfolio management, reduces transaction complexity, and connects liquidity across blockchains, addressing key Web3 challenges.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors