Skip to content

Feat: Fetch Pools from new API #8500

Feat: Fetch Pools from new API

Feat: Fetch Pools from new API #8500

Triggered via pull request September 27, 2023 07:06
Status Failure
Total duration 4m 28s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

checks.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 6 warnings
Test: src/composables/queries/usePoolsQuery.spec.ts#L42
Type 'GqlPoolApr' is not assignable to type 'AprBreakdown'.
Test: src/composables/queries/usePoolsQuery.spec.ts#L42
Argument of type '{ max: number; }' is not assignable to parameter of type 'Partial<GqlPoolApr>'.
Test: src/composables/queries/usePoolsQuery.spec.ts#L43
Type 'GqlPoolApr' is not assignable to type 'AprBreakdown'.
Test: src/composables/queries/usePoolsQuery.spec.ts#L43
Argument of type '{ max: number; }' is not assignable to parameter of type 'Partial<GqlPoolApr>'.
Test: src/composables/queries/usePoolsQuery.spec.ts#L52
Type 'GqlPoolApr' is not assignable to type 'AprBreakdown'.
Test: src/composables/queries/usePoolsQuery.spec.ts#L52
Argument of type '{ max: number; }' is not assignable to parameter of type 'Partial<GqlPoolApr>'.
Test: src/services/pool/pool.service.ts#L70
Argument of type 'Pool' is not assignable to parameter of type 'Pool$1'.
Test: src/services/pool/pool.service.ts#L71
Type 'AprBreakdown' is missing the following properties from type 'GqlPoolApr': apr, hasRewardApr, items, nativeRewardApr, and 2 more.
Test: src/services/pool/pool.service.ts#L77
Type 'AprBreakdown' is not assignable to type 'GqlPoolApr'.
Test: src/services/pool/pool.service.ts#L77
Conversion of type 'GqlPoolApr | undefined' to type 'AprBreakdown' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Lint
Process completed with exit code 1.
Lint: src/composables/usePoolHelpers.spec.ts#L585
'tokenAprsTotal' is assigned a value but never used
Lint: src/composables/usePoolHelpers.spec.ts#L586
'rewardAprsTotal' is assigned a value but never used
Lint: src/composables/usePoolHelpers.spec.ts#L603
'tokenAprsTotal' is assigned a value but never used
Lint: src/composables/usePoolHelpers.spec.ts#L604
'rewardAprsTotal' is assigned a value but never used
Lint: src/composables/usePoolHelpers.spec.ts#L606
'stakingAprMin' is assigned a value but never used
Lint: tests/unit/builders/sdk-pool.builders.ts#L2
'AprBreakdown' is defined but never used