chia-blockchain icon indicating copy to clipboard operation
chia-blockchain copied to clipboard

RPC for calculating NFT royalties

Open paninaro opened this issue 1 year ago • 0 comments

Currently the GUI and wallet backend have separate implementations for determining NFT royalties when creating/taking an offer. This led to a bug in 1.4.0 wherein the GUI assumed that offers for an NFT would have the royalty amounts subtracted from the offered amount.

To avoid future bugs and simplify the code, we should have a single implementation of the royalty calculation logic in the wallet, and expose it through an RPC.

paninaro avatar Aug 08 '22 17:08 paninaro