CUSTOM_TOKEN_QUANTITY 2. - Minimum received = CUSTOM_TOKEN_QUANTITY - (CUSTOM_TOKEN_QUANTITY * Slippage (1%)) Comparing with Maiar DEX, the value in Maiar is always bigger than our value. Example: Maiar DEX -> 1 EGLD -> 196.1917 TOKEN -> Minimum received 194.2492 TOKEN (1% slippage) Emb Swap -> 1 EGLD -> 196.1917 TOKEN -> Minimum received 194.2297 TOKEN (1% slippage) 194.2492 TOKEN vs 194.2297 TOKEN Diff: 0.02 TOKEN more in Maiar DEX Do you see what's our mistake? - ElrondDevelopers"/> CUSTOM_TOKEN_QUANTITY 2. - Minimum received = CUSTOM_TOKEN_QUANTITY - (CUSTOM_TOKEN_QUANTITY * Slippage (1%)) Comparing with Maiar DEX, the value in Maiar is always bigger than our value. Example: Maiar DEX -> 1 EGLD -> 196.1917 TOKEN -> Minimum received 194.2492 TOKEN (1% slippage) Emb Swap -> 1 EGLD -> 196.1917 TOKEN -> Minimum received 194.2297 TOKEN (1% slippage) 194.2492 TOKEN vs 194.2297 TOKEN Diff: 0.02 TOKEN more in Maiar DEX Do you see what's our mistake? - ElrondDevelopers"/> CUSTOM_TOKEN_QUANTITY 2. - Minimum received = CUSTOM_TOKEN_QUANTITY - (CUSTOM_TOKEN_QUANTITY * Slippage (1%)) Comparing with Maiar DEX, the value in Maiar is always bigger than our value. Example: Maiar DEX -> 1 EGLD -> 196.1917 TOKEN -> Minimum received 194.2492 TOKEN (1% slippage) Emb Swap -> 1 EGLD -> 196.1917 TOKEN -> Minimum received 194.2297 TOKEN (1% slippage) 194.2492 TOKEN vs 194.2297 TOKEN Diff: 0.02 TOKEN more in Maiar DEX Do you see what's our mistake? - ElrondDevelopers"/> CUSTOM_TOKEN_QUANTITY 2. - Minimum received = CUSTOM_TOKEN_QUANTITY - (CUSTOM_TOKEN_QUANTITY * Slippage (1%)) Comparing with Maiar DEX, the value in Maiar is always bigger than our value. Example: Maiar DEX -> 1 EGLD -> 196.1917 TOKEN -> Minimum received 194.2492 TOKEN (1% slippage) Emb Swap -> 1 EGLD -> 196.1917 TOKEN -> Minimum received 194.2297 TOKEN (1% slippage) 194.2492 TOKEN vs 194.2297 TOKEN Diff: 0.02 TOKEN more in Maiar DEX Do you see what's our mistake? - ElrondDevelopers"/>

Hello,

Sign up to join our community!

Welcome Back,

Please login to your account!

Forgot Password,

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Hi all! We are trying to implement an embedded swap for our token project in our DAPP, using Maiar DEX smart contracts. But we have a little difference in "Minimum received" value between our calculation and Maiar DEX calculation. Our "path" is: 1. - Check in Elrond API what's the conversion to CUSTOM_TOKEN of 1 EGLD. -> CUSTOM_TOKEN_QUANTITY 2. - Minimum received = CUSTOM_TOKEN_QUANTITY - (CUSTOM_TOKEN_QUANTITY * Slippage (1%)) Comparing with Maiar DEX, the value in Maiar is always bigger than our value. Example: Maiar DEX -> 1 EGLD -> 196.1917 TOKEN -> Minimum received 194.2492 TOKEN (1% slippage) Emb Swap -> 1 EGLD -> 196.1917 TOKEN -> Minimum received 194.2297 TOKEN (1% slippage) 194.2492 TOKEN vs 194.2297 TOKEN Diff: 0.02 TOKEN more in Maiar DEX Do you see what's our mistake?