MatchingEngine
Implementation contract handling the logic behind Morpho's peer-to-peer matching, which essentially is a set of on-chain priority queues.
This contract handles all the logic related to the management of priority queues for supply and borrow orders submitted to the Morpho protocol. It allows to dynamically match incoming supply orders with already registered borrow orders, and vice-versa.
morpho-core-v1/MatchingEngine.sol at main Β· morphodao/morpho-core-v1
GitHub
Copy link