CountedMap
with an enforced MaxValue
#141
Labels
T1-FRAME
This PR/Issue is related to core FRAME, the framework.
CountedMap
with an enforced MaxValue
#141
First, the current storage maps have a
MaxValues
that is not very well documented, and counter intuitively, it is not an enforced in any way. ThisMaxValues
is only used instorage_info
related functions.This needs to be fixed, as a part of paritytech/substrate#13987.
Then, we could consider creating a
CountedMap
, possibly calledBoundedMap
that actually has a maximum counter enforced. This is in itself not so exciting, as once the map is filled, it is pretty useless. In other words, it is not sybil resistance. The solution is to expose an API through which an economic game can be created to allow users to kick someone out of the map and replace themselves.This should make the creation of maps that are bounded, and allow users to compete in a position in the map based on some amount of deposit more streamlined.
The text was updated successfully, but these errors were encountered: