Follow up with specific example:
At max under (actually way over- i have 10billion in allies)
Doing a haunting, current ally plunder is 15,007,517
Then i spend 6b and upgrade a cursed foundary to level 3
Go to same haunting, but now my ally plunder is 14,866,413
I upgraded and lost a coupla hundred thousand in plunder! Wtf!