Skip to content

Commit

Permalink
Morpho RSETH market (#3977)
Browse files Browse the repository at this point in the history
  • Loading branch information
piekczyk authored Jul 1, 2024
1 parent 6550c9e commit 72c03b4
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 5 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 @@ -61,6 +61,7 @@ import {
reth_circle_color,
rpl,
rpl_circle,
rseth,
safe,
sdai_circle_color,
snx,
Expand Down Expand Up @@ -959,6 +960,17 @@ export const tokenConfigs: TokenConfig[] = [
tags: [],
rootToken: 'ETH',
},
{
symbol: 'RSETH',
precision: 18,
digits: 5,
name: 'rsETH',
icon: rseth,
iconCircle: rseth,
coinGeckoTicker: 'kelp-dao-restaked-eth',
tags: [],
rootToken: 'ETH',
},
{
symbol: 'MPETH',
precision: 18,
Expand Down
1 change: 1 addition & 0 deletions blockchain/tokens/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const tokensMainnet = {
MORPHO: contractDesc(erc20, mainnet.common.MORPHO),
RENBTC: contractDesc(erc20, mainnet.common.RENBTC),
RETH: contractDesc(erc20, mainnet.common.RETH),
RSETH: contractDesc(erc20, mainnet.common.RSETH),
RBN: contractDesc(erc20, mainnet.common.RBN),
OSETH: contractDesc(erc20, mainnet.common.OSETH),
RPL: contractDesc(erc20, mainnet.common.RPL),
Expand Down
1 change: 1 addition & 0 deletions features/omni-kit/helpers/isYieldLoopPair.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const yieldLoopDefinition = {
'WETH',
'WOETH',
'BSDETH',
'RSETH',
],
// its a stable coin yield loop if both the collateral and debt token are on this list
stableCoinYieldTokens: [
Expand Down
2 changes: 2 additions & 0 deletions features/omni-kit/protocols/morpho-blue/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const morphoMarkets: NetworkIdsWithValues<{ [key: string]: string[] }> =
'MKR-USDC': ['0x97bb820669a19ba5fa6de964a466292edd67957849f9631eb8b830c382f58b7f'],
'WSTETH-USDA': ['0x423cb007534ac88febb8ce39f544ab303e8b757f8415ed891fc76550f8f4c965'],
'PTWEETH-USDA': ['0xcc7b191903e4750ad71898a1594d912adbb5bb1c6effcde9c38f0a798112edd1'],
'RSETH-ETH': ['0xeeabdcb98e9f7ec216d259a2c026bbb701971efae0b44eec79a86053f9b128b6'],
},
[NetworkIds.BASEMAINNET]: {
'ETH-USDC': ['0x8793cf302b8ffd655ab97bd1c695dbd967807e8367a65cb2f4edaf1380ba1bda'],
Expand Down Expand Up @@ -90,6 +91,7 @@ export const settings: OmniProtocolSettings = {
'WOETH',
'MKR',
'CBETH',
'RSETH',
],
[NetworkIds.BASEMAINNET]: ['DAI', 'ETH', 'USDC', 'WBTC', 'WEETH', 'WSTETH', 'CBETH', 'BSDETH'],
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@lifi/wallet-management": "^2.6.1",
"@lifi/widget": "^2.10.2",
"@metamask/eth-sig-util": "^5.0.2",
"@oasisdex/addresses": "0.1.74",
"@oasisdex/addresses": "0.1.75",
"@oasisdex/automation": "1.6.5-morpho.6",
"@oasisdex/dma-library": "0.6.59",
"@oasisdex/multiply": "^0.2.11",
Expand Down
1 change: 1 addition & 0 deletions theme/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,3 +311,4 @@ 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'
export { rseth } from './rseth'
90 changes: 90 additions & 0 deletions theme/icons/rseth.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import React from 'react'

export const rseth = {
path: (
<>
<path
d="M16 29C23.1797 29 29 23.1797 29 16C29 8.8203 23.1797 3 16 3C8.8203 3 3 8.8203 3 16C3 23.1797 8.8203 29 16 29Z"
fill="url(#paint0_linear_15243_4426)"
/>
<feBlend mode="screen" opacity="0.3">
<path
opacity="0.8"
d="M16.4045 4.3623V12.9647L23.6753 16.2138L16.4045 4.3623Z"
fill="white"
/>

<path d="M16.4046 4.3623L9.13257 16.2138L16.4046 12.9647V4.3623Z" fill="white" />
<path
opacity="0.8"
d="M16.4045 21.7884V27.6337L23.6804 17.5674L16.4045 21.7884Z"
fill="white"
/>
<path d="M16.4046 27.6337V21.7876L9.13257 17.5674L16.4046 27.6337Z" fill="white" />
<path
opacity="0.5"
d="M16.4045 20.4356L23.6752 16.2138L16.4045 12.9668V20.4356Z"
fill="white"
/>
<path
d="M9.13257 16.2138L16.4045 20.4356V12.9668L9.13257 16.2138Z"
fill="white"
fillOpacity="0.3"
/>
</feBlend>
<feBlend mode="screen" opacity="0.3">
<path
opacity="0.8"
d="M16.4048 4.79541V12.7686L23.1438 15.7802L16.4048 4.79541Z"
fill="white"
/>
<path d="M16.4047 4.79541L9.66455 15.7802L16.4047 12.7686V4.79541Z" fill="white" />
<path
opacity="0.8"
d="M16.405 22.1807V27.0108L22.4171 18.6929L16.405 22.1807Z"
fill="white"
/>
<path d="M16.4049 27.0108V22.18L10.396 18.6929L16.4049 27.0108Z" fill="white" />
<path
opacity="0.5"
d="M16.4048 20.1629L23.1438 16.2498L16.4048 13.2402V20.1629Z"
fill="white"
/>
<path
d="M9.66455 16.2498L16.4047 20.1629V13.2402L9.66455 16.2498Z"
fill="white"
fillOpacity="0.3"
/>
</feBlend>

<path d="M16.4048 6.91504V13.6301L22.0804 16.1663L16.4048 6.91504Z" fill="#C1DCDC" />
<path d="M16.4048 6.91504L10.7283 16.1663L16.4048 13.6301V6.91504Z" fill="white" />
<path d="M16.4048 20.518V25.0809L22.0843 17.2231L16.4048 20.518Z" fill="#C1DCDC" />
<path d="M16.4048 25.0809V20.5174L10.7283 17.2231L16.4048 25.0809Z" fill="white" />
<path
opacity="0.5"
d="M16.4048 19.462L22.0804 16.1665L16.4048 13.6318V19.462Z"
fill="white"
/>
<path
d="M10.7283 16.1665L16.4048 19.462V13.6318L10.7283 16.1665Z"
fill="white"
fillOpacity="0.3"
/>
<defs>
<linearGradient
id="paint0_linear_15243_4426"
x1="5.5"
y1="7"
x2="25"
y2="24.5"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#075A5A" />
<stop offset="1" stopColor="#147272" />
</linearGradient>
</defs>
</>
),
viewBox: '0 0 32 32',
}
8 changes: 4 additions & 4 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.74":
version "0.1.74"
resolved "https://registry.yarnpkg.com/@oasisdex/addresses/-/addresses-0.1.74.tgz#e0bebdd9c91648a73be38d5580d643b19265e2ca"
integrity sha512-Bj8m+r98RLTOuaPeaAqjXypj96FrABV4whdCIXHc94zgtuv/8D37J7z+mSJXdfSLZxBh80WcSmCJExw4ZiPxZg==
"@oasisdex/addresses@0.1.75":
version "0.1.75"
resolved "https://registry.yarnpkg.com/@oasisdex/addresses/-/addresses-0.1.75.tgz#134f49cb0682a5f7a101ca298b28a20a501f689f"
integrity sha512-h/UhO9nopmzpObk2MZWzG8765cAHjhOwuHcdXcDjG5POwlSGmCuOGjAYsZBCzgEkta6u9SzWY8qum9jK8tZieA==

"@oasisdex/automation@1.6.5-morpho.6":
version "1.6.5-morpho.6"
Expand Down

0 comments on commit 72c03b4

Please sign in to comment.