Skip to content

Commit 3a05f97

Browse files
committed
v1.7.0
1 parent a61a61f commit 3a05f97

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.7.0 - 2024-03-15
4+
### Updated
5+
- Fix precision of quantity in newOrder response
6+
7+
38
## 1.6.9 - 2024-03-04
49
### Updated
510
- Add minStepSize/maxSize in ShowTokenData struct

cmd/test/init_config.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package test
22

33
import (
4-
"fmt"
5-
"github.com/BurntSushi/toml"
64
"github.com/degatedev/degate-sdk-golang/conf"
75
"github.com/degatedev/degate-sdk-golang/log"
86
)
@@ -15,12 +13,5 @@ var appConfig = &conf.AppConfig{
1513
}
1614

1715
func init() {
18-
fmt.Println("hahahhaha")
19-
_, err := toml.DecodeFile("./credential.toml", appConfig)
20-
if err != nil {
21-
panic(fmt.Sprintf("init appConfig failed, err=%+v", err))
22-
}
23-
fmt.Println("init appConfig success")
24-
fmt.Println(appConfig.BaseUrl)
2516
log.Init(appConfig.Debug)
2617
}

degate/lib/convert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ func ConvertOrderUpdate(symbol string, orderType string, side string, quoteToken
432432
buyFillVolume = decimal.NewFromInt(0)
433433
tokens = map[uint32]*model.TokenInfo{
434434
uint32(quoteToken.Id): quoteToken,
435-
uint32(baseToken.Id): quoteToken,
435+
uint32(baseToken.Id): baseToken,
436436
uint32(feeToken.Id): quoteToken,
437437
}
438438
)

0 commit comments

Comments
 (0)