Fee Token Contract
Last updated
Last updated
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;
In the Mainnet 0 release, withdrawals are not enabled and thus the MAX_DEPOSIT_AMOUNT
aims to minimize how much ETH is locked by a builder.
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;