Run Aave V4 Spec #241
Annotations
10 errors
|
packages/spec/repay/business.spec.ts > Repaying Loans on Aave V4 > Given a user and a reserve with an active borrow position > When the user repays a partial amount of the loan > Then the borrow position is updated to reflect the reduced outstanding balance:
packages/spec/test-utils.ts#L8
InvariantError: Expected array to be non-empty
❯ assertNonEmptyArray packages/spec/test-utils.ts:8:11
❯ packages/spec/helpers/reserves.ts:47:5
❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71
❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60
❯ packages/spec/repay/business.spec.ts:37:27
|
|
packages/spec/repay/business.spec.ts > Repaying Loans on Aave V4 > Given a user and a reserve with an active borrow position > When the user wants to preview the repayment action before performing it > Then the user can review the repayment details before proceeding:
packages/spec/test-utils.ts#L8
InvariantError: Expected array to be non-empty
❯ assertNonEmptyArray packages/spec/test-utils.ts:8:11
❯ packages/spec/helpers/reserves.ts:47:5
❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71
❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60
❯ packages/spec/repay/business.spec.ts:37:27
|
|
packages/spec/repay/business.spec.ts > Repaying Loans on Aave V4 > Given a user and a reserve with an active borrow position > When the user repays the full loan amount > Then the borrow position is closed and the repayment is reflected in the user's positions:
packages/spec/test-utils.ts#L8
InvariantError: Expected array to be non-empty
❯ assertNonEmptyArray packages/spec/test-utils.ts:8:11
❯ packages/spec/helpers/reserves.ts:47:5
❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71
❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60
❯ packages/spec/repay/business.spec.ts:37:27
|
|
packages/spec/positions/business.spec.ts > Health Factor Scenarios on Aave V4 > Given a user with a one supply position as collateral > And the user has a one borrow position > When the user repays completely the borrow position:
packages/spec/positions/business.spec.ts#L366
InvariantError: Expected result to be Ok: InsufficientBalanceError
❯ k packages/types/src/helpers/assertions.ts:31:11
❯ packages/spec/positions/business.spec.ts:366:11
|
|
packages/spec/positions/business.spec.ts > Health Factor Scenarios on Aave V4 > Given a user with a one supply position as collateral > And the user has a one borrow position > When the user borrows more money:
packages/spec/positions/business.spec.ts#L247
InvariantError: Expected a value, got: [GraphQL] Failed to parse "BigDecimal": Amount must be greater than 0 (occurred while parsing "ReserveErc20AmountInput") (occurred while parsing "ReserveAmountInput") (occurred while parsing "BorrowRequest")
❯ invariant packages/types/src/helpers/invariant.ts:20:11
❯ A packages/core/src/utils.ts:20:3
❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71
❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60
❯ packages/spec/positions/business.spec.ts:247:25
|
|
packages/spec/positions/business.spec.ts > Health Factor Scenarios on Aave V4 > Given a user with a one supply position as collateral > And the user has a one borrow position > When the user repays partially the borrow position:
packages/spec/positions/business.spec.ts#L186
InvariantError: Expected a value, got: [GraphQL] Failed to parse "BigDecimal": Amount must be greater than 0 (occurred while parsing "AmountInput") (occurred while parsing "RepayErc20AmountInputWithPermit") (occurred while parsing "RepayAmountInputWithPermit") (occurred while parsing "RepayRequest")
❯ invariant packages/types/src/helpers/invariant.ts:20:11
❯ A packages/core/src/utils.ts:20:3
❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71
❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60
❯ packages/spec/positions/business.spec.ts:186:25
|
|
packages/spec/positions/business.spec.ts > Health Factor Scenarios on Aave V4 > Given a user with a one supply position as collateral > When the user checks the health factor:
packages/spec/test-utils.ts#L8
InvariantError: Expected array to be non-empty
❯ assertNonEmptyArray packages/spec/test-utils.ts:8:11
❯ packages/spec/helpers/reserves.ts:47:5
❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71
❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60
❯ packages/spec/positions/business.spec.ts:43:23
|
|
packages/spec/borrow/multipleBorrows.spec.ts > Borrowing from Multiple Reserves on Aave V4 > Given a user with collateral supplied to a reserve > When the user borrows from two different reserves:
packages/spec/test-utils.ts#L8
InvariantError: Expected array to be non-empty
❯ assertNonEmptyArray packages/spec/test-utils.ts:8:11
❯ packages/spec/helpers/reserves.ts:47:5
❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71
❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60
❯ packages/spec/borrow/multipleBorrows.spec.ts:24:23
|
|
packages/spec/borrow/business.spec.ts > Borrowing Assets on Aave V4 > Given a user and a reserve with an active supply position used as collateral > When the user borrows a native asset from the reserve:
packages/spec/test-utils.ts#L8
InvariantError: Expected array to be non-empty
❯ assertNonEmptyArray packages/spec/test-utils.ts:8:11
❯ packages/spec/helpers/reserves.ts:47:5
❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71
❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60
❯ packages/spec/borrow/business.spec.ts:118:23
|
|
packages/spec/borrow/business.spec.ts > Borrowing Assets on Aave V4 > Given a user and a reserve with an active supply position used as collateral:
packages/spec/test-utils.ts#L8
InvariantError: Expected array to be non-empty
❯ assertNonEmptyArray packages/spec/test-utils.ts:8:11
❯ packages/spec/helpers/reserves.ts:47:5
❯ ResultAsync.<anonymous> node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:133:33
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:43:71
❯ __awaiter node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:39:12
❯ node_modules/.pnpm/[email protected]/node_modules/neverthrow/dist/index.cjs.js:129:60
❯ packages/spec/borrow/business.spec.ts:26:21
|