kodadot/snek

something strange with `PAY_ROYALTY` event

Opened this issue · 2 comments

Looks like royalty doesn't work as excepted on bsx

  • first query return only one element
  • second query has BUY interaction but not PAY_ROYALTY
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
  }
}

Check /bsx/gallery/3813476019-42

2 BUY event but only 1 PAY_ROYALTY

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)