diff --git a/pkg/exchange/binance/reward.go b/pkg/exchange/binance/reward.go index ae52af638..8bf3dfdcf 100644 --- a/pkg/exchange/binance/reward.go +++ b/pkg/exchange/binance/reward.go @@ -27,7 +27,7 @@ func (e *Exchange) QueryRewards(ctx context.Context, startTime time.Time) ([]typ case binanceapi.RebateTypeCommission: // use the default type } - + rewards = append(rewards, types.Reward{ UUID: strconv.FormatInt(entry.UpdateTime.Time().UnixMilli(), 10), Exchange: types.ExchangeBinance, diff --git a/pkg/types/reward.go b/pkg/types/reward.go index a093dd4ac..307486d15 100644 --- a/pkg/types/reward.go +++ b/pkg/types/reward.go @@ -10,13 +10,13 @@ import ( type RewardType string const ( - RewardAirdrop = RewardType("airdrop") - RewardCommission = RewardType("commission") + RewardAirdrop = RewardType("airdrop") + RewardCommission = RewardType("commission") RewardReferralKickback = RewardType("referral_kickback") - RewardHolding = RewardType("holding") - RewardMining = RewardType("mining") - RewardTrading = RewardType("trading") - RewardVipRebate = RewardType("vip_rebate") + RewardHolding = RewardType("holding") + RewardMining = RewardType("mining") + RewardTrading = RewardType("trading") + RewardVipRebate = RewardType("vip_rebate") ) type Reward struct {