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

@@ -1,33 +1,44 @@
{
"421614": {
"lendingFactory": "0xB69Dcea8F67d166Ad44650A2281f132689E524f2",
"lendingPriceFeedProxy": "0xE82c7cB9CfA42D6eb7e443956b78f8290249c316",
"lendingPriceFeed": "0xE82c7cB9CfA42D6eb7e443956b78f8290249c316",
"lendingPriceFeedImpl": "0xa51409ad5B8Fa77aB7ab8221a5bD76fdF7077E08",
"configuratorProxy": "0x488409CE9A3Fcd8EbD373dCb7e025cF8AB96fcdc",
"configuratorImpl": "0xB6c6A171C63Bd15B42f28C3207eb697F3c4d4606",
"lendingImpl": "0xdE3ddDBB2fee645EEc14f90cbe6890eBaa249b6e",
"usdcAddress": "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",
"usdcPriceFeed": "0x0153002d20B96532C639313c2d54c3dA09109309",
"deployTimestamp": "2025-12-26T04:16:38.113Z",
"97": {
"lendingFactory": "0x41857cc92a74fa5FB776e5D7091dD79faaaA973C",
"lendingPriceFeedProxy": "0x13bD017E5837b5451447508ebd4Fe65A2B1d4f30",
"lendingPriceFeed": "0x13bD017E5837b5451447508ebd4Fe65A2B1d4f30",
"lendingPriceFeedImpl": "0xff09A4EBC7F871b8B2CdCfE4c94e30E46DE559d5",
"configuratorProxy": "0xB9676f3482D332210C5c630Fa265c92171958F92",
"configuratorImpl": "0xF553843cb7F35378Fd4020d2DFceb90BfD760552",
"lendingImpl": "0x5336FE1bC5c7c1dE35CB053f2f649EA9D4dA3E5F",
"usdcAddress": "0x939cf46F7A4d05da2a37213E7379a8b04528F590",
"usdcPriceFeed": "0x90c069C4538adAc136E051052E14c1cD799C41B7",
"deployTimestamp": "2026-01-07T03:58:01.816Z",
"deployer": "0xa013422A5918CD099C63c8CC35283EACa99a705d",
"lendingProxy": "0xCb4E7B1069F6C26A1c27523ce4c8dfD884552d1D",
"lendingProxy": "0x1E60013A6eb8966a1b59BC31cE0D07054E591eE7",
"collateralAssets": [
{
"name": "YT Token A",
"symbol": "YT-A",
"address": "0x97204190B35D9895a7a47aa7BaC61ac08De3cF05"
"address": "0x0cA35994F033685E7a57ef9bc5d00dd3cf927330"
},
{
"name": "YT Token B",
"symbol": "YT-B",
"address": "0x181ef4011c35C4a2Fda08eBC5Cf509Ef58E553fF"
"address": "0x333805C9EE75f59Aa2Cc79DfDe2499F920c7b408"
},
{
"name": "YT Token C",
"symbol": "YT-C",
"address": "0xE9A5b9f3a2Eda4358f81d4E2eF4f3280A664e5B0"
"address": "0x6DF0ED6f0345F601A206974973dE9fC970598587"
}
]
],
"configTimestamp": "2026-01-07T03:58:41.420Z",
"upgradeHistory": [
{
"timestamp": "2026-01-08T03:26:13.317Z",
"contract": "Lending",
"oldImplementation": "0xe443B92e052e72C39a7833cD723276f8e337144A",
"newImplementation": "0x5336FE1bC5c7c1dE35CB053f2f649EA9D4dA3E5F",
"upgrader": "0xa013422A5918CD099C63c8CC35283EACa99a705d"
}
],
"lendingUpgradeTimestamp": "2026-01-08T03:26:13.317Z"
}
}