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

refactor: reduce the number of returns in tick conversions and update position #6071

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

p0mvn
Copy link
Member

@p0mvn p0mvn commented Aug 16, 2023

Progress towards: #5984

What is the purpose of the change

This PR continue removing too many returns to later enable a revive linter.

This PR:

  • Combines several returns into one struct for UpdatePosition
  • Removes redundant price returns from TicksToSqrtPrice function

Testing and Verifying

This change is already covered by existing tests

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes?
  • Changelog entry added to Unreleased section of CHANGELOG.md?

Where is the change documented?

  • Specification (x/{module}/README.md)
  • Osmosis documentation site
  • Code comments?
  • N/A

@p0mvn p0mvn added V:state/compatible/backport State machine compatible PR, should be backported A:no-changelog A:backport/v16.x backport patches to v16.x branch labels Aug 16, 2023
@p0mvn p0mvn marked this pull request as ready for review August 16, 2023 13:37
@ValarDragon ValarDragon added the A:backport/v17.x backport patches to v17.x branch label Aug 16, 2023
Copy link
Member

@ValarDragon ValarDragon left a comment

Choose a reason for hiding this comment

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

Awesome, nice change

@ValarDragon ValarDragon merged commit b3cbdd4 into main Aug 16, 2023
1 check passed
@ValarDragon ValarDragon deleted the roman/reduce-num-return-3 branch August 16, 2023 17:23
mergify bot pushed a commit that referenced this pull request Aug 16, 2023
… position (#6071)

* refactor: reduce the number of returns in tick conversions and update position

* changelog

(cherry picked from commit b3cbdd4)
mergify bot pushed a commit that referenced this pull request Aug 16, 2023
… position (#6071)

* refactor: reduce the number of returns in tick conversions and update position

* changelog

(cherry picked from commit b3cbdd4)

# Conflicts:
#	CHANGELOG.md
#	x/concentrated-liquidity/lp.go
#	x/concentrated-liquidity/lp_test.go
#	x/concentrated-liquidity/position.go
#	x/superfluid/keeper/slash.go
#	x/superfluid/types/expected_keepers.go
ValarDragon pushed a commit that referenced this pull request Aug 16, 2023
… position (#6071) (#6087)

* refactor: reduce the number of returns in tick conversions and update position

* changelog

(cherry picked from commit b3cbdd4)

Co-authored-by: Roman <roman@osmosis.team>
traviolus pushed a commit to alleslabs/osmosis that referenced this pull request Aug 23, 2023
… position (osmosis-labs#6071) (osmosis-labs#6087)

* refactor: reduce the number of returns in tick conversions and update position

* changelog

(cherry picked from commit b3cbdd4)

Co-authored-by: Roman <roman@osmosis.team>
p0mvn added a commit that referenced this pull request Aug 29, 2023
… position (#6071)

* refactor: reduce the number of returns in tick conversions and update position

* changelog
nicolaslara pushed a commit that referenced this pull request Aug 31, 2023
… position (#6071)

* refactor: reduce the number of returns in tick conversions and update position

* changelog
@github-actions github-actions bot mentioned this pull request Apr 15, 2024
@github-actions github-actions bot mentioned this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/v16.x backport patches to v16.x branch A:backport/v17.x backport patches to v17.x branch C:simulator Edits simulator or simulations C:x/concentrated-liquidity C:x/superfluid V:state/compatible/backport State machine compatible PR, should be backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants