Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouop0 committed Jul 17, 2024
1 parent 2b6a6aa commit 8da7402
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion internal/handler/calculateLost.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func CalculateLostBond(ctx *svc.ServiceContext) {
am := cast.ToInt64(amount)
for _, claimData := range claimDatas {
if address == claimData.Claimant {
am = am - cast.ToInt64(claimData.Bond)
am -= cast.ToInt64(claimData.Bond)
}
}
if am < 0 {
Expand Down
18 changes: 9 additions & 9 deletions internal/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import (

func Run(ctx *svc.ServiceContext) {
// query last block number
// go LatestBlackNumber(ctx)
//// sync blocks
//go SyncBlock(ctx)
//// sync events
//go SyncEvent(ctx)
//// sync dispute game
//go SyncDispute(ctx)
//// sync credit
//go SyncCredit(ctx)
go LatestBlackNumber(ctx)
// sync blocks
go SyncBlock(ctx)
// sync events
go SyncEvent(ctx)
// sync dispute game
go SyncDispute(ctx)
// sync credit
go SyncCredit(ctx)
// calculate lost bond
go CalculateLostBond(ctx)
}

0 comments on commit 8da7402

Please sign in to comment.