createStrategy()
Only standard ERC20 tokens are supported (rebase, fee-on-transfer etc are not supported)
This function is used to create a strategy on Carbon DeFi. Each strategy must include two linked orders.
Function Arguments
Example
Returns
This function returns the assigned id of the strategy.
Important notes
While all required data is available on chain, it is recommended to use the Carbon DeFi SDK.
Due to input value normalization and memory restrictions, the order parameters stored on chain might be slightly different than those `input` via the UI and/or the SDK.
Example
To create a strategy with the ETH token, use the contract address: 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
Last updated