I was wondering if there is any way to route the fess paid in a dex to a different wallet, anyone have any idea?
async
function
swap
(
)
{
const
receipt =
await
Moralis.
Plugins
.
oneInch
.
swap
(
{
chain:
‘bsc’
,
// The blockchain you want to use (eth/bsc/polygon)
fromTokenAddress:
‘0x0da6ed8b13214ff28e9ca979dd37439e8a88f6c4’
,
// The token you want to swap
toTokenAddress:
‘0x6fd7c98458a943f469e1cf4ea85b173f5cd342f4’
,
// The token you want to receive
amount:
‘1000’
,
fromAddress:
‘0x6217e65d864d77DEcbFF0CFeFA13A93f7C1dD064’
,
// Your wallet address
slippage:
1
,
}
)
;
console
.
log
(
receipt
)
;
}
this seems to be the code line i need any way to add it?
hey sorry, can you format your code and paste it again with code blocks here ?