tendermint / liquidity

Cosmos SDK Liquidity module
Apache License 2.0
135 stars 55 forks source link

[test] Extensive simulation scenarios covering extreme edge cases #40

Closed Hyung-bharvest closed 3 years ago

Hyung-bharvest commented 3 years ago

for milestone 2

Hyung-bharvest commented 3 years ago

paper review : https://web.stanford.edu/~guillean/papers/uniswap_analysis.pdf

Hyung-bharvest commented 3 years ago

Pool Match Only Simulation

Theoretical result to verify

Hyung-bharvest commented 3 years ago

Other edge case tests

deposit

withdraw

pool price

Hyung-bharvest commented 3 years ago

Actual trading simulation with arbitrageurs and traders

From this simulation we can observe the risk/return profile of pool investor from different market assumptions

Hyung-bharvest commented 3 years ago

@dongsam , @defihyung lets close this issue if we think edge cases are enoughly tested from simapp.

dongsam commented 3 years ago

@dongsam , @defihyung lets close this issue if we think edge cases are enoughly tested from simapp.

yes we've tested enough, but there may be some edge cases that we haven't found, so we are going to look them up more and close this issue this week.