keep-network / keep-core

The smart contracts and reference client behind the Keep network
https://keep.network
MIT License
118 stars 73 forks source link

Return an error if estimated deposit sweep fee is too high #3666

Closed lukasz-zimnoch closed 1 year ago

lukasz-zimnoch commented 1 year ago

Refs: https://github.com/keep-network/keep-core/issues/3614

Here we change the default behavior of the wallet maintainer (and maintainer-cli tool) when the estimated deposit sweep fee exceeds the maximum value allowed by the Bridge. So far, the estimated fee was adjusted to the maximum allowed value. Now, an error is returned. That's because this is an abnormal situation and the maintainer should rather wait until the fee goes back to normal value than block the wallet in the WalletCoordinator with something that has no chance of being included in a block.