Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: okx deposit idempotency #449

Merged
merged 2 commits into from
Oct 23, 2023
Merged

fix: okx deposit idempotency #449

merged 2 commits into from
Oct 23, 2023

Conversation

bodymindarts
Copy link
Member

@bodymindarts bodymindarts commented Oct 23, 2023

Deposits to okx get identified in a specific state.
State "1" are not yet available for withdraw and thus should still remain in state 'pending' otherwise multiple deposits will be
initiated.

deposits in state "1" are not yet available for withdraw and thus should
still remain in state 'pending' otherwise multiple deposits will be
initiated.
@bodymindarts bodymindarts merged commit 2319826 into main Oct 23, 2023
3 of 4 checks passed
@bodymindarts bodymindarts deleted the fix-deposit-idempotency branch October 23, 2023 08:48
Ok(DepositStatus {
state: match &deposit_data.state[..] {
"0" => "pending".to_string(), // waiting for confirmation
"1" => "success".to_string(), // deposit credited, cannot withdraw
"1" => "pending".to_string(), // deposit credited, cannot withdraw
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the root cause

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant