Take Profit
const tp = new TakeProfitSwap({
amountIn: units.inBNETH("18000"),
tokenIn: matic,
tokenOut: usdc,
slippage: new Slippage(.5, false),
profitPercentage: 10,
startingPrice: new Price({
inAmount: units.inBNETH("1000"),
inToken: matic,
outAmount: units.inBNETH("950"),
outToken: usdc
})
});Last updated
Was this helpful?