From 2527c0c7b75c7976dcb3dc0d4742a9ef4e69332a Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 4 Sep 2024 15:00:37 +0800 Subject: [PATCH] max: convert v3 DepositStateFailed into rejected --- pkg/exchange/max/convert.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/exchange/max/convert.go b/pkg/exchange/max/convert.go index 85cab17e4..ca36a41f8 100644 --- a/pkg/exchange/max/convert.go +++ b/pkg/exchange/max/convert.go @@ -262,6 +262,9 @@ func toGlobalDepositStatus(a max.DepositState) types.DepositStatus { case max.DepositStateAccepted: return types.DepositSuccess + case max.DepositStateFailed: // v3 state + return types.DepositRejected + case max.DepositStateProcessing: // v3 states return types.DepositPending