Skip to content

Commit

Permalink
feat: removed sdk.Int
Browse files Browse the repository at this point in the history
  • Loading branch information
boodyvo committed Sep 23, 2024
1 parent daae21b commit e6750af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alerts/auctions/calc.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func CalculateTotalAuctionsUSDValue(data *AuctionData) (sdk.Dec, error) {
return totalValue, nil
}

// calculateUSDValue calculates the USD value of a given Coin and AssetInfo
// CalculateUSDValue calculates the USD value of a given Coin and AssetInfo
func CalculateUSDValue(coin sdk.Coin, assetInfo AssetInfo) sdk.Dec {
return coin.Amount.ToLegacyDec().Quo(assetInfo.ConversionFactor.ToLegacyDec()).Mul(assetInfo.Price)
}
Expand Down
2 changes: 1 addition & 1 deletion alerts/auctions/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func GetAuctionData(client AuctionClient) (*AuctionData, error) {
func deduplicateMarkets(cdpMarkets cdptypes.CollateralParams, hardMarkets hardtypes.MoneyMarkets) []auctionMarket {
seenDenoms := make(map[string]bool)

markets := []auctionMarket{}
markets := make([]auctionMarket, 0)

for _, cdpMarket := range cdpMarkets {
_, seen := seenDenoms[cdpMarket.Denom]
Expand Down

0 comments on commit e6750af

Please sign in to comment.