* Ban 32 pubs * Add period
@@ -240,6 +240,14 @@ const General = () => {
}
})
+ // check that no price account has more than 32 publishers
+ Object.keys(jsonParsed).forEach((symbol) => {
+ if (jsonParsed[symbol].priceAccounts[0].publishers.length > 32) {
+ toast.error(`A price account can't have more than 32 publishers.`)
+ isValid = false
+ }
+ })
+
return isValid