Duplicate string literals for all keys and substrings should reference a single constant
We have a number of places throughout the codebase where string literals are used in lookups or format strings for mimirs, KV keys, etc. These should be updated to reference a constant string literal in the constants
package so there are no duplicates where a typo may cause undesirable behavior.
These should go in something like constants/strings.go
and be named perhaps something like:
const (
MimirPrefixConfMultiplierBasisPoints = "ConfMultiplierBasisPoints"
MimirPrefixMaxConfirmations = "MaxConfirmations"
KVPrefixMimir = "mimir//"
AssetTypeSynth = "Synth"
AssetTypeL1 = "L1"
AssetTypeTradeAccount = "TradeAccount"
// ...
)
Edited by Ursa (9R)