chia-blockchain
chia-blockchain copied to clipboard
RPC for calculating NFT royalties
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.