1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

[FLASK] Update rate limits for showInAppNotification and showNativeNotification (#19621)

This commit is contained in:
Guillaume Roux 2023-06-16 12:38:12 +02:00 committed by GitHub
parent 39e033ea00
commit 0d0705bb68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -919,6 +919,9 @@ export default class MetamaskController extends EventEmitter {
return null;
},
// 2 calls per 5 minutes
rateLimitCount: 2,
rateLimitTimeout: 300000,
},
showInAppNotification: {
method: (origin, message) => {
@ -930,6 +933,9 @@ export default class MetamaskController extends EventEmitter {
return null;
},
// 5 calls per minute
rateLimitCount: 5,
rateLimitTimeout: 60000,
},
},
});