Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/DF-20817 bitgo anchorage cbp rate limits #3592

Merged
merged 7 commits into from
Nov 29, 2024
7 changes: 7 additions & 0 deletions .changeset/witty-bananas-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@chainlink/coinbase-prime-adapter': patch
'@chainlink/anchorage-adapter': patch
'@chainlink/bitgo-adapter': patch
---

Update default rate limit
8 changes: 8 additions & 0 deletions packages/sources/anchorage/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ export const adapter = new PoRAdapter({
name: 'ANCHORAGE',
config,
endpoints: [wallet],
rateLimiting: {
tiers: {
default: {
rateLimit1m: 30,
note: 'Docs: 10 requests per second per Organization, bursts of up to 100 requests per second',
},
},
},
})

export const server = (): Promise<ServerInstance | undefined> => expose(adapter)
Expand Down
8 changes: 8 additions & 0 deletions packages/sources/bitgo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ export const adapter = new PoRAdapter({
name: 'BITGO',
config,
endpoints: [wallet],
rateLimiting: {
tiers: {
default: {
rateLimit1m: 30,
note: 'Docs: 360 requests per minute per auth',
},
},
},
})

export const server = (): Promise<ServerInstance | undefined> => expose(adapter)
Expand Down
2 changes: 1 addition & 1 deletion packages/sources/coinbase-prime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const adapter = new PoRAdapter({
rateLimiting: {
tiers: {
default: {
rateLimit1s: 25,
rateLimit1s: 5,
note: 'Using the most restrictive rate limit. Docs: IP address at 100 requests per second (rps). Portfolio ID at 25 rps with a burst of 50 rps.',
},
},
Expand Down
Loading