OriginProtocol / OriginProtocol/origin-dollar

Decimal precision on dApp

Open
#1,395 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dapp enhancement OETH P3 ui/ux
Dominant language
Solidity
Stars
152
Forks
115
Avg merge
3d 20h
Merged PRs (30d)
17

Description

Currently, on the OETH dApp, numbers are represented as a normal javascript Number. However, this Number doesn't quite have enough space to provide the user the level of precision provided by LSDs (18 decimals). The numbers should be represented by BigNumber or some other type than can provide us with more precision

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the OETH dApp code that represents or displays numeric values and identify uses of JavaScript Number. Check how a BigNumber or another precise type could preserve LSD values with 18 decimals. Done means the dApp displays and handles those values without losing the required precision.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
blockchain, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.