update liquidation bot scripts

This commit is contained in:
2026-03-05 10:48:08 +08:00
parent e39529984d
commit e05762aa46
23 changed files with 436 additions and 49 deletions

View File

@@ -91,13 +91,13 @@ async function main() {
console.log("\n添加 USDC 到白名单...");
const usdcParams = {
weight: 1000, // 1000/10000 = 10%
maxUsdyAmount: ethers.parseUnits("30000000", 6), // 3000万 USDC
maxUsdyAmount: ethers.parseUnits("30000000", 18), // 3000万 USDC
isStable: true // USDC是稳定币
};
const usdcTx = await vault.setWhitelistedToken(
usdcAddress,
6, // Todo USDC在Arbitrum测试网是6位精度
18, // USDC的精度是18
usdcParams.weight,
usdcParams.maxUsdyAmount,
usdcParams.isStable