Creating an ASA which balance is calculated by an equation

I’m looking at the reflect finance contract where they create an auto-staking token as explained here

I’m trying to figure out the best way to implement something similar on Algorand, My main concern is how a wallet like pera could show an user’s balance of such token when it is provided by an equation fed by state data from a SC. Would that be possible?