Skip to content

Commit

Permalink
feat: added arb bridged usdc market to arbitrum (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxencerb authored Nov 18, 2024
1 parent 6170136 commit bfff56c
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cyan-dolphins-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@mangrovedao/mgv": patch
---

Add Arb/USDC.e market to arbitrum
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
}
9 changes: 9 additions & 0 deletions src/addresses/markets/arbitrum.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { MarketParams } from '../../types/index.js'
import {
arbitrumArb,
arbitrumUSDC,
arbitrumUSDCe,
arbitrumUSDT,
arbitrumWBTC,
arbitrumWETH,
Expand Down Expand Up @@ -43,11 +45,18 @@ export const arbitrumWETHweETH = {
tickSpacing: 1n,
} as const satisfies MarketParams

export const arbitrumARBUSDCe = {
base: arbitrumArb,
quote: arbitrumUSDCe,
tickSpacing: 1n,
} as const satisfies MarketParams

export const arbitrumMarkets = [
arbitrumWETHUSDC,
arbitrumWETHUSDT,
arbitrumUSDCUSDT,
arbitrumWETHWBTC,
arbitrumWBTCUSDT,
arbitrumWETHweETH,
arbitrumARBUSDCe,
] as const satisfies MarketParams[]
17 changes: 17 additions & 0 deletions src/addresses/tokens/arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,27 @@ export const arbitrumweETH = buildToken({
symbol: 'weETH',
})

export const arbitrumArb = buildToken({
address: '0x912CE59144191C1204E64559FE8253a0e49E6548',
symbol: 'ARB',
displayDecimals: 2,
priceDisplayDecimals: 4,
})

export const arbitrumUSDCe = buildToken({
address: '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8',
symbol: 'USDC.e',
decimals: 6,
displayDecimals: 2,
priceDisplayDecimals: 4,
})

export const arbitrumTokens = [
arbitrumWETH,
arbitrumWBTC,
arbitrumUSDC,
arbitrumUSDT,
arbitrumweETH,
arbitrumArb,
arbitrumUSDCe,
] as const

0 comments on commit bfff56c

Please sign in to comment.