package
Version:
v0.0.1-RC2
Opens a new window with list of versions in this module.
Published: Dec 6, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Checker checks profitability to send sequences
func New(
cfg Config,
etherMan etherman,
priceGetter priceGetter) *Checker
New creates new profitability checker
IsSendSequencesProfitable checks profitability to send sequences to the ethereum
IsSequenceProfitable check if sequence is profitable by comparing L1 tx gas cost and collateral with fee rewards
type Config struct {
SendBatchesEvenWhenNotProfitable bool `mapstructure:"SendBatchesEvenWhenNotProfitable"`
}
Config for profitability checker
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.