Feature request: Label orders that buy or sell with bitcoin on-chain as payment method as swap-ins or swap-outs

Open
#915 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
dart, flutter
Domain
mobile

Research direction

The payload names no files, so start by finding where the app lists orders and applies the buy/sell filter in the MostroP2P/app Dart code. The proposed rule is that an order whose only payment method is bitcoin on-chain counts as a swap, with buying as swap-in and selling as swap-out. Done means those labels appear and can be filtered, and the rule is confirmed by the issue's own wording, since no protocol or backend change is involved. Ask in the thread about the exact labels and UI placement before building.

Written by the indexing model from the issue text.

Description

Problem

Right now, if someone wants to convert onchain btc to lightning btc, it would be "buying" in mostro, "selling" in mostro if the user wants to get onchain sats. This can be somehow unintuitive for users, specially for those who are familiar with "Swap ins" and "Swap out" terms.

Proposed soluion

Label orders "selling" sats with onchain bitcoin as the payment method as "swap-out" and orders "buying" sats with bitcoin as payment method as swap ins. So the user could select not only "Buy BTC" or "Sell BTC" but also "Swap in" and "Swap out", which would filter only bitcoin to bitcoin swap orders.

Consdierations

This is only a client feature, this is not intended to touch neither mostro backend neither the protocol, the rule is that "orders that contain only bitcoin as payment method are considered swaps"

Dominant language
Dart
Stars
11
Forks
9
Avg merge
2d 1h
Merged PRs (30d)
16

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MostroP2P/app

All issues in MostroP2P/app

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.