The Pump Science protocols pool migration process includes a hardcoded gas fee deduction in the initialize_pool_with_config() function:
The function subtracts a hardcoded value of 0.04 SOL (40000000 lamports) for gas fees during pool migration. This presents several issues:
For example, if network congestion pushes gas costs to 0.06 SOL:
Pool migrations may fail during network congestion or incur unnecessary costs during low network activity due to inflexible gas fee allocation.
Make the gas fee configurable in the global state:
