Skip to content

Commit

Permalink
xmaker: fix askExposureInUsd calc
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Nov 29, 2024
1 parent a335bf2 commit ad98e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/strategy/xmaker/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ func (s *Strategy) updateQuote(ctx context.Context) error {
makerQuota.Commit()
hedgeQuota.Commit()

askExposureInUsd = askExposureInUsd.Add(askQuantity.Mul(askPrice))
askExposureInUsd = askExposureInUsd.Add(requiredBase)
} else {
makerQuota.Rollback()
hedgeQuota.Rollback()
Expand Down

0 comments on commit ad98e52

Please sign in to comment.