Contract Specs
Cluster's architecture, highlighting its core contracts and summarizing user actions like supply, borrow, and repay across chains.
Last updated
Cluster's architecture, highlighting its core contracts and summarizing user actions like supply, borrow, and repay across chains.
Last updated
Cluster is built with a modular architecture combining Compound-style market mechanics with cross-chain execution powered by . The protocol uses a custom-built smart contract called Cross-Chain Lending Gateway (CLG) that manages secure and gas-efficient remote procedure calls between chains.
Cluster's lending logic relies on the Compound V2 model, including Comptroller
and Unitroller
, and employs a dynamic interest rate model called JumpRateModelV2
to optimize capital efficiency.
CLG (Cross-Chain Lending Gateway): Handles all cross-chain logic, translating user actions from one chain to another.
Comptroller and Unitroller: Core governance and risk management contracts adapted from Compound V2.
cTokens: Interest-bearing tokens representing user deposits.
JumpRateModelV2: Interest rate model that dynamically adjusts borrow and supply rates based on pool utilization.
Supply assets on Chain A and borrow on Chain B.
Repay a loan on Chain B from Chain A.
Redeem supplied assets across chains.
These actions are routed through the CLG and Stargate to maintain atomicity and security.