Core Architecture
Last updated
Last updated
The system consists of two main contracts:
: Defines the storage layout
: Implements the core trading logic and access control
OpenZeppelin Upgradeable contracts for:
Access Control
Pausable functionality
Reentrancy protection
UUPS upgradeability pattern
Integration with Term Protocol contracts:
The contract uses a linked list implementation for efficient listing management, with separate queues for each RepoToken.