Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🦺[Tech Debt] Offer dynamic fee rates #13

Open
6 tasks
kcw-grunt opened this issue Mar 2, 2021 · 2 comments
Open
6 tasks

🦺[Tech Debt] Offer dynamic fee rates #13

kcw-grunt opened this issue Mar 2, 2021 · 2 comments
Assignees
Labels

Comments

@kcw-grunt
Copy link
Member

Description

Currently the Android and iOS clients query the the API server for fee rates.

Problem

The fees are static and the Litewallet Mobile API server should serve up the freshest LTC fee rates

Background

While the server has and end-point for fees, the clients use an onboard value

In iOS:

fileprivate let defaultEconomyFeePerKB: UInt64 = 2500 // From legacy minimum. default min is 1000 as Litecoin Core version v0.17.1 
fileprivate let defaultRegularFeePerKB: UInt64 = 25000
fileprivate let defaultLuxuryFeePerKB: UInt64 = 66746

While the server has the endpoint:

app.get("/fee-per-kb", (req, res) => {
  res.json({
    fee_per_kb: 10000,
    fee_per_kb_economy: 2500
  });
});

Goals

  • Update lookup in the litewallet-mobile-api server from a dynamic source like Bitinfocharts Fees
  • Refactor the api server endpoint
  • Refactor Android Client lookup query
  • Refactor iOS Client lookup query
  • Run Tests in Beta Android
  • Run Tests in Beta iOS
@losh11
Copy link
Member

losh11 commented Mar 2, 2021 via email

@kcw-grunt
Copy link
Member Author

@losh11 that makes sense. This work is so that the api server may fresh rates. currently, its never checked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants