Swap Tokens
Description of the values on the Swap Tokens page
amount = amount which user wants to swap
leftBalance = left currency supply
rightBalance = right currency supply
minimumReceive = expectedAmount * (100 - slippage) / 100
start = leftBalance / rightBalance
end = (leftBalance + amount) / (rightBalance - expectedAmount)
priceImpact = end / start * 100
Last modified 5mo ago
Copy link