mirror of
https://github.com/alexgo-io/libbrc20-indexer.git
synced 2026-01-12 22:43:25 +08:00
feat: record data UpdateHeight
This commit is contained in:
@@ -25,6 +25,8 @@ func (g *BRC20ModuleIndexer) ProcessCommitFunctionDecreaseApproval(moduleInfo *m
|
||||
tokenBalance.SwapAccountBalance = tokenBalance.SwapAccountBalance.Sub(tokenAmt)
|
||||
tokenBalance.AvailableBalance = tokenBalance.AvailableBalance.Add(tokenAmt)
|
||||
|
||||
tokenBalance.UpdateHeight = g.BestHeight
|
||||
|
||||
log.Printf("pool decreaseApproval [%s] available: %s, swappable: %s", token, tokenBalance.AvailableBalance, tokenBalance.SwapAccountBalance)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user