EatTheBlocks Forum

"Flashloan" could not deploy due to insufficient funds?

On truffle migrate --reset --network mainnet I get a successful compilation after that:

Note that I commented out the deployment of migration.sol to limit the use of gas, is it integral to deploy it ?

const Migrations = artifacts.require("Migrations");

module.exports = function(deployer) {

  //deployer.deploy(Migrations);

};

As it is shown the address does have sufficient funds but get the insufficient funds message, why is that and from where exactly in the code does it get the “gas * price + value” ?
Thx

Figured this one out myself too :slight_smile: For anybody having the same issue just add in truffle-config.js under mainnet:
gas:300000,
gasPrice:web3.utils.toWei(‘30’, ‘gwei’), // or lower gas price

2 Likes