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

@@ -209,6 +209,19 @@
"name": "SupplyCollateral",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint104",
"name": "targetReserves",
"type": "uint104"
}
],
"name": "TargetReservesUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [

View File

@@ -365,6 +365,19 @@
"name": "SupplyCollateral",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint104",
"name": "targetReserves",
"type": "uint104"
}
],
"name": "TargetReservesUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
@@ -1116,6 +1129,19 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint104",
"name": "newTargetReserves",
"type": "uint104"
}
],
"name": "setTargetReserves",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "storeFrontPriceFactor",