mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-29 15:10:37 +00:00
Tests: Use currency.NewBTCUSD and NewBTCUSDT (#1895)
* Tests: Use currency.NewUSD and NewUSDT Simple refactor to use the provided shortcut methods * Github: Add CI check to ensure NewPair not used Add a step to ensure NewPair(BTC, USD*) isn't used
This commit is contained in:
@@ -32,7 +32,7 @@ const (
|
||||
|
||||
var (
|
||||
b = &Bitstamp{}
|
||||
btcusdPair = currency.NewPair(currency.BTC, currency.USD)
|
||||
btcusdPair = currency.NewBTCUSD()
|
||||
)
|
||||
|
||||
func setFeeBuilder() *exchange.FeeBuilder {
|
||||
@@ -252,7 +252,7 @@ func TestUpdateOrderExecutionLimits(t *testing.T) {
|
||||
tests := map[asset.Item][]limitTest{
|
||||
asset.Spot: {
|
||||
{currency.NewPair(currency.ETH, currency.USDT), 0.01, 20},
|
||||
{currency.NewPair(currency.BTC, currency.USDT), 0.01, 20},
|
||||
{currency.NewBTCUSDT(), 0.01, 20},
|
||||
},
|
||||
}
|
||||
for assetItem, limitTests := range tests {
|
||||
|
||||
Reference in New Issue
Block a user