Usage
Creating SDK Instance
import { constructSDK } from "@orbs-network/twap-sdk";
const twapSDK = constructSDK({
config
});{
"chainName": "eth",
"chainId": 1,
"twapVersion": 4,
"twapAddress": "0x0000000000000000000000000000000000000000",
"lensAddress": "0x0000000000000000000000000000000000000000",
"bidDelaySeconds": 60,
"minChunkSizeUsd": 100,
"name": "DexSwap",
"partner": "Orbs:TWAP:DexSwap",
"exchangeAddress": "0x0000000000000000000000000000000000000000",
"exchangeType": "ParaswapExchange",
"pathfinderKey": ""
}Derived Swap Values
Prepare Order Arguments
Order Deadline
Get Orders
Wait For Orders Update
Best Practices
Limit Deadline
Warnings
Last updated