strategy()

CarbonController.sol
    function strategy(uint256 id) external view returns (Strategy memory);
   

This function is used to get details about a strategy, specified by its ID.

Function Arguments

Returns

This function returns details about the specified strategy.

Example

strategy(
 888 //strategy id
)

// returns 
// struct Strategy {
//    uint256 id;
//    address owner;
//    Token[2] tokens;
//    Order[2] orders;
// }

// [{y, z, A, B},{y, z, A, B}], // orders

Last updated