๐คฉBecome a Liquidator
// SPDX-License-Identifier: BUSL-1.1
function liquidateUser(uint256 user) external {
// Get user liquidation info and check if user is solvent or not
// Give user rebate
// Change storage
// Process fees
// Send msg.sender funds and call receiveLiquidation();
// Burn debtChange amount of CASH to veryify
}// SPDX-License-Identifier: BUSL-1.1
struct LiquidationInfo {
bool solvent;
uint256 borrowChange;
uint256 assetReward;
uint256 protocolFee;
uint256 rebate;
}Last updated