# \[pallets/exodus\] Informational notes: no migration logic; verified design notes

**URL:** <https://ghostforum.org/t/pallets-exodus-informational-notes-no-migration-logic-verified-design-notes/165>\
**Category:** Bug Bounty\
**Tags:** exodus-pallet\
**Created:** [October 7, 2026, 3:01am UTC](https://ghostforum.org/t/pallets-exodus-informational-notes-no-migration-logic-verified-design-notes/165 "2026-10-07T03:01:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rusdiwireng](https://ghostforum.org/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@Rusdiwireng](https://ghostforum.org/u/Rusdiwireng)\
**Post date:** [October 7, 2026, 3:01am UTC](https://ghostforum.org/t/pallets-exodus-informational-notes-no-migration-logic-verified-design-notes/165/1 "2026-10-07T03:01:58Z")

</div>

Two informational notes from the exodus pallet audit. Not vulnerabilities; recorded for the team’s awareness.

## T1-F6: No migration logic / try-runtime for the exodus pallet

**Component:** `pallets/exodus` @ `0162da46`, `src/lib.rs:375` (`STORAGE_VERSION = 0`); `runtime/casper/src/lib.rs:1033-1035` (`Migrations = ()`). No migration module, `OnRuntimeUpgrade`, or try-runtime for the exodus pallet (the migration pattern exists only in `pallets/pools`, unused for exodus). Future storage layout changes will need a migration that does not exist yet. Suggestion: follow the `pallets/pools/src/migration.rs` pattern when storage changes. **Verification:** VERIFIED.

* * *

## T1-F7: Verified design notes (exodus pallet)

**Component:** `pallets/exodus` @ `0162da46`. Three verified design properties: (a) the bounty is not enforced in the pallet (lib.rs:1841-1882; `pallets/networks/src/lib.rs:857-880`): `register_evm_bridge_out_exodus` burns `amount`; the bounty is only encoded into EVM calldata so the bridge contract pays the relayer. Claiming a bounty without work via unsigned tx is impossible here: the pallet holds no bounty funds. (b) The queue is capped at 32 entries by design (lib.rs:1849-1858): the minimum `amount` grows exponentially (`minimum_balance * 2^queue_len`); `checked_shl` fails at 32+: deliberate anti-spam, not DoS. (c) The request pool is deterministic FIFO (lib.rs:3303-3360): sessions come from a monotonic `CurrentExodus` counter (lib.rs:2165-2169), `sort_by_key(session)` ascending, no fee/bounty weighting: front-running or order manipulation by submitters is impossible. (d) Session bans are local-per-node (lib.rs:3315, 3410/3442; `types/local_storage.rs:309-316`): permanent in the node’s own offchain storage; currently unreachable since the only variant with `get_message -> None` (Utxo) has no registration path. **Verification:** VERIFIED.

---

<div class="post-metadata">

**Author:** ![VoidDragon](https://ghostforum.org/user_avatar/ghostforum.org/voiddragon/32/16_2.png) [@VoidDragon](https://ghostforum.org/u/VoidDragon)\
**Post date:** [October 7, 2026, 1:21pm UTC](https://ghostforum.org/t/pallets-exodus-informational-notes-no-migration-logic-verified-design-notes/165/2 "2026-10-07T13:21:39Z")

</div>

Thank you for your report!

### **T1-F6: No migration logic / try-runtime for the exodus pallet**

You are absolutely correct here. This happened because we’ve never used _forkless upgrade_ since the update - there was a full testnet redeployment instead. So it should not be an issue down the line.

### **T1-F7: Verified design notes (exodus pallet)**

The UTXO path is indeed currently blocked. The main concern here is how to `rotate` the keys in the most optimized way. We need to include all inputs in a single transaction in a decentralized way, including commission. If you have any ideas on this, that would be great!

---

<div class="post-metadata">

**Author:** ![Rusdiwireng](https://ghostforum.org/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@Rusdiwireng](https://ghostforum.org/u/Rusdiwireng)\
**Post date:** [October 8, 2026, 5:47am UTC](https://ghostforum.org/t/pallets-exodus-informational-notes-no-migration-logic-verified-design-notes/165/3 "2026-10-08T05:47:07Z")

</div>

On the key rotation design question: the cleanest decentralized pattern I know for this is deterministic template plus threshold signing, which maps well onto the ROAST machinery you already have.

1. Canonical template: every authority independently constructs the identical unsigned rotation transaction from on-chain state. Inputs are the full tracked UTXO set in a deterministic order (sorted by txid:vout); outputs are the new threshold key address plus an explicit commission output (fixed basis points or a declared amount, committed in the template). Since every input is on-chain or gatekeeper-tracked, no coordinator is needed to assemble it.

2. Signing: each authority signs the template with its FROST share through the existing exodus signing flow and broadcasts the signature share. Once threshold shares arrive, anyone can aggregate into the final transaction. No single party ever holds the full key or controls the template.

3. The failure mode to design for is template disagreement: if two authorities construct different templates (for example a new UTXO lands mid-rotation), shares will not aggregate. The fix is to commit to the input set first (sign over the sorted input list hash as part of the session), so disagreement is detectable before signing starts.

Caveat: this is mechanism-level thinking; I do not know your exact per-network key architecture, so the commission accounting may need to live wherever the gatekeeper tracks balances. Happy to think through the concrete layout if useful.

---

<div class="post-metadata">

**Author:** ![VoidDragon](https://ghostforum.org/user_avatar/ghostforum.org/voiddragon/32/16_2.png) [@VoidDragon](https://ghostforum.org/u/VoidDragon)\
**Post date:** [October 11, 2026, 3:14pm UTC](https://ghostforum.org/t/pallets-exodus-informational-notes-no-migration-logic-verified-design-notes/165/4 "2026-10-11T15:14:18Z")

</div>

And the commission isn’t the only caveat - it also looks like we can’t guarantee that all bridge-in transactions have already been claimed. That means we have to use [`listunspent`](https://developer.bitcoin.org/reference/rpc/listunspent.html), which is ultimately a non-free and non-guaranteed call for a public RPC. That’s why each node should run `bitcoin-cli` locally for that.

And that’s not the main problem… The commission could grow extremely high because of the unlimited number of inputs (a dust attack on the gatekeeper’s `p2tr`, for example). So we’d have to use some consolidation strategies, or wait for upcoming updates [such as this one](https://github.com/bitcoin/bips/blob/9dd6d4234c3a429378337562e22cbd9488c5a467/bip-0459.mediawiki). On the other hand, we could work around the commission fee during bridge-in so that all bridge-out fees are somehow included and split among all the bridgers.

In any case, each `txin` should be signed with FROST/ROAST, which can be pretty intensive. It looks like we have everything in place, but something is missing to complete it.

Happy to continue this discussion if you have any ideas on that!
