Skip to content

Commit 9529690

Browse files
committed
improve wording and add references for Sui and Solana protections
1 parent 3e3e9a2 commit 9529690

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/INVARIANTS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@
190190
- **Error Codes**: `DeliveryPaymentTooLow` (EVM)
191191
- **Code Reference**: `_quoteDeliveryPrice()` and payment validation
192192

193-
### INV-021: Revert On Dust
193+
### INV-021: Do Not Lock Up Dust
194194

195-
- **Invariant**: All cross-chain transfers should revert if the user included more than the exact amount ("dust")
196-
- **Description**: Ensures funds do not become locked in the contracts
197-
- **Enforcement**: Amount calculations in processing
198-
- **Error Codes**: `TransferAmountHasDust` (EVM)
195+
- **Invariant**: All cross-chain transfers must prevent the user from overspending and locking "dust" in the contract
196+
- **Description**: Ensures funds do not become locked in the contracts if users over pay
197+
- **Enforcement**: Amount calculations in processing, structs representing TrimmedAmount
198+
- **Error Codes**: `TransferAmountHasDust` (EVM); Sui returns a separate Coin for dust; Solana uses `trimmed_amount` to remove dust before a transfer
199199

200200
## Peer Management
201201

0 commit comments

Comments
 (0)