Elastic-Finance-DAO / eefi_contracts

0 stars 0 forks source link

Audit fixes #60

Closed stalker474 closed 10 months ago

stalker474 commented 10 months ago

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.