The interface and collateral rules needed to describe the same position.
A lending application spans more than its transaction screen. Deposits, borrowing, collateral and liquidation logic live in the protocol, while the user needs a clear representation of the resulting position. Cross-chain operation adds dependencies between networks and services.
The engineering task was to connect those layers. A position shown in the interface needed to correspond to the contract state and the information used by the risk service.


