Skip to content

Commit

Permalink
fix: Use median as the fee rate (#3246)
Browse files Browse the repository at this point in the history
Co-authored-by: Chen Yu <[email protected]>
  • Loading branch information
yanguoyu and Keith-CY authored Nov 11, 2024
1 parent df07ba8 commit f26762c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const useGetCountDownAndFeeRateStats = ({ seconds = 30, interval = 1000 }: Count
const handleGetFeeRateStatis = useCallback(() => {
getFeeRateStatistics()
.then(res => {
const { mean, median } = res ?? {}
const suggested = mean && median ? Math.max(1000, Number(mean), Number(median)) : MEDIUM_FEE_RATE
const { median } = res ?? {}
const suggested = median ? Math.max(1000, Number(median)) : MEDIUM_FEE_RATE

setFeeFatestatsData(states => ({ ...states, ...res, suggestFeeRate: suggested }))
})
Expand Down

2 comments on commit f26762c

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 11770799800

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 11770798938

Please sign in to comment.