Skip to content

Conversation

@creed-victor
Copy link
Contributor

@creed-victor creed-victor self-assigned this Nov 3, 2025
@netlify
Copy link

netlify bot commented Nov 3, 2025

Deploy Preview for sovryn-layer ready!

Name Link
🔨 Latest commit b002a3f
🔍 Latest deploy log https://app.netlify.com/projects/sovryn-layer/deploys/690a265ac38c9300084c4cc0
😎 Deploy Preview https://deploy-preview-12--sovryn-layer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@creed-victor creed-victor added the enhancement New feature or request label Nov 3, 2025
@creed-victor creed-victor marked this pull request as ready for review November 3, 2025 11:33
Copilot AI review requested due to automatic review settings November 3, 2025 11:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR completely refactors the Decimal class implementation by replacing the custom bigint-based implementation with the decimal.js library. The refactor simplifies the API while maintaining core functionality and adds new utility methods.

Key changes:

  • Replaces custom bigint arithmetic with decimal.js library for improved precision and reliability
  • Simplifies the internal implementation using decimal.js's D class as the core computation engine
  • Adds new utility methods (sqrt, pow, sum) and improves existing static methods (min, max)

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

File Description
packages/shared/src/lib/decimal.ts Complete rewrite using decimal.js library with simplified constructor and enhanced methods
packages/shared/src/lib/decimal.spec.ts Updated tests to match new implementation behavior and added arithmetic operation tests
packages/shared/package.json Added decimal.js dependency
packages/sdk/src/lib/sdk.spec.ts Removed placeholder test file
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings November 3, 2025 12:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@creed-victor creed-victor merged commit b858bc7 into develop Nov 4, 2025
5 checks passed
@creed-victor creed-victor deleted the feat/decimals branch November 4, 2025 16:17
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