@raac/rpc 1.1.0-beta.18 → 1.1.0-beta.19
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.
|
@@ -16,9 +16,6 @@ async function openVaultPosition(chainId, signer) {
|
|
|
16
16
|
// Get parameters to check vault opening fee
|
|
17
17
|
const parameters = await lendingPoolContract.parameters();
|
|
18
18
|
const vaultOpeningFee = parameters.vaultOpeningFee;
|
|
19
|
-
if (vaultOpeningFee === 0n) {
|
|
20
|
-
throw new Error("Vault opening fee is not set");
|
|
21
|
-
}
|
|
22
19
|
// Check if user has approved the fee
|
|
23
20
|
const userAddress = await signer.getAddress();
|
|
24
21
|
const allowance = await (0, checkAllowance_1.default)(chainId, "crvusd", userAddress, await lendingPoolContract.getAddress(), signer.provider);
|