datahaven/operator/runtime/mainnet/tests
Ahmad Kaouk 2f6c6e39c2
fix: add explicit sovereign account balance check in unlock_tokens (#253)
Add defensive validation to ensure the Ethereum sovereign account has
sufficient balance before unlocking tokens. This addresses an audit
finding where the lack of explicit balance checking created an
unreliable security control that depended on implicit runtime behavior.

Changes:
- Add InsufficientSovereignBalance error variant for clear error
messaging
- Add explicit balance check in unlock_tokens before transfer
- Update tests across all runtimes (testnet, stagenet, mainnet) to
validate the specific error is returned when sovereign account has
insufficient funds

The explicit check provides better error messages that can propagate
through the Ethereum bridge and makes debugging sovereign account
balance issues easier.
2025-10-30 11:19:14 +00:00
..
governance feat: Add proxy Precompile (#155) 2025-09-12 09:45:26 +02:00
common.rs feat: Implement Moonbeam-style OpenGov governance (#131) 2025-09-02 22:46:35 +02:00
fee_adjustment.rs feat: Implement dynamic fee adjustment (#251) 2025-10-28 10:06:45 +00:00
lib.rs feat: Implement dynamic fee adjustment (#251) 2025-10-28 10:06:45 +00:00
migrations.rs feat: multi block migration pallet (#180) 2025-09-24 12:27:44 +02:00
native_token_transfer.rs fix: add explicit sovereign account balance check in unlock_tokens (#253) 2025-10-30 11:19:14 +00:00
proxy.rs feat: Add proxy Precompile (#155) 2025-09-12 09:45:26 +02:00
safe_mode_tx_pause.rs feat: Add SafeMode and TxPause Pallets (#192) 2025-10-06 17:00:10 +00:00
treasury.rs fix: change pallet_evm alias to EVM to fix eth_getCode (#213) 2025-10-10 17:48:52 +00:00