Skip to content

Commit

Permalink
feat: Add WBTC and DAI as base tokens for Sepolia market. (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxencerb authored Jun 10, 2024
1 parent c7c1cc8 commit 54a59ad
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/heavy-coins-eat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@mangrovedao/mgv": patch
---

Add sepolia market WBTC/DAI
2 changes: 2 additions & 0 deletions src/addresses/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export {
blastMetaStreetWETHPUNKS40,
baseSepoliaUSDC,
baseSepoliaWETH,
baseSepoliaDAI,
baseSepoliaWBTC,
baseSepoliaTokens,
} from './tokens/index.js'

Expand Down
12 changes: 11 additions & 1 deletion src/addresses/markets/base-sepolia.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
import type { MarketParams } from '../../types/index.js'
import { baseSepoliaUSDC, baseSepoliaWETH } from '../tokens/base-sepolia.js'
import {
baseSepoliaDAI,
baseSepoliaUSDC,
baseSepoliaWBTC,
baseSepoliaWETH,
} from '../tokens/base-sepolia.js'

export const baseSepoliaMarkets = [
{
base: baseSepoliaWETH,
quote: baseSepoliaUSDC,
tickSpacing: 1n,
},
{
base: baseSepoliaWBTC,
quote: baseSepoliaDAI,
tickSpacing: 1n,
},
] as const satisfies MarketParams[]
22 changes: 21 additions & 1 deletion src/addresses/tokens/base-sepolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,24 @@ export const baseSepoliaUSDC = buildToken({
decimals: 6,
})

export const baseSepoliaTokens = [baseSepoliaUSDC, baseSepoliaWETH] as const
export const baseSepoliaWBTC = buildToken({
address: '0x5146d560975A44B9Ad1a8bdF5f4017591a26df82',
symbol: 'WBTC',
decimals: 8,
displayDecimals: 5,
priceDisplayDecimals: 6,
})

export const baseSepoliaDAI = buildToken({
address: '0x9508B3459Bc95A39CA66c385f1Ae12f03f72f8af',
symbol: 'DAI',
displayDecimals: 2,
priceDisplayDecimals: 2,
})

export const baseSepoliaTokens = [
baseSepoliaUSDC,
baseSepoliaWETH,
baseSepoliaWBTC,
baseSepoliaDAI,
] as const
2 changes: 2 additions & 0 deletions src/addresses/tokens/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export {
export {
baseSepoliaUSDC,
baseSepoliaWETH,
baseSepoliaDAI,
baseSepoliaWBTC,
baseSepoliaTokens,
} from './base-sepolia.js'

Expand Down

0 comments on commit 54a59ad

Please sign in to comment.