YESswap
English简体中文繁體中文日本語한국어РусскийالعربيةEspañolPortuguêsFrançaisDeutschTiếng ViệtBahasa IndonesiaTürkçe

Threshold design for a small BSC treasury: read the policy before you sign

Updated 2026-12-02 · YESswap

Short answer. A treasury multisig is a threshold policy plus an owner set, and both are readable from storage before anyone signs.
Best match for this articleSwap tokens on BSCBuy or sell YES and any BEP-20 token directly from your wallet.

The threshold gates execution, not deposits

Storage holds the number, and execTransaction reads it at settlement. In the common Safe-style singleton deployed on BNB Smart Chain, threshold is a state variable compared inside execTransaction against the count of valid owner signatures attached to that call. Nothing in the owner list enforces it. Confirmation counting happens off-chain: the client gathers owner-signed messages, and the contract checks each signature against the current owner set at execution time. A proposal carrying fewer signatures than threshold reverts.

Two consequences follow, and the second one surprises people. Changing the threshold is itself a multisig transaction, so a 2-of-3 cannot drift to 1-of-3 without two signatures on the change. Incoming value is not gated at all. Anyone can send BNB or BEP-20 tokens to the multisig address, and those transfers never touch execTransaction. Your threshold governs outflow only.

Verify the real owner set rather than the one in your notes. Call getThreshold() and getOwners() by eth_call against a BSC node on chainId 56, and take the returned array length as the signer count. Read Contract tab exposes the same getters, and the internal transactions tab lists every value transfer out, each traceable to an execTransaction call.

Edge case: two RPC endpoints disagreeing. Query the same getters against a second independent node and compare block numbers with eth_blockNumber before you trust either answer. A lagging node returns the pre-change owner array, and a proposal built against it reverts on nonce or signature. Decision rule: if the two endpoints return different getOwners() arrays, stop and re-query after the chain head advances rather than picking the answer you prefer.

Safety and liveness are two numbers, not one

Worked example, deliberately not the template one. Take a four-owner treasury holding stablecoins and LP positions, where one signer is a hardware wallet in a safe and another is a hot key on a laptop used for routine swaps. At 2-of-4, safety is 2 and liveness is 3. The hot key plus any one other signature moves funds, which means a phished laptop is half of every payout. At 3-of-4, safety is 3 and liveness is 2. The hot key alone is now useless to an attacker, and two lost keys still freeze you. For a treasury of this size, 3-of-4 usually beats both 2-of-3 and 3-of-5, because it removes the single-point hot key without demanding five signers.

Cost and timing of the fix: the owner change and the threshold change are two separate execTransaction calls, each paying BSC gas and each consuming one nonce. Batch them through a multiSend delegate call if your client supports it, because two sequential proposals double the window in which the policy is inconsistent with the signer list. Decision rule: if you cannot batch, change the threshold first when raising it and last when lowering it, so the policy is never weaker than the owner set at any intermediate block.

Most failures are nonce and gas, and both are visible first

Contract bugs are rare here. Nonce mismatches are common. Every Safe transaction carries a nonce, and execTransaction reverts when the submitted nonce does not equal the contract's current nonce. That happens when two proposals are built in parallel, or when one is cancelled after signatures were collected. Read nonce() before building each proposal and compare it against the nonce embedded in the signatures you gathered.

Gas is the second revert, and it hides well. The outer transaction must cover signature verification plus the inner call. An inner call into a contract that consumes unusual gas can push the total past the limit even though the same call would succeed on its own. Simulate before broadcasting: eth_call the exact execTransaction payload from the signer address against current state, and treat any revert as a stop signal rather than a gas-tuning problem.

Edge case: thin liquidity and missing receipts. A payout that swaps into a low-depth pool can execute at a price far from the quoted one, and the inner call still returns success, so the multisig has no revert to catch. Set a minimum-out on the inner swap and let the swap revert instead. If eth_getTransactionReceipt returns null, the transaction is pending or was dropped, not failed. Decision rule: if the receipt is null after several blocks, re-broadcast the identical signed payload rather than rebuilding it, because a rebuild consumes a fresh nonce and orphans the signatures you already hold.

A delay buys a window, and charges liveness for it

Delay modules separate approval from settlement. Signatures satisfy the threshold, then the transaction waits a fixed period before it can execute, which gives honest signers time to notice an unexpected payout and cancel it. The cost is structural: every routine payment now takes that window, and a compromised signer plus a missed alert still ends in loss, only later. Delays pay off when the threat is one phished signer who can reach threshold with a single colluding key. They pay off least when payouts are frequent and small.

Split the policy by size instead of delaying everything. A short delay on routine payouts and a longer one above a size band keeps daily operations moving while forcing a review window on the transactions that matter. The module appears in the Safe's enabled module list, its address is readable from the contract, and its queue shows as pending transactions. On BscScan, the module's own contract page lists the queued transaction hashes and the timestamp at which each becomes executable.

Decision rule: if a payout exceeds the size band, route it through the delayed module even when the threshold is already met. The delay is the only control that survives a signer who is compromised and still holds a valid key. Timing cost is the queue window itself, paid on every transaction that crosses the band, so set the band where routine operations stop and treasury movements begin.

Verify the destination before the treasury approves it

Address verification is a source-of-truth problem. Compare the address in the interface against one published where the interface cannot rewrite it, then confirm the deployed bytecode matches. For YESswap, the YES token on BNB Smart Chain is 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 and the fee router is 0x0c9a2351e6e982b16559a68767003e7f4d02fb0d. The only official domain is yesswap. vip, and the only official handles are Telegram @web3yesswap and X @web3yesswap.

The check is mechanical and takes a minute. Paste the token address into BscScan and confirm the source is verified. Read symbol() and decimals() from the. Read Contract tab, then repeat both by eth_call from a BSC RPC and compare. For the fee router, read the fee-recipient and owner getters and confirm the fee route matches what the interface displayed before you approved anything.

Decision rule: if the token address in the multisig proposal differs in any character from the published YES address, reject the proposal before collecting signatures, because a signature is cheaper to withhold than a transfer is to reverse. An approval to a lookalike contract spends the allowance the moment it lands, and no delay module recovers it.

The three ways a small multisig actually breaks

First, threshold drift after an owner change leaves the policy weaker than the signers believe. Second, nonce collisions from parallel proposals burn collected signatures and tempt operators to rush the rebuild. Third, a hot signer that can reach threshold with one other key converts a single phish into a settlement. Each is detectable before funds move: read getOwners() and getThreshold(), read nonce(), and simulate the payload.

The detection order matters because each check narrows the next. Read the owner array and threshold first, since a stale owner set makes every later signature check meaningless. Read nonce() second, because a proposal built on the wrong nonce never reaches the gas question. Simulate the exact payload third, so a gas or inner-call revert surfaces before any signer commits. A treasury that runs these three reads in this order catches all three failure modes without a single broadcast.

Open YESswap

Frequently asked questions

Does the threshold stop people sending tokens to the multisig?

Incoming BNB and BEP-20 transfers never call execTransaction, so anyone can fund the address. The threshold governs outflow only.

How do I confirm the real signer count?

Call getOwners() by eth_call on chainId 56 and take the array length. BscScan's Read Contract tab returns the same array, and that length is the count that matters.

Why did my execTransaction revert with enough signatures?

Check nonce() against the nonce in your signatures, then simulate the exact payload with eth_call. A parallel proposal or a cancelled one moves the nonce, and a stale owner set fails the same way.

Is a 3-of-5 always safer than a 2-of-3?

Safety rises with the threshold, but liveness falls. A 3-of-5 tolerates three dark signers and needs three signatures per payout, which is a cost you pay on every routine transfer.

How do I verify the YES token before approving it?

Confirm 0xc22955b28e092060bc5d1e1f3b9d4dcd81091111 on BscScan with verified source, then read symbol() and decimals() and compare against an eth_call from any BSC RPC.

Keep reading

Where do you want to go?

Every card below opens the live product with your own wallet — no signup, no custody.

Go straight to the tool

Everything above is one page away: swap tokens on bsc.

Swap tokens on BSCStake and mineYour wallet signs every step. Nothing is custodied.