forked from Synthetixio/synthetix-deployments
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathomnibus-arbitrum-mainnet-arbthetix.toml
143 lines (116 loc) · 4.82 KB
/
omnibus-arbitrum-mainnet-arbthetix.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
name = "synthetix-omnibus"
version = "5"
description = "Arbitrum deployment"
preset = "arbthetix"
include = [
# Deployment-specific permissions
"tomls/omnibus-arbitrum-mainnet-arbthetix/permissions.toml",
"tomls/core.toml", # Provision the core system
"tomls/settings.toml", # Apply minimum liquidity ratio and withdrawal timeout
"tomls/permissions.toml", # Allow deployer to create pools
"tomls/permit-deniers.toml", # Add feature flag deniers to perps and core systems
"tomls/pools/spartan-council.toml", # Create Spartan Council Pool
"tomls/markets/spot-factory.toml",
"tomls/markets/perps-factory.toml",
#"tomls/omnibus-arbitrum-mainnet-arbthetix/spot/usdc.toml",
#"tomls/omnibus-arbitrum-mainnet-arbthetix/spot/dai.toml",
"tomls/permit-all-perps-perpsSystem.toml", # Enable perps market
"tomls/omnibus-arbitrum-mainnet-arbthetix/perps/referrers.toml",
"tomls/omnibus-arbitrum-mainnet-arbthetix/perps/global.toml", # Global perps settings
"tomls/omnibus-arbitrum-mainnet-arbthetix/oracles/perps-keeper-cost.toml", # Add gas oracle for keeper fees
#"tomls/omnibus-arbitrum-mainnet-arbthetix/perps/feeCollector.toml",
# Collaterals
#"tomls/omnibus-arbitrum-mainnet-arbthetix/collaterals/usdc.toml", // usdc collateral is already included with spot market deployment
#"tomls/omnibus-arbitrum-mainnet-arbthetix/collaterals/dai.toml", // dai collateral is already included with the spot market deployment
# BTC
"tomls/markets/perps/btc.toml",
"tomls/oracles/pyth-btc.toml",
"tomls/omnibus-arbitrum-mainnet-arbthetix/perps/btc.toml",
# ETH
"tomls/markets/perps/eth.toml",
"tomls/oracles/pyth-eth.toml",
"tomls/collaterals/weth.toml",
"tomls/omnibus-arbitrum-mainnet-arbthetix/perps/eth.toml",
# ARB
"tomls/oracles/pyth-arb.toml",
"tomls/collaterals/arb.toml",
"tomls/omnibus-arbitrum-mainnet-arbthetix/perps/arb.toml",
]
[setting.commitmentPriceDelay]
defaultValue = "2"
[setting.bigCapSettlementDelay]
defaultValue = "2"
[setting.bigCapDefaultStalenessTolerance]
defaultValue = "86400"
[setting.snx_package]
defaultValue = "synthetix:3.3.15"
[setting.perps_keeper_cost_package]
defaultValue = "arbitrum-gas-price-oracle:3.3.16"
[setting.spot_market_package]
defaultValue = "synthetix-spot-market:3.3.15"
[setting.perps_market_package]
defaultValue = "synthetix-perps-market:3.3.17"
[setting.buyback_snx_package]
defaultValue = "buyback-snx:3.3.14" # Do not update! This package isn't upgradeable. A version change will deploy a new contract.
[setting.salt]
defaultValue = "ARBTHETIX"
[setting.target_preset]
defaultValue = "arbthetix" # Preset assigned to provisioned packages
[setting.pyth_price_verification_address]
# https://docs.pyth.network/documentation/pythnet-price-feeds/evm
defaultValue = "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C"
[provision.pyth_erc7412_wrapper]
source = "pyth-erc7412-wrapper:3.3.14"
targetPreset = "<%= settings.target_preset %>"
options.salt = "<%= settings.salt %>"
options.pythAddress = "<%= settings.pyth_price_verification_address %>"
[setting.owner]
defaultValue = "0xEde8a407913A874Dd7e3d5B731AFcA135D30375E"
[setting.deployer]
defaultValue = "0xEde8a407913A874Dd7e3d5B731AFcA135D30375E"
[setting.minimum_liquidity_ratio]
defaultValue = "<%= parseEther('1.25') %>" # 125% min market collateralization
[setting.account_timeout_withdraw]
defaultValue = "86400" # 1 day
[setting.sc_pool_id]
defaultValue = "1"
[setting.pool_owner]
defaultValue = "0xEde8a407913A874Dd7e3d5B731AFcA135D30375E"
[setting.weth_address]
defaultValue = "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"
[setting.arb_address]
defaultValue = "0x912CE59144191C1204E64559FE8253a0e49E6548"
[setting.usdc_address]
defaultValue = "0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
[setting.dai_address]
defaultValue = "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1"
[setting.snx_address]
# defaultValue = "0x"
[invoke.setScPoolConfig]
target = ["system.CoreProxy"]
fromCall.func = "getPoolOwner"
fromCall.args = ["<%= settings.sc_pool_id %>"]
func = "setPoolConfiguration"
args = [
"<%= settings.sc_pool_id %>",
[
{ marketId = "<%= imports.perpsFactory.extras.superMarketId %>", weightD18 = 1, maxDebtShareValueD18 = "<%= parseEther('1') %>" },
],
]
[invoke.allowAllPerpsSystem_revert]
target = ["perpsFactory.PerpsMarketProxy"]
fromCall.func = "owner"
func = "setFeatureFlagAllowAll"
args = ["<%= formatBytes32String('perpsSystem') %>", false]
depends = ["invoke.allowAllPerpsSystem"]
[invoke.setUsdTokenName]
target = ["system.CoreProxy"]
fromCall.func = "owner"
func = "initOrUpgradeToken"
args = [
"0x555344546f6b656e000000000000000000000000000000000000000000000000",
"DollarWifHat",
"USDh",
18,
"<%= imports.system.contracts.USDRouter.address %>",
]