'How to calculate the total supply of Elastic Tokens?

I am building an elastic supply token without mint function. I need 1000% APY. So how will I calculate the total supply of tokens and fees like sell fee and buy fee for the token?

I am new to building tokens. If anybody knows any resources that can help me do share them. I really appreciate your help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source