$ account centrifuge
Centrifuge Chain is a layer-1 blockchain parachain built on Substrate/Polkadot, designed for tokenizing and financing real-world assets. It implements a full DeFi ecosystem including loan origination and servicing, investment pools with tranche tokens, order-book based token swaps, liquidity pools with cross-chain EVM integration, oracle price feeds, and reward distribution mechanisms. The system also includes on-chain governance via collective councils and referenda, collator selection, and block rewards. The architecture follows the Substrate pallet pattern with over 40 custom pallets organized under `pallets/`, shared trait libraries in `libs/traits/`, domain types in `libs/types/`, and mock infrastructure in `libs/mocks/`. Three runtime configurations (altair, centrifuge, development) provide chain-specific parameters and autogenerated weight files for benchmarking. The node binary (`node/`) provides CLI entry points for chain operations, RPC endpoints, and EVM compatibility via Frontier. Key data flows include: pool creation and epoch management, loan lifecycle (create, borrow, repay, write-off), investment order placement and fulfillment, cross-chain message passing via Axelar router, and reward distribution based on staking or block production. External dependencies include the Substrate/Polkadot SDK, Axelar network for cross-chain messaging, and EVM smart contracts for liquidity pool integration. The codebase demonstrates strong engineering practices with extensive unit and integration tests, benchmarking infrastructure, storage migration framework, and trait-based abstraction layers. However, it carries complexity from supporting multiple runtimes and maintaining autogenerated weight files, with some deprecated components and hardcoded constants noted in the code.