Tighten wallet screening flow #19

Merged
Taskuler-bot merged 2 commits from fix/tighten-wallet-screening-flow into main 2026-11-30 02:02:37 +00:00
Member

Follow-up to Taskuler Security's Re-review 2 (R2-1, R2-4). Built on web #18; merge after #14–#18. #14–#18 are unchanged. No deploy.

What changes:

  • Post, bid and withdraw act for the wallet that was screened.
    • The screened address is passed into the action as from.
    • Every on-chain write (all 13 in the Sepolia data layer) checks that the wallet's current account matches from before asking the wallet to sign. On a mismatch, nothing is signed and the page shows the new error "Your wallet changed during the check. Press the button again to check and use the new wallet.".
    • After screening returns, the gate also checks that the wallet is still the screened one. If it isn't, nothing happens.
  • One screening run per button press: a second click while a check is running is ignored.
  • Payout-hold error (AccountHeld) now uses Legal's approved wording: "This account has a payout hold, so this action can't go through right now. Each hold lasts up to 30 days and can be renewed. If you think this is a mistake, email support@taskuler.com with your wallet address."

Copy changes:

  • AccountHeld:
    • Old: "This account has a payout hold, so the action would revert (AccountHeld)."
    • New: Legal's text above.
  • New error text "Your wallet changed during the check. Press the button again to check and use the new wallet.". This is Legal's wording (Nov 27).

Checked:

  • npm test 163/163 (new cases in sepolia.test.ts, gate.test.ts and errors.test.ts), both tsc passes and the testnet build pass.
  • The full order #14 → … → #20 merged locally passes too.
Follow-up to Taskuler Security's Re-review 2 (R2-1, R2-4). **Built on web #18**; merge after #14–#18. #14–#18 are unchanged. No deploy. What changes: - **Post, bid and withdraw act for the wallet that was screened.** - The screened address is passed into the action as `from`. - Every on-chain write (all 13 in the Sepolia data layer) checks that the wallet's current account matches `from` before asking the wallet to sign. On a mismatch, nothing is signed and the page shows the new error "Your wallet changed during the check. Press the button again to check and use the new wallet.". - After screening returns, the gate also checks that the wallet is still the screened one. If it isn't, nothing happens. - **One screening run per button press:** a second click while a check is running is ignored. - **Payout-hold error (AccountHeld)** now uses Legal's approved wording: "This account has a payout hold, so this action can't go through right now. Each hold lasts up to 30 days and can be renewed. If you think this is a mistake, email support@taskuler.com with your wallet address." Copy changes: - AccountHeld: - Old: "This account has a payout hold, so the action would revert (AccountHeld)." - New: Legal's text above. - New error text "Your wallet changed during the check. Press the button again to check and use the new wallet.". This is Legal's wording (Nov 27). Checked: - `npm test` 163/163 (new cases in `sepolia.test.ts`, `gate.test.ts` and `errors.test.ts`), both `tsc` passes and the testnet build pass. - The full order #14 → … → #20 merged locally passes too.
Post, bid and withdraw act for the address that was screened, and every write checks the wallet's
account matches the address it was started for. One screening run at a time per button.
Payout-hold message uses Legal's approved wording.
george approved these changes 2026-11-30 01:56:29 +00:00
Taskuler-bot changed target branch from fix/screen-on-action to main 2026-11-30 02:02:34 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
taskuler/web!19
No description provided.