Skip to content

Commit 87e6146

Browse files
committed
chore: clean up
1 parent 5c1b923 commit 87e6146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/include/app/event_handler_base.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class EventHandlerBase : public EventHandler {
145145
this->baseBalance -= lastExecutedSize;
146146
this->quoteBalance += lastExecutedPrice * lastExecutedSize;
147147
}
148-
this->updateBalanceByFee(feeAsset, feeQuantity, side, isMaker);
148+
this->updateAccountBalancesByFee(feeAsset, feeQuantity, side, isMaker);
149149
}
150150
this->privateTradeVolumeInBaseSum += lastExecutedSize;
151151
this->privateTradeVolumeInQuoteSum += lastExecutedSize * lastExecutedPrice;
@@ -1015,7 +1015,7 @@ class EventHandlerBase : public EventHandler {
10151015
// end: only applicable to backtest
10161016

10171017
protected:
1018-
virtual void updateBalanceByFee(const std::string& feeAsset, double feeQuantity, const std::string& side, bool isMaker) {
1018+
virtual void updateAccountBalancesByFee(const std::string& feeAsset, double feeQuantity, const std::string& side, bool isMaker) {
10191019
if (feeAsset == this->baseAsset) {
10201020
this->baseBalance -= feeQuantity;
10211021
} else if (feeAsset == this->quoteAsset) {

0 commit comments

Comments
 (0)