Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent NFT counts in /accounts/oasis1 evm_balances vs /accounts/oasis1/nfts total_count #718

Open
lukaw3d opened this issue Jun 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lukaw3d
Copy link
Member

lukaw3d commented Jun 29, 2024

Based on Menguitah's message in discord support (https://discord.com/channels/748635004384313474/1250212886219849747)
nexus is returning inconsistent NFT counts in /accounts/oasis1 evm_balances vs /accounts/oasis1/nfts total_count
and it is more wrong on nexus.prd.oasis.io

Example 1

https://explorer.dev.oasis.io/mainnet/emerald/address/0x76B5FAF257bcBE6bAEA59Ef63b8cE6f0148f7dC0/tokens/erc-721#0x41E6Ed18daF1Ca527B2629A2cf820d1C01999681
1 OPunks (click View all)
https://explorer.dev.oasis.io/mainnet/emerald/address/0x76B5FAF257bcBE6bAEA59Ef63b8cE6f0148f7dC0/tokens/erc-721/0x41E6Ed18daF1Ca527B2629A2cf820d1C01999681
Token has no inventory associated with it.
⚠️ 1 !== 0

maybe because:
https://explorer.dev.oasis.io/mainnet/emerald/token/0x41E6Ed18daF1Ca527B2629A2cf820d1C01999681/instance/2556
Last transfer event: 0x7c950FDE7dD26Fe40896d93B8Fb7532B8ce5C45D -> 0x76B5FAF257bcBE6bAEA59Ef63b8cE6f0148f7dC0
⚠️ Owner: 0x7c950FDE7dD26Fe40896d93B8Fb7532B8ce5C45D

Example 2

https://explorer.dev.oasis.io/mainnet/emerald/address/0x7bc8b1B5AbA4dF3Be9f9A32daE501214dC0E4f3f/tokens/erc-721#tokens
15 OPunks (click View all)
https://explorer.dev.oasis.io/mainnet/emerald/address/0x7bc8b1B5AbA4dF3Be9f9A32daE501214dC0E4f3f/tokens/erc-721/0x41E6Ed18daF1Ca527B2629A2cf820d1C01999681
Oasis Punks (22)
⚠️ 15 !== 22

maybe because these instances display an Owner that doesn't match the latest transfer:
https://explorer.dev.oasis.io/mainnet/emerald/token/oasis1qzn44787g3n5mcpgq5pcfvpd7h2hk4hqxcu8vfmh/instance/1062
https://explorer.dev.oasis.io/mainnet/emerald/token/oasis1qzn44787g3n5mcpgq5pcfvpd7h2hk4hqxcu8vfmh/instance/2575
https://explorer.dev.oasis.io/mainnet/emerald/token/oasis1qzn44787g3n5mcpgq5pcfvpd7h2hk4hqxcu8vfmh/instance/2925
https://explorer.dev.oasis.io/mainnet/emerald/token/oasis1qzn44787g3n5mcpgq5pcfvpd7h2hk4hqxcu8vfmh/instance/3447
https://explorer.dev.oasis.io/mainnet/emerald/token/oasis1qzn44787g3n5mcpgq5pcfvpd7h2hk4hqxcu8vfmh/instance/5108
https://explorer.dev.oasis.io/mainnet/emerald/token/oasis1qzn44787g3n5mcpgq5pcfvpd7h2hk4hqxcu8vfmh/instance/7738
https://explorer.dev.oasis.io/mainnet/emerald/token/oasis1qzn44787g3n5mcpgq5pcfvpd7h2hk4hqxcu8vfmh/instance/9706
https://explorer.dev.oasis.io/mainnet/emerald/token/oasis1qzn44787g3n5mcpgq5pcfvpd7h2hk4hqxcu8vfmh/instance/9713

Frontend is using nexus.stg.oasis.io. In nexus.prd.oasis.io it is worse:
https://nexus.stg.oasis.io/v1/emerald/accounts/oasis1qq4hp3mfsp2vvfqlt35tn59h4cx08wyd2vlrpxx7/nfts?limit=15&offset=0&token_address=oasis1qzn44787g3n5mcpgq5pcfvpd7h2hk4hqxcu8vfmh
total_count 22
https://nexus.prd.oasis.io/v1/emerald/accounts/oasis1qq4hp3mfsp2vvfqlt35tn59h4cx08wyd2vlrpxx7/nfts?limit=15&offset=0&token_address=oasis1qzn44787g3n5mcpgq5pcfvpd7h2hk4hqxcu8vfmh
total_count 0

@lukaw3d lukaw3d added the bug Something isn't working label Jun 29, 2024
@pro-wh
Copy link
Collaborator

pro-wh commented Jul 1, 2024

could this have been from fast sync?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants