From 86cafb659d588078099052deb8ddb36a815a381e Mon Sep 17 00:00:00 2001 From: sebastianPiekarczyk Date: Fri, 13 Dec 2024 12:22:38 +0100 Subject: [PATCH] Add MBASIS token information and update dependencies in package.json. --- blockchain/contracts/mainnet.ts | 1 + blockchain/token-metadata-list/token-configs.ts | 11 +++++++++++ blockchain/tokens/mainnet.ts | 1 + features/omni-kit/helpers/isYieldLoopPair.ts | 1 + features/omni-kit/protocols/ajna/settings.ts | 1 + package.json | 2 +- yarn.lock | 8 ++++---- 7 files changed, 20 insertions(+), 5 deletions(-) diff --git a/blockchain/contracts/mainnet.ts b/blockchain/contracts/mainnet.ts index 6184945cc3..78e62adddf 100644 --- a/blockchain/contracts/mainnet.ts +++ b/blockchain/contracts/mainnet.ts @@ -240,6 +240,7 @@ export const mainnetContracts = { 'SAFE-DAI': contractDesc(ajnaPool, mainnet.ajna.AjnaPoolPairs_SAFEDAI), 'WOETH-ETH': contractDesc(ajnaPool, mainnet.ajna.AjnaPoolPairs_WOETHETH), 'SYRUPUSDC-USDC': contractDesc(ajnaPool, mainnet.ajna.AjnaPoolPairs_SYRUPUSDCUSDC), + 'MBASIS-USDC': contractDesc(ajnaPool, mainnet.ajna.AjnaPoolPairs_MBASISUSDC), }, ajnaOraclessPoolPairs: { 'YVCURVEUSDMSDAIF-DAI': contractDesc(ajnaPool, mainnet.ajna.AjnaPoolPairs_YVCURVEUSDMSDAIFDAI), diff --git a/blockchain/token-metadata-list/token-configs.ts b/blockchain/token-metadata-list/token-configs.ts index ec7275524c..e10f442dc3 100644 --- a/blockchain/token-metadata-list/token-configs.ts +++ b/blockchain/token-metadata-list/token-configs.ts @@ -350,6 +350,17 @@ export const tokenConfigs: TokenConfig[] = [ background: 'linear-gradient(160.47deg, #F0F3FD 0.35%, #FCF0FD 99.18%), #FFFFFF', tags: [], }, + { + symbol: 'MBASIS', + precision: 18, + digits: 5, + digitsInstant: 2, + name: 'MBASIS', + icon: question, + iconCircle: question, + coinGeckoTicker: 'midas-basis-trading-token', + tags: [], + }, { symbol: 'UNIV2DAIETH', precision: 18, diff --git a/blockchain/tokens/mainnet.ts b/blockchain/tokens/mainnet.ts index 64852f451c..215471aca7 100644 --- a/blockchain/tokens/mainnet.ts +++ b/blockchain/tokens/mainnet.ts @@ -145,6 +145,7 @@ export const tokensMainnet = { SKY: contractDesc(sky, '0x56072C95FAA701256059aa122697B133aDEd9279'), USDS: contractDesc(skyUsds, '0xdC035D45d973E3EC169d2276DDab16f1e407384F'), WUSDL: contractDesc(erc20, mainnet.common.WUSDL), + MBASIS: contractDesc(erc20, mainnet.common.MBASIS), } as Record export const ACCOUNT_GUARD_FACTORY_GENESIS_MAINNET = 16183119 diff --git a/features/omni-kit/helpers/isYieldLoopPair.ts b/features/omni-kit/helpers/isYieldLoopPair.ts index e7cb826893..834933c8db 100644 --- a/features/omni-kit/helpers/isYieldLoopPair.ts +++ b/features/omni-kit/helpers/isYieldLoopPair.ts @@ -41,6 +41,7 @@ export const yieldLoopDefinition = { 'LUSD', 'GHO', 'FRAX', + 'MBASIS', ], } diff --git a/features/omni-kit/protocols/ajna/settings.ts b/features/omni-kit/protocols/ajna/settings.ts index fcdaa81959..0d7e0f751e 100644 --- a/features/omni-kit/protocols/ajna/settings.ts +++ b/features/omni-kit/protocols/ajna/settings.ts @@ -52,6 +52,7 @@ export const settings: OmniProtocolSettings = { 'XETH', 'YFI', 'WOETH', + 'MBASIS', ], [NetworkIds.GOERLI]: [], [NetworkIds.BASEMAINNET]: [ diff --git a/package.json b/package.json index efb8a20a68..13e63ef8f5 100644 --- a/package.json +++ b/package.json @@ -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.91", + "@oasisdex/addresses": "0.1.92", "@oasisdex/automation": "1.6.5-morpho.6", "@oasisdex/dma-library": "0.6.80", "@oasisdex/multiply": "^0.2.11", diff --git a/yarn.lock b/yarn.lock index 649263bf4f..e3ba71186d 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.91": - version "0.1.91" - resolved "https://registry.yarnpkg.com/@oasisdex/addresses/-/addresses-0.1.91.tgz#eaa8d176451d39f3a9a26eb1dd2d7ff1366e2bcd" - integrity sha512-eeVzy6Nwuw0gowJXFgHQ8I4pBr/KehXNFSTVyBVcLUzsiVIgPenxPb2WVgv7BpPjKBV2dbBeV4aaxOUdJuT6ow== +"@oasisdex/addresses@0.1.92": + version "0.1.92" + resolved "https://registry.yarnpkg.com/@oasisdex/addresses/-/addresses-0.1.92.tgz#3601194a17d05078353e0b61814a6c685adc6a2c" + integrity sha512-cj8xj7PuT9ZEVoF9IhfghRsmrW/ui/Jz3CUyCP2x3gQ5mdf6rKgMe8PPwtrpfVCgcBYWn/wpN0L9JO8EuIy8Zw== "@oasisdex/automation@1.6.5-morpho.6": version "1.6.5-morpho.6"