Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Cancelled swaps are not handled by the solver #18

@CluEleSsUK

Description

@CluEleSsUK

Presently, the solver binary does not listen for swap cancellations, it just fetches the 'unfulfilled' swaps on every block.
Swaps that are staged for cancellation remain in the 'unfulfilled' state until their cooldown period expires and the requester withdraws their funds.
This creates a time window where the cooldown period has expired and the requester has not yet withdrawn where the swap is effectively agreed 'cancelled' but the solver can still fulfill it. Depending on the verifier implementation, they may reasonably refuse to reimburse the solver for this.

In practice swaps are nearly always filled instantly, and I think the current dcipher implementation will reimburse the solver regardless, but it's worth fixing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions