File tree 3 files changed +13
-5
lines changed
packages/sources/stader-labs
3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @chainlink/stader-labs-adapter ' : patch
3
+ ---
4
+
5
+ Added support for env vars for rate providers
Original file line number Diff line number Diff line change @@ -17,13 +17,16 @@ export const ENV_BSC_CHAIN_ID = 'BSC_CHAIN_ID'
17
17
export const DEFAULT_BSC_CHAIN_ID = '56'
18
18
19
19
export const MATIC_AGGREGATOR_PROXY = '0xAB594600376Ec9fD91F8e885dADF0CE036862dE0'
20
- export const MATICX_RATE_PROVIDER = '0xeE652bbF72689AA59F0B8F981c9c90e2A8Af8d8f'
20
+ export const MATICX_RATE_PROVIDER =
21
+ util . getEnv ( 'MATICX_RATE_PROVIDER' ) || '0xeE652bbF72689AA59F0B8F981c9c90e2A8Af8d8f'
21
22
export const FANTOM_AGGREGATOR_PROXY = '0xf4766552d15ae4d256ad41b6cf2933482b0680dc'
22
- export const SFTMX_RATE_PROVIDER = '0xb458bfc855ab504a8a327720fcef98886065529b'
23
+ export const SFTMX_RATE_PROVIDER =
24
+ util . getEnv ( 'SFTMX_RATE_PROVIDER' ) || '0xb458bfc855ab504a8a327720fcef98886065529b'
23
25
export const BSC_AGGREGATOR_PROXY = '0x0567f2323251f0aab15c8dfb1967e4e8a7d42aee'
24
- export const BNBX_RATE_PROVIDER = '0x7276241a669489E4BBB76f63d2A43Bfe63080F2F'
26
+ export const BNBX_RATE_PROVIDER =
27
+ util . getEnv ( 'BNBX_RATE_PROVIDER' ) || '0x3b961e83400D51e6E1AF5c450d3C7d7b80588d28'
25
28
26
- export const BNBX_RATE_MULTIPLIER = '1000000000000000000'
29
+ export const BNBX_RATE_MULTIPLIER = util . getEnv ( 'BNBX_RATE_MULTIPLIER' ) || '1000000000000000000'
27
30
28
31
export const makeConfig = ( prefix ?: string ) : Config => {
29
32
const config = Requester . getDefaultConfig ( prefix )
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ export const mockBNBxSuccess = (): nock.Scope =>
153
153
method : 'eth_call' ,
154
154
params : [
155
155
{
156
- to : '0x7276241a669489e4bbb76f63d2a43bfe63080f2f ' ,
156
+ to : '0x3b961e83400d51e6e1af5c450d3c7d7b80588d28 ' ,
157
157
data : '0xca0506e80000000000000000000000000000000000000000000000000de0b6b3a7640000' ,
158
158
} ,
159
159
'latest' ,
You can’t perform that action at this time.
0 commit comments