Skip to content

Ordinal swaps #1

@adambor

Description

@adambor

Add ordinal inscription swaps to LP library.

We can piggy-back off of existing ordinal marketplaces like magic eden and unisat and use their API to buy inscriptions in a way that the LP acts as a client. For atomic transaction lock we let the user lock-up funds locked to a specific txId (which is the ordinal buy execution transaction).

The issue is that the marketplace itself is the last signer, we therefore need to monitor the mempool and if the transaction isn't signed and broadcasted by the marketplace in e.g. 1 minute, we must double spend one of the used inputs - we have to do this because the marketplace can be evil and broadcast the transaction later at point when the smart chain escrow is already refunded by the user, leading to loss of funds for the LP

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions