currently, all of our contracts use ContractErrorEnums to handle the possible errors that the smart contracts throw. All these Enums all start from 0..n .
That numbering duplication makes it difficult to work with in the frontend.
To fix this, we have to try to set number ranges for the different contracts - i.e. Factory contract uses numbers from 100-200, Xyk Pool contract from 200-300, etc..
currently, all of our contracts use
ContractError
Enums
to handle the possible errors that the smart contracts throw. All these Enums all start from0..n
.That numbering duplication makes it difficult to work with in the frontend.
To fix this, we have to try to set number ranges for the different contracts - i.e.
Factory
contract uses numbers from100-200
,Xyk Pool
contract from200-300
, etc..