Skip to content

Commit

Permalink
Drop override flag, just use the global flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
nyonson committed Mar 25, 2023
1 parent 276e23e commit e2376b4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cmd/raiju/raiju.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ func main() {
}

feesFlagSet := flag.NewFlagSet("fees", flag.ExitOnError)
standardLiquidityFeePPMOverride := feesFlagSet.Float64("standard-liquidity-fee-ppm", 0, "Override the default standard liquidity fee ppm")
daemon := feesFlagSet.Bool("daemon", false, "Run daemon which monitors channel liquidities and immediately updates fees when thresholds are crossed")

feesCmd := &ffcli.Command{
Expand Down Expand Up @@ -143,13 +142,7 @@ func main() {
c := lnd.New(services.Client, services.Client, services.Router, *network)
r := raiju.New(c)

// default to standard fee, override with flag
standard := *standardLiquidityFeePPM
if *standardLiquidityFeePPMOverride != 0 {
standard = *standardLiquidityFeePPMOverride
}

_, err = r.Fees(ctx, raiju.NewLiquidityFees(standard), *daemon)
_, err = r.Fees(ctx, raiju.NewLiquidityFees(*standardLiquidityFeePPM), *daemon)

return err
},
Expand Down

0 comments on commit e2376b4

Please sign in to comment.