Skip to content

chore(ui): drop unused canonicalPlayback destructure from solana + bsc App#137

Draft
rndrntwrk wants to merge 1 commit into
enoomian/stagingfrom
chore/unused-canonical-playback-destructure
Draft

chore(ui): drop unused canonicalPlayback destructure from solana + bsc App#137
rndrntwrk wants to merge 1 commit into
enoomian/stagingfrom
chore/unused-canonical-playback-destructure

Conversation

@rndrntwrk

Copy link
Copy Markdown
Collaborator

Summary

Removes the unused playback: canonicalPlayback destructure from useCanonicalStreamSession() in two App shells:

  • packages/hyperbet-solana/app/src/App.tsx:765
  • packages/hyperbet-bsc/app/src/App.tsx:736

Both bindings are declared but never read. ESLint's @typescript-eslint/no-unused-vars rule (configured with --max-warnings=0) hard-fails the Pre-PR Ready Check gate as a result.

Why

This lint debt has been on enoomian/staging since before audit kickoff. It is currently blocking the in-flight security PRs:

Both PRs are otherwise green; their Pre-PR Ready Check step fails on hyperbet-solana app lint (and hyperbet-bsc app lint follows next). Neither PR touches App.tsx, so the lint failure is inherited from the base branch, not introduced by them.

This change is the minimal fix to unblock both audit PRs without expanding their scope.

Changes

  • Removes the playback: canonicalPlayback, line from the useCanonicalStreamSession() destructure in hyperbet-solana/app/src/App.tsx.
  • Removes the same line from hyperbet-bsc/app/src/App.tsx.

The hook return shape is unchanged — useCanonicalStreamSession() still exposes .playback to any future caller. If a future diff needs the playback field, it can be re-added in the same diff that introduces the consumer.

EVM App.tsx was already clean (no canonicalPlayback destructure); no change there.

Validation

  • cd packages/hyperbet-solana/app && bun run lint — PASS
  • cd packages/hyperbet-bsc/app && bun run lint — PASS

Rollout

Merging this into enoomian/staging first will unblock the Pre-PR Ready Check gate for #135 and #136 so they can be reviewed and merged on their own merits.

Explicit non-goals

  • This PR does NOT change any runtime behavior.
  • This PR does NOT touch any audit-scope contract or program code.
  • This PR does NOT alter the useCanonicalStreamSession hook itself.

…c App

`packages/hyperbet-solana/app/src/App.tsx` and
`packages/hyperbet-bsc/app/src/App.tsx` both destructure `playback:
canonicalPlayback` from `useCanonicalStreamSession()` but never read
the binding. ESLint's `@typescript-eslint/no-unused-vars` rule
(`--max-warnings=0`) hard-fails the `Pre-PR Ready Check` gate on every
new PR that triggers a re-lint of these packages, including the
in-flight `security/lvr-amm-bootstrap-authority` (#135) and
`security/lvr-amm-disable-dynamic-liquidity` (#136) audit fixes.

Removing the unused destructure unblocks those PRs without expanding
their scope. Hook return shape is unchanged; if a future caller needs
the playback field it can be re-added with a real consumer in the same
diff.

EVM `App.tsx` was already clean — no change there.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant