UNPKG

@admin-jigsaw/jigsaw-sdk

Version:

Returns predefined data for Jigsaw platform and exposes functionality to retrieve the necessary data

83 lines (82 loc) 2.57 kB
// TODO: Development only, not for production. // Dictionary of coins for the Ethereum chain export const COLLATERALS_SWELL = { // Stablecoins USDC: { name: "USD Coin", symbol: "USDC", displaySymbol: "USDC", icon: "/assets/coins/usdc.webp", address: "0x99a38322cAF878Ef55AE4d0Eda535535eF8C7960", id: "usd-coin", decimals: 6, }, USDT: { name: "Tether USD", symbol: "USDT", displaySymbol: "USDT", icon: "/assets/coins/usdt.webp", address: "0xb89c6ED617f5F46175E41551350725A09110bbCE", id: "tether", decimals: 6, }, // Majors ETH: { name: "Ethereum Native Coin", symbol: "ETH", displaySymbol: "ETH", icon: "/assets/coins/eth.webp", address: null, id: "ethereum", }, WETH: { name: "Wrapped Ether", symbol: "WETH", displaySymbol: "WETH", icon: "/assets/coins/weth.webp", address: "0x4200000000000000000000000000000000000006", id: "weth", decimals: 18, }, // Liquid Restaking Tokens (LRTs) rswETH: { name: "Restaked Swell ETH", symbol: "rswETH", displaySymbol: "rswETH", icon: "/assets/coins/rswETH.webp", address: "0x18d33689AE5d02649a859A1CF16c9f0563975258", decimals: 18, id: "restaked-swell-eth", }, // Jigsaw Coin jUSD: { name: "Jigsaw USD", symbol: "jUSD", displaySymbol: "jUSD", icon: "/assets/coins/jUSD.svg", address: "0x0247b0b35dcad632d883446034b36c60179a546e", decimals: 18, id: "jigsaw-usd", }, }; export const COLLATERALS_GROUPS_SWELL = [ { name: "Stablecoins", coins: [COLLATERALS_SWELL.USDC, COLLATERALS_SWELL.USDT], }, { name: "Majors", coins: [COLLATERALS_SWELL.WETH, COLLATERALS_SWELL.ETH], }, { name: "Liquid Restaking Tokens", coins: [COLLATERALS_SWELL.rswETH], }, ]; export const SYMBOLS_ALL_SWELL = Object.keys(COLLATERALS_SWELL); export const SYMBOLS_BASE_SWELL = SYMBOLS_ALL_SWELL.filter((symbol) => symbol !== COLLATERALS_SWELL.jUSD.symbol && symbol !== COLLATERALS_SWELL.ETH.symbol); export const SYMBOLS_BORROW_SWELL = SYMBOLS_BASE_SWELL; export const SYMBOLS_DEPOSIT_SWELL = SYMBOLS_ALL_SWELL.filter((symbol) => symbol !== COLLATERALS_SWELL.jUSD.symbol); // TODO: Withdrawable reward tokens can be added here in the future. export const SYMBOLS_WITHDRAW_SWELL = SYMBOLS_BASE_SWELL;