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

Fix NaN total L1 fees #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix NaN total L1 fees #9

wants to merge 2 commits into from

Conversation

hesom
Copy link

@hesom hesom commented Feb 17, 2022

I'm getting NaN value in the "Total" row in L1 Security Costs tab. The main reason is the NaN value inside the result of the data prop of L1List. I fixed this by simply adding 0 to the total if the result is invalid.

I think the reason for the NaN is an error in the API call that is supposed to get the DeversiFi fees. This causes the results of the children of StarkNet in the bundleItems function to not be added correctly. I fixed this similarly by just adding 0 if the current result is invalid.

firefox_Z2cGFQYFIu
firefox_6GUFhJZ5K0

@vercel
Copy link

vercel bot commented Feb 17, 2022

@hesom is attempting to deploy a commit to the ETH Burned Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant