add buyCollateral script and add setTargetReserves function for lending contract

This commit is contained in:
2026-01-08 11:30:31 +08:00
parent c8cb4dbecd
commit a18b9a42e4
19 changed files with 713 additions and 1221 deletions

View File

@@ -14,6 +14,7 @@ interface ILending {
event AbsorbCollateral(address indexed absorber, address indexed borrower, address indexed asset, uint256 collateralAbsorbed, uint256 usdValue);
event BuyCollateral(address indexed buyer, address indexed asset, uint256 baseAmount, uint256 collateralAmount);
event WithdrawReserves(address indexed to, uint256 amount);
event TargetReservesUpdated(uint104 targetReserves);
error Unauthorized();
error InsufficientBalance();