-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(trading-proto-upgrade): fees fixes among other things #2109
base: dev
Are you sure you want to change the base?
Commits on May 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 13a798e - Browse repository at this point
Copy the full SHA 13a798eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a7d81b - Browse repository at this point
Copy the full SHA 9a7d81bView commit details -
Negotiate the taker payment spend fee
Actually should be called funding spend fee or taker payment fee, but we are just following the current code naming at the moment. The negotiation goes as follows: 1- Taker and maker each decide how much this fee should be at the beginning of the swap. 2- The taker will send the maker their proposed fee during negotiation, if the maker deems the fee as low enough (less than 90% of the maker's own calculated fee), they will refuse to trade before the trade starts. Otherwise, they will continue and use this fee for validation later. 3- The maker will validate that the taker has accounted for this fee in the funding transaction. 4- The taker will validate that the taker payment preimage (generated by the maker) uses the negotiated fee or greater (greater number will deduct from the maker's trading volume anyway). If not, the taker will stop the trade since the maker is clearly stealing funds that isn't his which might affect the completion of the swap if the fee is low.
Configuration menu - View commit details
-
Copy full SHA for a844f62 - Browse repository at this point
Copy the full SHA a844f62View commit details -
Use
big_decimal_from_sat
&sat_from_big_decimal
for conversions t……o u64 The big decimal might be a fraction less than zero and gets converted to zero when sent over the wire (because we send the fee as u64). Scale it properly before sending it.
Configuration menu - View commit details
-
Copy full SHA for 151f5a8 - Browse repository at this point
Copy the full SHA 151f5a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f722fb - Browse repository at this point
Copy the full SHA 9f722fbView commit details -
can't clamp the fee to 1 since it's probably higher than the fee
noticed this in the integration tests, the fee might be a fraction so clamping it to one yields a fee higher than the actually one, thus fails the ratio check
Configuration menu - View commit details
-
Copy full SHA for ef28a6c - Browse repository at this point
Copy the full SHA ef28a6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bd984a - Browse repository at this point
Copy the full SHA 0bd984aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad21f4e - Browse repository at this point
Copy the full SHA ad21f4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff05d06 - Browse repository at this point
Copy the full SHA ff05d06View commit details -
don't actually sign anything to avoid unwrapping
use a signature-size dummy date instead
Configuration menu - View commit details
-
Copy full SHA for c20bac2 - Browse repository at this point
Copy the full SHA c20bac2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ff43ad - Browse repository at this point
Copy the full SHA 2ff43adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a92123 - Browse repository at this point
Copy the full SHA 7a92123View commit details -
Configuration menu - View commit details
-
Copy full SHA for 225b776 - Browse repository at this point
Copy the full SHA 225b776View commit details -
calculate the taker payment spend tx size as per the new protocol
taker payment spend is actually taker payment here, next commit should fix the naming inconsistencies
Configuration menu - View commit details
-
Copy full SHA for b221def - Browse repository at this point
Copy the full SHA b221defView commit details -
Configuration menu - View commit details
-
Copy full SHA for 481ba3e - Browse repository at this point
Copy the full SHA 481ba3eView commit details
Commits on May 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e0f649c - Browse repository at this point
Copy the full SHA e0f649cView commit details -
always wait for maker payment before proceeding with taker payment spent
don't depend on no variable on this regard
Configuration menu - View commit details
-
Copy full SHA for d1f2d1b - Browse repository at this point
Copy the full SHA d1f2d1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d90ad0e - Browse repository at this point
Copy the full SHA d90ad0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a4248c - Browse repository at this point
Copy the full SHA 0a4248cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bd51d1 - Browse repository at this point
Copy the full SHA 3bd51d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4d18d6 - Browse repository at this point
Copy the full SHA f4d18d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d18bf96 - Browse repository at this point
Copy the full SHA d18bf96View commit details
Commits on May 20, 2024
-
suggestions from aline: use is_zero, parse string instead of float to…
… avoid weird precision
Configuration menu - View commit details
-
Copy full SHA for 4848cb0 - Browse repository at this point
Copy the full SHA 4848cb0View commit details
Commits on Jun 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b6ee698 - Browse repository at this point
Copy the full SHA b6ee698View commit details
Commits on Jun 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4f5a04a - Browse repository at this point
Copy the full SHA 4f5a04aView commit details
Commits on Jul 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 130fc88 - Browse repository at this point
Copy the full SHA 130fc88View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec3ffe3 - Browse repository at this point
Copy the full SHA ec3ffe3View commit details
Commits on Jul 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9cb9818 - Browse repository at this point
Copy the full SHA 9cb9818View commit details -
Configuration menu - View commit details
-
Copy full SHA for c86bade - Browse repository at this point
Copy the full SHA c86badeView commit details -
remove fixme about the locktime used for btc
revising the commit history, looks like this was deliberate
Configuration menu - View commit details
-
Copy full SHA for a2e4bfa - Browse repository at this point
Copy the full SHA a2e4bfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for c383862 - Browse repository at this point
Copy the full SHA c383862View commit details -
Configuration menu - View commit details
-
Copy full SHA for a08a981 - Browse repository at this point
Copy the full SHA a08a981View commit details
Commits on Jul 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ba0037f - Browse repository at this point
Copy the full SHA ba0037fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c970e25 - Browse repository at this point
Copy the full SHA c970e25View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ea4f0c - Browse repository at this point
Copy the full SHA 0ea4f0cView commit details
Commits on Jul 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for db11ed9 - Browse repository at this point
Copy the full SHA db11ed9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 28fc442 - Browse repository at this point
Copy the full SHA 28fc442View commit details
Commits on Jul 29, 2024
-
always rename discuss markers to fixmes since i forget about them xD
Configuration menu - View commit details
-
Copy full SHA for 638d90e - Browse repository at this point
Copy the full SHA 638d90eView commit details -
use
get_sender_trade_fee
for non-htlc TXsthere is no calculatable tx_size for other tx (non-htlc) (like funding and maker payment txs). their fees depend really on the utxos we have and whether they are segwit or not. used get_sender_trade_fee for now, though I think this method needs reviewing since its doc comment doesn't make a lot of sense
Configuration menu - View commit details
-
Copy full SHA for 12e1b66 - Browse repository at this point
Copy the full SHA 12e1b66View commit details
Commits on Aug 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bc32198 - Browse repository at this point
Copy the full SHA bc32198View commit details
Commits on Oct 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 241af5a - Browse repository at this point
Copy the full SHA 241af5aView commit details
Commits on Nov 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 100951b - Browse repository at this point
Copy the full SHA 100951bView commit details