mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-23 00:07:55 +00:00
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:
@@ -0,0 +1,49 @@
|
||||
export interface AssetConfig {
|
||||
id: number;
|
||||
symbol: string;
|
||||
name: string;
|
||||
decimals: number;
|
||||
logo?: string;
|
||||
defaultAmount?: string;
|
||||
color?: string; // For theming (green, blue, orange, etc.)
|
||||
}
|
||||
|
||||
// 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',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user