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 Jan 16, 2024
1 parent c2bf135 commit 34fca64
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 @@ -616,6 +616,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 @@ -657,6 +659,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 34fca64

Please sign in to comment.