deleteStrategy()

CarbonController.sol
    function deleteStrategy(uint256 strategyId) 
        external 
        nonReentrant 
        whenNotPaused 
        onlyProxyDelegate

This function is used to delete a strategy on Carbon DeFi. Once removed, all liquidity associated to the strategy is sent to the strategy owner's wallet.

Function Arguments

NameTypeDescription

strategyId

uint256

The ID of the strategy to delete.

Example

deleteStrategy(
2381976568446569244243622252022377480199 //strategyId
) // Only the strategy owner can delete the strategy

While all required data is available on chain, it is recommended to use the Carbon DeFi SDK.

Last updated