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

Sort amount correctly #556

Merged
merged 1 commit into from
Jul 1, 2023
Merged

Sort amount correctly #556

merged 1 commit into from
Jul 1, 2023

Conversation

alexkeating
Copy link
Collaborator

Description

  • Sort amount by real value

Closes #550

@netlify
Copy link

netlify bot commented Jun 29, 2023

Deploy Preview for jolly-shaw-20fe62 ready!

Name Link
🔨 Latest commit f7d332d
🔍 Latest deploy log https://app.netlify.com/sites/jolly-shaw-20fe62/deploys/649df6b0a461360008e1e9a1
😎 Deploy Preview https://deploy-preview-556--jolly-shaw-20fe62.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 site configuration.

@alexkeating
Copy link
Collaborator Author

FYI, I don't have an account with all the varieties of tokens in @apbendi's example, but this seems to be working with a single token. If anyone has test tokens they want to send me on Sepolia I can test with more.

@github-actions
Copy link

Coverage after merging bug/number-sorting into master will be

85.56%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
contracts-periphery/src
   UmbraBatchSend.sol93.55%100%75%94.74%96
   UniswapWithdrawHook.sol77.78%100%50%80%44
umbra-js/src
   ethers.ts88.24%100%78.57%100%
   types.ts50%100%0%100%
umbra-js/src/classes
   KeyPair.ts98.65%96.49%100%100%31–32
   RandomNumber.ts100%100%100%100%
   StealthKeyRegistry.ts100%100%100%100%
   TxHistoryProvider.ts77.55%76.47%66.67%79.31%11, 11, 19–20, 31, 38, 44, 53, 57, 8
   Umbra.ts76.51%64.24%83.33%83.74%122, 125–126, 147, 221–223, 307–310, 372, 380, 380–382, 384, 386, 406, 406, 406–407, 411, 414, 435, 452–453, 535, 552, 565–566, 576–577, 590, 593–594, 624–625, 701, 705, 705, 705–708, 708, 708, 708, 708, 708, 708–709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 711, 711, 711–712, 715, 715, 715, 715, 715–716, 719, 726, 726, 735, 739, 739, 739–740, 753, 757, 760–761, 767–769, 776, 776, 776–779, 810, 815–816, 816–817, 96
umbra-js/src/utils
   cns.ts50%33.33%50%55%33–36, 40, 40, 40, 40, 40–41, 44–46
   constants.ts100%100%100%100%
   ens.ts36.11%25%33.33%40%25–27, 35, 56–57, 57, 57–58, 63–64, 66, 70, 70, 70, 70, 70–71, 75–77
   utils.ts80.65%71.67%86.67%86.29%107–109, 111–113, 119, 137–138, 167, 185, 238, 264, 266–267, 276, 276, 276–277, 279, 282, 291–292, 336, 336, 336, 356, 385, 387, 392, 404, 404–405, 410, 412–413, 424–428, 434, 436, 478–479, 479, 479–481, 481, 481, 57–58, 581, 586, 83, 91, 91
umbra-js/test
   testPrivateKeys.ts100%100%100%100%
   utils.ts100%100%100%100%

@mds1
Copy link
Collaborator

mds1 commented Jun 29, 2023

If anyone has test tokens they want to send me on Sepolia I can test with more.

The DAI and USDC tokens we use on sepolia can be minted by anyone, so you can mint as much as you want to your wallet: https://github.com/ScopeLift/umbra-api/blob/9631aa785eae26e0a9b5df58bf95ad3b4cbde6ce/src/constants/tokens.ts#L10-L11

@alexkeating alexkeating marked this pull request as draft June 29, 2023 15:53
@alexkeating alexkeating marked this pull request as ready for review June 29, 2023 21:23
@alexkeating
Copy link
Collaborator Author

Tested with multiple tokens and seems to be working

Copy link
Collaborator

@mds1 mds1 left a comment

Choose a reason for hiding this comment

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

code seems right to me

Copy link
Member

@apbendi apbendi left a comment

Choose a reason for hiding this comment

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

Looks good, working well. Thanks!

@apbendi apbendi merged commit d6fce29 into master Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Amount Based Sorting on Receive Page
3 participants