You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TMS-5
File(s):
sip10swap_v3.clar
Description: The lockToken function checks if a preimage hash is already in use with (is-eq (map-get? swaps {hash: preimageHash}) none). If an attacker can predict or know the hash an honest user intends to use (for example, by monitoring unconfirmed transactions), they can "front-run" the user by creating a swap with the same hash. This would block the honest user's swap due to the (err err-hash-already-exists) check.
The text was updated successfully, but these errors were encountered:
TMS-5
File(s):
sip10swap_v3.clar
Description: The
lockToken
function checks if a preimage hash is already in use with(is-eq (map-get? swaps {hash: preimageHash}) none)
. If an attacker can predict or know the hash an honest user intends to use (for example, by monitoring unconfirmed transactions), they can "front-run" the user by creating a swap with the same hash. This would block the honest user's swap due to the(err err-hash-already-exists)
check.The text was updated successfully, but these errors were encountered: