Hello again, the bot is returning this error after calculating gas price in the function "calculate_gas_price". It seems that buy & sell functions requires BigNumber as input, but gas price is formated as string.
reason: 'invalid BigNumber string',
code: 'INVALID_ARGUMENT',
argument: 'value',
value: '5.000000001'
If i leave the calculate_gas_price function as following, it is able to run but i am getting strange results like failed txs and buys not in the right time (it executes after the original tx instead of before).
function calculate_gas_price(action, amount){
if (action==="buy"){
return amount.add(1);
}else{
return amount.sub(1);
}
}