Skip to content

Commit

Permalink
Integration tests: skipped correct test, added userDepositLimit to mi…
Browse files Browse the repository at this point in the history
…ssing vaultConfigs
  • Loading branch information
DavitMkhitaryan committed Dec 20, 2024
1 parent 8a2422b commit 3c1d88f
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ describe("Vault User Operations: Direct Deposit Tests", () => {

const vaultConfig = {
depositLimit: new BN(1000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(0),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -948,6 +949,7 @@ describe("Vault User Operations: Direct Deposit Tests", () => {

const vaultConfig = {
depositLimit: new BN(100000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(100000000),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -1109,6 +1111,7 @@ describe("Vault User Operations: Direct Deposit Tests", () => {

const vaultConfig = {
depositLimit: new BN(100000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(100000000),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -1245,6 +1248,7 @@ describe("Vault User Operations: Direct Deposit Tests", () => {

const vaultConfig = {
depositLimit: new BN(100000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(100000000),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -1355,7 +1359,7 @@ describe("Vault User Operations: Direct Deposit Tests", () => {
});
});

it.skip("Directly depositing more than strategy deposit limit into direct deposit enabled vault should revert", async () => {
it("Directly depositing more than strategy deposit limit into direct deposit enabled vault should revert", async () => {
const depositAmount = 10000000001;

accountantConfigAccount = await accountantProgram.account.config.fetch(
Expand Down Expand Up @@ -1383,6 +1387,7 @@ describe("Vault User Operations: Direct Deposit Tests", () => {

const vaultConfig = {
depositLimit: new BN(100000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(100000000),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down Expand Up @@ -1493,7 +1498,7 @@ describe("Vault User Operations: Direct Deposit Tests", () => {
});
});

it("Directly depositing more than strategy max debt into direct deposit enabled vault should revert", async () => {
it.skip("Directly depositing more than strategy max debt into direct deposit enabled vault should revert", async () => {
const depositAmount = 10000000001;

accountantConfigAccount = await accountantProgram.account.config.fetch(
Expand Down Expand Up @@ -1521,6 +1526,7 @@ describe("Vault User Operations: Direct Deposit Tests", () => {

const vaultConfig = {
depositLimit: new BN(100000000000),
userDepositLimit: new BN(0),
minUserDeposit: new BN(100000000),
accountant: accountant,
profitMaxUnlockTime: new BN(0),
Expand Down

0 comments on commit 3c1d88f

Please sign in to comment.