feat: add HEZ/DOT pool support and fix user-facing token names

- Add HEZ/DOT pool to PoolDashboard
- Display DOT, ETH, BTC instead of wDOT, wETH, wBTC to users
- Update priceOracle with correct symbol mappings
- Fix lint errors in check_all_pools.mjs
- Extract MINTABLE_ASSETS to separate file for fast refresh
This commit is contained in:
2026-02-06 11:06:28 +03:00
parent 884d68714b
commit 842dc9d8c2
7 changed files with 159 additions and 61 deletions
+1 -50
View File
@@ -8,16 +8,7 @@ import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Alert, AlertDescription } from '@/components/ui/alert';
import { useToast } from '@/hooks/use-toast';
export interface AssetConfig {
id: number;
symbol: string;
name: string;
decimals: number;
logo?: string;
defaultAmount?: string;
color?: string; // For theming (green, blue, orange, etc.)
}
import type { AssetConfig } from './mintableAssets';
interface MintAssetModalProps {
isOpen: boolean;
@@ -327,43 +318,3 @@ export const MintAssetModal: React.FC<MintAssetModalProps> = ({
</div>
);
};
// Pre-configured assets for easy use
export const MINTABLE_ASSETS: Record<string, AssetConfig> = {
wUSDT: {
id: 1000,
symbol: 'wUSDT',
name: 'Wrapped USDT',
decimals: 6,
logo: '/shared/images/USDT(hez)logo.png',
defaultAmount: '10000',
color: 'green',
},
wDOT: {
id: 1001,
symbol: 'wDOT',
name: 'Wrapped DOT',
decimals: 10,
logo: '/shared/images/dot.png',
defaultAmount: '100',
color: 'pink',
},
wETH: {
id: 1002,
symbol: 'wETH',
name: 'Wrapped ETH',
decimals: 18,
logo: '/shared/images/etherium.png',
defaultAmount: '10',
color: 'purple',
},
wBTC: {
id: 1003,
symbol: 'wBTC',
name: 'Wrapped BTC',
decimals: 8,
logo: '/shared/images/bitcoin.png',
defaultAmount: '1',
color: 'orange',
},
};