Questions tagged [dex]
The dex tag has no usage guidance.
7
questions
0
votes
1
answer
10
views
How to calculate how many XTZ will I require to get x amount of tokens from a pool [duplicate]
I have a Token/XTZ pool in a Quipuswap v2 liquidity pool. I want to calculate how many XTZ will I require to get lets say x amount of tokens from the pool. Can you explain me how is this possible?
0
votes
1
answer
8
views
How to calculate shares in Quipuswap V2 dex?
In quipuswap dex v2, when we call invest_liquidity, there is parameter called shares. I want to know how to calculate those shares.
I know that there is view in contract called get_toks_per_share but ...
0
votes
1
answer
35
views
How to calculate buy back token amount on quipuswap v2?
I have a token-tez pool on quipuswap v2 dex.
I want to calculate how much tez should I provide to dex to buy back the x amount of tokens from the dex.
What is the formula to calculate this?
How can I ...
1
vote
2
answers
70
views
Tezos - smart contract byte code to michelson
I am trying to figure out the SpicySwap swap fees. Since there is no public implementation available to my knowledge, I am studying the michelson code. For example:
https://tzkt.io/...
1
vote
1
answer
48
views
Need help understanding price discovery on dexter exchange
From where they are fetching the price of token i.e., exchange value ?
How they are calculating Minimum Tokens Brought in operation xtzToToken ?
How they are calculating Minimum XTZ Brought in ...
1
vote
1
answer
83
views
Can a Dapp buy or sell (usdtz or tzbtc) from dexter?
Looking for a way for a dapp to buy tzBTC automatically after receiving tez from a baker.
0
votes
1
answer
98
views
Handling floating point numbers in decentralized exchanges
I am writing a contract in Ligo that manages FA2 fungible tokens with an interface that lets users easily create new tokens. I am building a very simple exchange where the users can create orders to ...