Lucene search
+L

3 matches found

Code423n4
Code423n4
•added 2022/03/16 12:00 a.m.•11 views

[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...

6.7AI score
SaveExploits0
Code423n4
Code423n4
•added 2022/03/15 12:00 a.m.•12 views

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...

6.9AI score
SaveExploits0
Code423n4
Code423n4
•added 2022/03/13 12:00 a.m.•11 views

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,...

6.8AI score
SaveExploits0
Rows per page
Query Builder