Skip to content

Commit

Permalink
client/core: bondExpired ntfn only on sub-target tier
Browse files Browse the repository at this point in the history
  • Loading branch information
chappjc committed Feb 19, 2023
1 parent db6baa7 commit 5cdc07e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/core/bond.go
Expand Up @@ -1352,9 +1352,11 @@ func (c *Core) bondExpired(dc *dexConnection, assetID uint32, coinID []byte, new
bondIDStr, unbip(assetID))
}

details := fmt.Sprintf("New tier = %d (target = %d).", newTier, targetTier)
c.notify(newBondPostNoteWithTier(TopicBondExpired, string(TopicBondExpired),
details, db.Success, dc.acct.host, newTier))
if targetTier > uint64(newTier) {
details := fmt.Sprintf("New tier = %d (target = %d).", newTier, targetTier)
c.notify(newBondPostNoteWithTier(TopicBondExpired, string(TopicBondExpired),
details, db.WarningLevel, dc.acct.host, newTier))
}

return nil
}

0 comments on commit 5cdc07e

Please sign in to comment.