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

Resolves warnings from slither #190

Merged
merged 2 commits into from
Jul 3, 2024
Merged

Resolves warnings from slither #190

merged 2 commits into from
Jul 3, 2024

Conversation

has5aan
Copy link
Member

@has5aan has5aan commented Jul 1, 2024

What was the problem?

This PR resolves #182

How was it solved?

Modifies L2Reward and L2LockingPosition to supress or resolve slither warnings;

  • disables unchecked-transfer rule for all calls to IL2LiskToken.transferFrom in L2Reward
  • disables unused-return rule for all calls to IL2LiskToken.approve in L2Reward
  • disables unused-return rule for all calls to Math.trySub in L2Reward
  • disables reentrancy-no-eth for L2Reward._delePosition
  • disables reentrancy-no-eth for L2Reward._initiateFastUnlock
  • resolves warnings in L2Reward.createPosition
  • disables uninitialized-state for L2LockingPosition.lockingPosition state variable

How was it tested?

N/A

… warnings

disables unchecked-transfer rule for all calls to IL2LiskToken.transferFrom in L2Reward
disables unused-return rule for all calls to IL2LiskToken.approve in L2Reward
disables unused-return rule for all calls to Math.trySub in L2Reward
disables reentrancy-no-eth for L2Reward._delePosition
disables reentrancy-no-eth for L2Reward._initiateFastUnlock
resolves warnings in L2Reward.createPosition
disables uninitialized-state for L2LockingPosition.lockingPosition state variable
@has5aan has5aan self-assigned this Jul 2, 2024
@has5aan has5aan requested review from matjazv and Phanco July 3, 2024 06:29
@has5aan has5aan marked this pull request as ready for review July 3, 2024 06:29
Copy link
Contributor

@matjazv matjazv left a comment

Choose a reason for hiding this comment

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

Please fill missing parts inside PR description.

Copy link
Member

@Phanco Phanco left a comment

Choose a reason for hiding this comment

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

Approved

@matjazv matjazv merged commit 830a7fa into development Jul 3, 2024
4 checks passed
@matjazv matjazv deleted the 182 branch July 3, 2024 10:35
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.

Resolve all high and medium severity warnings from Slither
3 participants