Runtime Verification Audit Item 18
Issue: line 52 in keeper/token.go, in function SetRegisteredToken(ctx, token), no validation was performed on the token. Furthermore, there is no validation in InitGenesis() and handleUpdateRegistryProposalHandler() where setRegisteredToken() are called.
Effect: some of the token parameters may not meet expectation, for example, BaseBorrowRate is non-negative and KinkUtilizationRate is positive and less than 1.0.
Recommendation: call Validate() function in types/token.go before writing the token into the registry.