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

Breakdown tab for payments and offercreates #985

Open
wants to merge 13 commits into
base: staging
Choose a base branch
from

Conversation

shortthefomo
Copy link
Contributor

@shortthefomo shortthefomo commented May 22, 2024

This PR adds a breakdown section to payments and offercreates

Context of Change

This adds the ability to show where the liquidity for the transaction was sourced. Via AMM/DEX/DIRECT and if RIPPLING was involved.

Screenshot 2024-05-22 at 12 36 05 PM

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • [ x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)
  • Documentation Updates
  • Translation Updates
  • Release

package.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@mvadari mvadari left a comment

Choose a reason for hiding this comment

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

Please add tests.

// amountToBalance,
// } from 'xrpl-tx-path-parser'

export const BreakDownTab: FC<{ data: any }> = ({ data }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any objection to adding this breakdown to the existing "Detailed" tab?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I agree

@pdp2121
Copy link
Collaborator

pdp2121 commented May 22, 2024

Looks awesome! Probably the dropdown would need a bit redesign, which could be great for reusability as well:
Screenshot 2024-05-22 at 6 45 50 PM

@shortthefomo
Copy link
Contributor Author

shortthefomo commented May 24, 2024

Please add tests.

now in place, I think its ready for another round of review now.

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.

None yet

3 participants