Skip to content

Conversation

@dmoka
Copy link
Contributor

@dmoka dmoka commented May 8, 2025

Fixes -> #1009

@github-actions
Copy link

github-actions bot commented May 8, 2025

Crate versions that have not been updated:

  • runtime-integration-tests: v1.57.1

Crate versions that have been updated:

  • hydra-dx-math: v10.4.2 -> v10.5.0
  • pallet-hsm: v1.4.0 -> v1.4.1

Crate versions that have been downgraded:

  • pallet-stableswap: v6.0.0 -> v5.5.0

Runtime version has not been increased.

@dmoka dmoka self-assigned this May 8, 2025
@dmoka dmoka changed the title invert back the spot price for stableswap fix: invert back the stableswap spot price May 8, 2025
Copy link
Member

@enthusiastmartin enthusiastmartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the change/fix looks ok.

however, i do have question why the need to change various values in the tests ?

eg. fees, issuance etc.

i would expect the tests not to change.

and it needs to resolve the conflicts.

@dmoka
Copy link
Contributor Author

dmoka commented Aug 21, 2025

the change/fix looks ok.

however, i do have question why the need to change various values in the tests ?

eg. fees, issuance etc.

i would expect the tests not to change.

and it needs to resolve the conflicts.

agree, reverted all those changes

@mrq1911 mrq1911 added this to the 42 milestone Oct 3, 2025
@enthusiastmartin enthusiastmartin removed this from the 42 milestone Oct 27, 2025
@enthusiastmartin enthusiastmartin added this to the 43 milestone Oct 27, 2025
fee,
pegs,
)
.map(|p| p.reciprocal())?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should fix the underlaying function rather than inverting the price here.

&asset_pegs,
)
.ok_or_else(|| ExecutorError::Error(ArithmeticError::Overflow.into()))?
.reciprocal()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this is an issue?!

@github-actions
Copy link

Quick benchmark at commit 375b5e6 has been executed successfully.
View results

@mrq1911 mrq1911 removed this from the 43 milestone Dec 15, 2025
@enthusiastmartin enthusiastmartin linked an issue Dec 21, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: fix spot price calculation of stableswap

4 participants