add buyCollateral script and add setTargetReserves function for lending contract
This commit is contained in:
@@ -37,6 +37,13 @@ async function main() {
|
||||
usdcPriceFeedAddress = "0x0153002d20B96532C639313c2d54c3dA09109309";
|
||||
console.log("✅ USDC地址 (Arbitrum):", usdcAddress);
|
||||
console.log("✅ Chainlink USDC/USD (Arbitrum):", usdcPriceFeedAddress);
|
||||
} else if (chainId === 97n) {
|
||||
// BNB 测试网
|
||||
console.log("\n检测到 BNB 测试网");
|
||||
usdcAddress = "0x939cf46F7A4d05da2a37213E7379a8b04528F590";
|
||||
usdcPriceFeedAddress = "0x90c069C4538adAc136E051052E14c1cD799C41B7";
|
||||
console.log("✅ USDC地址 (BSC Testnet):", usdcAddress);
|
||||
console.log("✅ Chainlink USDC/USD (BSC Testnet):", usdcPriceFeedAddress);
|
||||
} else {
|
||||
throw new Error(`不支持的网络: ${chainId}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user