27 Commits

Author SHA1 Message Date
Ricardo Guilherme Schmidt
774e340212
fix(amm): avoid confirmation busy binding loop 2026-07-17 22:25:30 -03:00
Ricardo Guilherme Schmidt
31f1b68f8c
fix(amm): make theme toggle clickable 2026-07-17 22:14:48 -03:00
Ricardo Guilherme Schmidt
0fdc130e1d
fix(amm): reduce pending pool probes 2026-07-17 21:57:02 -03:00
Ricardo Guilherme Schmidt
ec18833e3a
fix(amm): cancel superseded quote work 2026-07-17 21:51:16 -03:00
Ricardo Guilherme Schmidt
43cdc0dced
fix(amm): pause hidden pool probes 2026-07-17 21:36:09 -03:00
Ricardo Guilherme Schmidt
f704ab6a45
fix(amm): contain compact navbar controls 2026-07-17 20:59:00 -03:00
Ricardo Guilherme Schmidt
a3bbcda7c2
fix(amm): reject exact output at pool reserve 2026-07-17 20:57:04 -03:00
Ricardo Guilherme Schmidt
a8de6b498c
fix(amm): reserve balance for exact-output slippage 2026-07-17 20:55:59 -03:00
Ricardo Guilherme Schmidt
7b595dc5da
fix(amm): keep trade controls reachable 2026-07-17 20:54:51 -03:00
Ricardo Guilherme Schmidt
d9852f2715
fix(amm): end submits when backend disconnects 2026-07-17 20:52:20 -03:00
Ricardo Guilherme Schmidt
69c9783955
fix(amm): prevent swaps with identical tokens 2026-07-17 20:45:42 -03:00
Ricardo Guilherme Schmidt
0e6a38742d
fix(amm): apply slippage to exact-output input 2026-07-17 20:43:36 -03:00
Ricardo Guilherme Schmidt
a94731881f
fix(amm): label sample swaps as previews 2026-07-17 20:40:45 -03:00
Ricardo Guilherme Schmidt
0e01962bec
feat: Introduce SequencerClient for enhanced account management and transaction querying
- Added SequencerClient class to handle asynchronous account reads and transaction queries.
- Updated NewPositionRuntime to integrate SequencerClient, allowing for improved wallet account management.
- Modified existing tests to accommodate changes in the new position schema from v1 to v2.
- Enhanced QML tests to validate new position form behavior with updated holding selections and context handling.
- Refactored code to ensure compatibility with the new SequencerClient functionalities.
2026-07-17 14:14:50 -03:00
Ricardo Guilherme Schmidt
06054770ef
fix(amm-ui): require explicit liquidity inputs
Keep wallet assets as token choices without automatically selecting a pair. Keep pool-probe amounts internal so active-pool quotes do not populate the form before user input.
2026-07-16 15:46:50 +02:00
Ricardo Guilherme Schmidt
0c4c916ae4
refactor(amm-ui): defer token decimal inference
Keep token balances and amounts in raw integer units until the decimal display model receives dedicated UX analysis.
2026-07-16 15:46:50 +02:00
Ricardo Guilherme Schmidt
7c98ca7b42
feat(amm-ui): reshape liquidity position layout
Add responsive step navigation and a wider deposit workspace while preserving the shared create-pool and add-liquidity flow.
2026-07-16 15:46:50 +02:00
Ricardo Guilherme Schmidt
6de8a5fe9a
feat(amm-ui): complete new position liquidity flow
Implement one create-pool and add-liquidity workflow. Add searchable token resolution, direct opening-price and deposit editing, optimistic pool activation, and base58 transaction IDs.

Isolate network, wallet, AMM client, and runtime boundaries. Stabilize quote, submission, refresh, and pool-probe state while consolidating liquidity tests and removing obsolete liquidity paths.
2026-07-16 15:46:50 +02:00
Ricardo Guilherme Schmidt
8dd1189584
feat(amm-ui): implement new position flow #216
Replace prototype data and floating-point quotes with live wallet and
chain reads, exact Rust quote planning, and optimistic external-wallet
submission.

Add canonical display-order mapping, responsive QML states,
network-scoped program configuration, and packaged Rust client support.
2026-07-16 15:46:45 +02:00
Ricardo Guilherme Schmidt
cede72715d
feat(amm-ui): wire new position QML flow #223 2026-07-16 15:16:38 +02:00
Ricardo Guilherme Schmidt
de1c239d80
feat(amm-ui): add new position backend API #222 2026-07-16 15:16:38 +02:00
Ricardo Guilherme Schmidt
8db90fda35
feat(amm-ui): add new position prototype #221 2026-07-16 15:16:37 +02:00
r4bbit
bfeff4f0b4
WIP 2026-07-16 15:16:37 +02:00
r4bbit
327618cc0c
fix(apps/amm): ensure changing endpoint works 2026-07-16 15:16:37 +02:00
Ricardo Guilherme Schmidt
ae52613279
refactor(amm-ui): use shared wallet modules
Replace AMM-local wallet access, account state, controls, and confirmation-dialog mechanics with the reusable wallet targets. Keep AMM-specific transaction summaries and actions in the AMM UI.\n\nRefs #227
2026-07-16 15:09:30 +02:00
r4bbit
751d4ac530 feat(amm): wire the AMM app to the LEZ wallet module
Turns the dummy-data AMM UI into a real client of the on-chain LEZ wallet.
Adds a hand-written ui_qml C++ backend (src/AmmUi*) over the core
logos_execution_zone module: create/open a local wallet, create and list
public/private accounts, and a navbar Connect / Connected + account-selector
+ Disconnect flow. Onboarding is password-only (no path picking) with a
per-app wallet at ~/.lee/amm-wallet (override: AMM_WALLET_HOME_DIR);
standalone gets its own wallet, Basecamp shares accounts via adopt-on-start.

Requires Nix with flakes; macOS also needs `sandbox = false` (the default).
The logos_execution_zone input is pinned to a module rev whose LEZ (lssa)
already includes the macOS Metal-build fix, so no `--override-input` is
needed — plain `nix run .` works:

    cd apps/amm
    nix run .

- create_new now returns the new wallet's BIP39 mnemonic (not an int status);
  the app currently discards it, so the wallet can't yet be recovered. Surfacing
  it in onboarding (+ restore_storage) is a follow-up.
- The wallet password is currently a no-op upstream (storage.rs: "TODO: use
  password for storage encryption"); storage.json is plaintext. So Disconnect
  is a UI-level lock and reconnect does not (cannot yet) re-prompt for it.
- wallet-ffi requires explicit config/storage paths; a *_default() FFI would
  let the app drop its path handling.
- Bundled network config: connects to whatever WalletConfig::default() points
  at; real testnet endpoints still TBD.
2026-07-02 18:57:01 +02:00
r4bbit
3622016e6c refactor: move programs into programs and UIs into apps
This refactors the repository structure as it has grown over time.
2026-05-26 14:05:52 +02:00