forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 115
feat(trading-proto-upgrade): fees fixes among other things #2109
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
Draft
mariocynicys
wants to merge
44
commits into
dev
Choose a base branch
from
proto-upgrade
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
13a798e
use u8 for forkid
mariocynicys 9a7d81b
add fixmes, amend me
mariocynicys a844f62
Negotiate the taker payment spend fee
mariocynicys 151f5a8
Use `big_decimal_from_sat` & `sat_from_big_decimal` for conversions t…
mariocynicys 9f722fb
fix tests
mariocynicys ef28a6c
can't clamp the fee to 1 since it's probably higher than the fee
mariocynicys 0bd984a
remove wrong transition
mariocynicys ad21f4e
add some tests
mariocynicys ff05d06
add a calculator for taker payment spend transaction size
mariocynicys c20bac2
don't actually sign anything to avoid unwrapping
mariocynicys 2ff43ad
account for the sighash byte
mariocynicys 7a92123
get tx size methods to MmCoin trait
mariocynicys 225b776
get_taker_payment_spend_tx_size -> get_taker_payment_tx_size
mariocynicys b221def
calculate the taker payment spend tx size as per the new protocol
mariocynicys 481ba3e
fix formatting
mariocynicys e0f649c
first batch of renamings
mariocynicys d1f2d1b
always wait for maker payment before proceeding with taker payment spent
mariocynicys d90ad0e
stop un-needed propagation of `maker_payment_spend_fee`
mariocynicys 0a4248c
more consistent renaming on maker side
mariocynicys 3bd51d1
wrong name in the protobuf file
mariocynicys f4d18d6
format
mariocynicys d18bf96
fix the names in tests
mariocynicys 4848cb0
suggestions from aline: use is_zero, parse string instead of float to…
mariocynicys b6ee698
merge with origin/dev
mariocynicys 4f5a04a
fix tests not compiling after merge
mariocynicys 130fc88
claimation -> claiming
mariocynicys ec3ffe3
remove unused method
mariocynicys 9cb9818
move the fixme to the appropriate place
mariocynicys c86bade
set preimage & maker payment fee as a todo
mariocynicys a2e4bfa
remove fixme about the locktime used for btc
mariocynicys c383862
sighashtype is encoded as four bytes even tho it's just one
mariocynicys a08a981
move the forkid fixme into a todo for later
mariocynicys ba0037f
cap fee to the one instruced by taker, allow using less
mariocynicys c970e25
implement other fee calculation methods
mariocynicys 0ea4f0c
use get_taker_payment_fee instead of const size get_htlc_spend_fee
mariocynicys db11ed9
use a more idiomatic syntax for func generic bounds
mariocynicys 28fc442
broadcast every 30s instead of 600s
mariocynicys 638d90e
add a missing fixme
mariocynicys 12e1b66
use `get_sender_trade_fee` for non-htlc TXs
mariocynicys bc32198
merge with origin/dev
mariocynicys 241af5a
merge with origin/dev
mariocynicys 100951b
merge with dev
mariocynicys 1e63689
merge with origin/dev
shamardy 03afb72
post merge fixes: move some imports to their right place
shamardy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.