Skip to content
Logo

Contracts

Lucent is composed of global contracts and per-collateral branch contracts. The launch branch supports XLM collateral.

Global Contracts

ContractResponsibility
CollateralRegistryBranch registration, canonical redemption entrypoint, system debt views, redemption fee state, and global admin references.
StarUsdControllerProtocol-controlled mint and burn authority for starUSD through the starUSD Stellar Asset Contract.
BranchFactoryGoverned deployment and registration of collateral branches.
SecurityManagerEmergency pause controls for minting and high-risk actions.
InterestRouterRoutes non-Stability-Pool interest share to treasury and liquidity incentives.

XLM Branch Contracts

ContractResponsibility
AddressesRegistryImmutable branch references for XLM SAC, starUSD SAC/controller, price feed, pools, Trove modules, helpers, and launch parameters.
BranchManagerRisk parameters, controller permissions, timelocks, shutdown, urgent redemption, debt cap, min debt, fee floor, and Stability Pool yield split.
BorrowerOperationsUser-facing Trove lifecycle and delegated manager flows.
TroveManagerTrove accounting, interest application, liquidation, redistribution, batch accounting, zombie handling, and events.
TrovePositionProtocol-controlled transferable ownership registry for Troves. NFT compatibility is optional and not a core dependency.
SortedTrovesInterest-rate ordered structure for redemption priority. Final shape depends on Soroban resource profiling.
StabilityPoolstarUSD deposits, liquidation offset, XLM gains, and starUSD interest yield.
ActivePoolHolds active collateral and debt accounting for open Troves.
DefaultPoolHolds redistributed collateral and debt accounting.
CollSurplusPoolTracks collateral surplus and reserve flows.
XlmUsdPriceFeedXLM/USD oracle adapter with freshness, sanity, fallback, and shutdown rules.

Trust Boundaries

  • Users authorize their own operations with Soroban Address::require_auth.
  • Protocol permissions are explicit and stored in registry/config contracts.
  • StarUsdController mints only for registered protocol modules.
  • Emergency controls pause minting and high-risk actions but should not block repayment, close, liquidation, or redemption flows that preserve solvency.

Upgrade Model

Contracts are upgradeable through a proposed-upgrade flow with a 7-day timelock. An authorized admin proposes a new Wasm hash, the proposal is stored with a timestamp, and execution is allowed only after the timelock if the submitted hash matches the pending proposal.

The timelock gives users, integrators, and monitoring systems time to review proposed upgrades before activation.