This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
Replies: 1 comment 1 reply
-
Yes, we could - we even considered doing it when we did the libp2p refactor, but as to my knowledge we kept them together as it was considered too little gain at that point. on the very basic TTL level I can definitely agree that "offer params" and "rollover params" should have different TTL. are there any overlapping fields that would need to end up in both params? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When working on #2859, I immediately built on the assumption that the offer parameters will be updated frequently. This is why I originally chose to consider the fees expired if a minute had passed since they were set in the daemon.
Whilst this makes sense for the offer parameters because the prices change very frequently, the funding rates behave differently. We expect them to change once every 8 hours.
I bring this up now because I have been told that it would be a good idea to allow the caller of the maker's HTTP API to configure the time-to-live of these rollover parameters, instead of defining a constant in
maker
. I could just add a timestamp or a duration which only applies to parts ofCfdNewOfferParamsRequest
, but that doesn't strike me as good API design.A time-to-live that applies to all of these parameters doesn't make sense, because they should have different times-to-live.
Beta Was this translation helpful? Give feedback.
All reactions