Skip to content

Refactor decimal precision#25

Merged
nialexsan merged 13 commits intotracer-bulletfrom
gio/update-decimal-precision
Jul 15, 2025
Merged

Refactor decimal precision#25
nialexsan merged 13 commits intotracer-bulletfrom
gio/update-decimal-precision

Conversation

@sisyphusSmiling
Copy link
Copy Markdown
Contributor

@sisyphusSmiling sisyphusSmiling commented Jul 12, 2025

Description

  • Refactor TidalProtocol contract from UFix64 to UInt256 internal bookkeeping
  • Add supporting fixed-point math methods to TidalProtocolUtils
  • Update tests to validate refactor correctness

@sisyphusSmiling sisyphusSmiling self-assigned this Jul 12, 2025
@sisyphusSmiling sisyphusSmiling added the enhancement New feature or request label Jul 12, 2025
sisyphusSmiling and others added 4 commits July 11, 2025 18:45
…low (#26)

- Changed interestMul division from e8 to 10^9 to match 18-decimal indices
- Fixed missing division by targetHealth in fundsRequiredForTargetHealthAfterWithdrawing
- Added underflow protection when subtracting debt values
Base automatically changed from gio/add-uint-lib to tracer-bullet July 15, 2025 00:22
@sisyphusSmiling
Copy link
Copy Markdown
Contributor Author

Point of discussion: what thoughts do we have about updating health to increase decimal precision? I think it's relevant as it's a key metric related to available & required amounts, but maybe we do so in a followup PR.

@sisyphusSmiling sisyphusSmiling requested a review from kgrgpg July 15, 2025 00:51
@sisyphusSmiling sisyphusSmiling requested a review from Kay-Zee July 15, 2025 00:51
@sisyphusSmiling sisyphusSmiling marked this pull request as ready for review July 15, 2025 00:51
@nialexsan nialexsan merged commit 144b959 into tracer-bullet Jul 15, 2025
1 check passed
@nialexsan nialexsan deleted the gio/update-decimal-precision branch July 15, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants