How Does a Smart Contract Determine the Fair Market Price for Collateral Liquidation?
The smart contract relies on a robust, decentralized oracle network to provide a reliable price feed. To prevent manipulation, it often uses a time-weighted average price (TWAP) or a composite index price from multiple sources.
The contract executes the liquidation based on this verified oracle price, ensuring the collateral is valued accurately at the time of sale. This protects both the borrower and the protocol.