Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove apply_outgoing_settlement function
Adding it resulted in incorerct behavior the balance is already lowered in the PROCESS_FULFILL script. With it, the balance was lowered by 2x the amount it should. Note that the reason the balance is lowered first is because we don't want two packets fulfilled simultaneously to trigger settlements for the same amount_to_settle. By reducing the balance by the amount_to_settle before making the settlement client send the request to the settlement engine, this ensures that the settlement will only happen once. The refund_settlement is there in case that call to the SE fails and we need to revert the change to the balance.
- Loading branch information