Skip to content

Commit

Permalink
docs: update recommendation for msg.value-inside-a-loop (#1971)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg authored Jun 20, 2023
1 parent d56f663 commit 7f7ff77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slither/detectors/statements/msg_value_in_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class MsgValueInLoop(AbstractDetector):
# endregion wiki_exploit_scenario

WIKI_RECOMMENDATION = """
Track msg.value through a local variable and decrease its amount on every iteration/usage.
Provide an explicit array of amounts alongside the receivers array, and check that the sum of all amounts matches `msg.value`.
"""

def _detect(self) -> List[Output]:
Expand Down

0 comments on commit 7f7ff77

Please sign in to comment.