Skip to content

Discrepancy Between Estimated and Actual Fees for Storing Data in Smart Contract #53

@Nick-1979

Description

@Nick-1979

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

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions