Add more descriptive comments for the ratio of assets in the pool and the swap price #431
Open
2 of 4 tasks
Labels
Milestone
Summary
There is a demand for more descriptive comments for the ratio of assets in the pool and the swap price. Developers who just start to play with the liquidity module may not have much knowledge about the DEX pricing calculation. For them, it will be helpful to have more descriptive comments around how to calculate
order price
when creating a swap transaction and how to obtain the swap price.Proposal
I propose to write more descriptive comments in both swap cli command and sample swap script.
liquidity/x/liquidity/client/cli/tx.go
Lines 237 to 270 in 33a5ca6
liquidity/scripts/sample-swap.sh
Lines 49 to 58 in 33a5ca6
For Admin Use
The text was updated successfully, but these errors were encountered: