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

Fee endpoint #47

Closed
sschiessl-bcp opened this issue Feb 23, 2022 · 6 comments
Closed

Fee endpoint #47

sschiessl-bcp opened this issue Feb 23, 2022 · 6 comments

Comments

@sschiessl-bcp
Copy link
Author

For daggregation, ideal would be to be able to send several routes, each containing several steps in one go.

@clockworkgr
Copy link
Collaborator

@akc2267
Copy link

akc2267 commented Feb 23, 2022

hardcoded fees (USD)

ibc transfer ($0.15)
osmosis swap ($0.00)
gravitydex swap ($0.10)

@sschiessl-bcp
Copy link
Author

hardcoded fees (USD)

ibc transfer ($0.15) osmosis swap ($0.00) gravitydex swap ($0.10)

The fees you indicated are denoted in USD. How to map that to an actual token amount to deduct during e.g. an IBC transfer?
I hardcoded right now to take 0.1% for IBC, and pool swaps simply use the indicated price.

The hardcoded fees I am using currently to rate the routes only.

@sschiessl-bcp
Copy link
Author

sschiessl-bcp commented Mar 1, 2022

@akc2267
Copy link

akc2267 commented Mar 3, 2022

great question. for token fees here is the translation:
osmosis swap (0uosmo)
gravitydex swap (5000uatom)
ibc transfers are harder because they're across different chains, so 0.1% seems fine for hardcoding

@eitjuh eitjuh closed this as completed Apr 26, 2022
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

No branches or pull requests

4 participants