cacti icon indicating copy to clipboard operation
cacti copied to clipboard

Fine-tune SATP session with user input

Open RafaelAPB opened this issue 10 months ago • 3 comments

Allow for user input at various stages of the SATP protocol. A user might want to cancel a transaction after submission due to several reasons (e.g., bad rate from counterparty gateway, which would be at the end of stage 0 / start of stage 1; or a bit later, e.g., right before lock, if bridge rate is bad);

Tasks:

1- Define a mechanism to allow for user input during different stages of SATP execution. 2- Test using functions that implement some kind of business rules in the middle of the execution of the protocol

RafaelAPB avatar Apr 04 '24 14:04 RafaelAPB

@RafaelAPB Quick question: Is this specified on the spec level as well? E.g. does the spec say that these user-driven hook points need to be implemented? Just curious.

petermetz avatar Apr 04 '24 21:04 petermetz

Hi @petermetz @RafaelAPB I would like to work on this issue. Could you please provide me a quick background to start from

solo-daemon avatar Apr 08 '24 19:04 solo-daemon

@petermetz thanks for your question. The answer is no: the spec does not define that stages can be stopped and awaiting user input. But this will certainly be a need, since you could get for example a quote from the counterparty gateway that is too high. We should raise this in IETF.

@solo-daemon study the satp-dev branch, and let me know if you have any doubts (via Hyperledger discord, cacti channel)

RafaelAPB avatar Apr 11 '24 09:04 RafaelAPB