Skip to content

Commit

Permalink
Add EURC morpho markets, fix liquidation price issue on Aave
Browse files Browse the repository at this point in the history
  • Loading branch information
piekczyk committed Nov 5, 2024
1 parent ada3f4a commit 7385f3f
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 10 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 @@ -29,6 +29,7 @@ import {
ena,
ether,
ether_circle_color,
eurc,
ezeth,
frax_circle_color,
gemini,
Expand Down Expand Up @@ -870,6 +871,17 @@ export const tokenConfigs: TokenConfig[] = [
oracleTicker: 'syrupusdc',
tags: ['stablecoin'],
},
{
symbol: 'EURC',
precision: 6,
digits: 2,
name: 'EURC',
icon: eurc,
iconCircle: eurc,
coinGeckoTicker: 'euro-coin',
coinpaprikaTicker: 'euroc-euro-coin',
tags: ['stablecoin'],
},
{
symbol: 'RPL',
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 @@ -42,4 +42,5 @@ export const tokensBase = {
EZETH: contractDesc(erc20, base.common.EZETH),
BSDETH: contractDesc(erc20, base.common.BSDETH),
WSUPEROETHB: contractDesc(erc20, base.common.WSUPEROETHB),
EURC: contractDesc(erc20, base.common.EURC),
} as Record<string, ContractDesc>
3 changes: 3 additions & 0 deletions features/omni-kit/protocols/morpho-blue/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export const morphoMarkets: NetworkIdsWithValues<{ [key: string]: string[] }> =
'WSUPEROETHB-ETH': ['0x144bf18d6bf4c59602548a825034f73bf1d20177fc5f975fc69d5a5eba929b45'],
'CBBTC-USDC': ['0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836'],
'CBBTC-ETH': ['0x5dffffc7d75dc5abfa8dbe6fad9cbdadf6680cbe1428bafe661497520c84a94c'],
'WSTETH-EURC': ['0xf7e40290f8ca1d5848b3c129502599aa0f0602eb5f5235218797a34242719561'],
'CBETH-EURC': ['0x7fc498ddcb7707d6f85f6dc81f61edb6dc8d7f1b47a83b55808904790564929a'],
},
}

Expand Down Expand Up @@ -117,6 +119,7 @@ export const settings: OmniProtocolSettings = {
'CBETH',
'BSDETH',
'WSUPEROETHB',
'EURC',
],
},
steps: {
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.87",
"@oasisdex/addresses": "0.1.88",
"@oasisdex/automation": "1.6.5-morpho.6",
"@oasisdex/dma-library": "0.6.75",
"@oasisdex/dma-library": "0.6.76",
"@oasisdex/multiply": "^0.2.11",
"@oasisdex/transactions": "0.1.4-alpha.0",
"@oasisdex/utils": "^0.0.8",
Expand Down
38 changes: 38 additions & 0 deletions theme/icons/eurc.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React from 'react'

export const eurc = {
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_15429_4440)"
/>
<path
d="M13.5556 25.2224C13.5556 25.5558 13.3333 25.6669 13 25.6669C8.88889 24.3335 6 20.5558 6 16.1113C6 11.6669 8.88889 7.88909 13 6.55576C13.3333 6.44465 13.5556 6.66687 13.5556 7.0002V7.77798C13.5556 8.0002 13.4444 8.22243 13.2222 8.33354C10 9.55576 7.77778 12.5558 7.77778 16.1113C7.77778 19.6669 10.1111 22.778 13.2222 23.8891C13.4444 24.0002 13.5556 24.2224 13.5556 24.4446V25.2224Z"
fill="white"
/>
<path
d="M18.9999 25.6668C18.6666 25.7779 18.4443 25.5557 18.4443 25.2223V24.4446C18.4443 24.2223 18.5554 24.0001 18.7777 23.889C21.9999 22.6668 24.2221 19.6668 24.2221 16.1112C24.2221 12.5557 21.8888 9.44455 18.7777 8.33344C18.5554 8.22233 18.4443 8.00011 18.4443 7.77789V7.00011C18.4443 6.66678 18.6666 6.55566 18.9999 6.55566C22.9999 7.889 25.9999 11.6668 25.9999 16.1112C25.9999 20.5557 23.111 24.3334 18.9999 25.6668Z"
fill="white"
/>
<path
d="M18.3828 14.3878L17.9105 15.4119H11.3729L11.7457 14.3878H18.3828ZM17.4929 16.4062L17.0107 17.4403H11.3729L11.7457 16.4062H17.4929ZM19.5959 11.6882L19.0092 12.946C18.8236 12.7869 18.6214 12.6428 18.4027 12.5135C18.1839 12.3842 17.9486 12.2815 17.6967 12.2053C17.4448 12.1257 17.1747 12.0859 16.8864 12.0859C16.3561 12.0859 15.8838 12.2285 15.4695 12.5135C15.0552 12.7985 14.7287 13.2261 14.4901 13.7962C14.2547 14.3629 14.1371 15.0689 14.1371 15.9141C14.1371 16.7592 14.2547 17.4652 14.4901 18.032C14.7287 18.5987 15.0552 19.0246 15.4695 19.3097C15.8838 19.5914 16.3561 19.7322 16.8864 19.7322C17.178 19.7322 17.4498 19.6941 17.7017 19.6179C17.9569 19.5417 18.1889 19.4422 18.3977 19.3196C18.6098 19.1937 18.8004 19.0611 18.9695 18.9219L19.571 20.1747C19.2197 20.4929 18.812 20.7332 18.348 20.8956C17.884 21.058 17.3968 21.1392 16.8864 21.1392C16.0545 21.1392 15.317 20.9287 14.674 20.5078C14.0343 20.0869 13.5322 19.487 13.1676 18.7081C12.803 17.9259 12.6207 16.9946 12.6207 15.9141C12.6207 14.8303 12.803 13.8973 13.1676 13.1151C13.5322 12.3329 14.0343 11.7313 14.674 11.3104C15.317 10.8894 16.0545 10.679 16.8864 10.679C17.4167 10.679 17.9105 10.7668 18.3679 10.9425C18.8253 11.1148 19.2346 11.3634 19.5959 11.6882Z"
fill="white"
/>
<defs>
<linearGradient
id="paint0_linear_15429_4440"
x1="10.0938"
y1="2.67479"
x2="23.5878"
y2="28.5416"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#0666CE" />
<stop offset="1" stopColor="#61A9F8" />
</linearGradient>
</defs>
</>
),
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 @@ -322,3 +322,4 @@ export { zerox } from './zerox'
export { zerox_circle_color } from './zeroX_circle_color'
export { zerox_color } from './zerox_color'
export { wsuperoethb } from 'theme/icons/wsuperoethb'
export { eurc } from './eurc'
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/[email protected].87":
version "0.1.87"
resolved "https://registry.yarnpkg.com/@oasisdex/addresses/-/addresses-0.1.87.tgz#f29e3d88608b25f50e76f83227fa91eda18d368f"
integrity sha512-1YDsZCm1YbY8NMdVkkZyiHsMnJlLo54NhfdCUPTFeaV/m3OuwPYk0AJWjPMyic8HY25PzI9MbhkD3rKSMG78DA==
"@oasisdex/[email protected].88":
version "0.1.88"
resolved "https://registry.yarnpkg.com/@oasisdex/addresses/-/addresses-0.1.88.tgz#7cc2dde4cc52c17a607fb063c26800a9bec52b39"
integrity sha512-er4veOy0konuDJ6jvdh131eIR5hu0NwKgcZjP37wfP//5EazW8Ze2f8i2cOE0McCsD4jKPajr8BrrUEJZ75dkw==

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

"@oasisdex/[email protected].75":
version "0.6.75"
resolved "https://registry.yarnpkg.com/@oasisdex/dma-library/-/dma-library-0.6.75.tgz#b27a186384e69c6e235e47cbc5cf586b3527c639"
integrity sha512-lU8J3+1zw1wAdGnC8eqx4IDqKsUxjAjeyhSwZEG5fuGSSGsp0SSmgHNGVxzO7ITKaxXFPUuujw0P30LB5h8q8g==
"@oasisdex/[email protected].76":
version "0.6.76"
resolved "https://registry.yarnpkg.com/@oasisdex/dma-library/-/dma-library-0.6.76.tgz#eb3657776d60090a9c27e012279f11e60322fa47"
integrity sha512-DNMEaZJ7q2+rvtxJ7gXykY5b9zUynlJ+aY3WDJQPU2SUK8Qi5tJrW4izztYZ7qLs4/rGvaFl6JAoFEjs3Tl+iQ==
dependencies:
bignumber.js "9.0.1"
ethers "^5.7.2"
Expand Down

0 comments on commit 7385f3f

Please sign in to comment.