-
Notifications
You must be signed in to change notification settings - Fork 45
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: add fee output to psbt #376
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Gregory Hill <[email protected]>
Signed-off-by: Gregory Hill <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Signed-off-by: Gregory Hill <[email protected]>
outputs.push({ | ||
// OP_RETURN https://github.com/paulmillr/scure-btc-signer/issues/26 | ||
script: Script.encode(['RETURN', hex.decode(opReturnData)]), | ||
script: Script.encode(['RETURN', hex.decode(stripHexPrefix(opReturnData))]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary now and wasn't necessary before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does the same thing as the code I removed above
fee = 0; | ||
} | ||
|
||
const feeDecimal = fee / 10000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd use big.js here. JS arithmetic with decimals is not great.
Adding some fees in case frontends want to charge users for onramping