diff --git a/pkg/exchange/max/convert.go b/pkg/exchange/max/convert.go index fb9de0b..531c251 100644 --- a/pkg/exchange/max/convert.go +++ b/pkg/exchange/max/convert.go @@ -284,6 +284,13 @@ 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 diff --git a/pkg/exchange/max/maxapi/account.go b/pkg/exchange/max/maxapi/account.go index 3f4600d..ab01c89 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 {