Conversation
sam0x17
left a comment
There was a problem hiding this comment.
this looks very solid to me. I am personally in favor of min, though I want to better understand how it could be manipulated by whales moving stake between root validators, would min not be the meanest/safest one?
If you were a whale capable of running |
|
based on some additional discussions I think just avg is fine! |
|
It was decided to use stakeweight EMA, meaning it'll only be updated in the epoch block and will range 280 (configurable?) epochs back, so something like Should be indexed by hotkey to not lose power during (accidental or "accidental") deregistration and the validator should be deleted from the map when |
Some smart contracts, such as collateral and treasury, need a way to count votes of validators in order to make a decision for the subnet.
The only metrics currently available are:
and both can be manipulated with loans and flashloans, where an attacker could hijack the treasury or burn collaterals of his competitors.
The proposed solution is for the chain to provide a reliable metric that the votes could be weighted by. This could then be used by smart contracts as well as on-chain logic.