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

Format amount controller #65

Open
wants to merge 11 commits into
base: development
Choose a base branch
from

Conversation

razvantomegea
Copy link

No description provided.

@@ -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;
Copy link
Collaborator

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 });
Copy link
Collaborator

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';
Copy link
Collaborator

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

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.

2 participants