File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/ExchangeSharp/API/Exchanges/Poloniex Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -910,10 +910,14 @@ protected override async Task<ExchangeWithdrawalResponse> OnWithdrawAsync(Exchan
910910 paramsList . Add ( withdrawalRequest . AddressTag ) ;
911911 }
912912
913- JToken token = await MakePrivateAPIRequestAsync ( "withdraw" , paramsList . ToArray ( ) ) ;
914- ExchangeWithdrawalResponse resp = new ExchangeWithdrawalResponse { Message = token [ "response" ] . ToStringInvariant ( ) } ;
915- return resp ;
916- }
913+ var token = await MakePrivateAPIRequestAsync ( "withdraw" , paramsList . ToArray ( ) ) ;
914+
915+ return new ExchangeWithdrawalResponse
916+ {
917+ Id = token [ "withdrawalNumber" ] ? . ToString ( ) ,
918+ Message = token [ "response" ] . ToStringInvariant ( )
919+ } ;
920+ }
917921
918922 protected override async Task < ExchangeDepositDetails > OnGetDepositAddressAsync ( string currency , bool forceRegenerate = false )
919923 {
You can’t perform that action at this time.
0 commit comments