How does a borrowing smart contract know to trigger a liquidation?
Say you put up a collateral of 1 ETH on Aave and borrow 2300 USDC right now. And then ETH drops and you get liquidated, how does the contract know to liquidate you? Is the exchange rate of ETH/USDC stored somewhere on the blockchain? If not, how does it work?
submitted by /u/trippyreading
[link] [comments]