interledger-deprecated/five-bells-sender

Make sender less stateful

Closed this issue · 0 comments

Right now the Sender is storing all of the parameters on the instance's this. Instead, it should expose methods like findPath and executePayment that take the parameters necessary for that particular function and return the result. The instance should only store configuration options and you shouldn't need to instantiate a new Sender for every payment you want to make.