Skip to content

Commit

Permalink
Add bsdeth base morpho market (#3965)
Browse files Browse the repository at this point in the history
  • Loading branch information
piekczyk committed Jun 25, 2024
1 parent 0173835 commit 78ef927
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 11 deletions.
12 changes: 12 additions & 0 deletions blockchain/token-metadata-list/token-configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
bal_circle,
bat,
bat_circle_color,
bsdeth_circle_color,
cbeth_circle_color,
chainlink,
chainlink_circle_color,
Expand Down Expand Up @@ -320,6 +321,17 @@ export const tokenConfigs: TokenConfig[] = [
rootToken: 'ETH',
tags: [],
},
{
symbol: 'BSDETH',
precision: 18,
digits: 5,
name: 'Based ETH',
icon: bsdeth_circle_color,
iconCircle: bsdeth_circle_color,
coinGeckoTicker: 'based-eth',
rootToken: 'ETH',
tags: [],
},
{
symbol: 'BAT',
precision: 18,
Expand Down
1 change: 1 addition & 0 deletions blockchain/tokens/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ export const tokensBase = {
AERO: contractDesc(erc20, base.common.AERO),
PRIME: contractDesc(erc20, base.common.PRIME),
EZETH: contractDesc(erc20, base.common.EZETH),
BSDETH: contractDesc(erc20, base.common.BSDETH),
} as Record<string, ContractDesc>
1 change: 1 addition & 0 deletions features/omni-kit/helpers/isYieldLoopPair.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const yieldLoopDefinition = {
'ETH',
'WETH',
'WOETH',
'BSDETH',
],
// its a stable coin yield loop if both the collateral and debt token are on this list
stableCoinYieldTokens: [
Expand Down
3 changes: 2 additions & 1 deletion features/omni-kit/protocols/morpho-blue/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export const morphoMarkets: NetworkIdsWithValues<{ [key: string]: string[] }> =
'AERO-USDC': ['0xdaa04f6819210b11fe4e3b65300c725c32e55755e3598671559b9ae3bac453d7'],
'EZETH-USDC': ['0xf24417ee06adc0b0836cf0dbec3ba56c1059f62f53a55990a38356d42fa75fa2'],
'EZETH-ETH': ['0xdf13c46bf7bd41597f27e32ae9c306eb63859c134073cb81c796ff20b520c7cf'],
'BSDETH-ETH': ['0xdf6aa0df4eb647966018f324db97aea09d2a7dde0d3c0a72115e8b20d58ea81f'],
},
}

Expand Down Expand Up @@ -90,7 +91,7 @@ export const settings: OmniProtocolSettings = {
'MKR',
'CBETH',
],
[NetworkIds.BASEMAINNET]: ['DAI', 'ETH', 'USDC', 'WBTC', 'WEETH', 'WSTETH', 'CBETH'],
[NetworkIds.BASEMAINNET]: ['DAI', 'ETH', 'USDC', 'WBTC', 'WEETH', 'WSTETH', 'CBETH', 'BSDETH'],
},
steps: {
borrow: {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.71",
"@oasisdex/addresses": "0.1.72",
"@oasisdex/automation": "1.6.5-morpho.6",
"@oasisdex/dma-library": "0.6.55",
"@oasisdex/dma-library": "0.6.56",
"@oasisdex/multiply": "^0.2.11",
"@oasisdex/transactions": "0.1.4-alpha.0",
"@oasisdex/utils": "^0.0.8",
Expand Down
16 changes: 16 additions & 0 deletions theme/icons/bsdeth_circle_color.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react'

export const bsdeth_circle_color = {
path: (
<>
<circle cx="16" cy="16" r="13" fill="#0054FF" />
<path
fillRule="evenodd"
clipRule="evenodd"
d="M22.9999 17L15.9999 6L9.31812 16.5H17.9999V17.5H9.38882L15.9999 26L22.9999 17Z"
fill="white"
/>
</>
),
viewBox: '0 0 32 32',
}
1 change: 1 addition & 0 deletions theme/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,3 +310,4 @@ export { zerox_color } from './zerox_color'
export { woeth_circle_color } from './woeth_circle_color'
export { rays } from './rays'
export { clock_colorful } from './clock_colorful'
export { bsdeth_circle_color } from './bsdeth_circle_color'
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2502,10 +2502,10 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"

"@oasisdex/addresses@0.1.71":
version "0.1.71"
resolved "https://registry.yarnpkg.com/@oasisdex/addresses/-/addresses-0.1.71.tgz#d391c11bf60067c7ad55a89abb9096ed1b596fa7"
integrity sha512-Dbftd+mWWNhEsjNmRoCMYxu92qoWfdwe03Z3FoQgVnz0aLmPhgiwNxNbyl4gREfS/TLZlWb3H4l4C5BbuKZTGw==
"@oasisdex/addresses@0.1.72":
version "0.1.72"
resolved "https://registry.yarnpkg.com/@oasisdex/addresses/-/addresses-0.1.72.tgz#2d94414350ed8793242203375d51799dc05814f0"
integrity sha512-u4HQJ7Qoeb/AWlyneYXJZETlKy+bpI+BYr3JsAAl70OIUz7YYkXGZKdMyUgjKk+GKjubN1vCi+OY/M0LpSPVEQ==

"@oasisdex/automation@1.6.5-morpho.6":
version "1.6.5-morpho.6"
Expand All @@ -2514,10 +2514,10 @@
dependencies:
ethers "^5.6.2"

"@oasisdex/dma-library@0.6.55":
version "0.6.55"
resolved "https://registry.yarnpkg.com/@oasisdex/dma-library/-/dma-library-0.6.55.tgz#202cbb95cc58756c49a9152a1e562f35f2d49cf4"
integrity sha512-Dh9TrX4Z995Ees3vUVNwxm7G/ZvucXns62oreoXEK6P36ImYDm1o0GJmPTrTgRi0u94SyCDnAHXWCeZ/lcl5Ag==
"@oasisdex/dma-library@0.6.56":
version "0.6.56"
resolved "https://registry.yarnpkg.com/@oasisdex/dma-library/-/dma-library-0.6.56.tgz#c9fda74198d26845f1c846c399600fa6a2eb1341"
integrity sha512-z+RxqqgPfnwCN3YqPGkKvgKalo/IaXRx0cUiTSczmdsyMcLOnYwNknLzsLxjYmXpyKuBavAOcEi8B8K5fPkhQA==
dependencies:
bignumber.js "9.0.1"
ethers "^5.7.2"
Expand Down

0 comments on commit 78ef927

Please sign in to comment.