-
Notifications
You must be signed in to change notification settings - Fork 73
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
Each entry in priceRegistry needs a unique id #444
Comments
the pair (chain, exchange, (asset1, asset2)) is the address itself. But because of the On the ID, do you think we should introduce a new ID or that tuple (chain, exchange, (asset1, asset2)) is sustainable. Or if it's too verbose ? I think let refactor to this Before{ After{ |
Yeah, the problem was caused by round not increasing. The unique ID is determined by concatenating (chain, exchange, (asset1, asset2)) with the round value. Regarding the After format, it looks good, but we can simplify Additionally, on second thought I agree that Overall, the value of the storage should look like |
that reasoning makes sense. I think many of polkadot.js balances API was also using API wise, let say we have a variable call |
From developer’s perspective, every data type in on-chain storage needs a unique id, otherwise there’s no way to know whether a Price has been updated. Please refer to the screenshot below, as you can see from the events the client couldn’t tell what server version the data entry is.
The text was updated successfully, but these errors were encountered: