# Creating an ASA which balance is calculated by an equation

**URL:** <https://forum.algorand.co/t/creating-an-asa-which-balance-is-calculated-by-an-equation/10186>\
**Category:** General\
**Tags:** asa, smart-contracts\
**Created:** [August 14, 2023, 4:02pm UTC](https://forum.algorand.co/t/creating-an-asa-which-balance-is-calculated-by-an-equation/10186 "2023-08-14T16:02:58Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![luisdanielgp](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.algorand.co/luisdanielgp/32/1751_2.png) [@luisdanielgp](https://forum.algorand.co/u/luisdanielgp)\
**Post date:** [August 14, 2023, 4:02pm UTC](https://forum.algorand.co/t/creating-an-asa-which-balance-is-calculated-by-an-equation/10186/1 "2023-08-14T16:02:58Z")

</div>

I’m looking at the [reflect finance contract](https://github.com/reflectfinance/reflect-contracts/blob/main/contracts/REFLECT.sol) where they create an auto-staking token as explained [here](https://reflect-contract-doc.netlify.app/#a-technical-whitepaper-for-reflect-contracts)

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?

---

_[View the full topic](https://forum.algorand.co/t/creating-an-asa-which-balance-is-calculated-by-an-equation/10186)._
