Skip to content
Request an audit

‹ Findings database

In GReservePool, remove unnecessary logic

Low/InfoGlacier audit·Three Sigma·Liquid staking·12th July, 20233S-GLACIER-N14

Description

In the function withdraw(), the variable amountTransfered is going to be equal to the biggest of two variables, either totalWithdraw or amount.

Since totalWithdraw will either be bigger than amount or the same, there is no need to check if one is bigger than the other as totalWithdraw will always be the correct value.

Therefore you can just use totalWithdraw for the transfer.

Status

Currently being reviewed by the team.