Describes the protocol implementation for the Solcer
Monitor the source chain
Subscribe to TokenCommitted
events to detect any commitments made to your address.
Verify the commitment lock
TokenLockAdded
event (or getDetails()
function) on the existing commitment.hashlock
matches the one you previously generated.timelock
provides sufficient time to act, ensuring it is at least .Id
is equal to the original commitment Id in the TokenCommitted
event.(signature flow) hashlock addition on behalf of the user
Call the addLockSig()
function, providing both the user’s signature
and the message data (Id
, hashlock
, timelock
).
Complete the exchange
redeem()
on both the source and destination chains.S
value.Edge Case: User Fails to Act on the Solver’s Lock
timelock
to expire.refund()
on the destination chain to reclaim your funds.