Create proposal flow#507
Conversation
- finish create flow - create history of proposal
…ntus-Network/quantus-apps into beast/create-proposal-flow
…isting presentation
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
Review: Create proposal flow (PR #507)Reviewed in an isolated worktree diffed against the actual base branch OverallA strong, well-structured PR. It replaces the previous dummy/stub multisig proposal code with a real indexer-backed flow: pick recipient → enter amount → review → optimistic pending → poll indexer → confirm. DRY discipline is excellent and test coverage for the new logic is solid. A few things are worth addressing before merge. What's great
Issues worth addressing1. Nested submission retries → duplicate-proposal risk (medium)In Each attempt fetches a fresh nonce ( Suggestion: drop the outer retry, or short-circuit once an extrinsic hash has been obtained. 2. Fee-fetch fallback masks failure (medium — conflicts with the "fail early, no silent fallback" rule)In Suggestion: surface an error / keep submit disabled rather than falling back to a zero-fee estimate. 3. Circular import between model and service (low)
Suggestion: move the fee formula to a constants/util the model can depend on to break the cycle. Nits
Confirm intentional
NoteDid not run |
Summary
Added proposal creation feature. This encompass the whole step of picking recipient, inputing amount, reviewing, and pending proposal submission.
We also show the proposal created event in propose account activity as to not confuse proposer by balance being deducted.
Screenshots