Skip to content

Commit 1d16a57

Browse files
committed
Refactor Market Utilities and Multipliers to Remove Spice References
- Removed references to 'spice' from the getExtraRewardIcons function in marketUtils.ts. - Updated multipliers.ts to eliminate 'spice' checks in borrow and supply configurations for various tokens, streamlining the code.
1 parent 4776bba commit 1d16a57

2 files changed

Lines changed: 12 additions & 44 deletions

File tree

packages/ui/utils/marketUtils.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,6 @@ export const getExtraRewardIcons = (
149149
);
150150
}
151151

152-
if (config?.spice) {
153-
additionalRewards.push({
154-
name: 'spice',
155-
icon: '/img/symbols/32/color/bob.png',
156-
text: '+ Spice Points'
157-
});
158-
}
159-
160152
return additionalRewards;
161153
};
162154

packages/ui/utils/multipliers.ts

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -418,52 +418,28 @@ export const multipliers: Record<
418418
[bob.id]: {
419419
'0': {
420420
USDC: {
421-
borrow: {
422-
spice: true
423-
},
424-
supply: {
425-
spice: true
426-
}
421+
borrow: {},
422+
supply: {}
427423
},
428424
USDT: {
429-
borrow: {
430-
spice: true
431-
},
432-
supply: {
433-
spice: true
434-
}
425+
borrow: {},
426+
supply: {}
435427
},
436428
WETH: {
437-
borrow: {
438-
spice: true
439-
},
440-
supply: {
441-
spice: true
442-
}
429+
borrow: {},
430+
supply: {}
443431
},
444432
WBTC: {
445-
borrow: {
446-
spice: true
447-
},
448-
supply: {
449-
spice: true
450-
}
433+
borrow: {},
434+
supply: {}
451435
},
452436
tBTC: {
453-
borrow: {
454-
spice: true
455-
},
456-
supply: {
457-
spice: true
458-
}
437+
borrow: {},
438+
supply: {}
459439
},
460440
SOV: {
461-
borrow: {
462-
spice: true
463-
},
464-
supply: {
465-
spice: true
466-
}
441+
borrow: {},
442+
supply: {}
467443
}
468444
}
469445
},

0 commit comments

Comments
 (0)