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

Estimate bundle transfer fee #37

Merged
merged 10 commits into from
Jun 12, 2021
Merged

Estimate bundle transfer fee #37

merged 10 commits into from
Jun 12, 2021

Conversation

jferas
Copy link
Contributor

@jferas jferas commented Jun 10, 2021

First attempt at estimating fee.. added new estimateFee method to zeneth-js that could be called by the fronted and a test for it that basically simple runs the method, since we're not mocking out the Gasnow and Coingecko API calls we can't yet verify if the calculation is correct. Also did the fee calculation in a step by step inefficient approach.. not sure if it's right .. still has a number of console logs in here.. looking for feedback if I'm at least on the right path.

@wildmolasses wildmolasses force-pushed the estimate-fee branch 3 times, most recently from d8f89bc to bde3beb Compare June 11, 2021 22:08
zeneth-js/src/helpers.ts Outdated Show resolved Hide resolved
@wildmolasses wildmolasses changed the title WIP: Estimate fee Estimate bundle transfer fee Jun 12, 2021
@wildmolasses wildmolasses marked this pull request as ready for review June 12, 2021 00:37
@apbendi apbendi self-requested a review June 12, 2021 14:38
Copy link
Member

@apbendi apbendi left a comment

Choose a reason for hiding this comment

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

Looks great, nice work all 👍

@apbendi apbendi merged commit 11e6cef into main Jun 12, 2021
@apbendi apbendi mentioned this pull request Jun 12, 2021
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.

4 participants