Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add WBTC and DAI as base tokens for Sepolia market. #82

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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