add buyCollateral script and add setTargetReserves function for lending contract
This commit is contained in:
@@ -33,6 +33,11 @@ async function main() {
|
||||
// BSC 主网
|
||||
USDC_ADDRESS = "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d";
|
||||
USDC_PRICE_FEED = "0x51597f405303C4377E36123cBc172b13269EA163"; // USDC/USD
|
||||
}
|
||||
else if (chainId === "97") {
|
||||
// BSC 测试网
|
||||
USDC_ADDRESS = "0x939cf46F7A4d05da2a37213E7379a8b04528F590";
|
||||
USDC_PRICE_FEED = "0x90c069C4538adAc136E051052E14c1cD799C41B7"; // USDC/USD
|
||||
} else {
|
||||
throw new Error(`不支持的网络: ${chainId}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user