-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
172 lines (159 loc) · 5.64 KB
/
config.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
global:
vars:
Reserve: '0x9380fA34Fd9e4Fd14c06305fd7B6199089eD4eb9'
# Rate Feed IDs
EUROCEUR: '0x26076B9702885d475ac8c3dB3Bd9F250Dc5A318B'
EUROCXOF: '0xed35e46b095197da30ddffa5b91d386886d5ce0d'
EURXOF: '0x40dc8528167557353fdcd98548ab2139a670dd0b'
KESUSD: '0xbAcEE37d31b9f022Ef5d232B9fD53F05a531c169'
USDCBRL: '0x25f21a1f97607edf6852339fad709728cffb9a9d'
USDCEUR: '0x206b25ea01e188ee243131afde526ba6e131a016'
USDCUSD: '0xa1a8003936862e7a15092a91898d69fa8bce290c'
USDTUSD: '0xE06C10C63377cD098b589c0b90314bFb55751558'
'relayed:PHPUSD': '0xab921d6ab1057601A9ae19879b111fC381a2a8E9'
'relayed:COPUSD': '0x0196D1F4FdA21fA442e53EaF18Bf31282F6139F1'
'relayed:CELOPHP': '0xaFc02368A174Cd08e01c373de6D0B537CECF43C8'
'relayed:CELOCOP': '0x32ABF1cBdFdcD56790f427694be2658d4B1A83bC'
# Relayer Signer Wallets
RelayerSignerPHPUSD: '0xb2cE6fa691b58Ff4fadBd610a8e09427d2918025'
RelayerSignerCOPUSD: '0x95C365fBE39d9b8002f4683b0Bb6020680D9C4E0'
RelayerSignerCELOPHP: '0xCCD3D48D6a5340156d85DC5A43743e65Bd4a6E51'
RelayerSignerCELOCOP: '0xd8dfB551157B0B80D41787C08885e09F994B7cC5'
chains:
- id: celo
label: celo
httpRpcUrl: https://forno.celo.org
contracts:
SortedOracles: '0xefb84935239dacdecf7c5ba76d8de40b077b7b33'
OracleHelper: '0x555a4D35328462bCadFD9558295F8E0C98FEdea0'
BreakerBox: '0x303ED1df62Fa067659B586EbEe8De0EcE824Ab39'
# trunk-ignore(gitleaks/generic-api-key,checkov/CKV_SECRET_6)
CELOToken: '0x471ece3750da237f93b8e339c536989b8978a438'
USDT: '0x48065fbbe25f71c9282ddf5e1cd6d6a887483d5e' # https://tether.to/en/supported-protocols
USDC: '0xceba9300f2b948710d2653dd7b07f33a8b32118c' # https://www.circle.com/en/multi-chain-usdc/celo
axlEUROC: '0x061cc5a2C863E0C1Cb404006D559dB18A34C762d' # https://axelarscan.io/resources/assets
vars:
# Chain-specific Rate Feed IDs (legacy)
CELOUSD: '0x765de816845861e75a25fca122bb6898b8b1282a'
CELOEUR: '0xd8763cba276a3738e6de85b4b3bf5fded6d6ca73'
CELOBRL: '0xe8537a3d056da446677b9e9d6c5db704eaab4787'
CELOXOF: '0x73F93dcc49cB8A239e2032663e9475dd5ef29A08'
CELOKES: '0x456a3D042C0DbD3db53D5489e98dFb038553B0d0'
- id: celoAlfajores
label: alfajores
httpRpcUrl: https://alfajores-forno.celo-testnet.org
contracts:
SortedOracles: '0xfdd8bd58115ffbf04e47411c1d228ecc45e93075'
OracleHelper: '0xf6D9C84e21b8B50c45013F99dED2637fd2b06f3b'
BreakerBox: '0xC76BDf0AFb654888728003683cf748A8B1b4f5fD'
# trunk-ignore(gitleaks/generic-api-key,checkov/CKV_SECRET_6)
CELOToken: '0xF194afDf50B03e69Bd7D057c1Aa9e10c9954E4C9'
vars:
# Chain-specific Rate Feed IDs (legacy)
CELOUSD: '0x874069fa1eb16d44d622f2e0ca25eea172369bc1'
CELOEUR: '0x10c892a6ec43a53e45d0b916b4b7d383b1b78c0f'
CELOBRL: '0xe4d517785d091d3c54818832db6094bcc2744545'
CELOXOF: '0xB0FA15e002516d0301884059c0aaC0F0C72b019D'
CELOKES: '0x1E0433C1769271ECcF4CFF9FDdD515eefE6CdF92'
metrics:
- source: SortedOracles.numRates(address rateFeed)(uint256)
schedule: 0/10 * * * * *
type: gauge
chains: all
variants:
- [CELOBRL]
- [CELOEUR]
- [CELOKES]
- [CELOUSD]
- [CELOXOF]
- [EUROCEUR]
- [EUROCXOF]
- [EURXOF]
- [KESUSD]
- [USDCBRL]
- [USDCEUR]
- [USDCUSD]
- [USDTUSD]
- source: OracleHelper.deviation(address rateFeed)(uint256,uint256)
schedule: 0/10 * * * * *
type: gauge
chains: all
variants:
- [CELOBRL]
- [CELOEUR]
- [CELOKES]
- [CELOUSD]
- [CELOXOF]
- [EUROCEUR]
- [EUROCXOF]
- [EURXOF]
- [KESUSD]
- [USDCBRL]
- [USDCEUR]
- [USDCUSD]
- [USDTUSD]
# Checks rate feed trading modes
- source: BreakerBox.getRateFeedTradingMode(address rateFeed)(uint8)
schedule: 0/10 * * * * *
type: gauge
chains: all
variants:
- [CELOBRL]
- [CELOEUR]
- [CELOUSD]
- [CELOXOF]
- [EUROCEUR]
- [EUROCXOF]
- [EURXOF]
- [KESUSD]
- [USDCBRL]
- [USDCEUR]
- [USDCUSD]
- [USDTUSD]
# NOTE: We filtered out derived CELO rate feeds like 'relayed:CELOPHP' here because we typically don't add breakers for them
- [relayed:PHPUSD]
- [relayed:COPUSD]
# Checks for rate feed freshness
- source: SortedOracles.isOldestReportExpired(address rateFeed)(bool,address)
schedule: 0/10 * * * * *
type: gauge
chains: all
variants:
- [relayed:PHPUSD]
- [relayed:COPUSD]
- [relayed:CELOPHP]
- [relayed:CELOCOP]
# Checks if wallets or contracts of interest have enough CELO to pay for transactions
- source: CELOToken.balanceOf(address owner)(uint256)
schedule: 0/10 * * * * *
type: gauge
chains: all
variants:
# Do signer wallets have enough CELO to pay for relay() transactions?
- [RelayerSignerPHPUSD]
- [RelayerSignerCOPUSD]
- [RelayerSignerCELOPHP]
- [RelayerSignerCELOCOP]
# Does the reserve have enough CELO for swap operations?
- [Reserve]
# Does the reserve have enough USDC for swap operations?
- source: USDC.balanceOf(address owner)(uint256)
schedule: 0/10 * * * * *
type: gauge
chains: [celo]
variants:
- [Reserve]
# Does the reserve have enough USDT for swap operations?
- source: USDT.balanceOf(address owner)(uint256)
schedule: 0/10 * * * * *
type: gauge
chains: [celo]
variants:
- [Reserve]
# Does the reserve have enough axlEUROC for swap operations?
- source: axlEUROC.balanceOf(address owner)(uint256)
schedule: 0/10 * * * * *
type: gauge
chains: [celo]
variants:
- [Reserve]