We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a00dad6 commit e8aeb46Copy full SHA for e8aeb46
1 file changed
packages/polymath-offchain/src/startup/setupWeb3.js
@@ -1,6 +1,6 @@
1
// @flow
2
3
-import { STO_MODULE_TYPE, NETWORKS } from '../constants';
+import { STO_MODULE_TYPE, NETWORKS, DEPLOYMENT_STAGE } from '../constants';
4
import {
5
sendCappedSTOScheduledEmail,
6
sendUSDTieredSTOScheduledEmail,
@@ -566,6 +566,7 @@ export const addSTOListeners = async (networkId: string) => {
566
* @param {string} networkId id of the network to which we will set the listeners
567
*/
568
const setupListeners = async (networkId: string) => {
569
+ if (DEPLOYMENT_STAGE !== 'production') return;
570
await addTickerRegisterListener(networkId);
571
572
await addTokenCreateListener(networkId);
0 commit comments