mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
max: convert v3 DepositStateFailed into rejected
This commit is contained in:
parent
a2f8fe5f72
commit
2527c0c7b7
|
@ -262,6 +262,9 @@ func toGlobalDepositStatus(a max.DepositState) types.DepositStatus {
|
||||||
case max.DepositStateAccepted:
|
case max.DepositStateAccepted:
|
||||||
return types.DepositSuccess
|
return types.DepositSuccess
|
||||||
|
|
||||||
|
case max.DepositStateFailed: // v3 state
|
||||||
|
return types.DepositRejected
|
||||||
|
|
||||||
case max.DepositStateProcessing: // v3 states
|
case max.DepositStateProcessing: // v3 states
|
||||||
return types.DepositPending
|
return types.DepositPending
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user