You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RCMarket contains the constant variable isMarket to indicate it is a Market bool public constant override isMarket = true;.
This is after used in RCFactory
In implementing this I discovered the problem.
The check isMarket() is mainly used when we deploy a new reference market contract. This checks that it is a market but doesn't add it to the mappingOfMarkets because it's not actually an active market.
I've changed changeMarketApproval to use the mapping in this commit but I'm going to leave the constant isMarket in the market mainly for the check in setReferenceContractAddress()
Handle
a_delamo
Vulnerability details
Impact
RCMarket
contains the constant variableisMarket
to indicate it is a Marketbool public constant override isMarket = true;
.This is after used in
RCFactory
Why not use
mappingOfMarkets
to verify the address is a Market? This would reduce the state space used.The text was updated successfully, but these errors were encountered: