sherlock-audit / 2024-02-radicalxchange-judging

3 stars 1 forks source link

zzykxx - Changing parameters while a round is ongoing can lead to unexpected behaviour #57

Closed sherlock-admin4 closed 8 months ago

sherlock-admin4 commented 8 months ago

zzykxx

medium

Changing parameters while a round is ongoing can lead to unexpected behaviour

Summary

The protocol allows to change auction parameters while a round is ongoing, which can lead to unexpected behaviour.

Vulnerability Detail

The protocol allows auction parameters to be changed at any point in time. Parameters can be changed via:

There are some issues that might arise when parameters are changed while an auction is ongoing:

Impact

Changing auction parameters while a round is ongoing can lead to unexpected behaviour.

Code Snippet

Tool used

Manual Review

Recommendation

Cache the current auction parameters during the first bid of a round and then adjust the protocol to use those for the rest of the round.