subtensor
subtensor copied to clipboard
Disable trading-type extrinsic for new subnet until start call
Is your feature request related to a problem? Please describe.
After the "start call" feature deployed, we found out it is very easy for some users to manipulate the price of Alpha because of no emission before "start call" triggered by subnet owner. like the subnet 83. A new feature could avoid it by disable trading-type extrinsic, and enable them until start call, the init emission block number is set.
The disabled status could be set by sudo, will add it into admin-utils pallet.
Describe the solution you'd like
The solution is quite simple, we can define a function like ensure_emission_set(netuid). check if the first emission block number is set. throw an error if not set yet. add this check to all trading-type extrinsic after ensure_origin.
for sudo call, we need a separate storage to disable extrinsic even after "start call"
Describe alternatives you've considered
No response
Additional context
No response