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
910
910
paramsList . Add ( withdrawalRequest . AddressTag ) ;
911
911
}
912
912
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
+ }
917
921
918
922
protected override async Task < ExchangeDepositDetails > OnGetDepositAddressAsync ( string currency , bool forceRegenerate = false )
919
923
{
You can’t perform that action at this time.
0 commit comments