-
Notifications
You must be signed in to change notification settings - Fork 40
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
fix: format refund logs and update cosmos-sdk #991
Conversation
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## bc-fusion #991 +/- ##
=============================================
- Coverage 48.82% 48.82% -0.01%
=============================================
Files 127 127
Lines 12800 12802 +2
=============================================
Hits 6250 6250
- Misses 6120 6122 +2
Partials 430 430 ☔ View full report in Codecov by Sentry. |
plugins/tokens/plugin.go
Outdated
continue | ||
} | ||
|
||
logger.Info("succeed to refund swap", "swapId", swapID, "swap", fmt.Sprintf("%+v", swapItem)) | ||
swapKeeper.SetLatestProcessedRefundSwapKey(ctx, swapIterator.Key()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we record the key and update the lasted proceed key outside the loop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if outside the loop, you will never know the key. will this be heavy in Endblock
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've checked the codes, and found that swap
would be gc in the breathe block, so I think this change is unnecessary
Description
format refund logs and update cosmos-sdk
Rationale
n/a
Example
n/a
Changes
Notable changes:
Preflight checks
make build
)make test
)make integration_test
)Already reviewed by
n/a
Related issues
n/a