@raac/rpc 1.1.0-beta.39 → 1.1.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"raacnft": {
|
|
77
77
|
"id": "raacnft",
|
|
78
78
|
"name": "RAAC NFT",
|
|
79
|
-
"contract": "
|
|
79
|
+
"contract": "0x9E545E3C0baAB3E08CdfD552C960A1050f373042"
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"assets": {
|
|
@@ -134,13 +134,13 @@
|
|
|
134
134
|
"raacnftadapter": {
|
|
135
135
|
"id": "raacnftadapter",
|
|
136
136
|
"name": "RAAC NFT Adapter",
|
|
137
|
-
"contract": "
|
|
137
|
+
"contract": "0x1613beB3B2C4f22Ee086B2b38C1476A3cE7f78E8",
|
|
138
138
|
"type": "ERC721"
|
|
139
139
|
},
|
|
140
140
|
"rwaindextokenadapter": {
|
|
141
141
|
"id": "rwaindextokenadapter",
|
|
142
142
|
"name": "RWA Index Token",
|
|
143
|
-
"contract": "
|
|
143
|
+
"contract": "0xa82fF9aFd8f496c3d6ac40E2a0F282E47488CFc9",
|
|
144
144
|
"type": "ERC20"
|
|
145
145
|
}
|
|
146
146
|
},
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"raacnftadapter": {
|
|
149
149
|
"id": "raacnftadapter",
|
|
150
150
|
"name": "RAAC NFT Adapter",
|
|
151
|
-
"contract": "
|
|
151
|
+
"contract": "0x95401dc811bb5740090279Ba06cfA8fcF6113778",
|
|
152
152
|
"type": "ERC721"
|
|
153
153
|
},
|
|
154
154
|
"crvusdadapter": {
|
|
@@ -4,12 +4,11 @@ const _helpers_1 = require("./_helpers");
|
|
|
4
4
|
async function getParameters(chainId, provider) {
|
|
5
5
|
try {
|
|
6
6
|
const lendingPoolContract = await (0, _helpers_1.getLendingPoolContract)(chainId, provider);
|
|
7
|
-
const [canPaybackDebt, withdrawalsPaused, liquidationThreshold,
|
|
7
|
+
const [canPaybackDebt, withdrawalsPaused, liquidationThreshold, liquidationGracePeriod, insuranceFee, depositFee, liquidityBufferRatio, supplyCap, borrowCap, withdrawTimelockDuration, vaultOpeningFee, borrowThreshold, withdrawTimelockDelay] = await lendingPoolContract.parameters();
|
|
8
8
|
const parameters = {
|
|
9
9
|
canPaybackDebt,
|
|
10
10
|
withdrawalsPaused,
|
|
11
11
|
liquidationThreshold,
|
|
12
|
-
healthFactorLiquidationThreshold,
|
|
13
12
|
liquidationGracePeriod,
|
|
14
13
|
insuranceFee,
|
|
15
14
|
depositFee,
|
|
@@ -18,6 +17,8 @@ async function getParameters(chainId, provider) {
|
|
|
18
17
|
borrowCap,
|
|
19
18
|
withdrawTimelockDuration,
|
|
20
19
|
vaultOpeningFee,
|
|
20
|
+
borrowThreshold,
|
|
21
|
+
withdrawTimelockDelay
|
|
21
22
|
};
|
|
22
23
|
return parameters;
|
|
23
24
|
}
|
package/dist/scripts/index.js
CHANGED
|
@@ -38,6 +38,9 @@ async function setup() {
|
|
|
38
38
|
rpc.address = signer.address;
|
|
39
39
|
rpc.provider = provider;
|
|
40
40
|
rpc.chainId = chainId;
|
|
41
|
+
const FeeCollectorAddress = (0, contracts_1.getContractAddress)(chainId, "feecollector");
|
|
42
|
+
const FeeCollectorABI = (0, artifacts_1.getABI)("feecollector");
|
|
43
|
+
const FeeCollectorContract = new ethers_1.ethers.Contract(FeeCollectorAddress, FeeCollectorABI, signer);
|
|
41
44
|
// // // send myself some CRVUSD
|
|
42
45
|
// await rpc.wallet.assets.mintAsset(
|
|
43
46
|
// chainId,
|
|
@@ -4,7 +4,6 @@ declare function getParameters(chainId: ChainId, provider: Provider): Promise<{
|
|
|
4
4
|
canPaybackDebt: boolean;
|
|
5
5
|
withdrawalsPaused: boolean;
|
|
6
6
|
liquidationThreshold: bigint;
|
|
7
|
-
healthFactorLiquidationThreshold: bigint;
|
|
8
7
|
liquidationGracePeriod: bigint;
|
|
9
8
|
insuranceFee: bigint;
|
|
10
9
|
depositFee: bigint;
|
|
@@ -13,5 +12,7 @@ declare function getParameters(chainId: ChainId, provider: Provider): Promise<{
|
|
|
13
12
|
borrowCap: bigint;
|
|
14
13
|
withdrawTimelockDuration: bigint;
|
|
15
14
|
vaultOpeningFee: bigint;
|
|
15
|
+
borrowThreshold: bigint;
|
|
16
|
+
withdrawTimelockDelay: bigint | boolean;
|
|
16
17
|
}>;
|
|
17
18
|
export default getParameters;
|