-
Notifications
You must be signed in to change notification settings - Fork 53
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: calculate fee when simulating tx #127
base: main
Are you sure you want to change the base?
Conversation
honeymaro
commented
Jun 9, 2022
•
edited
Loading
edited
- Resolved Advanced fee calculation #126
- Clear selected assets when the user changes the network. - Resolved #112
v2 -> main
refactor: remove fcd & temp fee
fix: tx result
fix: custom slippage setting on mobile
feat: CD app, classic, app-dev
@honeymaro max button doesn't work. |
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.
Validation will not be checked if the amount + fee exceeds the balance.
? value | ||
.dp( | ||
config?.dp ?? | ||
(config?.integer ? 0 : value.gte(e) ? 2 : dp(contract_addr)), |
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.
can we replace line 48 to use dp func and put decimals
here? 🤔
value1, | ||
value2, | ||
}, | ||
{ gasAdjustment: 2 } |
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.
1.8 looks fine