[CurvyPuppet] Hint #69
Replies: 1 comment 1 reply
-
As far as I understood the exploit is based on the fact that during the reentrance, the total supply of LP tokens is already decreased but the value of the pool is not. Because the calculation of the virtual_price is: value of the pool / LP token supply, the virtual price will increase due to this inconsistency during reentrancy. I checked by adding liquidity in a balanced way (50% ETH, 50% stETH) I receive 1.8e20 LP token which is only ~0.003% of the total supply of LP tokens. Thus burning my LP tokens in the remove_liquidity function doesn't really cause a major inconsistency and liquidation is not possible. Any hint what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
-
Am I right in the assumption that this is the exploit that should be used in the challenge? https://www.chainsecurity.com/blog/curve-lp-oracle-manipulation-post-mortem
Beta Was this translation helpful? Give feedback.
All reactions