diff --git a/blockchain/token-metadata-list/token-configs.ts b/blockchain/token-metadata-list/token-configs.ts index 70aa5f3644..aa4b457f0f 100644 --- a/blockchain/token-metadata-list/token-configs.ts +++ b/blockchain/token-metadata-list/token-configs.ts @@ -102,6 +102,7 @@ import { wld_circle_color, woeth_circle_color, wsteth_circle_color, + wsuperoethb, xeth, yfi_circle_color, yieldbtc_circle_color, @@ -936,6 +937,17 @@ export const tokenConfigs: TokenConfig[] = [ rootToken: 'ETH', tags: [], }, + { + symbol: 'WSUPEROETHB', + precision: 18, + digits: 5, + name: 'Wrapped Super OETH', + icon: wsuperoethb, + iconCircle: wsuperoethb, + coinGeckoTicker: 'wrapped-super-oeth', + rootToken: 'ETH', + tags: [], + }, { symbol: 'AJNA', precision: 18, diff --git a/blockchain/tokens/base.ts b/blockchain/tokens/base.ts index 882d9f9fc6..228e17a7bb 100644 --- a/blockchain/tokens/base.ts +++ b/blockchain/tokens/base.ts @@ -40,4 +40,5 @@ export const tokensBase = { PRIME: contractDesc(erc20, base.common.PRIME), EZETH: contractDesc(erc20, base.common.EZETH), BSDETH: contractDesc(erc20, base.common.BSDETH), + WSUPEROETHB: contractDesc(erc20, base.common.WSUPEROETHB), } as Record diff --git a/features/omni-kit/helpers/isYieldLoopPair.ts b/features/omni-kit/helpers/isYieldLoopPair.ts index cc3d915a95..e7cb826893 100644 --- a/features/omni-kit/helpers/isYieldLoopPair.ts +++ b/features/omni-kit/helpers/isYieldLoopPair.ts @@ -4,7 +4,7 @@ interface IsYieldLoopPairParams { } export const yieldLoopDefinition = { - // its a eth yield loop if both the collateral and debt token are on this list + // it's a eth yield loop if both the collateral and debt token are on this list ethYieldTokens: [ 'CBETH', 'RETH', @@ -26,9 +26,10 @@ export const yieldLoopDefinition = { 'BSDETH', 'RSETH', 'RSWETH', + 'WSUPEROETHB', ], btcYieldTokens: ['WBTC', 'SWBTC', 'TBTC', 'LBTC'], - // its a stable coin yield loop if both the collateral and debt token are on this list + // it's a stable coin yield loop if both the collateral and debt token are on this list stableCoinYieldTokens: [ 'SUSDE', 'SDAI', @@ -62,13 +63,13 @@ export const isYieldLoopPair = (pair: IsYieldLoopPairParams) => { const { ethYieldTokens, stableCoinYieldTokens, btcYieldTokens } = yieldLoopDefinition return ( - // its an eth yield loop + // it's an eth yield loop (ethYieldTokens.includes(collateralToken.toLocaleUpperCase()) && ethYieldTokens.includes(debtToken.toLocaleUpperCase())) || - // its an btc yield loop + // it's an btc yield loop (btcYieldTokens.includes(collateralToken.toLocaleUpperCase()) && btcYieldTokens.includes(debtToken.toLocaleUpperCase())) || - // its a stable coin yield loop + // it's a stable coin yield loop (stableCoinYieldTokens.includes(collateralToken.toLocaleUpperCase()) && stableCoinYieldTokens.includes(debtToken.toLocaleUpperCase())) ) diff --git a/features/omni-kit/protocols/morpho-blue/settings.ts b/features/omni-kit/protocols/morpho-blue/settings.ts index 380190fadb..a0a0d0b5fa 100644 --- a/features/omni-kit/protocols/morpho-blue/settings.ts +++ b/features/omni-kit/protocols/morpho-blue/settings.ts @@ -67,6 +67,7 @@ export const morphoMarkets: NetworkIdsWithValues<{ [key: string]: string[] }> = 'EZETH-USDC': ['0xf24417ee06adc0b0836cf0dbec3ba56c1059f62f53a55990a38356d42fa75fa2'], 'EZETH-ETH': ['0xdf13c46bf7bd41597f27e32ae9c306eb63859c134073cb81c796ff20b520c7cf'], 'BSDETH-ETH': ['0xdf6aa0df4eb647966018f324db97aea09d2a7dde0d3c0a72115e8b20d58ea81f'], + 'WSUPEROETHB-ETH': ['0x144bf18d6bf4c59602548a825034f73bf1d20177fc5f975fc69d5a5eba929b45'], }, } @@ -100,7 +101,17 @@ export const settings: OmniProtocolSettings = { 'SWBTC', 'RSWETH', ], - [NetworkIds.BASEMAINNET]: ['DAI', 'ETH', 'USDC', 'WBTC', 'WEETH', 'WSTETH', 'CBETH', 'BSDETH'], + [NetworkIds.BASEMAINNET]: [ + 'DAI', + 'ETH', + 'USDC', + 'WBTC', + 'WEETH', + 'WSTETH', + 'CBETH', + 'BSDETH', + 'WSUPEROETHB', + ], }, steps: { borrow: { diff --git a/package.json b/package.json index 79b0ed1cc5..02a6fc1cbe 100644 --- a/package.json +++ b/package.json @@ -43,9 +43,9 @@ "@lifi/wallet-management": "^2.6.1", "@lifi/widget": "^2.10.2", "@metamask/eth-sig-util": "^5.0.2", - "@oasisdex/addresses": "0.1.79", + "@oasisdex/addresses": "0.1.80", "@oasisdex/automation": "1.6.5-morpho.6", - "@oasisdex/dma-library": "0.6.65", + "@oasisdex/dma-library": "0.6.66", "@oasisdex/multiply": "^0.2.11", "@oasisdex/transactions": "0.1.4-alpha.0", "@oasisdex/utils": "^0.0.8", diff --git a/theme/icons/index.ts b/theme/icons/index.ts index b4029b19dd..33500fedef 100644 --- a/theme/icons/index.ts +++ b/theme/icons/index.ts @@ -320,3 +320,4 @@ export { youtube } from './youtube' export { zerox } from './zerox' export { zerox_circle_color } from './zeroX_circle_color' export { zerox_color } from './zerox_color' +export { wsuperoethb } from 'theme/icons/wsuperoethb' diff --git a/theme/icons/wsuperoethb.tsx b/theme/icons/wsuperoethb.tsx new file mode 100644 index 0000000000..7f98f5dfb6 --- /dev/null +++ b/theme/icons/wsuperoethb.tsx @@ -0,0 +1,54 @@ +import React from 'react' +export const wsuperoethb = { + path: ( + <> + + + + + + + + + + + + + + + + + + + + ), + viewBox: '0 0 32 32', +} diff --git a/yarn.lock b/yarn.lock index 38bcd3fa5e..ddde6796fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2502,10 +2502,10 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@oasisdex/addresses@0.1.79": - version "0.1.79" - resolved "https://registry.yarnpkg.com/@oasisdex/addresses/-/addresses-0.1.79.tgz#aa8734171b0550290a998a63a4a9234a8bf83722" - integrity sha512-8CjfUjM8rqmKaiRm0/vHoakV5jia/bCD6khJeP9JijzeHw84h0NrwrQCYv5ALse/gwUzcg5Mr+THJwL/aerDyg== +"@oasisdex/addresses@0.1.80": + version "0.1.80" + resolved "https://registry.yarnpkg.com/@oasisdex/addresses/-/addresses-0.1.80.tgz#235ad8f8d743f10bef0381e424d64d6689b304b3" + integrity sha512-0zd9QaBamrJ2ssC2OBvAvuQMf1DKhRwZ9GE8dvuwXxN3Ec9T9kJE15porBIjeyF5+W+Bt0nacp0ek2pZtYb+3w== "@oasisdex/automation@1.6.5-morpho.6": version "1.6.5-morpho.6" @@ -2514,10 +2514,10 @@ dependencies: ethers "^5.6.2" -"@oasisdex/dma-library@0.6.65": - version "0.6.65" - resolved "https://registry.yarnpkg.com/@oasisdex/dma-library/-/dma-library-0.6.65.tgz#5970feb6d9a5d372c65bec9caa9ab194523b0a83" - integrity sha512-tx8xp6gopVnJl9I8AiV734STHAiRfmRakRYuL2M/UM02kuZRKGj2cBHl2bUIPoZ4vRf0mD8Prl4sBvPkVYC/VA== +"@oasisdex/dma-library@0.6.66": + version "0.6.66" + resolved "https://registry.yarnpkg.com/@oasisdex/dma-library/-/dma-library-0.6.66.tgz#711b79bbf90d8f512e3ed718ea5529ecde1e5512" + integrity sha512-x5fOVklFa19j971WcImZkheIVzqCRflhDpthXFIaJqJDDCWdxRlobq3G4s8iuziuL0ch1lmSXyqrU8To2VRCAA== dependencies: bignumber.js "9.0.1" ethers "^5.7.2"