Skip to content

Commit ddd2790

Browse files
authored
Merge branch 'main' into fix/DF-20902-kaiko-state-crypto
2 parents fcc5670 + 4bc9c06 commit ddd2790

File tree

5 files changed

+32
-15
lines changed

5 files changed

+32
-15
lines changed

.changeset/rude-starfishes-sit.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chainlink/mobula-state-adapter': patch
3+
---
4+
5+
Update endpoint

.changeset/sixty-pans-speak.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chainlink/nav-consulting-adapter': patch
3+
---
4+
5+
Update rate limiter

packages/sources/mobula-state/src/config/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const config = new AdapterConfig({
44
WS_API_ENDPOINT: {
55
description: 'WS endpoint for Data Provider',
66
type: 'string',
7-
default: 'wss://feed.zobula.xyz',
7+
default: 'wss://production-feed.mobula.io',
88
},
99
API_KEY: {
1010
description: 'An API key for Data Provider',
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
import { AdapterConfig } from '@chainlink/external-adapter-framework/config'
22

3-
export const config = new AdapterConfig({
4-
API_ENDPOINT: {
5-
description: 'An API endpoint for Data Provider',
6-
type: 'string',
7-
default: 'https://api.navconsulting.net',
8-
},
3+
export const config = new AdapterConfig(
4+
{
5+
API_ENDPOINT: {
6+
description: 'An API endpoint for Data Provider',
7+
type: 'string',
8+
default: 'https://api.navconsulting.net',
9+
},
910

10-
BACKGROUND_EXECUTE_MS: {
11-
description:
12-
'The amount of time the background execute should sleep before performing the next request',
13-
type: 'number',
14-
default: 10_000,
11+
BACKGROUND_EXECUTE_MS: {
12+
description:
13+
'The amount of time the background execute should sleep before performing the next request',
14+
type: 'number',
15+
default: 10_000,
16+
},
17+
},
18+
{
19+
envDefaultOverrides: {
20+
CACHE_MAX_AGE: 300_000, // Due to API limit of 2 request per minute
21+
},
1522
},
16-
})
23+
)

packages/sources/nav-consulting/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export const adapter = new Adapter({
1111
rateLimiting: {
1212
tiers: {
1313
default: {
14-
rateLimit1m: 20,
15-
note: 'Nothing in docs, setting reasonable rate limit based on 2req/bg execute',
14+
rateLimit1m: 4,
15+
note: '60/min in total shared by 30 EA instance, each EA can do 2 per min per API. Each call hits 2 API',
1616
},
1717
},
1818
},

0 commit comments

Comments
 (0)