Bug: Podiums onchain and clearing projections show raw wei/WAD values #11

Closed
opened 2026-03-31 05:51:59 +00:00 by Brouie · 12 comments
Brouie commented 2026-03-31 05:51:59 +00:00 (Migrated from gitlab.com)

TimeCurvePage:

  1. Podiums onchain section — 'Biggest single buy' and 'Highest cumulative CHARM' show raw wei (10000000000000000000) instead of human-readable (10). 'Last buyers' shows small integers (1, 2, 3) which is correct.

  2. Clearing & Liquidity Anchors — 'Projected final reserve per 1 DOUB' shows 40000000000000 WAD, 'Launch liquidity anchor' 48000000000000, 'Kumbaya lower bound' 38400000000000. Should format to decimal.

Found on v1.4.0, local Anvil stack, commit aaa52c9.

TimeCurvePage: 1. Podiums onchain section — 'Biggest single buy' and 'Highest cumulative CHARM' show raw wei (10000000000000000000) instead of human-readable (10). 'Last buyers' shows small integers (1, 2, 3) which is correct. 2. Clearing & Liquidity Anchors — 'Projected final reserve per 1 DOUB' shows 40000000000000 WAD, 'Launch liquidity anchor' 48000000000000, 'Kumbaya lower bound' 38400000000000. Should format to decimal. Found on v1.4.0, local Anvil stack, commit aaa52c9.
PlasticDigits commented 2026-03-31 09:02:45 +00:00 (Migrated from gitlab.com)

Implemented in 0acecc6: frontend/src/lib/compactNumberFormat.ts formats decimal strings with k/m/b/t then e+ scientific notation (default 3 significant figures, overridable via options). TimeCurve clearing anchors use WAD (18) and onchain podium values use the accepted asset decimals. Please re-check on local Anvil.

Implemented in 0acecc6: `frontend/src/lib/compactNumberFormat.ts` formats decimal strings with k/m/b/t then `e+` scientific notation (default 3 significant figures, overridable via options). TimeCurve clearing anchors use WAD (18) and onchain podium values use the accepted asset `decimals`. Please re-check on local Anvil.
PlasticDigits commented 2026-03-31 09:02:46 +00:00 (Migrated from gitlab.com)

mentioned in commit 0acecc6eda

mentioned in commit 0acecc6edabd8cdaff22a70064fe78da346676a3
PlasticDigits commented 2026-03-31 09:03:58 +00:00 (Migrated from gitlab.com)

Reopened per maintainer request: please confirm the compact formatting on local Anvil (clearing anchors + onchain podium values) before we close this again.

Reopened per maintainer request: please confirm the compact formatting on local Anvil (clearing anchors + onchain podium values) before we close this again.
Brouie commented 2026-04-01 06:09:53 +00:00 (Migrated from gitlab.com)

partial fix on d9987ca. compact formatting works for some values (charm redemptions show '250k', totalTokensForSale shows '1m'). but:

  1. clearing anchors still show raw WAD: '40000206614932' instead of compact like '40.00T' or formatted
  2. onchain podium 'value' fields show raw wei: '10000051653733246190' instead of decimal/compact
  3. podium payout abbr shows full precision: '2.285726092281884843' instead of compact '2.29'

indexer-side buys/redemptions correctly show decimal + abbr. the issue is in the onchain display components for clearing anchors and podium values.

partial fix on d9987ca. compact formatting works for some values (charm redemptions show '250k', totalTokensForSale shows '1m'). but: 1. clearing anchors still show raw WAD: '40000206614932' instead of compact like '40.00T' or formatted 2. onchain podium 'value' fields show raw wei: '10000051653733246190' instead of decimal/compact 3. podium payout abbr shows full precision: '2.285726092281884843' instead of compact '2.29' indexer-side buys/redemptions correctly show decimal + abbr. the issue is in the onchain display components for clearing anchors and podium values.
PlasticDigits commented 2026-04-02 04:25:53 +00:00 (Migrated from gitlab.com)

Pushed efa5a30: bigint coercion before formatUnits (fixes string-shaped RPC values mangling clearing anchors + podium reads), AmountDisplay abbr now uses compact sigfigs (podium preview), growthRateWad shown as compact decimal WAD.

@brouie please re-verify on local Anvil: clearing anchors, onchain podium values, podium payout abbr.

Pushed `efa5a30`: bigint coercion before `formatUnits` (fixes string-shaped RPC values mangling clearing anchors + podium reads), `AmountDisplay` abbr now uses compact sigfigs (podium preview), `growthRateWad` shown as compact decimal WAD. @brouie please re-verify on local Anvil: clearing anchors, onchain podium values, podium payout abbr.
Brouie commented 2026-04-02 06:00:11 +00:00 (Migrated from gitlab.com)

partial fix on 44138d7. compact formatting works for some values:

  • charm redemptions: 250k -- good
  • totalTokensForSale: 1m -- good

still showing raw values in these areas:

  • clearing anchors: projected final reserve shows '40000694444444' (raw WAD) instead of compact like '40.00T' or '0.000040'
  • onchain podium 'value' fields: '10000208333333333330' (raw wei) instead of compact or decimal
  • podium payouts: '2.285753968253968252' (full 18-decimal precision) instead of compact like '2.29'
  • recent buys abbr: '10.00020833333333333' not compacted

the abbr field is just repeating the decimal field for most values instead of actually abbreviating.

partial fix on 44138d7. compact formatting works for some values: - charm redemptions: 250k -- good - totalTokensForSale: 1m -- good still showing raw values in these areas: - clearing anchors: projected final reserve shows '40000694444444' (raw WAD) instead of compact like '40.00T' or '0.000040' - onchain podium 'value' fields: '10000208333333333330' (raw wei) instead of compact or decimal - podium payouts: '2.285753968253968252' (full 18-decimal precision) instead of compact like '2.29' - recent buys abbr: '10.00020833333333333' not compacted the abbr field is just repeating the decimal field for most values instead of actually abbreviating.
Brouie commented 2026-04-03 00:03:35 +00:00 (Migrated from gitlab.com)

still partial on 254999d. compact works for: charm redemptions (250k), totalTokensForSale (1m).

still raw/full precision:

  • clearing anchors: '40000993656035' (raw WAD, not compact)
  • podium payouts abbr: '2.285771066059163536' (full 18 decimals, not compact like '2.29')
  • recent buys abbr: '10.000283136410415939' (not compacted)
  • podium pool balance abbr: '2.000049682801768095' (not compacted)

abbr field is still repeating the decimal field instead of actually abbreviating for sub-1m values.

separate finding: fee sinks onchain dont match policy labels on TimeCurvePage. policy says DOUB LP 3000 bps but onchain shows 2500. CL8Y buy-and-burn policy 1000 but onchain 3500. Team policy 500 but onchain 0. Rabbit Treasury policy 3500 but onchain 2000. might be intentional with the new contract changes or a deploy script config issue -- lmk.

still partial on 254999d. compact works for: charm redemptions (250k), totalTokensForSale (1m). still raw/full precision: - clearing anchors: '40000993656035' (raw WAD, not compact) - podium payouts abbr: '2.285771066059163536' (full 18 decimals, not compact like '2.29') - recent buys abbr: '10.000283136410415939' (not compacted) - podium pool balance abbr: '2.000049682801768095' (not compacted) abbr field is still repeating the decimal field instead of actually abbreviating for sub-1m values. separate finding: fee sinks onchain dont match policy labels on TimeCurvePage. policy says DOUB LP 3000 bps but onchain shows 2500. CL8Y buy-and-burn policy 1000 but onchain 3500. Team policy 500 but onchain 0. Rabbit Treasury policy 3500 but onchain 2000. might be intentional with the new contract changes or a deploy script config issue -- lmk.
Brouie commented 2026-04-04 04:19:04 +00:00 (Migrated from gitlab.com)

re-verified on 254999d (clean rebuild + npm ci). all items from my 4/3 report are now fixed:

  • clearing anchors: showing '0.00004', '0.000048', '0.0000384' -- proper decimal, not raw WAD
  • podium payouts abbr: '2.29', '1.14', '0.571' -- compact, not 18 decimals
  • recent buys abbr: '10' -- compact
  • podium pool abbr: '2' -- compact
  • charm redemptions: '250k' -- still good
  • totalTokensForSale: '1m' -- still good

all formatting issues resolved. closing.

re-verified on 254999d (clean rebuild + npm ci). all items from my 4/3 report are now fixed: - clearing anchors: showing '0.00004', '0.000048', '0.0000384' -- proper decimal, not raw WAD - podium payouts abbr: '2.29', '1.14', '0.571' -- compact, not 18 decimals - recent buys abbr: '10' -- compact - podium pool abbr: '2' -- compact - charm redemptions: '250k' -- still good - totalTokensForSale: '1m' -- still good all formatting issues resolved. closing.
Brouie (Migrated from gitlab.com) closed this issue 2026-04-04 04:19:05 +00:00
Brouie commented 2026-05-04 07:24:21 +00:00 (Migrated from gitlab.com)

mentioned in issue #128

mentioned in issue #128
PlasticDigits commented 2026-06-25 20:07:28 +00:00 (Migrated from gitlab.com)

mentioned in issue #351

mentioned in issue #351
PlasticDigits commented 2026-06-25 20:07:50 +00:00 (Migrated from gitlab.com)

mentioned in issue #342

mentioned in issue #342
PlasticDigits commented 2026-06-26 03:56:53 +00:00 (Migrated from gitlab.com)

mentioned in merge request !525

mentioned in merge request !525
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/yieldomega#11
No description provided.