Gravity-Devs / liquidity

Apache License 2.0
9 stars 13 forks source link

Unable to understand order-price in the swap function #14

Open cybertronprime opened 2 years ago

cybertronprime commented 2 years ago

Can somebody explain what order price symbolises during the swapping

[order-price]: The limit order price for the swap order. The price is the exchange ratio of X/Y where X is the amount of the first coin and Y is the amount of the second coin when their denoms are sorted alphabetically