update liquidation bot scripts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user