-
Notifications
You must be signed in to change notification settings - Fork 202
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
Conversation
…e into e2e-custom-fee-token
…e into non18-dec-e2e
import { useNetworks } from './useNetworks' | ||
import { useNetworksRelationship } from './useNetworksRelationship' | ||
|
||
export const useNativeCurrencyDecimalsOnSourceChain = () => { |
There was a problem hiding this comment.
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
export const useNativeCurrencyDecimalsOnSourceChain = () => { | |
export const useSourceChainNativeCurrencyDecimals = () => { |
@@ -183,6 +183,28 @@ export const startWebApp = (url = '/', qs: { [s: string]: string } = {}) => { | |||
}) | |||
} | |||
|
|||
export async function getNativeTokenDecimals({ |
There was a problem hiding this comment.
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 = |
There was a problem hiding this comment.
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
…n-bridge into non18-dec-e2e
No description provided.