Skip to content

Commit 3d4e338

Browse files
committed
fix token balance by token symbol
1 parent 7858757 commit 3d4e338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daos/order.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ func (dao *OrderDao) GetUserLockedBalance(account common.Address, token common.A
777777
totalLockedBalance := big.NewInt(0)
778778
for _, o := range orders {
779779
for _, p := range pairs {
780-
if p.BaseTokenSymbol == o.BaseTokenSymbol() && p.QuoteTokenSymbol == o.QuoteTokenSymbol() {
780+
if p.BaseTokenAddress == o.BaseToken && p.QuoteTokenAddress == o.QuoteToken {
781781
if o.Side == types.BUY {
782782
remainingAmount := math.Sub(o.Amount, o.FilledAmount)
783783
amount := math.Mul(remainingAmount, o.PricePoint)

0 commit comments

Comments
 (0)