Skip to content

Commit

Permalink
actions clarification natspec (#409)
Browse files Browse the repository at this point in the history
* natspec

* Update src/libraries/Actions.sol

Co-authored-by: Alice <34962750+hensha256@users.noreply.github.com>

---------

Co-authored-by: Alice <34962750+hensha256@users.noreply.github.com>
  • Loading branch information
snreynolds and hensha256 authored Dec 2, 2024
1 parent 05ede29 commit 24ae83f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libraries/Actions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pragma solidity ^0.8.0;

/// @notice Library to define different pool actions.
/// @dev These are suggested common commands, however additional commands should be defined as required
/// Some of these actions are not supported in the Router contracts or Position Manager contracts, but are left as they may be helpful commands for other peripheral contracts.
library Actions {
// pool actions
// liquidity actions
Expand All @@ -18,7 +19,9 @@ library Actions {
uint256 constant SWAP_EXACT_IN = 0x07;
uint256 constant SWAP_EXACT_OUT_SINGLE = 0x08;
uint256 constant SWAP_EXACT_OUT = 0x09;

// donate
// note this is not supported in the position manager or router
uint256 constant DONATE = 0x0a;

// closing deltas on the pool manager
Expand All @@ -40,6 +43,7 @@ library Actions {
uint256 constant UNWRAP = 0x16;

// minting/burning 6909s to close deltas
// note this is not supported in the position manager or router
uint256 constant MINT_6909 = 0x17;
uint256 constant BURN_6909 = 0x18;
}

0 comments on commit 24ae83f

Please sign in to comment.