Gas & Fuse Limits

The TEA Project uses a fuse design to ensure that developer's code doesn't use more gas than expected (e.g. infinite loops, recursion).

In the TEA Project design, there's a soft limit known as the gas limit in addition to a hard limit where the fuse kicks in.

  • The end-user has a gas limit which they acknowledge they're responsible for when using the TApp.

  • The developer has a security deposit that's charged whenever an actor uses more than the gas limit up until the fuse point where their entire security deposit is slashed.

Each actor has its own security deposit that the developer must fund. These security deposits correlate to the memory quota of the actor which is the max amount of memory that actor can use. This memory quota is set by the TEA Project and is the same for each actor. The larger the memory quota, the higher the security deposit.

The fuse limit sits above the gas limit and is also set by the TEA Project.

The following table summarizes what happens when these two levels, gas limit and fuse, are breached.

The developer can run their code in a test environment to get an idea of each actor’s memory usage as well as test for edge cases which cause high utilization.

Last updated