Hi, I'm learning solidity and I was working on a personal project that does the following:
user sends BNB + gas to a contract, this contract applies some fees to it and buy another specific token then sends it back to the buying user. A second option is to have a calling function that does that. In case of fail, user would be able to reclaim that via contract function.
Does anyone have an idea on how I could implement this (logic or any contract that already goes similar)?