mysteriumnetwork / payments-smart-contracts

Smart contracts for payments flow
GNU General Public License v3.0
30 stars 15 forks source link

Take use of minStake #143

Closed chompomonim closed 2 years ago

chompomonim commented 2 years ago

At the moment minStake is almost not used. This change introduces limitation on promise settlement when minStake > 0. Provider can't settle without having stake when hermes is setting non zero minimal stake.

Additionally refactored _settlePromise function to avoid "stack too deep" errors.