虛擬通貨流動吧 Superfluid Virtual Currency Community
payable is a modifier
Alice notices that Bob is below the required collateralization ratio — presumably, by monitoring contract state or using Compound’s convenient liquidateBorrowAllowed function — and calling liquidateBorrow on Compound’s USDC market contract, triggering the liquidation process.
1. Compound first pays Bob any outstanding interest Bob has accrued on his collateral (which, after all, might put him over the require collateralization ratio)
2. Compound verifies that Bob is indeed in default using the market price from their oracles
3. Compound transfers the required amount of lent asset (USDC) from Alice to the cUSDC market contract. In doing so, Alice is rewarded with Bob’s ETH collateral at a fixed discount to market price (currently, 5%). The ETH collateral is returned as cETH, allowing the liquidator to either keep earning interest on the borrower’s ETH, or redeem the cETH for ETH on Compound. In this scenario, A
5% 其實也滿暴力得的,看一下 debank 數據,假設本金 1000 美金,每個月都有 10 次清算機會,也都有搶贏其他機器人,年化率 300 % 恐怖牙!!!(假設而已,應該沒這麼容易搶,還要再研究研究)