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

feat: split collateralWeight into collateralWeight and liquidationThreshold #627

Merged
merged 14 commits into from
Mar 9, 2022

Conversation

toteki
Copy link
Member

@toteki toteki commented Mar 9, 2022

Description

closes: #623


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added appropriate labels to the PR
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

x/leverage/client/cli/tx.go Outdated Show resolved Hide resolved
x/leverage/keeper/borrows.go Outdated Show resolved Hide resolved
x/leverage/keeper/keeper.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Mar 9, 2022

Codecov Report

Merging #627 (65dbb64) into main (8a794c8) will increase coverage by 0.00%.
The diff coverage is 58.97%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #627   +/-   ##
=======================================
  Coverage   48.02%   48.02%           
=======================================
  Files          64       64           
  Lines        8810     8841   +31     
=======================================
+ Hits         4231     4246   +15     
- Misses       4321     4332   +11     
- Partials      258      263    +5     
Impacted Files Coverage Δ
x/leverage/client/cli/tx.go 0.00% <0.00%> (ø)
x/leverage/types/token.go 33.33% <0.00%> (-2.57%) ⬇️
x/leverage/keeper/token.go 60.39% <50.00%> (-0.66%) ⬇️
x/leverage/keeper/borrows.go 77.45% <52.63%> (-5.69%) ⬇️
x/leverage/client/tests/suite.go 100.00% <100.00%> (ø)
x/leverage/client/tests/util.go 87.69% <100.00%> (+0.09%) ⬆️
x/leverage/keeper/iter.go 54.97% <100.00%> (ø)
x/leverage/keeper/keeper.go 47.80% <100.00%> (ø)

@toteki toteki marked this pull request as ready for review March 9, 2022 05:01
x/leverage/client/tests/util.go Outdated Show resolved Hide resolved
x/leverage/keeper/iter.go Outdated Show resolved Hide resolved
x/leverage/keeper/borrows.go Outdated Show resolved Hide resolved
toteki and others added 2 commits March 9, 2022 07:22
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
@toteki toteki requested review from a team as code owners March 9, 2022 15:42
@toteki toteki merged commit d96b680 into main Mar 9, 2022
@toteki toteki deleted the adam/collateral branch March 9, 2022 17:52
mergify bot pushed a commit that referenced this pull request Mar 9, 2022
…eshold (#627)

* collateral damage

* comment++

* sp

* comment++

* param name

* sp

* lint

* test fix

* Apply suggestions from code review

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

* lint++

* rename

* rename++

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
(cherry picked from commit d96b680)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

x/leverage: Separate collateral weight into MaxLTV and LiquidationThreshold
3 participants