Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add reserve coin limit amount spec #117

Merged

Conversation

dongsam
Copy link
Contributor

@dongsam dongsam commented Feb 25, 2021

  • spec
  • implementation
  • test code

@codecov
Copy link

codecov bot commented Feb 25, 2021

Codecov Report

Merging #117 (3d5305a) into develop-milestone2 (695626a) will decrease coverage by 2.56%.
The diff coverage is 69.91%.

Impacted file tree graph

@@                  Coverage Diff                   @@
##           develop-milestone2     #117      +/-   ##
======================================================
- Coverage               80.11%   77.55%   -2.57%     
======================================================
  Files                      18       18              
  Lines                    1836     2018     +182     
======================================================
+ Hits                     1471     1565      +94     
- Misses                    192      257      +65     
- Partials                  173      196      +23     
Impacted Files Coverage Δ
x/liquidity/genesis.go 100.00% <ø> (+25.00%) ⬆️
x/liquidity/keeper/invariants.go 94.73% <ø> (ø)
x/liquidity/types/keys.go 100.00% <ø> (ø)
x/liquidity/types/msgs.go 70.64% <40.00%> (ø)
x/liquidity/keeper/swap.go 61.63% <47.27%> (-15.12%) ⬇️
x/liquidity/types/params.go 66.92% <51.78%> (-15.79%) ⬇️
x/liquidity/types/swap.go 79.51% <70.83%> (-7.06%) ⬇️
x/liquidity/keeper/store.go 88.81% <71.42%> (-0.44%) ⬇️
x/liquidity/keeper/batch.go 79.52% <72.00%> (+1.92%) ⬆️
x/liquidity/types/utils.go 84.09% <76.66%> (-15.91%) ⬇️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f306841...3d5305a. Read the comment docs.

@dongsam dongsam closed this Feb 25, 2021
@dongsam dongsam deleted the branch tendermint:develop-milestone2 February 25, 2021 15:32
@dongsam dongsam reopened this Feb 25, 2021
@dongsam dongsam changed the title add reserve token limit amount spec add reserve coin limit amount spec Feb 26, 2021
@dongsam dongsam marked this pull request as ready for review February 27, 2021 04:41
@dongsam dongsam merged commit ab4c58a into tendermint:develop-milestone2 Feb 27, 2021
dongsam added a commit that referenced this pull request Feb 27, 2021
* remove redundant code block

* add handler test for bad messages

* remove fmt.Printlns for temporary debug purpose

* add tests and testcases

* fix typo in error name and error message

* add more tests for msgs

increase test coverage for msgs.go to 100%

* add test case for bad swap execution

also create AddRandomTestAddr test helper function

* add reserve coin limit amount spec (#117)

* add reserve token limit amount spec

* refactoring minOfferCoinAmount naming

* add ReserveCoinLimitAmount params

* Add ReserveCoinLimit logic and testcodes

* go fmt

* fix swapPrice invariant logic

* remove useless assignment

* remove redundant verify logic

* remove unused argument

Co-authored-by: dongsam <[email protected]>
@dongsam dongsam mentioned this pull request Feb 27, 2021
9 tasks
@defihyung defihyung mentioned this pull request Mar 4, 2021
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant