cardano-rosetta icon indicating copy to clipboard operation
cardano-rosetta copied to clipboard

Deposit amount returned at `/block` endpoint not accurate

Open jvieiro opened this issue 3 years ago • 1 comments

Operations of type stake key registration returned at /block endpoint returns the deposit amount done for the key registration. Actually, this value is taken from the field deposit of table tx. The problem comes when this amount also contains the pool registration deposits done at the same transaction. So:

  • What is being returned: deposits amount of tx (stake key registration + pool registration)
  • What should be returned: stake key registration deposit

jvieiro avatar Apr 28 '21 13:04 jvieiro

More generally, this is a problem when there is more than one stake key registration or pool registration in one transaction. E.g. https://cardanoscan.io/transaction/c1b54a80184f37003db2fa8e051a3382888cfd01861af526ffef8d1fec032b04?tab=stakecertificates

Edit: I can't find any examples on mainnet of a stake key registration and a pool registration happening in one transaction, or multiple pool registrations happening, but I found dozens of transactions with multiple stake key registrations.

pbjc avatar Aug 02 '22 17:08 pbjc