Skip to content

System Fee Determinism

Latest
Compare
Choose a tag to compare
@lllwvlvwlll lllwvlvwlll released this 27 Jan 05:18
· 52 commits to develop since this release

General

This release implements system fee determinism to the generator and puppet contracts which allows all non-deterministic code to execute with the same system fee. This behavior creates a predictable invocation experience for users and prevents any form of exploitation by leveraging attached GAS.

  • Adds optimization scripts to help identify an ideal system fee parameter for both generators and puppets

Generators

  • Introduces a default system fee for generator creation
  • Introduces the ability for generator instances to tune the system fee (this is important in the situation where the network policy changes)

Puppets

  • Introduces the ability for fees to be defined by epoch