-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainnet-production.yaml
559 lines (557 loc) · 20.8 KB
/
mainnet-production.yaml
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
# Configurations for our mainnet contract deployment.
# Please note that once the contracts are deployed, not all fields can be changed afterwards (not supported yet by the scripts).
# The fields that are marked with `can be changed` means they can be updated/changed afterwards.
# The wallet addresses means that they could be used to sign transactions or propose signed transactions.
wallets:
# https://github.com/plutodigital/yop-engineering-docs/blob/main/preDAO/wallets.md#governance
governance: &governance
type: multisig
address: "0x457a60065050050B3e64Fcd96cFb973123D38338"
safe: "0x457a60065050050B3e64Fcd96cFb973123D38338"
# https://github.com/plutodigital/yop-engineering-docs/blob/main/preDAO/wallets.md#gatekeeper
gatekeeper: &gatekeeper
type: multisig
address: "0x5B6394Eb0C9Ac102fA5777D32Cd87151E894A940"
safe: "0x5B6394Eb0C9Ac102fA5777D32Cd87151E894A940"
# https://github.com/plutodigital/yop-engineering-docs/blob/main/preDAO/wallets.md#manager
manager: &manager
type: multisig
address: "0x65A7cDfd73d6f6A5bE6604521c8001FE2cE58f0D"
safe: "0x65A7cDfd73d6f6A5bE6604521c8001FE2cE58f0D"
addresses:
# https://etherscan.io/token/0xae1eaae3f627aaca434127644371b67b18444051
yop_token_contract: &yopContract "0xae1eaae3f627aaca434127644371b67b18444051"
# https://etherscan.io/address/0xe4605d46fd0b3f8329d936a8b258d69276cba264
yop_nft: &yopNFT "0xe4605d46fd0b3f8329d936a8b258d69276cba264"
yop_nft_valid_token_ids:
&yopNFTTokenIds ["134", "135", "136", "503", "504", "505"]
# Fireblocks - Pluto Product Holdings - YOP Community Emitted Wallet
rewards_wallet: &rewardsWallet "0x65f1d9CC122ff5340A43ADeC774e126C391d6e9C"
# This is the wallet that will be used to collect all the fees
protocol_wallet_address: &protocolWalletAddress "0x4dB88F89BeCcbBBF5A75e558555537e4b40f7dDB"
# https://github.com/plutodigital/yop-engineering-docs/blob/main/preDAO/wallets.md#keeper
harvester_address: &harvester_address "0xE9CDD67b924a8e82709207373699bb749F8851CE"
# for managing the YOP staking NFT collections on OpenSea
yop_staking_nft_opensea_admin: &yopStakingNFTAdmin "0xa457DB3493c9d3a11c63cAAF27B78Fe1cEB2bd0D"
# https://etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
weth_token_address: &weth_token_address "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
# https://etherscan.io/token/0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
wbtc_token_address: &wbtc_token_address "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"
# https://etherscan.io/token/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
usdc_token_address: &usdc_token_address "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
# https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f
dai_token_address: &dai_token_address "0x6b175474e89094c44da98b954eedeac495271d0f"
# https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7
usdt_token_address: &usdt_token_address "0xdac17f958d2ee523a2206206994597c13d831ec7"
chainalysis_sanction_list_address: &sanction_list_address "0x40C57923924B5c5c5455c48D93317139ADDaC8fb"
uniswap_v2_router: &uniswap_v2_router "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D"
constants:
# we can change deploy script to make it easier to read https://forum.openzeppelin.com/t/using-the-maximum-integer-in-solidity/3000
vault_management_fee: &vault_management_fee 100 # 1%
strategy_performance_fee: &strategy_performance_fee 1000 # 10%
vault_max_debt_ratio: &vault_max_debt_ratio 9500 # 95%
default_vault_creator_fee_ratio: &default_vault_creator_fee_ratio 0
default_strategy_developer_fee_ratio: &default_strategy_developer_fee_ratio 0
default_strategy_proposer_fee_ratio: &default_strategy_proposer_fee_ratio 0
yop_emission_start_time: &yop_emissions_start_time 1640995200 # 2022-1-1-00:00:00 GMT
staking_nft_uri: &staking_nft_uri "https://app.yop.finance/api/lockbox/{id}"
# This is used to display information about the staking NFT collection in OpenSea.
# The file is a static one for now and served directly from a S3 bucket.
staking_nft_contract_uri: &staking_nft_contract_uri "https://d3q6we6gspsrqs.cloudfront.net/opensea/contract.json"
staking_min_amount: &staking_min_amount 100
rewards_weight_for_vaults: &rewards_weight_for_vaults 75
rewards_weight_for_staking: &rewards_weight_for_staking 25
# All vaults must have the same version
vault_version: &vault_version 2
curve_pools:
# To find information about curve pools, use:
# registry: https://etherscan.io/address/0x90E00ACe148ca3b23Ac1bC8C240C2a7Dd9c2d7f5#readContract
# curve deployment addresses: https://curve.readthedocs.io/ref-addresses.html
steth_pool_info: &curve_steth_pool_info
type: "plain"
pool: "0xDC24316b9AE028F1497c275EB9192a3Ea0f67022"
number_of_tokens: 2
obtc_pool_info: &curve_obtc_pool_info
type: "zap"
pool: "0xd5BCf53e2C81e1991570f33Fa881c49EEa570C8D"
# for zap depositors, this should be the value of `N_ALL_COINS` (normally it's the total number of base pool coins + 1)
number_of_tokens: 4
3pool: &curve_3pool_info
type: "plain"
# Curve 3pool (DAI/USDC/USDT)
pool: "0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7"
number_of_tokens: 3
usdn: &curve_usdn_pool_info
type: "meta"
pool: "0x0f9cb53Ebe405d49A0bbdBD291A65Ff571bC83e1"
number_of_tokens: 2
frax: &curve_frax_pool_info
type: "meta"
pool: "0xd632f22692FaC7611d2AA1C0D552930D43CAEd3B"
number_of_tokens: 2
base_pool: "0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7"
sbtc: &sbtc_pool_info
type: "plain"
pool: "0x7fC77b5c7614E1533320Ea6DDc2Eb61fa00A9714"
number_of_tokens: 3
# Normally the deployment script can find out the index of the input token.
# However, for this pool, it is using an old version of the contract and the signature of its `coins` method is different from the new versions.
# It's `coins(int128)` rather than `coins(uint256)`.
# So we just specify it here so the script doesn't need to look it up.
input_token_index: 1
convex_pools:
# https://etherscan.io/address/0xF403C135812408BFbE8713b5A23a04b3D48AAE31
booster: &convex_booster "0xF403C135812408BFbE8713b5A23a04b3D48AAE31"
legacy_curve_pools:
# https://etherscan.io/address/0xDC24316b9AE028F1497c275EB9192a3Ea0f67022
steth_pool: &curve_eth_pool "0xDC24316b9AE028F1497c275EB9192a3Ea0f67022"
# https://etherscan.io/address/0xd5BCf53e2C81e1991570f33Fa881c49EEa570C8D
wbtc_pool: &curve_wbtc_pool "0xd5BCf53e2C81e1991570f33Fa881c49EEa570C8D"
# https://etherscan.io/address/0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7
usdn_pool: &curve_usdn_pool "0xbEbc44782C7dB0a1A60Cb6fe97d0b483032FF1C7"
weth_vault:
rewards_weight: &weth_vault_rewards_weight 170000
paused: &weth_vault_paused false
curve_strategy:
allocation: &curve_eth_allocation 0
convex_strategy:
# we have about 16 ETH deployed to this strategy. Want to keep them there for now.
# As of May 17, 2022, the ETH vault has about 87 ETH deployed. So 16/87 ~= 18.4%.
# This can be further reduced when there are more ETH in the vault
allocation: &convex_eth_allocation_v1 0
convex_strategy_v2:
allocation: &convex_eth_allocation_v2 0
convex_strategy_v3:
allocation: &convex_eth_allocation_v3 8500
wbtc_vault:
rewards_weight: &wbtc_vault_rewards_weight 170000
paused: &wbtc_vault_paused false
curve_strategy:
allocation: &curve_wbtc_allocation 0
convex_strategy:
allocation: &convex_wbtc_allocation_v1 0
convex_strategy_v2:
allocation: &convex_wbtc_allocation_v2 0
convex_strategy_v3:
allocation: &convex_wbtc_allocation_v3 8500
usdc_vault:
rewards_weight: &usdc_vault_rewards_weight 170000
paused: &usdc_vault_paused false
curve_strategy:
allocation: &curve_usdc_allocation 0
convex_strategy:
allocation: &convex_usdc_allocation 8500
dai_vault:
rewards_weight: &dai_vault_rewards_weight 170000
paused: &dai_vault_paused false
curve_strategy:
allocation: &curve_dai_allocation 0
convex_strategy:
allocation: &convex_dai_allocation 8500
usdt_vault:
rewards_weight: &usdt_vault_rewards_weight 170000
paused: &usdt_vault_paused false
curve_strategy:
allocation: &curve_usdt_allocation 0
convex_strategy:
allocation: &convex_usdt_allocation 8500
dummy_vault:
rewards_weight: &dummy_vault_rewards_weight 0
# Configure the access policies to vaults/staking
access_control:
version: 2
governance: *governance
# control access to vaults/staking with a list of addresses
allowlist:
version: 1
# can be changed
# if enabled, this policy will be taking into account
enabled: false
governance: *governance
# can be changed
# if an address is added here, it will have access to all the vaults/staking contracts
# this configure doesn't support per vault/staking contract configuration yet
global: []
# enabled/disable public access to vaults/staking
allowany:
version: 1
# can be changed
# if enabled, this policy will be taking into account
enabled: true
governance: *governance
# can be changed
# set to true to enable global access, false to disable it
# this configuration doesn't support per vault/staking contract configuration yet
global: true
# control access to vaults/staking using erc1155 NFT
erc1155:
version: 1
# can be changed
# if enabled, this policy will be taking into account
enabled: false
governance: *governance
# can be changed
# grant NFTs access to allow the vaults/staking contracts.
# this configuration doesn't support per vault/staking contract configuration yet
global:
- contract_address: *yopNFT
token_ids: *yopNFTTokenIds
sanctionlist:
version: 1
enabled: true
governance: *governance
list_address: *sanction_list_address
vault_strategy_data_store:
governance: *governance
version: 1
fee_collection:
version: 1
governance: *governance
gatekeeper: *gatekeeper
# can be changed
protocol_wallet: *protocolWalletAddress
# can be changed
default_vault_creator_fee_ratio: *default_vault_creator_fee_ratio
# can be changed
default_strategy_proposer_fee_ratio: *default_strategy_proposer_fee_ratio
# can be changed
default_strategy_developer_fee_ratio: *default_strategy_developer_fee_ratio
# can be changed
paused: false
rewards:
version: 2.1
governance: *governance
gatekeeper: *gatekeeper
wallet: *rewardsWallet
yop_contract: *yopContract
emission_start_time: *yop_emissions_start_time
# can be changed
total_allocation_weight:
vaults: *rewards_weight_for_vaults
staking: *rewards_weight_for_staking
# can be changed
vaults_allocation_weight:
# never remove vaults for here.
# Set the value to 0 if a vault should not receive emission anymore
# Name needs to match the name of the vaults
"Ethereum Genesis": *weth_vault_rewards_weight
"Bitcoin Genesis": *wbtc_vault_rewards_weight
"USDC Genesis": *usdc_vault_rewards_weight
"DAI Genesis": *dai_vault_rewards_weight
"USDT Genesis": *usdt_vault_rewards_weight
"Dummy": *dummy_vault_rewards_weight
# can be changed
paused: false
staking:
version: 2.1
name: "YOP Staking"
symbol: "sYOP"
governance: *governance
gatekeeper: *gatekeeper
uri: *staking_nft_uri
# can be changed
contract_uri: *staking_nft_contract_uri
owner: *yopStakingNFTAdmin
# can be changed. Ignore the decimals.
min_stake_amount: *staking_min_amount
# can be changed
paused: false
# registry:
# version: 1
# governance: *governance
# router:
# version: 1
# governance: *governance
# uniswap_address: *uniswap_v2_router
# yop_address: *yopContract
# weth_address: *weth_token_address
vault_version: *vault_version
vaults:
- name: Ethereum Genesis
symbol: "yopETH"
governance: *governance
gatekeeper: *gatekeeper
manager: *manager
token_address: *weth_token_address
# can be changed
management_fee: *vault_management_fee
# can be changed
# if this value is reduced, check the allocations for strategies and make sure
# the total of the allocations won't exceed the max value
max_debt_ratio: *vault_max_debt_ratio
# can be changed
paused: *weth_vault_paused
# can be changed
emergency_shutdown: false
# can add new strategies, but don't remove, and don't change orders here
# change the allocation to 0 if the strategy is not used anymore
strategies:
- name: "CurveETH"
contract: "CurveEth"
harvester: *harvester_address
# can be changed
performance_fee: *strategy_performance_fee
# can be changed
allocation: *curve_eth_allocation
pool: *curve_eth_pool
version: 1
emergency_exit: false
- name: "ConvexETH"
contract: "ConvexEth"
harvester: *harvester_address
performance_fee: *strategy_performance_fee
allocation: *convex_eth_allocation_v1
pool: *curve_eth_pool
booster: *convex_booster
version: 1
emergency_exit: false
- name: "ConvexETHV2"
contract: "ConvexETHSinglePool"
harvester: *harvester_address
allocation: 0
performance_fee: *strategy_performance_fee
version: 2
pool_info:
<<: *curve_steth_pool_info
booster: *convex_booster
- name: "ConvexETHV3"
contract: "ConvexETHSinglePool"
harvester: *harvester_address
allocation: *convex_eth_allocation_v3
performance_fee: *strategy_performance_fee
version: 2
pool_info:
<<: *curve_steth_pool_info
booster: *convex_booster
withdraw_queue:
- ConvexETHV3
- ConvexETHV2
- ConvexETH
- name: Bitcoin Genesis
symbol: "yopBTC"
governance: *governance
gatekeeper: *gatekeeper
manager: *manager
token_address: *wbtc_token_address
management_fee: *vault_management_fee
max_debt_ratio: *vault_max_debt_ratio
paused: *wbtc_vault_paused
emergency_shutdown: false
strategies:
- name: "CurveWBTC"
contract: "CurveBtc"
harvester: *harvester_address
performance_fee: *strategy_performance_fee
allocation: *curve_wbtc_allocation
pool: *curve_wbtc_pool
version: 1
emergency_exit: false
- name: "ConvexWBTC"
contract: "ConvexBtc"
harvester: *harvester_address
performance_fee: *strategy_performance_fee
allocation: *convex_wbtc_allocation_v1
pool: *curve_wbtc_pool
booster: *convex_booster
version: 1
emergency_exit: false
- name: "ConvexWBTCV2"
contract: "ConvexERC20SinglePool"
harvester: *harvester_address
allocation: 0
performance_fee: *strategy_performance_fee
version: 2
pool_info:
<<: *sbtc_pool_info
booster: *convex_booster
emergency_exit: true
- name: "ConvexWBTCV3"
contract: "ConvexERC20SinglePool"
harvester: *harvester_address
allocation: *convex_wbtc_allocation_v3
performance_fee: *strategy_performance_fee
version: 2
pool_info:
<<: *sbtc_pool_info
booster: *convex_booster
emergency_exit: false
withdraw_queue:
- ConvexWBTCV3
- name: USDC Genesis
symbol: "yopUSDC"
governance: *governance
gatekeeper: *gatekeeper
manager: *manager
token_address: *usdc_token_address
management_fee: *vault_management_fee
max_debt_ratio: *vault_max_debt_ratio
paused: *usdc_vault_paused
emergency_shutdown: false
strategies:
- name: "CurveUSDC"
contract: "CurveStable"
harvester: *harvester_address
performance_fee: *strategy_performance_fee
allocation: 0
pool: *curve_usdn_pool
version: 1
emergency_exit: true
- name: "ConvexUSDC"
contract: "ConvexStable"
harvester: *harvester_address
performance_fee: *strategy_performance_fee
allocation: 0
pool: *curve_usdn_pool
booster: *convex_booster
version: 1
emergency_exit: true
# These are used as examples to show how to add new versions of the strategies
# It's best to add them after the upgrade of other contracts have completed
# - name: "CurveUSDCV2"
# contract: "CurveMeta"
# harvester: *harvester_address
# performance_fee: *strategy_performance_fee
# allocation: 2000
# version: 2
# # migrate_from: "CurveUSDC"
# pool_info:
# <<: *curve_ust_pool_info
- name: "ConvexUSDCV2"
contract: "ConvexCurveMeta"
harvester: *harvester_address
performance_fee: *strategy_performance_fee
allocation: 0
version: 2
pool_info:
<<: *curve_frax_pool_info
booster: *convex_booster
emergency_exit: true
- name: "ConvexUSDCV3"
contract: "ConvexCurveMeta"
harvester: *harvester_address
performance_fee: *strategy_performance_fee
allocation: *convex_usdc_allocation
version: 2
pool_info:
<<: *curve_frax_pool_info
booster: *convex_booster
emergency_exit: false
withdraw_queue:
- ConvexUSDCV3
- name: DAI Genesis
symbol: "yopDAI"
governance: *governance
gatekeeper: *gatekeeper
manager: *manager
token_address: *dai_token_address
management_fee: *vault_management_fee
max_debt_ratio: *vault_max_debt_ratio
paused: *dai_vault_paused
emergency_shutdown: false
strategies:
- name: "CurveDAI"
contract: "CurveStable"
harvester: *harvester_address
performance_fee: *strategy_performance_fee
allocation: 0
pool: *curve_usdn_pool
version: 1
emergency_exit: false
- name: "ConvexDAI"
contract: "ConvexStable"
harvester: *harvester_address
performance_fee: *strategy_performance_fee
allocation: 0
pool: *curve_usdn_pool
booster: *convex_booster
version: 1
emergency_exit: false
- name: "ConvexDAIV2"
contract: "ConvexCurveMeta"
harvester: *harvester_address
performance_fee: *strategy_performance_fee
allocation: 0
version: 2
pool_info:
<<: *curve_frax_pool_info
booster: *convex_booster
emergency_exit: true
- name: "ConvexDAIV3"
contract: "ConvexCurveMeta"
harvester: *harvester_address
performance_fee: *strategy_performance_fee
allocation: *convex_dai_allocation
version: 2
pool_info:
<<: *curve_frax_pool_info
booster: *convex_booster
emergency_exit: false
withdraw_queue:
- ConvexDAIV3
- name: USDT Genesis
symbol: "yopUSDT"
governance: *governance
gatekeeper: *gatekeeper
manager: *manager
token_address: *usdt_token_address
# Set management fee to 0 for now for the USDT vault to walk around a bug with approving the FeeCollection contract
# on USDT. The performance fee of active strategies are set to 0 for the same reason.
# Should be set back once the issue is fixed.
management_fee: 0
max_debt_ratio: *vault_max_debt_ratio
paused: *usdt_vault_paused
emergency_shutdown: false
strategies:
- name: "CurveUSDT"
contract: "CurveStable"
harvester: *harvester_address
performance_fee: *strategy_performance_fee
allocation: 0
pool: *curve_usdn_pool
version: 1
emergency_exit: false
- name: "ConvexUSDT"
contract: "ConvexStable"
harvester: *harvester_address
performance_fee: *strategy_performance_fee
allocation: 0
pool: *curve_usdn_pool
booster: *convex_booster
version: 1
emergency_exit: false
- name: "ConvexUSDTV2"
contract: "ConvexCurveMeta"
harvester: *harvester_address
performance_fee: 0
allocation: 0
version: 2
pool_info:
<<: *curve_frax_pool_info
booster: *convex_booster
emergency_exit: true
- name: "ConvexUSDTV3"
contract: "ConvexCurveMeta"
harvester: *harvester_address
performance_fee: 0
allocation: *convex_usdt_allocation
version: 2
pool_info:
<<: *curve_frax_pool_info
booster: *convex_booster
emergency_exit: false
withdraw_queue:
- ConvexUSDTV3
# a dummy vault that will never be enabled, and but can share the emission.
# it is needed to reserve some emissions for the private launch
# this should never be listed in the UI
- name: Dummy
symbol: "yopDummy"
governance: *governance
gatekeeper: *gatekeeper
manager: *manager
token_address: *yopContract
management_fee: *vault_management_fee
max_debt_ratio: *vault_max_debt_ratio
paused: true
emergency_shutdown: false
strategies: []