Skip to content

Add a quorum threshold configuration input on the creator dashboard governance settings - #906

Merged
Chucks1093 merged 5 commits into
accesslayerorg:devfrom
DanbabaJr:dev
Sep 7, 2026
Merged

Add a quorum threshold configuration input on the creator dashboard governance settings#906
Chucks1093 merged 5 commits into
accesslayerorg:devfrom
DanbabaJr:dev

Conversation

@DanbabaJr

Copy link
Copy Markdown
Contributor

Closes #828

Summary

Adds a Quorum Settings section to the creator dashboard's governance tab, letting creators configure the minimum participation threshold for their proposals via a percentage slider, backed by the set_quorum_bps contract call.

Changes
Added a Quorum Settings panel to the governance tab on the creator dashboard
Fetches the current quorum value (quorumBps) from the key detail API on mount and pre-sets the slider to that value
Slider is constrained to a 1%–50% range (translated to/from basis points for the contract call)
Displays the current value as both a percentage and in basis points beneath the slider, updating live as the slider moves
On submit, calls set_quorum_bps with the new value; shows a success toast once the transaction confirms
On confirmation, updates the slider/display in place from the new on-chain value — no page reload required
Testing
Slider loads pre-set to the creator's current quorum value
Slider cannot be dragged below 1% or above 50%
Displayed bps value matches the percentage shown (e.g., 25% → 2500 bps)
Submitting triggers set_quorum_bps with the correct bps value
Success toast appears only after contract confirmation, not on submit
After confirmation, the slider reflects the new value without a manual refresh
Error state handled if the contract call fails (toast or inline error, no silent failure)

DanbabaJr and others added 5 commits September 7, 2026 15:48
accesslayerorg#828)

Introduce a Governance tab on the creator dashboard with a Quorum
Settings section: a 1-50% slider pre-set to the current quorumBps from
the key detail API, with the selected value shown as both a percentage
and basis points, submitted via the set_quorum_bps contract call. The
mutation invalidates the creator detail query and drops the course
cache entry so the slider reflects the updated quorum without reload.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
The accesslayerorg#898 merge appended a second implementation to
KeySimulationTool.tsx, SlippageToleranceSelector.tsx and
slippageTolerance.utils.ts (and spliced imports into interfaces),
leaving the tree unbuildable. Keep the implementation each production
consumer is wired to and drop the orphaned duplicates and their test
suites so tsc and the test runner pass again.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@Chucks1093
Chucks1093 merged commit bc27f47 into accesslayerorg:dev Sep 7, 2026
1 check passed
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.

Add a quorum threshold configuration input on the creator dashboard governance settings

2 participants