Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/services/token_prices.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ var TokenPrices = map[string]float64{
//
// Mock prices are set to $100 per whole token for development.
// In the future, these prices will be fetched from real price feeds.
"gno.land/r/demo/wugnot:gno.land/r/gnoswap/v1/gns:3000:0": 10.0, // Example market ID for GNOT token
"gno.land/r/demo/wugnot:gno.land/r/gnoswap/v1/test_token/bar:3000:0": 10.0, // Example market ID for test token
"gno.land/r/gnoland/wugnot:gno.land/r/gnoswap/gns:3000:0": 10.0, // Example market ID for GNOT token
"gno.land/r/gnoland/wugnot:gno.land/r/gnoswap/test_token/bar:3000:0": 10.0, // Example market ID for test token
}

// GetTokenPrice returns the fiat price for a given market ID.
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/(app)/borrow/queries-mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function useMarketsQuery() {
const response = await getMarkets();

// Transform API Market to MarketInfo format
const markets: MarketInfo[] = response.markets.map(market => ({
const markets: MarketInfo[] = (response.markets || []).map(market => ({
// Market fields
totalSupplyAssets: market.total_supply,
totalSupplyShares: market.total_supply_shares,
Expand Down