diff --git a/pkg/exchange/max/convert.go b/pkg/exchange/max/convert.go index 20b80e397..7c23f9b69 100644 --- a/pkg/exchange/max/convert.go +++ b/pkg/exchange/max/convert.go @@ -284,11 +284,18 @@ func toGlobalDepositStatus(a max.DepositState) types.DepositStatus { case max.DepositStateAccepted: return types.DepositSuccess + + case max.DepositStateProcessing: // v3 states + return types.DepositPending + + case max.DepositStateDone: // v3 states + return types.DepositSuccess + } // other states goes to this // max.DepositStateSuspect, max.DepositStateSuspended - log.Warnf("unsupported deposit state %q from max exchange", a) + log.Errorf("unsupported deposit state %q from max exchange", a) return types.DepositStatus(a) } diff --git a/pkg/exchange/max/maxapi/account.go b/pkg/exchange/max/maxapi/account.go index a363a0449..ccf4c165b 100644 --- a/pkg/exchange/max/maxapi/account.go +++ b/pkg/exchange/max/maxapi/account.go @@ -116,6 +116,10 @@ const ( DepositStateSuspended DepositState = "suspended" DepositStateAccepted DepositState = "accepted" DepositStateChecking DepositState = "checking" + + // v3 states + DepositStateProcessing DepositState = "processing" + DepositStateDone DepositState = "done" ) type Deposit struct { diff --git a/pkg/strategy/deposit2transfer/strategy.go b/pkg/strategy/deposit2transfer/strategy.go index 07d14281a..bdd072e45 100644 --- a/pkg/strategy/deposit2transfer/strategy.go +++ b/pkg/strategy/deposit2transfer/strategy.go @@ -236,7 +236,7 @@ func (s *Strategy) scanDepositHistory(ctx context.Context, asset string, duratio s.watchingDeposits[deposit.TransactionID] = deposit } } else { - // ignore all initial deposit history that are already success + // ignore all initial deposits that are already in success status logger.Infof("ignored succeess deposit: %s %+v", deposit.TransactionID, deposit) }