I am trying to develop a smart contract that can take USDC deposits from an EOA and keep track of address balances etc…
I am following along the Ethereum 201 course which has a Dex contract that seems like a good template to follow but I am not sure how to define a data structure that holds USDC tokens from testnet. Can i just define a function like this on my contract?
function depositUsdc() external payable {
balances[msg.sender][bytes32("USDC")] = balances[msg.sender][
bytes32("USDC")
].add(msg.value);
}