From 8d26e3a911b2633ec3b7430baa56d93f72260296 Mon Sep 17 00:00:00 2001 From: yosuke Date: Wed, 29 Oct 2025 20:52:23 +0900 Subject: [PATCH 1/2] add as string --- constants/pools.ts | 192 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 187 insertions(+), 5 deletions(-) diff --git a/constants/pools.ts b/constants/pools.ts index c311d1e..1a6edf9 100644 --- a/constants/pools.ts +++ b/constants/pools.ts @@ -6,6 +6,7 @@ export interface PoolNames { USDC: string; crvUSD: string; WETH: string; + JPYC: string; // 新しい要素が追加される場合はここに追加 // 例: EUR: string; } @@ -16,6 +17,7 @@ export const SupportedPoolName = { USDC: "USDC", crvUSD: "crvUSD", WETH: "WETH", + JPYC: "JPYC", }, [SupportedChainId.SEPOLIA]: { CJPY: "", @@ -27,7 +29,7 @@ export const SupportedPoolName = { export const POOL_CONFIG_MAP: PoolConfigMap = { [SupportedChainId.MAINNET]: { - [SupportedPoolName[SupportedChainId.MAINNET].CJPY]: { + [SupportedPoolName[SupportedChainId.MAINNET].CJPY as string]: { proxy: "0xAA59F501c92092E624D30Cff77eAFf5EA4E7BfA2", reward: "0xA1D458530da3C4a4F0ED26BEC5E6CdE6ad0B7aC4", cometDecimals: 18, @@ -207,7 +209,7 @@ export const POOL_CONFIG_MAP: PoolConfigMap = { }, ], }, - [SupportedPoolName[SupportedChainId.MAINNET].USDC]: { + [SupportedPoolName[SupportedChainId.MAINNET].USDC as string]: { proxy: "0x7a997e2D7C84abb219832d944141de210e2840e1", reward: "0xA1D458530da3C4a4F0ED26BEC5E6CdE6ad0B7aC4", cometDecimals: 18, @@ -312,7 +314,7 @@ export const POOL_CONFIG_MAP: PoolConfigMap = { }, ], }, - [SupportedPoolName[SupportedChainId.MAINNET].crvUSD]: { + [SupportedPoolName[SupportedChainId.MAINNET].crvUSD as string]: { proxy: "0xE0e2d860797eF02F18c474847787A6C8f8389044", reward: "0xA1D458530da3C4a4F0ED26BEC5E6CdE6ad0B7aC4", cometDecimals: 18, @@ -417,7 +419,7 @@ export const POOL_CONFIG_MAP: PoolConfigMap = { }, ], }, - [SupportedPoolName[SupportedChainId.MAINNET].WETH]: { + [SupportedPoolName[SupportedChainId.MAINNET].WETH as string]: { proxy: "0x2bf8B07e41572FB09d9F002b2500E3eeDC5d7922", reward: "0xA1D458530da3C4a4F0ED26BEC5E6CdE6ad0B7aC4", cometDecimals: 18, @@ -537,10 +539,190 @@ export const POOL_CONFIG_MAP: PoolConfigMap = { }, ], }, + [SupportedPoolName[SupportedChainId.MAINNET].JPYC as string]: { + proxy: "0xAA59F501c92092E624D30Cff77eAFf5EA4E7BfA2", + reward: "0xA1D458530da3C4a4F0ED26BEC5E6CdE6ad0B7aC4", + cometDecimals: 18, + chainId: 1, + baseToken: { + name: "Convertible JPY Token", + symbol: "CJPY", + address: "0x1cfa5641c01406aB8AC350dEd7d735ec41298372", + decimals: 18, + color: "#00ad92", + logoURL: "/tokens/CJPY.png", + priceFeed: "0xbce206cae7f0ec07b545edde332a47c2f75bbeb3", + priceFeedDecimals: 8, + }, + rewardToken: { + name: "pnd DAO Token", + symbol: "PND", + address: "0x5FFF1443Cb859E17e9a6786f7e24c369F22FD002", + decimals: 18, + color: "#bc1c4c", + logoURL: "/tokens/PND.png", + priceFeed: "0x11ff569892Ca55846dACAa2B43C1877424ceB0CB", + priceFeedDecimals: 8, + }, + supplyKink: 90, + supplyPerYearInterestRateSlopeLow: 0.04, + supplyPerYearInterestRateSlopeHigh: 0.99, + supplyPerYearInterestRateBase: 0, + borrowKink: 90, + borrowPerYearInterestRateSlopeLow: 0.025, + borrowPerYearInterestRateSlopeHigh: 0.99, + borrowPerYearInterestRateBase: 2.75, + storeFrontPriceFactor: 50, + trackingIndexScale: 1e15, + baseTrackingRewardSpeed: 2608.2, + rewardKink: 85, + baseMinForRewards: 10000000, + baseBorrowMin: 1000, + targetReserves: 10000000000, + jpyPriceFeed: "0xbce206cae7f0ec07b545edde332a47c2f75bbeb3", + jpyPriceFeedDecimals: 8, + assetConfigs: [ + { + name: "TenX Community JAPAN", + symbol: "TXJP", + address: "0x961dD84059505D59f82cE4fb87D3c09bec65301d", + decimals: 8, + color: "#bc1c4c", + logoURL: "/tokens/TXJP.png", + priceFeed: "0x7354FbF446fFF15Db6C7c2B8A4a84bFc092B6485", + priceFeedDecimals: 8, + borrowCollateralFactor: 80, + liquidateCollateralFactor: 90, + liquidationFactor: 90, + LiquidationPenalty: 10, + supplyCap: 100000, + }, + { + name: "Wrapped st ETH", + symbol: "wstETH", + address: "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0", + decimals: 18, + color: "#627EEA", + logoURL: "/tokens/stETH.png", + priceFeed: "0x96Cf272b16d3aEC1933B593b25E3C60F173390ee", + priceFeedDecimals: 8, + borrowCollateralFactor: 85, + liquidateCollateralFactor: 95, + liquidationFactor: 95, + LiquidationPenalty: 5, + supplyCap: 50000, + }, + { + name: "USD Coin", + symbol: "USDC", + address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", + decimals: 6, + color: "#627EEA", + logoURL: "/tokens/USDC.png", + priceFeed: "0x8fffffd4afb6115b954bd326cbe7b4ba576818f6", + priceFeedDecimals: 8, + borrowCollateralFactor: 95, + liquidateCollateralFactor: 98, + liquidationFactor: 98.5, + LiquidationPenalty: 1.5, + supplyCap: 50000, + }, + { + name: "Curve.Fi USD Stablecoin", + symbol: "crvUSD", + address: "0xf939e0a03fb07f59a73314e73794be0e57ac1b4e", + decimals: 18, + color: "#627EEA", + logoURL: "/tokens/crvUSD.png", + priceFeed: "0xeef0c605546958c1f899b6fb336c20671f9cd49f", + priceFeedDecimals: 8, + borrowCollateralFactor: 95, + liquidateCollateralFactor: 98, + liquidationFactor: 98.5, + LiquidationPenalty: 1.5, + supplyCap: 50000, + }, + { + name: "Uniswap", + symbol: "UNI", + address: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984", + decimals: 18, + color: "#627EEA", + logoURL: "/tokens/UNI.png", + priceFeed: "0x553303d460EE0afB37EdFf9bE42922D8FF63220e", + priceFeedDecimals: 8, + borrowCollateralFactor: 65, + liquidateCollateralFactor: 75, + liquidationFactor: 85, + LiquidationPenalty: 15, + supplyCap: 1000000, + }, + { + name: "Curve DAO token", + symbol: "CRV", + address: "0xD533a949740bb3306d119CC777fa900bA034cd52", + decimals: 18, + color: "#627EEA", + logoURL: "/tokens/CRV.png", + priceFeed: "0xCd627aA160A6fA45Eb793D19Ef54f5062F20f33f", + priceFeedDecimals: 8, + borrowCollateralFactor: 65, + liquidateCollateralFactor: 75, + liquidationFactor: 85, + LiquidationPenalty: 15, + supplyCap: 10000000, + }, + { + name: "pnd DAO token", + symbol: "PND", + address: "0x5FFF1443Cb859E17e9a6786f7e24c369F22FD002", + decimals: 18, + color: "#627EEA", + logoURL: "/tokens/PND.png", + priceFeed: "0x11ff569892Ca55846dACAa2B43C1877424ceB0CB", + priceFeedDecimals: 8, + borrowCollateralFactor: 60, + liquidateCollateralFactor: 70, + liquidationFactor: 80, + LiquidationPenalty: 20, + supplyCap: 100000000, + }, + { + name: "savings crvUSD", + symbol: "scrvUSD", + address: "0x0655977FEb2f289A4aB78af67BAB0d17aAb84367", + decimals: 18, + color: "#627EEA", + logoURL: "/tokens/scrvUSD.png", + priceFeed: "0x571323c0501b76fc1bA16b4551116248c77cCD18", + priceFeedDecimals: 8, + borrowCollateralFactor: 95, + liquidateCollateralFactor: 98, + liquidationFactor: 98.5, + LiquidationPenalty: 1.5, + supplyCap: 50000000, + }, + { + name: "Yamawake DAO Token", + symbol: "YMWK", + address: "0x15Dac05C93e1c5F31a29547340997BA9f6ec4F87", + decimals: 18, + color: "#627EEA", + logoURL: "/tokens/YMWK.png", + priceFeed: "0x3c9FA87022De40bBCc1B3320D2996f7Df2d4fE34", + priceFeedDecimals: 8, + borrowCollateralFactor: 60, + liquidateCollateralFactor: 70, + liquidationFactor: 80, + LiquidationPenalty: 20, + supplyCap: 250000000, + }, + ], + }, }, [SupportedChainId.SEPOLIA]: { - [SupportedPoolName[SupportedChainId.MAINNET].USDC]: { + [SupportedPoolName[SupportedChainId.MAINNET].USDC as string]: { proxy: "0xF4d0bE4f24F7D978C424877A5B2051876B4c9253", reward: "0xBD658038900D585aD5D298f0dc8a498C5B20684A", cometDecimals: 6, From 83fd176510bbe9404c53bf6f022e7bf87d146db8 Mon Sep 17 00:00:00 2001 From: yosuke Date: Wed, 29 Oct 2025 23:15:02 +0900 Subject: [PATCH 2/2] add JPYC pool --- constants/pools.ts | 38 +++++++++---------- ...c_logo_symbol_color_-reverse-text-only.svg | 4 ++ 2 files changed, 23 insertions(+), 19 deletions(-) create mode 100644 public/tokens/jpyc_logo_symbol_color_-reverse-text-only.svg diff --git a/constants/pools.ts b/constants/pools.ts index 1a6edf9..e4618e9 100644 --- a/constants/pools.ts +++ b/constants/pools.ts @@ -540,17 +540,17 @@ export const POOL_CONFIG_MAP: PoolConfigMap = { ], }, [SupportedPoolName[SupportedChainId.MAINNET].JPYC as string]: { - proxy: "0xAA59F501c92092E624D30Cff77eAFf5EA4E7BfA2", + proxy: "0x68cBE77063dbCF7de7F59cD8c0051e0B2A23BF75", reward: "0xA1D458530da3C4a4F0ED26BEC5E6CdE6ad0B7aC4", cometDecimals: 18, chainId: 1, baseToken: { - name: "Convertible JPY Token", - symbol: "CJPY", - address: "0x1cfa5641c01406aB8AC350dEd7d735ec41298372", + name: "JPYC", + symbol: "JPYC", + address: "0xE7C3D8C9a439feDe00D2600032D5dB0Be71C3c29", decimals: 18, - color: "#00ad92", - logoURL: "/tokens/CJPY.png", + color: "#00459F", + logoURL: "/tokens/jpyc_logo_symbol_color_-reverse-text-only.svg", priceFeed: "0xbce206cae7f0ec07b545edde332a47c2f75bbeb3", priceFeedDecimals: 8, }, @@ -558,7 +558,7 @@ export const POOL_CONFIG_MAP: PoolConfigMap = { name: "pnd DAO Token", symbol: "PND", address: "0x5FFF1443Cb859E17e9a6786f7e24c369F22FD002", - decimals: 18, + decimals: 8, color: "#bc1c4c", logoURL: "/tokens/PND.png", priceFeed: "0x11ff569892Ca55846dACAa2B43C1877424ceB0CB", @@ -578,7 +578,7 @@ export const POOL_CONFIG_MAP: PoolConfigMap = { rewardKink: 85, baseMinForRewards: 10000000, baseBorrowMin: 1000, - targetReserves: 10000000000, + targetReserves: 5000000, jpyPriceFeed: "0xbce206cae7f0ec07b545edde332a47c2f75bbeb3", jpyPriceFeedDecimals: 8, assetConfigs: [ @@ -703,19 +703,19 @@ export const POOL_CONFIG_MAP: PoolConfigMap = { supplyCap: 50000000, }, { - name: "Yamawake DAO Token", - symbol: "YMWK", - address: "0x15Dac05C93e1c5F31a29547340997BA9f6ec4F87", + name: "Convertible JPY Token", + symbol: "CJPY", + address: "0x1cfa5641c01406aB8AC350dEd7d735ec41298372", decimals: 18, - color: "#627EEA", - logoURL: "/tokens/YMWK.png", - priceFeed: "0x3c9FA87022De40bBCc1B3320D2996f7Df2d4fE34", + color: "#00ad92", + logoURL: "/tokens/CJPY.png", + priceFeed: "0xbce206cae7f0ec07b545edde332a47c2f75bbeb3", priceFeedDecimals: 8, - borrowCollateralFactor: 60, - liquidateCollateralFactor: 70, - liquidationFactor: 80, - LiquidationPenalty: 20, - supplyCap: 250000000, + borrowCollateralFactor: 95, + liquidateCollateralFactor: 98, + liquidationFactor: 98.5, + LiquidationPenalty: 1.5, + supplyCap: 1000000000, }, ], }, diff --git a/public/tokens/jpyc_logo_symbol_color_-reverse-text-only.svg b/public/tokens/jpyc_logo_symbol_color_-reverse-text-only.svg new file mode 100644 index 0000000..d3d81aa --- /dev/null +++ b/public/tokens/jpyc_logo_symbol_color_-reverse-text-only.svg @@ -0,0 +1,4 @@ + + + +