Skip to content

[BUG] The definition of CL_BURN_POSITION action in ACTIONS_ABI in infinity-sdk is wrong #12223

@gummy789j

Description

@gummy789j

Is there an existing issue for this?

  • I have searched the existing issues

Product

Other

Current Behavior

snippet from infinity-periphery

            } else if (action == Actions.CL_BURN_POSITION) {
                // Will automatically decrease liquidity to 0 if the position is not already empty.
                (uint256 tokenId, uint128 amount0Min, uint128 amount1Min, bytes calldata hookData) =
                    params.decodeCLBurnParams();
                _burn(tokenId, amount0Min, amount1Min, hookData);
                return;
            }

and I found the definition in CL_BURN_POSITION in ACTIONS_ABI is different

snippet from infinity-sdk

  // 0x03
  [ACTIONS.CL_BURN_POSITION]: parseAbiParameters([
    'uint256 tokenId, PositionConfig config, uint128 amount0Min, uint128 amount1Min, bytes hookData',
    ...ABI_STRUCT_POSITION_CONFIG,
  ]),

Expected Behavior

remove PositionConfig

  // 0x03
  [ACTIONS.CL_BURN_POSITION]: parseAbiParameters([
    'uint256 tokenId, uint128 amount0Min, uint128 amount1Min, bytes hookData',
    ...ABI_STRUCT_POSITION_CONFIG,
  ]),

Steps To Reproduce

checkout the infinity-periphery and infinity-sdk

Environment

no

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingTriageAwaiting team acknowledgement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions