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
refactor: use bips base constant #7464
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
export const ONE_BIPS = new Percent(JSBI.BigInt(1), BIPS_BASE) | ||
|
||
// used for warning states | ||
export const ALLOWED_PRICE_IMPACT_LOW: Percent = new Percent(JSBI.BigInt(100), BIPS_BASE) // 1% | ||
export const ALLOWED_PRICE_IMPACT_MEDIUM: Percent = new Percent(JSBI.BigInt(300), BIPS_BASE) // 3% | ||
export const ALLOWED_PRICE_IMPACT_HIGH: Percent = new Percent(JSBI.BigInt(500), BIPS_BASE) // 5% |
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.
usage of JSBI here seemed redundant
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
Description
replaces hardcoded usage of 10000 as bips base w/ a constant