From b1f01054846b14d6dd6d3c7466a0fa47dff1e032 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 5 Nov 2026 22:05:32 +0000 Subject: [PATCH] token-swap: say "minor units" in PoolConfig, align devnet program ID - PoolConfig's admin_fees_owed_a/b doc comments said "base units"; reword to "minor units" in the anchor-v1, anchor and quasar variants. - Anchor.toml [programs.devnet] held AsGVFx..., which matched nothing; set it to GahM6P..., the declare_id! all three variants already use. token-swap was the only finance program with this mismatch. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GZHin66a6gYXbTBsFu1HTS --- finance/token-swap/anchor-v1/Anchor.toml | 2 +- .../anchor-v1/programs/token-swap/src/state/pool_config.rs | 4 ++-- finance/token-swap/anchor/Anchor.toml | 2 +- .../anchor/programs/token-swap/src/state/pool_config.rs | 4 ++-- finance/token-swap/quasar/src/state.rs | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/finance/token-swap/anchor-v1/Anchor.toml b/finance/token-swap/anchor-v1/Anchor.toml index 432990a43..182971229 100644 --- a/finance/token-swap/anchor-v1/Anchor.toml +++ b/finance/token-swap/anchor-v1/Anchor.toml @@ -8,7 +8,7 @@ resolution = true skip-lint = false [programs.devnet] -swap_example = "AsGVFxWqEn8icRBFQApxJe68x3r9zvfSbmiEzYFATGYn" +swap_example = "GahM6PrXesrBkHiGJ5no4EskLNnVBCaSwVKbM4UtzyK6" [provider] diff --git a/finance/token-swap/anchor-v1/programs/token-swap/src/state/pool_config.rs b/finance/token-swap/anchor-v1/programs/token-swap/src/state/pool_config.rs index 4a238c55d..26df7bea6 100644 --- a/finance/token-swap/anchor-v1/programs/token-swap/src/state/pool_config.rs +++ b/finance/token-swap/anchor-v1/programs/token-swap/src/state/pool_config.rs @@ -32,12 +32,12 @@ pub struct PoolConfig { /// Mint of token B. pub mint_b: Pubkey, - /// Admin's accumulated fee claim on token A, in base units. Sits + /// Admin's accumulated fee claim on token A, in minor units. Sits /// physically in `pool_a` but is excluded from the LP curve and from /// LP-withdrawable amounts. Swept by `claim_admin_fees`. pub admin_fees_owed_a: u64, - /// Admin's accumulated fee claim on token B, in base units. Sits + /// Admin's accumulated fee claim on token B, in minor units. Sits /// physically in `pool_b` but is excluded from the LP curve and from /// LP-withdrawable amounts. Swept by `claim_admin_fees`. pub admin_fees_owed_b: u64, diff --git a/finance/token-swap/anchor/Anchor.toml b/finance/token-swap/anchor/Anchor.toml index 432990a43..182971229 100644 --- a/finance/token-swap/anchor/Anchor.toml +++ b/finance/token-swap/anchor/Anchor.toml @@ -8,7 +8,7 @@ resolution = true skip-lint = false [programs.devnet] -swap_example = "AsGVFxWqEn8icRBFQApxJe68x3r9zvfSbmiEzYFATGYn" +swap_example = "GahM6PrXesrBkHiGJ5no4EskLNnVBCaSwVKbM4UtzyK6" [provider] diff --git a/finance/token-swap/anchor/programs/token-swap/src/state/pool_config.rs b/finance/token-swap/anchor/programs/token-swap/src/state/pool_config.rs index c8feb92ba..8de3ab065 100644 --- a/finance/token-swap/anchor/programs/token-swap/src/state/pool_config.rs +++ b/finance/token-swap/anchor/programs/token-swap/src/state/pool_config.rs @@ -32,12 +32,12 @@ pub struct PoolConfig { /// Mint of token B. pub mint_b: Address, - /// Admin's accumulated fee claim on token A, in base units. Sits + /// Admin's accumulated fee claim on token A, in minor units. Sits /// physically in `pool_a` but is excluded from the LP curve and from /// LP-withdrawable amounts. Swept by `claim_admin_fees`. pub admin_fees_owed_a: u64, - /// Admin's accumulated fee claim on token B, in base units. Sits + /// Admin's accumulated fee claim on token B, in minor units. Sits /// physically in `pool_b` but is excluded from the LP curve and from /// LP-withdrawable amounts. Swept by `claim_admin_fees`. pub admin_fees_owed_b: u64, diff --git a/finance/token-swap/quasar/src/state.rs b/finance/token-swap/quasar/src/state.rs index 89be5cbc7..6983840f9 100644 --- a/finance/token-swap/quasar/src/state.rs +++ b/finance/token-swap/quasar/src/state.rs @@ -55,11 +55,11 @@ pub struct PoolConfig { pub pool_a: Address, /// The pool's token B reserve, recorded and checked as `pool_a` is. pub pool_b: Address, - /// Admin's accumulated fee claim on token A, in base units. Sits + /// Admin's accumulated fee claim on token A, in minor units. Sits /// physically in `pool_a` but excluded from the LP curve and from /// LP-withdrawable amounts. Swept by `claim_admin_fees`. pub admin_fees_owed_a: u64, - /// Admin's accumulated fee claim on token B, in base units. Sits + /// Admin's accumulated fee claim on token B, in minor units. Sits /// physically in `pool_b` but excluded from the LP curve and from /// LP-withdrawable amounts. Swept by `claim_admin_fees`. pub admin_fees_owed_b: u64,