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

fix: fix the security issues #219

Merged
merged 1 commit into from
Jun 8, 2023
Merged

fix: fix the security issues #219

merged 1 commit into from
Jun 8, 2023

Conversation

yutianwu
Copy link
Collaborator

@yutianwu yutianwu commented Jun 8, 2023

Description

This pr will fix the potential security issues:

  • Make sure the relayer reward is positive

Rationale

Fix the potential security issues

Example

n/a

Changes

Notable changes:

  • fix the security issues

@@ -158,6 +158,8 @@ func (k Keeper) distributeReward(ctx sdk.Context, relayer sdk.AccAddress, signed
if err != nil {
return err
}
} else if remainingReward.IsNegative() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you change the title, let us not use fix security issue, but talk about the detailed problem.

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.

3 participants