Configure the SDK

Each SDK instance is configurable. If no options are provided, Openflow default options will be utilized.

Example

IOpenflowSdk.Options memory options = sdk.options(); // Load existing options
options.auctionDuration = 60 * 5; // Set auction duration to 5 Minutes.
options.slippageBips = 60; // Update slippage bips to 60.
options.manager = msg.sender; // Set instance manager to msg.sender.
options.managerCanSwap = true; // Allow manager to swap.
sdk.setOptions(options); // Set options

All current SDK options are defined here. Let's review the options.

SDK Options

Last updated