Gas Estimation failed: error

Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
execution reverted

Hi! i have been trying to test the fund function on testnet and have enough eth but still getting this error. can anyone please help me to understand this?

Hi. @Blockchainkid in other to help you solve the issue it requires you attach the code logic of fund() function, the issue primarily in most cases is due to mathematical errors in logis

function fund() public payable{
            require (msg.value.getConversionRate() >=MINIMUM_USD , "not enough");
            addrssToAmount[msg.sender]+= msg.value;     

Thanks for the reply ser. could you please check ?

Where did you get this from? It is not a build in function... (see here:

if this is all you have