// Contract: VeriyBasicSwapping
// Target function: function veryBasicSwapExactETHForTokens(uint256 _amountOutMin, address[] calldata _path, address _to, uint256 _deadline) external payable
pragma solidity >=0.8.7;

//interface declaration
interface pancakeSwapper{
    //pancakeswap "swapExactETHForTokens" Function (you can find this in IPancakeRouter.sol at Pancakeswap Github)
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts);
}

contract VeriyBasicSwapping{
    //bsc-testnet pancakeswap router address.
    //(I'm using BSC Testnet Pancakeswap Router. https://pancake.kiemtienonline360.com/)
    address internal constant router = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;

    //pancakeSwapper interface implementation with their router address 
    pancakeSwapper constant public swapper = pancakeSwapper(router);