Skip to content

Latest commit

 

History

112 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caér Finance

Project Demo

Go to site

Project Screenshot


Overview

Introduction to Caér Finance

Welcome to Caér Finance, a permissionless cross-chain lending and borrowing protocol seamlessly integrated with Chainlink CCIP and Chainlink Data Streams.

Caér addresses a key limitation in DeFi by enabling users to deposit collateral on one blockchain and borrow assets on another, leveraging Chainlink’s secure cross-chain infrastructure.michael This approach eliminates the need for centralized bridges or custodial intermediaries.

Key Features

Permissionless Cross-Chain Lending & Borrowing

Caér Finance allows decentralized lending and borrowing across multiple blockchain networks without intermediaries. Users can supply collateral on one chain and borrow assets on another, promoting financial inclusion and maintaining full custody over assets.

Secure Cross-Chain Messaging Powered by Chainlink CCIP

Utilizing Chainlink Cross-Chain Interoperability Protocol (CCIP), Caér ensures secure and atomic cross-chain transactions through a burn-and-mint model. This mechanism guarantees supply consistency and reduces systemic risk across blockchain environments.

Real-Time Collateral Valuation via Chainlink Data Streams

Integrating Chainlink Data Streams provides Caér with real-time price updates, enabling accurate loan-to-value (LTV) assessments and transparent risk management. These data feeds enhance user transparency and support future risk-based features.

Native Collateral Swap Mechanism

Caér includes a native collateral swap feature, allowing users to adjust collateral compositions without closing positions. Integrated with Chainlink Data Streams, this feature ensures swaps are executed at fair market values based on current pricing data.

Join Us

Caér Finance is built on Chainlink’s robust infrastructure, leveraging CCIP for secure cross-chain interoperability and Data Streams for real-time market data. Join us in building the future of cross-chain DeFi—where liquidity, security, and usability transcend single-chain limitations.

Explore how Caér can empower developers and users alike to unlock cross-chain capital efficiency in a permissionless ecosystem. Let’s build a more connected DeFi together.

Powered by Chainlink.


Problems and Solutions

In building a permissionless cross-chain lending protocol, we identified the most pressing challenges in multichain DeFi and designed focused solutions through our integration with Chainlink’s decentralized infrastructure.

Fragmented Liquidity Across Chains

Problem: DeFi users are often constrained by isolated liquidity pools on individual blockchains, limiting access to optimal borrowing or lending opportunities.

Caér Finance's Solution: Caér Finance solves this through secure cross-chain functionality powered by Chainlink CCIP, enabling users to deposit collateral on one chain and borrow on another without relying on centralized bridges or wrapped assets. This unlocks multichain capital access and improves capital efficiency across ecosystems.

Delayed Price Feeds

Problem: Traditional oracles often suffer from latency or low update frequency, resulting in outdated collateral pricing, miscalculated LTV ratios, and increased exposure to market volatility.

Caér Finance's Solution: By integrating Chainlink Data Streams, Caér accesses sub-second, real-time price data on-chain. This ensures up-to-date collateral valuations and dynamic loan tracking, empowering users with accurate, real-time position insights.

Closed and Restrictive Protocols Hinder Broader Participation

Problem: A significant number of lending platforms operate within closed ecosystems, relying on mechanisms such as whitelisting, centralized governance, or limited collateral support. These restrictions reduce accessibility, limit user autonomy, and compromise the principles of transparency and decentralization.

Caér Finance's Solution: Caér Finance is designed as a fully permissionless protocol, enabling any user to engage in lending or borrowing activities without the need for prior approval or reliance on centralized intermediaries. This open-access architecture fosters inclusivity, enhances transparency, and aligns with the core ethos of decentralized finance by supporting unrestricted global participation.

Collateral Management is Inflexible

Problem: Other lending protocols require users to exit positions to adjust their collateral, incurring costs and friction during portfolio adjustments.

Caér Finance's Solution: Caér introduces a native in-protocol collateral swap mechanism, allowing users to seamlessly change their collateral type without closing positions. This feature is supported by Chainlink Data Streams, ensuring accurate pricing during swaps and enabling more agile, responsive portfolio management.


Challenges

Challenges Faced by Caér Finance

Secure Cross-Chain Messaging Without Centralization

Challenge: Implementing cross-chain functionality in DeFi often relies on custodial bridges or wrapped assets, which introduce significant security risks and systemic vulnerabilities. Caér’s challenge was to deliver secure and verifiable cross-chain communication without compromising decentralization. By integrating Chainlink CCIP, Caér had to ensure not only the integrity of cross-chain token transfers but also the safe orchestration of protocol logic across multiple blockchain environments. This required careful handling of message validation, failure recovery, and trust minimization throughout the system.

Real-Time Price Delivery and On-Chain Integration

Challenge: Other lending protocols can function with delayed price updates, but in a cross-chain setting, real-time valuation is essential. Caér’s integration of Chainlink Data Streams introduces technical challenges related to on-chain data consumption, synchronization across chains, and oracle update frequency. Ensuring that these real-time data feeds are efficiently integrated, cost-effective, and robust against volatility or rapid price swings is critical to maintaining accurate collateral tracking and user confidence in borrowing limits.

Maintaining Protocol Resilience Against Oracle Manipulation

Challenge: Relying on a single source of truth can expose lending protocols to manipulation or failure. Even with Chainlink’s decentralized architecture, integrating Data Streams into core protocol operations requires rigorous safeguards, such as deviation thresholds, update throttling, and fallback pricing logic. Caér must ensure that its reliance on external data sources does not introduce fragility or open attack vectors, especially when these prices are used for critical operations like collateral adjustment or eligibility verification.

Operational Coordination Across Multiple Chain Environments

Challenge: Running a protocol that operates across chains using CCIP introduces operational and infrastructure complexity. Caér must account for chain-specific behavior, gas costs, execution timing, and differences in token standards. Coordinating token burns, message confirmations, and mints across heterogeneous networks while maintaining consistent user experience requires both technical precision and robust testing frameworks. Leveraging Chainlink CCIP’s capabilities demands rigorous adherence to cross-chain standards and careful monitoring of interchain message flow to ensure system integrity.

How We Achieve Cross-Chain Capability

Flowchart Screenshot Caér Finance achieves secure and verifiable cross-chain lending by leveraging Chainlink’s Cross-Chain Interoperability Protocol (CCIP) to facilitate communication and token transfer between blockchain networks. The protocol enables users to deposit collateral on one chain and borrow stablecoins on another without relying on centralized bridges or wrapped assets by utilizing a secure burn-and-mint mechanism.

In our current architecture, as illustrated:

  • On the Source Chain (Avalanche Fuji), users deposit collateral (e.g., MockWAVAX) into the Caér Liquidity Pool. The deposited tokens are handled by BasicTokenSender.sol, which interacts with the Chainlink CCIP Router. This Router prepares a cross-chain message, processes transaction fees (in LINK or AVAX), and initiates a burn operation of the deposited tokens, removing them from circulation and preventing supply duplication.

  • The burn-and-mint method, native to Chainlink CCIP’s token pool mechanism, ensures that tokens exist on only one chain at any time. The burn event is cryptographically verified and transmitted by Chainlink’s decentralized oracle network (DON), forming a secure proof of collateral transfer.

  • Once received on the Destination Chain (Arbitrum Sepolia), the corresponding CCIP Router invokes the LendingPool.sol contract. This contract verifies the message and proof, and accordingly credits the user with the right to borrow stablecoins (e.g., MockUSDC), which are minted or released from liquidity on the destination chain.

  • Both MockWAVAX and MockUSDC are continuously priced using Chainlink Data Streams, a low-latency oracle feed that ensures accurate and high-frequency pricing. These feeds are crucial for determining borrowing capacity, monitoring risk exposure, and enabling dynamic collateral swap logic within the protocol.

By combining CCIP and Data Streams, Caér Finance unlocks native cross-chain borrowing with high levels of security, precision, and capital efficiency without relying on wrapped tokens or centralized liquidity hubs. This positions Caér as a modular, interoperable DeFi primitive ready to scale across blockchain ecosystems.


Swap

Swap Screenshot Caér Finance incorporates a purpose-built collateral swap mechanism that enables users to modify their collateral composition directly within the protocol without exiting lending or borrowing positions. Inspired by the architecture of Automated Market Makers (AMM), the system is tightly integrated into the Caér Pool to facilitate real-time, on-chain token exchange with minimal friction.

1. Liquidity Provision and Pool Structure

Liquidity Providers (LPs) contribute token pairs such as Token A and Token B into the Caér Pool, which serves as the central liquidity reserve for swap operations. In return, LPs receive Pool Tokens, representing their proportional ownership and entitling them to a share of the accrued transaction fees from swaps.

The Caér Pool maintains segregated reserves for each token and continuously adjusts these balances as swaps are executed.

2. Swap Execution

Only users with active lending or borrowing positions are permitted to access the swap functionality. This requirement ensures that all swap operations are tied directly to collateral management, thereby improving capital efficiency and reducing unnecessary speculative activity.

When a user initiates a swap, such as swapping Token A for Token B, the swap logic references current reserve ratios and applies an AMM pricing formula (e.g., constant product model) to calculate the output amount. The system also integrates with Chainlink Data Streams to fetch real-time price references, ensuring fair execution and slippage protection.

3. Oracle Integration for Price Validation

To maintain accurate valuation of the swapped collateral, Caér utilizes Chainlink Oracles. These oracles deliver tamper-proof, real-time price feeds for all supported tokens, ensuring that each swap maintains alignment with market value. This is critical for maintaining healthy collateralization ratios and reducing systemic risk across lending positions.

4. Incentivization through Fees

Each swap transaction incurs a small liquidity fee, which is distributed among active LPs based on their share of the pool. This fee structure incentivizes continued liquidity provision and supports the long-term sustainability of the swap module.


Chainlink Integrations in Caér Finance Caér Finance leverages industry-leading oracle infrastructure from Chainlink to enable secure, real-time, and trust-minimized cross-chain lending. Two core Chainlink services, CCIP (Cross-Chain Interoperability Protocol) and Data Streams, form the foundation of Caér’s decentralized architecture.

  1. Chainlink CCIP: Secure Cross-Chain Messaging To support native cross-chain lending and borrowing, Caér integrates Chainlink CCIP, a generalized interoperability protocol that enables smart contracts on different chains to securely communicate and transfer data When a user deposits collateral on a source chain (e.g., Avalanche Fuji) and initiates a borrow on a destination chain (e.g., Arbitrum Sepolia), CCIP executes a burn-and-mint mechanism. The token is burned on the origin chain, and a CCIP Router relays a cryptographically verifiable message to the destination chain. Upon verification, equivalent value is minted or registered, enabling the borrow transaction without reliance on centralized bridges or wrapped assets.
  2. Chainlink Data Streams: Real-Time Price Feeds In addition to cross-chain messaging, Caér uses Chainlink Data Streams to power its real-time pricing and risk assessment infrastructure. Data Streams provide high-frequency, low-latency market data sourced from multiple institutional-grade providers and updated directly on-chain. This integration enables Caér to:

Monitor collateral valuation with sub-second latency Perform accurate borrowing limit calculations (e.g., LTV (Loan-to-Value)) Support collateral swap operations with live price validation Mitigate manipulation through multi-source aggregation Maintain transparency and determinism for all economic actions

By combining CCIP and Data Streams, Caér achieves a robust and composable infrastructure for permissionless lending across chains. The synergy of these technologies ensures users enjoy a seamless, secure, and real-time DeFi experience without sacrificing decentralization, speed, or integrity.


Caér Finance Contract Token Configuration

Lending Pools

  • Avalanche Fuji
    • Chain ID: 43113
    • Contracts:
      • Lending Pool: 0xe10e79324c133DA09426972c9401b503a7b48186
      • Factory: 0x694B5A70f83062308aa60ecf12074Bc8f694612d
      • Position: 0x9ee9F9158b872fe812C3F2204588dfc8b0FC4Eda
      • Block Explorer: https://testnet.snowtrace.io
    • Destination ID: 1

Token configuration

  • WETH

    • Addresses:
      • Ethereum Sepolia (11155111): 0x89d3acb10fc9f9bee444c05e1363e514e8a748da
      • Avalanche Fuji (43113): 0x63CFd5c58332c38d89B231feDB5922f5817DF180
      • Arbitrum Sepolia (421614): 0x07b1f448c3697d7379cd5fb1e57c898b5cef97cc
      • Base Sepolia (84532): 0x2769a1ce97cc2d21e3723ee986b29173de3fe4ac
    • Data Streams: 0x86d67c3D38D2bCeE722E601025C25a575021c6EA
  • WBTC

    • Addresses:
      • Ethereum Sepolia (11155111): 0xbe4d4858eb0849b038a0b5ecd38a7599d73bd923
      • Avalanche Fuji (43113): 0xa7A93C5F0691a5582BAB12C0dE7081C499aECE7f
      • Arbitrum Sepolia (421614): 0xc0f3bbe559e78f2bcebbb588bb561c3030a00eeb
      • Base Sepolia (84532): 0x548c22d340eb79915316f01e45b4133203a24e90
    • Data Streams: 0x31CF013A08c6Ac228C94551d535d5BAfE19c602a
  • WAVAX

    • Addresses:
      • Ethereum Sepolia (11155111): 0x4314bb3ad93206ee8f7f18dbcc49943366503bbf
      • Avalanche Fuji (43113): 0xA61Eb0D33B5d69DC0D0CE25058785796296b1FBd
      • Arbitrum Sepolia (421614): 0x0fe5fa3fb5e8815e66eeb50758f7a74d732445d9
      • Base Sepolia (84532): 0x322b3326b5f7de4abd7554f6a32217825770fd41
    • Data Streams: 0x5498BB86BC934c8D34FDA08E81D444153d0D06aD
  • USDC

    • Addresses:
      • Ethereum Sepolia (11155111): 0xab0c196dba12297e4c5b9a414013230a527b4a4b
      • Avalanche Fuji (43113): 0xC014F158EbADce5a8e31f634c0eb062Ce8CDaeFe
      • Arbitrum Sepolia (421614): 0x5df6ed08eec2fd5e41914d291c0cf48cd3564421
      • Base Sepolia (84532): 0xcba01c75d035ca98ffc7710dae710435ca53c03c
    • Data Streams: 0x97FE42a7E96640D932bbc0e1580c73E705A8EB73
  • USDT

    • Addresses:
      • Ethereum Sepolia (11155111): 0xe8add858b8a2f6e41d67008a58058010b9c0ba04
      • Avalanche Fuji (43113): 0x1E713E704336094585c3e8228d5A8d82684e4Fb0
      • Arbitrum Sepolia (421614): 0x716bdb0129ad528162477e2f426ba061adb41621
      • Base Sepolia (84532): 0x49f82b20894e6a1e66238fb50278ac60b57676ee
    • Data Streams: 0x7898AcCC83587C3C55116c5230C17a6Cd9C71bad

Integration with Caér Finance

These tokens are used for cross-chain lending, borrowing, and collateral swaps on testnet chains (Ethereum Sepolia, Avalanche Fuji, Arbitrum Sepolia, Base Sepolia). Chainlink price feeds ensure accurate, real-time valuation for collateral management, LTV calculations, and swaps, enabling a secure and efficient cross-chain DeFi ecosystem.

🔗 Links


License

MIT License © 2025 Caér Finance


About

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages