-
Notifications
You must be signed in to change notification settings - Fork 0
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
Format amount controller #65
base: development
Are you sure you want to change the base?
Conversation
# Conflicts: # CHANGELOG.md # src/core/managers/ToastManager/ToastManager.ts # src/core/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.ts # src/core/providers/strategies/helpers/signTransactions/signTransactions.ts
@@ -6,8 +6,6 @@ export const GAS_LIMIT = 50000; | |||
*/ | |||
export const EXTRA_GAS_LIMIT_GUARDED_TX = 50000; | |||
export const GAS_PRICE = 1000000000; | |||
export const DECIMALS = 18; |
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 would keep them
import { DECIMALS, DIGITS, stringIsInteger, ZERO } from 'lib/sdkDappUtils'; | ||
import { pipe } from './pipe'; | ||
|
||
BigNumber.config({ ROUNDING_MODE: BigNumber.ROUND_FLOOR }); |
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.
should be done inside function as a local bigNumber see stringIsInteger or stringIsFloat
import { DECIMALS, DIGITS, REFUNDED_GAS } from 'constants/index'; | ||
import { formatAmount } from 'lib/sdkDappUtils'; | ||
import { REFUNDED_GAS } from 'constants/index'; | ||
import { DECIMALS, DIGITS } from 'lib/sdkDappUtils'; |
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 am not sure this is needed
No description provided.