Hashed Time-Locked Contract Expiry
Hashed time-locked contract expiry is the point at which a cross-chain swap transaction becomes void because the secret preimage was not revealed within the pre-defined timeframe. This mechanism is designed to prevent theft by ensuring that if the swap cannot be completed in both directions, the assets are returned to their original owners.
However, the expiry itself represents a failure of the intended transaction, which can have negative consequences for a trader who needed that liquidity to meet a margin call or to enter a position. The expiry time must be carefully chosen to allow for network delays while minimizing the time capital is locked in a pending state.
If the time is too short, successful trades will frequently fail; if too long, capital remains inefficiently locked. Optimizing this parameter is essential for efficient cross-chain trading.