Method
One rule, written down once, run in two places.
The website (src/lib/threshold/engine.ts) and BastiqThresholdRegistry (BastiqThresholdMath) implement the same lines below. 300 generated datasets are checked against both on every contract test run.
- The approval rule
- A transfer needs human approval when amount > threshold, strictly greater. A transfer exactly at the threshold is auto-approved. Amounts and thresholds are whole numbers in the currency's smallest unit (e.g. 1 USDG = 1,000,000 units), so no rounding happens before the comparison.
- What changes side
- Raising the threshold from old to new: every transfer with old < amount ≤ new stops needing approval. Lowering it: every transfer with new < amount ≤ old starts needing approval. Nothing else moves. Count share = changed × 10,000 ÷ count and value share = changed value × 10,000 ÷ total value, both in basis points rounded down.
- One currency
- A list may name its currency per row, in a column, as a suffix ("640 USDG") or a symbol ("$640" = USD). If it names two, it is refused and the codes are listed; nothing is converted. Decimals: USD/EUR 2, USDG/USDC 6, ETH 18, otherwise the most fractional digits in the list (max 18). A row with more decimals than that is left out with its reason, never rounded. Negative rows (refunds) are left out.
- Dataset fingerprint
- keccak256(abi.encode(bytes8 currency, uint8 decimals, uint256[] amounts)), amounts in import order. A proposal stores this hash, the transfer count, the number that change side and their sum. Anyone holding the same list can call verifyDataset(proposal, amounts) on the registry: it recomputes both the hash and the totals.
- Live wallet history
- For the token you pick (USDG 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 or any ERC-20), the server reads Transfer logs where the wallet is the sender over the last 1, 7 or 30 days of Robinhood Chain blocks, in windows the node accepts (it refuses more than 10,000 logs or 10,000,000 blocks per query), newest first, at most 40 calls. Blocks it could not read are listed as gaps and the preview says so. Times are interpolated from two block timestamps. Native ETH sends leave no log: they need an explorer index (optional, not configured on this site).
- Other live figures
- Head block, average block time over 100,000 blocks and gas price from the chain's RPC; ETH / USD from Chainlink's feed 0x78F3556b67E17Df817D51Ef5a990cDaF09E8d3A9. No price is applied to transfer amounts.
- BastiqThresholdRegistry
- 0x56f19431e59d13977cfcc8a2ed43bcb9e375ea6b Workspaces (operator, agent, currency, decimals, current threshold, reviewers ≤ 16, quorum, minimum notice 1 h–30 days), one open proposal at a time, the old threshold must equal the current one, effective time ≥ now + notice and ≤ 1 year, acknowledgements before the effective time, cancel by the operator before it, finalize by anyone after it (applied with quorum, lapsed without). Two-step operator hand-over. No owner, no fee, no upgrade, no ether accepted.
- Limits
- A preview is only as complete as the history you give it, and past transfers do not predict future ones. Bastiq does not enforce anything: agent-wallet enforcement and alerts are Concepts. The contract is new. Status of every feature.
Questions
- What does Bastiq do?
- It shows what a new approval threshold would have done to an agent's past transfers: which ones would no longer wait for a person (or would start waiting, if you lower it), how many, how much value, and for which recipients. You decide with the list in front of you.
- Does Bastiq approve or block payments?
- No. Bastiq previews. It never signs, holds, approves or blocks a payment, and the registry contract never moves funds. The threshold it records on chain is a public notice, not a control wired into any wallet.
- Which transfers count as needing approval?
- A transfer needs human approval when its amount is strictly greater than the threshold. A transfer exactly at the threshold is auto-approved. The site and the contract use the same rule, checked against 300 shared test vectors.
- Why only one currency at a time?
- A threshold is a number in one unit. Comparing 900 USDG and 900 USD against the same line would mean converting one of them with a price you would also have to trust. Bastiq refuses a list that mixes currencies and tells you which codes it found.
- Is my CSV uploaded?
- No. A pasted or dropped list is read in your browser. The server is only used to read public chain data when you load a wallet's history.
- Where does the live history come from?
- From Robinhood Chain itself: Transfer logs of the token you pick where the wallet is the sender, read through the chain's RPC for the look-back you choose. The page shows exactly which blocks were read.
- Do I need a wallet or the token?
- Neither. Connecting a wallet only fills in your own address and lets you publish to the registry. $BASTIQ is not needed for anything that runs today.
- What are the risks?
- Bastiq is a concept and a new prototype: the contract is new, and a preview is only as complete as the history you give it. Past transfers do not predict future ones. Robinhood Chain fees are paid in ETH.