farcaster-project/farcaster-node

Maker Command: Query/Suggest exchange rate when reviewing offer

bofhmeinhof opened this issue · 0 comments

Hello!

Does farcaster provide a cli option to set a spread/exchange rate for a make offer, similar to how eth<>xmr atomic swaps [0] and comit [1] do?

The webapp at https://ui.farcaster.dev seems to do just that but calculates the spread only after entering both the amounts in their respective fields, which is... fine, but suggested exchange rate querying will definitely be a great deal for makers trying to run their offers full-time, i.e; [2][3]

[0] https://github.com/AthanorLabs/atomic-swap/blob/master/docs/local.md#make-a-swap-offer
[1] https://github.com/comit-network/xmr-btc-swap/blob/master/docs/asb/README.md#market-making
[2] https://github.com/AthanorLabs/atomic-swap/pull/262/files#diff-6901ffc29afd1a9b2d78376a85bd191547b6dd959af2ebc0ee98baee94bf76f7
[3] AthanorLabs/atomic-swap#205