Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateRequiredCollateral ¶
func CalculateRequiredCollateral(games []*monTypes.EnrichedGameData) map[common.Address]Collateral
CalculateRequiredCollateral determines the minimum balance required for each DelayedWETH contract used by a set of dispute games. Returns a map of DelayedWETH contract address to collateral data (required and actual amounts)
Types ¶
type BondMetrics ¶ added in v1.7.2
type Bonds ¶ added in v1.7.2
type Bonds struct {
// contains filtered or unexported fields
}
func NewBonds ¶ added in v1.7.2
func NewBonds(logger log.Logger, metrics BondMetrics, clock RClock) *Bonds
func (*Bonds) CheckBonds ¶ added in v1.7.2
func (b *Bonds) CheckBonds(games []*types.EnrichedGameData)
type Collateral ¶ added in v1.7.3
Click to show internal directories.
Click to hide internal directories.