From cb9f4a0186896733af4df4362ae6a3b907b648e4 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 a640166..75e95b9 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