Limit
Prices
import {Price, LimitSwap} from 'dexible-sdk';
...
let limit = new LimitSwap({
amountIn: units.inBNETH("1"),
tokenIn: weth,
tokenOut: matic,
slippage: new Slippage(.5, false),
price: new Price({
inAmount: units.inBNETH(".0004862"),
inToken: weth,
outAmount: units.inBNETH("1"),
outToken: matic
}),
customizations: {
...
}
});Last updated
Was this helpful?