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

feat: support for non-18 decimals chains #1997

Merged
merged 130 commits into from
Nov 6, 2024
Merged

feat: support for non-18 decimals chains #1997

merged 130 commits into from
Nov 6, 2024

Conversation

brtkx
Copy link
Contributor

@brtkx brtkx commented Oct 17, 2024

No description provided.

import { useNetworks } from './useNetworks'
import { useNetworksRelationship } from './useNetworksRelationship'

export const useNativeCurrencyDecimalsOnSourceChain = () => {
Copy link
Member

Choose a reason for hiding this comment

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

I feel like this would be a bit nicer

Suggested change
export const useNativeCurrencyDecimalsOnSourceChain = () => {
export const useSourceChainNativeCurrencyDecimals = () => {

@@ -183,6 +183,28 @@ export const startWebApp = (url = '/', qs: { [s: string]: string } = {}) => {
})
}

export async function getNativeTokenDecimals({
Copy link
Member

Choose a reason for hiding this comment

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

This is currently inside the test files, would it be useful to move inside the codebase?

latestNetworks.current.sourceChain.id
)

const scaledAmount =
Copy link
Member

Choose a reason for hiding this comment

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

I feel like this would be a bit easier to understand if it was just inlined separately for deposit/withdrawal

@brtkx brtkx merged commit dd1fd12 into master Nov 6, 2024
74 checks passed
@brtkx brtkx deleted the non18-dec-e2e branch November 6, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants