-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.yml
79 lines (76 loc) · 2.33 KB
/
config.yml
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
chainId: sifchain-1
rpcEndpoint: https://proxies.sifchain.finance:443/api/sifchain-1/rpc
apiEndpoint: https://proxies.sifchain.finance:443/api/sifchain-1/rest
dbHost: ${env:DB_HOST}
dbPort: ${env:DB_PORT}
dbUser: ${env:DB_USER}
dbName: ${env:DB_NAME}
dbQueryTimeout: ${env:DB_QUERY_TIMEOUT}
fee: 10000000000000
gas: 280000
adjust-liqp-tvl:
maxRowanLiquidityThresholdPercentage: 10.0
epochLength: 14400
isActive: true
schedule: rate(30 minutes)
adjust-lpd-price-loss:
isActive: true # turn off LPD entirely if set to false
dryRun: false # skip LPD params update
symbol: cusdc
blockWindow: 300
mod: 100 # should match on-chain mod LPD param
dailyRate: 0.0375
epochLength: 14400
maxRate: 0.30
enableMaxRateMod: false # max rate is scaled down to mod cycle
initialBlock: 9001650
blockWindowOffset: 50
schedule: rate(30 minutes)
margin-market-maker:
collateralAmount: 10000000 # 10 USDC
collateralAsset: cusdc
borrowAsset: rowan
leverage: 5.0
position: long
duration: 10 # 1 day
maxPositions: 100
minPoolHealth: 0.9
schedule: rate(10 minutes)
margin-auto-close-positions:
profitPercentageThreshold: 200
schedule: rate(30 minutes)
adjust-swap-fee-rate:
intraEpochLength: 20
sfIncrement: 0.01
minTotalAsset: cusdc
minTotalAmount: 6
fee: 100000000000000000
schedule: rate(2 minutes)
reset-swap-fee-rate:
maxSwapFee: 1.0
fee: 100000000000000000
schedule: rate(4 hours)
add-liquidity-to-rewards-bucket:
fee: 100000000000000000
schedule: rate(1 hour)
adjust-swap-fee-rate-to-market:
maxSwapFee: 1.0 # 100%
minSwapFee: 0.005 # 0.5%
sifchainSymbol: ibc/8FCD92E4B97E69EC1A334EADDFF903A6C44408A8C9B03A40B3FBCABE575A8359
osmosisSymbol: ROWAN
reducerCoefficient: 0.96 # will apply 96% of the actual calculated swap fee rate
fee: 100000000000000000
schedule: rate(2 minutes)
tags:
"sifchain::stage": ${opt:stage}
"sifchain::owner": ${env:OWNER}
ssmAdminClpDexMnemonicPath: /offchain-agents/${opt:stage}/admin-clp-dex-mnemonic
ssmUserMarginMnemonicPath: /offchain-agents/${opt:stage}/user-margin-mnemonic
ssmAdminMarginMnemonicPath: /offchain-agents/${opt:stage}/admin-margin-mnemonic
ssmDbPasswordPath: /offchain-agents/${opt:stage}/db-password
prod:
deploymentBucketName: ${env:DEPLOYMENT_BUCKET_NAME}
slackOffchainAgentsWebhook: ${env:SLACK_OFFCHAIN_AGENTS_WEBHOOK}
esbuild:
external:
- pg-native