Fee Token Contract

The source code for the fee token contract can be found on GitHub.

The fee token contract enables builders to deposit ETH which allows them to pay for a data processing fee associated with HotShot. While the fee token contract facilitates deposits, HotShot itself manages and tracks the working balance of builder deposits. Initially, the fee token contract only supports deposits. Withdrawals are planned to be enabled in a future release.

function deposit(address user) public payable {
    //...
}

The contract defines a minimum and maximum amount for deposits to avoid errors and prevent the fee table from being filled with dust.

uint256 public immutable MAX_DEPOSIT_AMOUNT = 1 ether;
uint256 public immutable MIN_DEPOSIT_AMOUNT = 0.001 ether;

Public Write Methods

deposit

Allows anyone to deposit an ETH balance for any user

the deposit amount is less than a specified threshold to prevent accidental errors

function deposit(address user) public payable;

Fee Token Contract UML

Fee Token Contract Dependency Graph

Last updated