Architecture & UUPS
Cetra's smart contracts are heavily optimized for longevity and modularity. The Pool.sol contract acts as the central hub connecting all logic.
Universal Upgradeable Proxy Standard (UUPS)
We deploy using OpenZeppelin's UUPS Upgradeable pattern.
What this means: The protocol is deployed using a transparent proxy architecture. Users always map to the single
Proxycontract address, which holds all of the protocol's state and assets. The proxy delegates logic to a separateImplementationcontract.Why it matters: If a bug is discovered or an enhancement is built (such as upgrading logic to V2.5), developers can deploy a new
Implementationcontract and point the Proxy to it. User funds never need to be migrated, and contracts never need to be reset.
The Engine Room
The current V2 architecture splits logic across multiple focused files:
Pool.sol(The primary user entry point handlingsupply(),withdraw(),borrow(),repay()).InterestRateModel.sol(Calculates the liquidity rates).DToken.sol/DebtToken.sol(On-chain accounting).PriceOracles(Providing absolute dollar value for risk calculations).
Last updated
Was this helpful?
