I’m doing yield farming on a smart contract and I try to find out the total amount of my deposits. I know that I can follow the ERC20 tx on etherscan, but I would like to find an easier way. Under contract tab I found getBalanceOf function. The result is the following:
uint256 [ balanceOf(address) method Response ] uint256 : 988588442198945
I thought it’s wei, but after conversion it’s 0.0009 ether. I deposited way more so the function or the conversion doesn’t work as expected or the amount is not in wei.
What’s the best way to retrieve the deposits to a smart contract?