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

feat: calculate fee when simulating tx #127

Open
wants to merge 35 commits into
base: main
Choose a base branch
from

Conversation

honeymaro
Copy link

@honeymaro honeymaro commented Jun 9, 2022

@honeymaro honeymaro added the enhancement New feature or request label Jun 9, 2022
@honeymaro honeymaro self-assigned this Jun 9, 2022
@JoowonYun
Copy link
Member

@honeymaro max button doesn't work.

Copy link
Member

@JoowonYun JoowonYun left a 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)),
Copy link
Collaborator

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 }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.8 looks fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Advanced fee calculation
5 participants