createStrategy()
function createStrategy(
Token token0,
Token token1,
Order[2] calldata orders
) external payable nonReentrant whenNotPaused onlyProxyDelegate returns (uint256)Function Arguments
Name
Type
Description
Example
createStrategy(
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE, //token0 ETH
0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, //token1 USDC
[{y, z, A, B}, // order0, selling token0 (ETH) for token1 (USDC)
{y, z, A, B}], // order1, selling token1 (USDC) for token0 (ETH)
)
// In the Carbon DeFi UI, this will appear with rates in units of ETH per USDC. Returns
Important notes
Example
Last updated