As @EperezOk mentions in this comment if the averageBlockTime decrease the window is increasead and also the cap(not visible in this segment of code).
Due the fact the current average block time of Arbitrum is 0.26s (source), we should set the averageBlockTime to this number and set an alarm to change it if necessary, for this purpose we add a new role named RISK_MANAGER that is able to change any Risk Parameter. This could be done automatically with a BOT or maybe using Defender.
Note: In the current version of Overlay Protocol this code is unreachable because we are using Chain Link Feed that sets the hasReserve property to false by default making any effort to solve this issue not necessary at the moment considering that adding a new feed also could lead to more modifications and a new audit.
Solves #178
Reference code
As @EperezOk mentions in this comment if the
averageBlockTime
decrease thewindow
is increasead and also thecap
(not visible in this segment of code).Due the fact the current average block time of Arbitrum is 0.26s (source), we should set the
averageBlockTime
to this number and set an alarm to change it if necessary, for this purpose we add a new role namedRISK_MANAGER
that is able to change any Risk Parameter. This could be done automatically with a BOT or maybe using Defender.Note: In the current version of Overlay Protocol this code is unreachable because we are using Chain Link Feed that sets the
hasReserve
property tofalse
by default making any effort to solve this issue not necessary at the moment considering that adding a new feed also could lead to more modifications and a new audit.