I’m curious about upgradeable contracts. If I was to upgrade a contract that already had many states, such as staking states, once the contract is upgraded would the states of the contract also be the same?
Ex. Contract A has stake values for addresses x y and z on a variable mapping called currentStakesOf which maps the users address with the amount of coins staked. Contract A get’s upgraded, what happens to the stake values for x y and z