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

WIP: PositionManager: execute() #132

Closed
wants to merge 11 commits into from

Conversation

saucepoint
Copy link
Collaborator

@saucepoint saucepoint commented Jun 26, 2024

very much so wip

  • defined unlockAndExecute / recursive calling for shared code paths
  • combination testing
  • transient library and close delta once temp-dev-update #135

address owner,
LiquidityRange memory range,
uint256 liquidityToAdd,
bytes memory hookData,
bool claims
) internal returns (BalanceDelta) {
return abi.decode(
manager.unlock(abi.encode(LiquidityOperation.INCREASE, owner, range, liquidityToAdd, hookData, claims)),
manager.unlock(
abi.encode(LiquidityOperation.INCREASE, abi.encode(owner, range, liquidityToAdd, hookData, claims))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the double encode and double decode 😭

probably will get reworked...

@saucepoint saucepoint added the posm position manager label Jun 27, 2024
@saucepoint saucepoint force-pushed the sauce/posm-batch-execute branch from 3039b7b to 406506f Compare June 28, 2024 16:07
saucepoint and others added 2 commits June 29, 2024 00:02
* checkpointing

* move decrease and collect to transient storage

* remove returns since they are now saved to transient storage

* draft: delta closing

* wip

* Sra/edits (#137)

* consolidate using owner, update burn

* fix: accrue deltas to caller in increase

* Rip Out Vanilla (#138)

* rip out vanilla and benchmark

* fix gas benchmark

* check posm is the locker before allowing access to external functions

* restore execute tests

* posm takes as 6909; remove legacy deadcode

* restore tests

* move helpers to the same file

* fix: cleanup

---------

Co-authored-by: Sara Reynolds <[email protected]>
Co-authored-by: Sara Reynolds <[email protected]>
@snreynolds
Copy link
Member

Closing in favor of #141

@snreynolds snreynolds closed this Jul 9, 2024
@saucepoint saucepoint deleted the sauce/posm-batch-execute branch July 29, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
posm position manager
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants