The screenshots show the actual fee displayed on Subscan for storing data in a smart contract, which matches the exact amount deducted from the balance, as confirmed in Remix. However, as shown in the insights displayed in MetaMask, the estimated fee differs significantly from the actual fee.
We calculate the fee using the formula:
(gasConsumed.refTime + gasConsumed.proofSize) * gasPrice + storageDepositCharge
