mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
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. |
||
|---|---|---|
| .. | ||
| governance | ||
| common.rs | ||
| fee_adjustment.rs | ||
| lib.rs | ||
| migrations.rs | ||
| native_token_transfer.rs | ||
| proxy.rs | ||
| safe_mode_tx_pause.rs | ||
| treasury.rs | ||