3 matches found
[WP-H8] Wrong formula for the fee to be added to the incentivePool
Lines of code Vulnerability details The protocol takes part of the fees to incentivize liquidity, which is recorded as incentivePooltokenAddress on LiquidityPool.sol. However, the formula used to calculate the updated amount of incentivePooltokenAddress in the current implementation is wrong...
incentivePool increase is broken
Lines of code Vulnerability details Impact When updating the incentivePool it divides the previous value by BASEDIVISOR. On each update, the incentivePool basically resets itself to only the increment and loses the previous incentive pool. // @audit divides entire previous incentivePool by...
Wrong formula when add fee incentivePool can lead to loss of funds.
Lines of code Vulnerability details Impact The getAmountToTransfer function of LiquidityPool updates incentivePooltokenAddress by adding some fee to it but the formula is wrong and the value of incentivePooltokenAddress will be divided by BASEDIVISOR 10000000000 each time. After just a few time,...