Skip to content

Commit

Permalink
Bitstamp: Update WithdrawFiat and WithdrawFiatFundsToInternationalBank
Browse files Browse the repository at this point in the history
  • Loading branch information
Beadko committed Dec 20, 2023
1 parent 0c40ad7 commit 8a220a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions exchanges/bitstamp/bitstamp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,8 @@ func TestWithdrawFiat(t *testing.T) {
}

var withdrawFiatRequest = withdraw.Request{
Type: withdraw.Fiat,
Exchange: b.Name,
Fiat: withdraw.FiatRequest{
Bank: banking.Account{
SupportedExchanges: b.Name,
Expand Down Expand Up @@ -644,6 +646,8 @@ func TestWithdrawInternationalBank(t *testing.T) {
}

var withdrawFiatRequest = withdraw.Request{
Type: withdraw.Fiat,
Exchange: b.Name,
Fiat: withdraw.FiatRequest{
Bank: banking.Account{
SupportedExchanges: b.Name,
Expand Down
4 changes: 0 additions & 4 deletions exchanges/bitstamp/bitstamp_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -740,8 +740,6 @@ func (b *Bitstamp) WithdrawCryptocurrencyFunds(ctx context.Context, withdrawRequ
// WithdrawFiatFunds returns a withdrawal ID when a
// withdrawal is submitted
func (b *Bitstamp) WithdrawFiatFunds(ctx context.Context, withdrawRequest *withdraw.Request) (*withdraw.ExchangeResponse, error) {
withdrawRequest.Exchange = b.Name
withdrawRequest.Type = withdraw.Fiat
if err := withdrawRequest.Validate(); err != nil {
return nil, err
}
Expand Down Expand Up @@ -769,8 +767,6 @@ func (b *Bitstamp) WithdrawFiatFunds(ctx context.Context, withdrawRequest *withd
// WithdrawFiatFundsToInternationalBank returns a withdrawal ID when a
// withdrawal is submitted
func (b *Bitstamp) WithdrawFiatFundsToInternationalBank(ctx context.Context, withdrawRequest *withdraw.Request) (*withdraw.ExchangeResponse, error) {
withdrawRequest.Exchange = b.Name
withdrawRequest.Type = withdraw.Fiat
if err := withdrawRequest.Validate(); err != nil {
return nil, err
}
Expand Down

0 comments on commit 8a220a8

Please sign in to comment.