Submitted by Evo
https://github.com/code-423n4/2025-01-pump-science/blob/main/programs/pump-science/src/state/bonding_curve/curve.rs#L306
The bonding curve invariant check fails to account for rent when comparing SOL balances, leading to incorrect validation of the protocols core invariant. Since sol_escrow_lamports includes rent while real_sol_reserves doesnt, the invariant check could pass when it should fail. 
The issue exists in the bonding curve invariant check in curve.rs:L306:
The issue arises because:
For example:
Evidence of the original intent to handle rent can be seen in the commented out code:
Which will cause the issue.
Subtract the rent-exemption amount from sol_escrow_lamports before comparing to real_sol_reserves in the invariant check.
Kulture (Pump Science) confirmed
