Open c4-bot-1 opened 7 months ago
https://github.com/othernet-global/salty-io/blob/main/src/pools/Pools.sol#L201
M-09 highlighted the typo error where reserve0 was used twice and reserve1 was missing:
reserve0
reserve1
require((reserves.reserve0 >= PoolUtils.DUST) && (reserves.reserve0 >= PoolUtils.DUST), "Insufficient reserves after liquidity removal");
This has been corrected now on L201:
require((reserves.reserve0 >= PoolUtils.DUST) && (reserves.reserve1 >= PoolUtils.DUST), "Insufficient reserves after liquidity removal");
Fixed.
Picodes marked the issue as satisfactory
Picodes marked the issue as confirmed for report
Lines of code
Vulnerability details
Lines of code
https://github.com/othernet-global/salty-io/blob/main/src/pools/Pools.sol#L201
Vulnerability details
Summary
M-09 highlighted the typo error where
reserve0
was used twice andreserve1
was missing:Mitigation
This has been corrected now on L201:
Fixed.