You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The column type for supply is bigint but some mints have a supply which exceeds this. There exists a as i64 to cast the supply but instead of throwing an error this sets the number to a negative value.
Issue
The column type for supply is bigint but some mints have a supply which exceeds this. There exists a
as i64
to cast the supply but instead of throwing an error this sets the number to a negative value.https://github.com/metaplex-foundation/digital-asset-rpc-infrastructure/blob/main/program_transformers/src/token/mod.rs#L113
Bonk is one such example where the supply is 9291438607932069555 outside of the range of i64.
https://solana.fm/address/DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263
The asset is indexed but when its time to query it this filter for only positive supply triggers.
https://github.com/metaplex-foundation/digital-asset-rpc-infrastructure/blob/main/digital_asset_types/src/dao/scopes/asset.rs#L384
Fix
bigdecimal
to handle "large" numbersThe text was updated successfully, but these errors were encountered: