How to deposit $CAKE in a pool on pancakeswap through solidity smart contract? - solidity

I am developing a smart contract on solidity where user can deposit $CAKE in my pool and after depositing, the deposited $CAKE will be automatically redirected to some other pool. But I don't know how to write this! Can anyone help?
I don't have any clue on how to do this or even if it is possible?

Related

How to delete NFT listing if the NFT is transferred out of the owner wallet

I'm working on a project to create an NFTs marketplace.
When an NFT is listed, the owner can transfer that NFT to another wallet and the listing would still be there.
This raises a few problems:
When the NFT is returned to the original, the listing is up again and bots can snipe the NFT if the listing is below the floor price.
Buyers can still call the function but the transaction will be reverted, buyers would receive no NFT and lose the gas fee.
Apparently, Opensea is fighting this problem using front-end solution. CMIIW.
You can see more below:
https://opensea.io/blog/safety-security/important-updates-for-listing-and-delisting-your-nfts/
https://support.opensea.io/hc/en-us/articles/4415742560403-What-is-an-inactive-listing-
Are there any other ways for the smart contracts to recognize the NFT being transferred out of the wallet and make the listing invalid, only using smart contracts?

adding credit card option function in smart contract for minting NFT

I'm looking into adding a function to allow payments by cc during mint. Has anyone done this successfully and is willing to share how you went about it? Thanks!
The only way for doing this is after user paying you need to make the minting from your server and transfer it to the user or mint it directly to the user wallet

how to buy/sell bsc tokens on pancakeswap from a solidity smart contract?

I just start to learn solidity and I've finished a couple courses and I want some help to create my first working smart contract.
The smart contract I want to build will buy and sell tokens on the pancakeswap platform from a smart contract; it like my smart contract will start interacting with a pancakeswap contract to execute some trades, doing the same stuff as I'm using their website.
Any help will be appreciated
I have tried to add the interfaces I need to start the interaction between my contract and pancakeswap router contract to use the function

how to withdraw all tokens from the my contract in solidity after deployment?

I am deployed ERC-721 smart contract and sale was started and 3ETH in my contract
Now I am worried about how can I withdraw ETH from the contract to my wallet. How can I upgrade my contract with the withdrawal function?
Please help
Thanking in anticipation
If the contract is already deployed with no withdraw function, no proxie, without a delegatecall, is very hard or imposible to withdraw the ether

how to differentiate between buyer and seller in smart contract?

I'm creating a new token in BSC using Solidity, and I want to identified when someone is buying, so I can make the contract do something specific
How can I identified when someone is BUYING? thanks