Questions tagged [dex]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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?
user avatar
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 ...
user avatar
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 ...
Sanket Nighot's user avatar
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/...
PEC's user avatar
  • 139
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 ...
Aditya Gautam's user avatar
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.
Alvin's user avatar
  • 31
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 ...
Claude Barde's user avatar