Skip to content

fix(lido): link governance votes and clarify alert heading - #423

Merged
spalen0 merged 3 commits into
mainfrom
feat/lido-governance-vote-links
Oct 14, 2026
Merged

spalen0 merged 3 commits into
mainfrom
feat/lido-governance-vote-links

Conversation

@spalen0

@spalen0 spalen0 commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Lido StartVote alerts currently say "New Operation Scheduled" and provide only a vote number. Use "New Governance Vote", label the contract "Lido Aragon Voting", and link directly to https://dao.lido.fi/vote/<voteId>. Keep the vote ID and link in the header so they survive long metadata; omit both when the ID is absent, while supporting vote zero.

Escape creator-supplied metadata as literal Telegram Markdown text and retain a preview within the remaining message budget, with a truncation marker. Do not split a Markdown escape pair at the preview boundary. Retain creator and transaction links. Update the monitoring metadata, Lido README, and a formatter-generated alert example; record the confirmed bugs as triaged.

Validation:

  • 51 relevant tests and 20 subtests passed across timelock alerts, monitoring metadata, and Telegram delivery.
  • Regression tests cover metadata formatting, disguised inline links, missing IDs, vote zero, and safe preview truncation; confirmed failures before the fixes and with an intentionally broken escape-boundary guard.
  • prek run --all-files passed: Ruff lint, formatting, and ty checks.
  • uv audit --preview-features audit-command found no known vulnerabilities or adverse project statuses in 80 packages.
  • GitHub CI passed the full test suite, lint/type checks, and dependency audit for the latest commit.

Fix P2 metadata escaping and preserve a bounded description preview
without cutting Markdown escape pairs. Fix P3 empty vote ID headers,
correct the Aragon Voting contract label, and render the README example
from the formatter. Record the three confirmed bugs as triaged.

Defer P4 heading mappings and shared governance ID formatting: those
refactors are optional and would broaden the Lido-specific change.

Validation: 51 relevant tests and 20 subtests pass. Ruff, formatting,
ty, and the dependency audit pass. Regression tests fail before the
fixes and detect an intentionally broken escape-boundary guard.
@spalen0
spalen0 marked this pull request as ready for review October 14, 2026 14:39
@spalen0
spalen0 merged commit 2a0bcc1 into main Oct 14, 2026
3 checks passed
@spalen0
spalen0 deleted the feat/lido-governance-vote-links branch October 14, 2026 14:41
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