Skip to content

Commit

Permalink
Fee reserve top ups
Browse files Browse the repository at this point in the history
  • Loading branch information
martonp committed Oct 21, 2024
1 parent dfe0723 commit c4fc1ce
Show file tree
Hide file tree
Showing 9 changed files with 569 additions and 80 deletions.
5 changes: 5 additions & 0 deletions client/mm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ type CEXConfig struct {
type AutoRebalanceConfig struct {
MinBaseTransfer uint64 `json:"minBaseTransfer"`
MinQuoteTransfer uint64 `json:"minQuoteTransfer"`
// InternalTransfers indicates whether the bot should attempt internal
// transfers or not. If MinBaseTransfer or MinQuoteTransfer > 0,
// internal transfers will be attempted regardless of this setting.
InternalTransfers bool `json:"internalTransfers"`
TopUpFeeReserves bool `json:"topUpFeeReserves"`
}

// BotBalanceAllocation is the initial allocation of funds for a bot.
Expand Down
279 changes: 231 additions & 48 deletions client/mm/exchange_adaptor.go

Large diffs are not rendered by default.

Loading

0 comments on commit c4fc1ce

Please sign in to comment.