Related to #125
When one of the outputs releases stake, how do we handle it?
The simplest way would just to deduct the value from that consumer, which may free the user to later manually withdraw some stake.
The most complex would be to re-evaluate the minimum required commitment once that was removed and if that is lower than the current commitment, release that much to the provider.
An interesting intermediate would be to do nothing (option 1) unless the last consumer releases the last stake, in which case, all commitments are released up to the provider (eg staking contract)
Related to #125
When one of the outputs releases stake, how do we handle it?
The simplest way would just to deduct the value from that consumer, which may free the user to later manually withdraw some stake.
The most complex would be to re-evaluate the minimum required commitment once that was removed and if that is lower than the current commitment, release that much to the provider.
An interesting intermediate would be to do nothing (option 1) unless the last consumer releases the last stake, in which case, all commitments are released up to the provider (eg staking contract)