Skip to content

Commit

Permalink
register nftp discord bot
Browse files Browse the repository at this point in the history
  • Loading branch information
bonedaddy committed Mar 25, 2021
1 parent a559efe commit 48089e7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions discord/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,17 @@ func launchSingleWatcherBot(ctx context.Context, bot *discordgo.Session, bc *bcl
logger.Error("failed to get tvl price", zap.Error(err), zap.String("asset", "degen10"))
continue
}
case "nftp":
price, err = database.LastPrice("nftp")
if err != nil {
logger.Error("failed to get dai price", zap.Error(err), zap.String("asset", "nftp"))
continue
}
tvl, err = database.LastValueLocked("nftp")
if err != nil {
logger.Error("failed to get tvl price", zap.Error(err), zap.String("asset", "nftp"))
continue
}
case "ndx":
price, err = database.LastPrice("ndx")
if err != nil {
Expand Down

0 comments on commit 48089e7

Please sign in to comment.