Documentation ¶
Overview ¶
Package riskctrl do the audit job and send warning emails when finds illegal situations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmailConfig ¶
type EmailConfig struct { Server string Port int From string FromName string Password string `json:"-"` To []string Cc []string }
EmailConfig email config
type RiskConfig ¶
type RiskConfig struct { SrcChain *tokens.ChainConfig SrcToken *tokens.TokenConfig SrcGateway *tokens.GatewayConfig DestChain *tokens.ChainConfig DestToken *tokens.TokenConfig DestGateway *tokens.GatewayConfig Email *EmailConfig InitialDiffValue float64 MaxAuditBalanceDiffValue float64 MaxAuditSupplyDiffValue float64 MinWithdrawReserve float64 }
RiskConfig risk config
Click to show internal directories.
Click to hide internal directories.