<aside> 💡
To use this function, you must use GlueERC20
or GlueERC721
contract of a specific Sticky Token. To better understand the Glue Ecosystem architecture and find the correct deployment addresses, visit visit Lore and Architecture | License & Deployments
</aside>
The Adjusted Total Supply provides a more realistic view of the Sticky Asset's total supply. It incorporates both the totalSupply
and the assets held by the DeAd address and stored in Glue. This makes it the most practical total supply information available on-chain for an asset in DeFi.
You can get the Adjusted Total Supply of a Sticky Token from it’s Glue using getAdjustedTotalSupply
and receiving a uint256 adjustedTotalSupply
.
/**
* @notice Retrieves the adjusted total supply of the Sticky NFT Collection.
* @dev This function is used to get the adjusted total supply of the Sticky NFT Collection.
*
* @return adjustedTotalSupply The adjusted and actual total supply of the Sticky NFT Collection.
*
* Use cases:
* - Retrieving the adjusted total supply of the Sticky NFT Collection.
*/
function getAdjustedTotalSupply() external view returns (uint256 adjustedTotalSupply);
You can obtain the Adjusted Total Supply from a Glue Address using the getAdjustedTotalSupply
function. This can be useful for: