Skip to content

bug: hardcoded stale XLM price used for fee-in-USD estimation #288

Description

@Austinaminu2

Problem

`lib/fee-utils.ts` hardcodes `XLM_PRICE = 0.12` (lines 12, 22) for USD fee estimates, disconnected from the live price already fetched by `hooks/use-token-price.ts`.

Location

`lib/fee-utils.ts:12, 22`, `hooks/use-token-price.ts`

Impact

Displayed fee-in-USD can be arbitrarily wrong once XLM's real price diverges from the hardcoded value.

Suggested fix

Have `fee-utils.ts` accept the live XLM/USD price as a parameter instead of hardcoding it.

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workingfrontendNext.js frontend

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions