I am a server-side developer who started learning solidity a few weeks ago.
I am writing smart contracts for practice.
Currently, I am stuck conceptually and need help from industry experts.
Imagine a smart contract that contains a pool of funds (e.g. 100 DAI). Further, imagine that the said smart contract is Ownable. How do I create functionality whereby the owner can instruct this smart contract to, say, buy (or bid on) an NFT?
I can see the ERC721 anatomy here. There does not seem to be
buy methods built into this smart contract. How do I go about designing this smart contract? An illustrative example with an explanation of the pattern would be great.