Skip to content

Commit

Permalink
Update point_service.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehsan-saradar committed Dec 18, 2024
1 parent cfa1e6d commit fe32b98
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/services/point_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,14 @@ func (p *PointWorker) updateCoinPrice() error {
p.logger.Errorf("failed to update CACAO price: %v", err)
}
}
kweenPrice, err := p.priceResolver.GetCoinGeckoPrice("kween", "usd")
if err != nil {
p.logger.Errorf("failed to get KWEEN price: %v", err)
} else {
if err := p.storage.UpdateCoinPrice(common.Solana, "KWEEN", kweenPrice); err != nil {
p.logger.Errorf("failed to update KWEEN price: %v", err)
}
}

vthorPrice, err := p.priceResolver.GetLiFiPrice("eth", "0x815C23eCA83261b6Ec689b60Cc4a58b54BC24D8D")
if err != nil {
Expand Down

0 comments on commit fe32b98

Please sign in to comment.