Skip to content

reduce tx cancel from 12h to 2h #863

@pokefan77

Description

@pokefan77

thanks to improvements in the reliability of the client software and protocol atomic swaps work almost flawless in the current state

there is no valid reason to initiate a swap and then not stay online for 1 bitcoin confirmation + 10 monero confirmations to complete a swap

the current protocol for some reason allows for 12h to pass before tx_cancel is published
this not only allows for manipulation (betting on xmr price change) but also blocks xmr for the maker

a reduction to 2h in the next hardfork v4 would make funds for the maker available 10h faster and abolish the problem with the manipulation/betting from the taker site

i dont find any good arguments for a 12h window with the current state of the protocol.
a taker can simply start a new swap in case of failure

even if a taker is honest, the mere fact that he can go to sleep and then continue the trade and the maker has to live with the loss is crazy

if its unclear:
taker initiates swap for 6.000$ worth of xmr (10) for X btc
taker goes offline
11h later the taker finish the swap
taker has 10 xmr, maker 0.2 btc.
in the meantime xmr has risen 10%, btc price stayed the same.
maker takes his btc and now buys ~9.1 XMR with the btc he got from the taker
maker runs a service, exchanges money back and forth, and looses 1 xmr in the process.

this is imo unrelated to any spam deterence plans where takers can be punished and loose funds, because this seems to also be a opt-in function that even has to be manually executed because makers are expected to be online
my example is also with users that dont reach the spam deterence

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions