Skip to content

feat: offer swap routes when savings is short #1830

Open

Description

@ovitrif

Follow-up from #1732 (Pubky Swaps routes, behind PUBKY_SWAPS_ROUTES on regtest debug builds).

The swap route is chosen when an on-chain-only contact opens, before an amount exists, so it applies only when Savings is at or below dust and Spending is above zero. A wallet whose Savings is above dust but short of the amount gets the regular on-chain flow and fails amount validation instead of being offered the route. Choosing the route after the amount is entered would redesign the send flow.

Review threads:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions