Skip to content

feat: improve EventReservesExhausted#1332

Merged
mergify[bot] merged 2 commits intomainfrom
adam/event
Sep 5, 2022
Merged

feat: improve EventReservesExhausted#1332
mergify[bot] merged 2 commits intomainfrom
adam/event

Conversation

@toteki
Copy link
Copy Markdown
Contributor

@toteki toteki commented Sep 5, 2022

Description

closes: #944


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 ! to the type prefix if API or client breaking change
  • added appropriate labels to the PR
  • 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 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)

@toteki toteki marked this pull request as ready for review September 5, 2022 05:34
@toteki toteki requested review from a team as code owners September 5, 2022 05:34
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #1332 (a94bda3) into main (06424cd) will increase coverage by 0.07%.
The diff coverage is 59.13%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1332      +/-   ##
==========================================
+ Coverage   51.65%   51.73%   +0.07%     
==========================================
  Files          68       68              
  Lines        6870     6705     -165     
==========================================
- Hits         3549     3469      -80     
+ Misses       3063     2969      -94     
- Partials      258      267       +9     
Impacted Files Coverage Δ
x/ibctransfer/keeper/keeper.go 0.00% <ø> (ø)
x/leverage/keeper/msg_server.go 1.17% <0.00%> (+0.35%) ⬆️
x/leverage/types/tx.go 0.00% <0.00%> (ø)
x/oracle/types/keys.go 100.00% <ø> (ø)
x/oracle/types/msgs.go 90.21% <0.00%> (-3.47%) ⬇️
x/leverage/keeper/exchange_rate.go 72.72% <12.50%> (ø)
x/leverage/keeper/oracle.go 60.29% <25.00%> (-7.28%) ⬇️
x/leverage/keeper/token.go 74.19% <50.00%> (-2.48%) ⬇️
x/leverage/types/token.go 72.52% <50.00%> (ø)
x/leverage/keeper/validate.go 62.02% <65.51%> (+12.02%) ⬆️
... and 22 more

@mergify mergify bot merged commit 73cb4d4 into main Sep 5, 2022
@mergify mergify bot deleted the adam/event branch September 5, 2022 12:10
// Module balance remaining
cosmos.base.v1beta1.Coin module_balance = 3 [(gogoproto.nullable) = false];
// Reserves remaining
cosmos.base.v1beta1.Coin reserves = 4 [(gogoproto.nullable) = false];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need it in an event?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be useful to track if the system has become unhealthy, and not accessible through any Msg or Response or Query.

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: Improve RepayBadDebt error log messages

4 participants