Function: withdrawFee(address payable _to, uint256 _amount)
Used to withdraw the accrued fee in ultra light node.
Inputs
_toControl: Fully controlled by caller.
Constraints: N/A.
Impact: Fee receiver.
_amountControl: Fully controlled by caller.
Constraints: Must be less than existing fee balance.
Impact: Withdrawal amount.
Branches and code coverage (including function calls)
Intended branches
Total fee withdrawn is equal to
_amount.
Negative behavior
Revert if
_tois 0.Revert if
_amountis more than available balance.