I'm designing a solana contract where an admin performs an approval after a user makes a request.
The approval instruction closes a PDA corresponding to the request and returns its SOLs to the user who created the request.
I want to calcuate the cost of the approval txn and deduct it from the SOLs of the request PDA before returning the rest to the user.
Is it possible to calculate this from inside the contract?