You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.
I'm fairly certain that tokenToToken charges the fees twice (each reserve takes a 0.3% cut). Also, if this is on the front-end, is it not possible to simply call tokenToToken and observe the tokens returned to get the price?
get_eth_token_input_price looks into the token exchange contract and does the price calculation based on the token balance. When i see the pool balance sat ETH-DAI in uniswap portal, amount of DAI is diffrent from the number amount in DAI exchange contract which is taken into consideration. Can you guys please give me more info on this. Thanks
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi everyone!
What about the idea to extend the exchange contract with
getTokenToTokenPrice
function?
The problem is, that if i try to get price for token to token i have to use:
getEthToTokenInputPrice
and
getTokenToEthInputPrice
that means the fees would be charged twice, but in the function getTokenToTokenPrice only once..
The text was updated successfully, but these errors were encountered: