Optimized deposit popping to be able to remove several deposits in one go (gas optimization).
Multiplication before division fixes.
For the Finding #3 I think that the loss of precision is inevitable due to the way we handle the "bonds" system in the staking process. We need to compute the increase of bond value based on the distributed amount. The loss of precision is compensated by the temp buffer.
Optimized deposit popping to be able to remove several deposits in one go (gas optimization). Multiplication before division fixes.
For the Finding #3 I think that the loss of precision is inevitable due to the way we handle the "bonds" system in the staking process. We need to compute the increase of bond value based on the distributed amount. The loss of precision is compensated by the temp buffer.