-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
54 lines (52 loc) · 1.13 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
const {
mintAUSD,
burnAUSD,
mintUSDT,
mintWETH,
approveWETH,
approveUSDT,
setAUSD,
usdtVault,
wethVault,
usdtDeposit,
wethDeposit,
governAUSD,
transferAUSD,
setWETH,
setReserve,
setFeedAddress,
pricetoWei,
getCollateralPrice,
ReBalanceCollateral,
validatePeg,
getAusdPrice,
} = require("./EthersJS/Governance.js");
async function test() {
try {
// await mintAUSD(1000000);
// // await burnAUSD(50);
// await mintUSDT(10000);
// await mintWETH(10000);
// await approveWETH(200000),
// await approveUSDT(200000),
// await setAUSD();
// await governAUSD();
// await transferAUSD(500000);
// await usdtVault();
// await wethVault();
// await usdtDeposit(0, 10);
// await wethDeposit(1, 20);
// await setWETH();
// await setReserve();
// await setFeedAddress();
await pricetoWei();
await getCollateralPrice();
// await ReBalanceCollateral();
await validatePeg();
const ausdPrice = await getAusdPrice();
console.log("AUSD Price:", ausdPrice);
} catch (error) {
console.error("Error during execution:", error);
}
}
test();