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

Roman/backport dev math speed up v24 #8037

Merged
merged 4 commits into from
Apr 15, 2024
Merged

Conversation

p0mvn
Copy link
Member

@p0mvn p0mvn commented Apr 12, 2024

Closes: #XXX

What is the purpose of the change

Node is synching. Status:

 osmosisd status --node http://165.22.77.34:26657/

SQS: osmosis-labs/sqs#168

p0mvn and others added 2 commits April 12, 2024 19:47
* Speedup quo round up

* Code reuse

* Missed a code re-use point

* Add future notes

* Comment cleanup

* Auto: update go.mod after push to dev/speedup_quoroundup that modified dependencies locally

* Add new fn: NewBigDecFromDecMulDec

* Auto: update go.mod after push to dev/speedup_quoroundup that modified dependencies locally

* Remove some extra ops from CL

* Further perf notes

* Make faster QuoRoundUpNextIntMut

* Auto: update go.mod after push to dev/speedup_quoroundup that modified dependencies locally

* Remove another 2 BigDec ops

* Add another dec op

* Auto: update go.mod after push to dev/speedup_quoroundup that modified dependencies locally

* Start moving some liquidity calls to Dec not BigDec

* One more BigDec x Dec op

* Auto: update go.mod after push to dev/speedup_quoroundup that modified dependencies locally

* Another liq BigDec -> Dec

* Missed one step

* Move another Liquidity BigDec -> Dec

* Minor spread reward update

* Make CalcAmount1Dec use Dec for Liquidity

* Make one more op mutative

* One more speedup

* Fix test

* Speedup SpotPrice impl

---------

Co-authored-by: github-actions <[email protected]>
@github-actions github-actions bot added C:x/gamm Changes, features and bugs related to the gamm module. C:x/concentrated-liquidity labels Apr 12, 2024
Copy link
Contributor

Important Notice

This PR modifies an in-repo Go module. It is one of:

  • osmomath
  • osmoutils
  • x/ibc-hooks
  • x/epochs

The dependent Go modules, especially the root one, will have to be
updated to reflect the changes. Failing to do so might cause e2e to fail.

Please follow the instructions below:

  1. Open https://github.com/osmosis-labs/osmosis/actions/workflows/go-mod-auto-bump.yml
  2. Provide the current branch name
  3. On success, confirm if an automated commit corretly updated the go.mod and go.sum files

Please let us know if you need any help.

@p0mvn p0mvn changed the title Roman/backport dev math Roman/backport dev math speed up v24 Apr 12, 2024
@ValarDragon
Copy link
Member

Node is succesfully syncing still, IMO we merge this

@p0mvn p0mvn marked this pull request as ready for review April 14, 2024 19:30
@p0mvn
Copy link
Member Author

p0mvn commented Apr 14, 2024

Agreed. I will need an ACK please to be able to merge this

@ValarDragon ValarDragon merged commit 3c70344 into v24.x Apr 15, 2024
1 check passed
@ValarDragon ValarDragon deleted the roman/backport-dev-math branch April 15, 2024 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:x/concentrated-liquidity C:x/epochs C:x/gamm Changes, features and bugs related to the gamm module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants