kodadot / snek

Implementation of Basilisk NFT pallet
GNU General Public License v3.0
3 stars 11 forks source link

something strange with `PAY_ROYALTY` event #115

Open roiLeo opened 1 year ago

roiLeo commented 1 year ago

Looks like royalty doesn't work as excepted on bsx

query MyQuery {
  ALL_ROYALTIES: events(where: {interaction_eq: PAY_ROYALTY}) {
    id
    meta
  }
  events(where: {nft: {id_eq: "945672150-19"}}) {
    nft {
      id
      royalty
      updatedAt
    }
    interaction
    id
    blockNumber
  }
}
roiLeo commented 1 year ago

Check /bsx/gallery/3813476019-42

2 BUY event but only 1 PAY_ROYALTY

vikiival commented 1 year ago

That Is correct

Screenshot 2023-01-06 at 16 33 17

first buy is from issuer to person 1 (full price sent to issuer, therefore no royalty paid) second is from person 1 to cl0w (person 1 != issuer, royalty paid)